diff --git a/examples/cpp/configuration/ConfigurationPubSubTypes.cxx b/examples/cpp/configuration/ConfigurationPubSubTypes.cxx index c76c401adca..40080bb7372 100644 --- a/examples/cpp/configuration/ConfigurationPubSubTypes.cxx +++ b/examples/cpp/configuration/ConfigurationPubSubTypes.cxx @@ -219,9 +219,9 @@ bool ConfigurationPubSubType::getKey( return true; } -void ConfigurationPubSubType::register_type_object_representation() const +void ConfigurationPubSubType::register_type_object_representation() { - register_Configuration_type_objects(); + register_Configuration_type_identifier(type_identifiers_); } diff --git a/examples/cpp/configuration/ConfigurationPubSubTypes.h b/examples/cpp/configuration/ConfigurationPubSubTypes.h index e39966feba4..ea455e624ac 100644 --- a/examples/cpp/configuration/ConfigurationPubSubTypes.h +++ b/examples/cpp/configuration/ConfigurationPubSubTypes.h @@ -89,7 +89,7 @@ class ConfigurationPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/configuration/ConfigurationTypeObjectSupport.cxx b/examples/cpp/configuration/ConfigurationTypeObjectSupport.cxx index 02159c3a8c9..3c502b81239 100644 --- a/examples/cpp/configuration/ConfigurationTypeObjectSupport.cxx +++ b/examples/cpp/configuration/ConfigurationTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_Configuration_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_Configuration_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Configuration_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Configuration) { + + ReturnCode_t return_code_Configuration {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Configuration = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Configuration", type_ids_Configuration); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Configuration) { StructTypeFlag struct_flags_Configuration = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Configuration; - TypeIdentifierPair type_ids_Configuration; QualifiedTypeName type_name_Configuration = "Configuration"; eprosima::fastcdr::optional type_ann_builtin_Configuration; eprosima::fastcdr::optional ann_custom_Configuration; @@ -73,62 +66,26 @@ void register_Configuration_type_identifier( header_Configuration = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Configuration); CompleteStructMemberSeq member_seq_Configuration; { - return_code_Configuration = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Configuration); + "_uint32_t", type_ids_index); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_Configuration.type_identifier1()._d() || TK_NONE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Configuration.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_Configuration.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,69 +96,33 @@ void register_Configuration_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Configuration, member_index); } { - return_code_Configuration = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_20", type_ids_Configuration); + "anonymous_array_char_20", type_ids_message); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { - return_code_Configuration = + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_Configuration); + "_char", type_ids_message); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_20 {nullptr}; - if (EK_COMPLETE == type_ids_Configuration.type_identifier1()._d() || TK_NONE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_char_20_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_20 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_20_ec))}; + if (!element_identifier_anonymous_array_char_20_ec) { - element_identifier_anonymous_array_char_20 = new TypeIdentifier(type_ids_Configuration.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_20 = new TypeIdentifier(type_ids_Configuration.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_20 = EK_COMPLETE; - if (TK_NONE == type_ids_Configuration.type_identifier2()._d()) + if (TK_NONE == type_ids_message.type_identifier2()._d()) { equiv_kind_anonymous_array_char_20 = EK_BOTH; } @@ -214,68 +135,21 @@ void register_Configuration_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_20, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_20)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_20")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_20", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_20 already registered in TypeObjectRegistry for a different type."); } } - return_code_Configuration = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_20", type_ids_Configuration); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_20: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_Configuration.type_identifier1()._d() || TK_NONE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Configuration.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_Configuration.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -286,69 +160,33 @@ void register_Configuration_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Configuration, member_message); } { - return_code_Configuration = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_Configuration); + "anonymous_sequence_uint8_t_unbounded", type_ids_data); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { - return_code_Configuration = + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Configuration); + "_byte", type_ids_data); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Configuration.type_identifier1()._d() || TK_NONE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_Configuration.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_Configuration.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Configuration.type_identifier2()._d()) + if (TK_NONE == type_ids_data.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; } @@ -359,68 +197,21 @@ void register_Configuration_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Configuration = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_Configuration); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_Configuration.type_identifier1()._d() || TK_NONE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier1()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Configuration.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Configuration.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Configuration.type_identifier2()._d() && - EK_COMPLETE == type_ids_Configuration.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Configuration.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Configuration.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Configuration.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -432,21 +223,11 @@ void register_Configuration_type_identifier( } CompleteStructType struct_type_Configuration = TypeObjectUtils::build_complete_struct_type(struct_flags_Configuration, header_Configuration, member_seq_Configuration); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Configuration, type_name_Configuration.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Configuration, type_name_Configuration.to_string(), type_ids_Configuration)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Configuration already registered in TypeObjectRegistry for a different type."); } - return_code_Configuration = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Configuration", type_ids_Configuration); - if (return_code_Configuration != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Configuration: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/configuration/ConfigurationTypeObjectSupport.hpp b/examples/cpp/configuration/ConfigurationTypeObjectSupport.hpp index b3d2f5246c1..c59a741720f 100644 --- a/examples/cpp/configuration/ConfigurationTypeObjectSupport.hpp +++ b/examples/cpp/configuration/ConfigurationTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_Configuration_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_Configuration_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Configuration_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx b/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.h b/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.h +++ b/examples/cpp/custom_payload_pool/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.cxx b/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.cxx index fedf539c3fd..aaf391eeed3 100644 --- a/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -73,62 +66,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,79 +96,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -223,21 +135,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.hpp b/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/custom_payload_pool/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.cxx b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.cxx new file mode 100644 index 00000000000..1f39315124a --- /dev/null +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file AdvancedConfigurationPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "AdvancedConfigurationPubSubTypes.h" + +#include +#include + +#include "AdvancedConfigurationCdrAux.hpp" +#include "AdvancedConfigurationTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +AdvancedConfigurationPubSubType::AdvancedConfigurationPubSubType() +{ + setName("AdvancedConfiguration"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(AdvancedConfiguration::getMaxCdrSerializedSize()); +#else + AdvancedConfiguration_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = AdvancedConfiguration_max_key_cdr_typesize > 16 ? AdvancedConfiguration_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +AdvancedConfigurationPubSubType::~AdvancedConfigurationPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool AdvancedConfigurationPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + AdvancedConfiguration* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool AdvancedConfigurationPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + AdvancedConfiguration* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function AdvancedConfigurationPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* AdvancedConfigurationPubSubType::createData() +{ + return reinterpret_cast(new AdvancedConfiguration()); +} + +void AdvancedConfigurationPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool AdvancedConfigurationPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + AdvancedConfiguration* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + AdvancedConfiguration_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || AdvancedConfiguration_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void AdvancedConfigurationPubSubType::register_type_object_representation() +{ + register_AdvancedConfiguration_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "AdvancedConfigurationCdrAux.ipp" diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.h b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.h new file mode 100644 index 00000000000..a34a56358e2 --- /dev/null +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file AdvancedConfigurationPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "AdvancedConfiguration.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated AdvancedConfiguration is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type AdvancedConfiguration defined by the user in the IDL file. + * @ingroup AdvancedConfiguration + */ +class AdvancedConfigurationPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef AdvancedConfiguration type; + + eProsima_user_DllExport AdvancedConfigurationPubSubType(); + + eProsima_user_DllExport ~AdvancedConfigurationPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx new file mode 100644 index 00000000000..1402c7ada5c --- /dev/null +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx @@ -0,0 +1,226 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file AdvancedConfigurationTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "AdvancedConfigurationTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "AdvancedConfiguration.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_AdvancedConfiguration_type_identifier( + TypeIdentifierPair& type_ids_AdvancedConfiguration) +{ + + ReturnCode_t return_code_AdvancedConfiguration {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AdvancedConfiguration = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AdvancedConfiguration", type_ids_AdvancedConfiguration); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AdvancedConfiguration) + { + StructTypeFlag struct_flags_AdvancedConfiguration = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_AdvancedConfiguration = "AdvancedConfiguration"; + eprosima::fastcdr::optional type_ann_builtin_AdvancedConfiguration; + eprosima::fastcdr::optional ann_custom_AdvancedConfiguration; + CompleteTypeDetail detail_AdvancedConfiguration = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AdvancedConfiguration, ann_custom_AdvancedConfiguration, type_name_AdvancedConfiguration.to_string()); + CompleteStructHeader header_AdvancedConfiguration; + header_AdvancedConfiguration = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AdvancedConfiguration); + CompleteStructMemberSeq member_seq_AdvancedConfiguration; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_AdvancedConfiguration.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_AdvancedConfiguration); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_AdvancedConfiguration, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_20", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_array_char_20_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_20 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_20_ec))}; + if (!element_identifier_anonymous_array_char_20_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_20 = EK_COMPLETE; + if (TK_NONE == type_ids_message.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_20 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_20 = 0; + PlainCollectionHeader header_anonymous_array_char_20 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_20, element_flags_anonymous_array_char_20); + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(20)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_20, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_20)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_20", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_20 already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_AdvancedConfiguration.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_AdvancedConfiguration); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_AdvancedConfiguration, member_message); + } + { + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_data); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) + { + return_code_data = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_data); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_data.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint8_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint8_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_unbounded, element_flags_anonymous_sequence_uint8_t_unbounded); + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_data)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_data = 0x00000002; + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); + return; + } + MemberName name_data = "data"; + eprosima::fastcdr::optional member_ann_builtin_data; + ann_custom_AdvancedConfiguration.reset(); + CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_AdvancedConfiguration); + CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); + TypeObjectUtils::add_complete_struct_member(member_seq_AdvancedConfiguration, member_data); + } + CompleteStructType struct_type_AdvancedConfiguration = TypeObjectUtils::build_complete_struct_type(struct_flags_AdvancedConfiguration, header_AdvancedConfiguration, member_seq_AdvancedConfiguration); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AdvancedConfiguration, type_name_AdvancedConfiguration.to_string(), type_ids_AdvancedConfiguration)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "AdvancedConfiguration already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.hpp b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.hpp new file mode 100644 index 00000000000..0766bc97e14 --- /dev/null +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file AdvancedConfigurationTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register AdvancedConfiguration related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_AdvancedConfiguration_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.cxx new file mode 100644 index 00000000000..aa161b2e163 --- /dev/null +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file HelloWorldPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "HelloWorldPubSubTypes.h" + +#include +#include + +#include "HelloWorldCdrAux.hpp" +#include "HelloWorldTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +HelloWorldPubSubType::HelloWorldPubSubType() +{ + setName("HelloWorld"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(HelloWorld::getMaxCdrSerializedSize()); +#else + HelloWorld_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = HelloWorld_max_key_cdr_typesize > 16 ? HelloWorld_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +HelloWorldPubSubType::~HelloWorldPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool HelloWorldPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + HelloWorld* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool HelloWorldPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + HelloWorld* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function HelloWorldPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* HelloWorldPubSubType::createData() +{ + return reinterpret_cast(new HelloWorld()); +} + +void HelloWorldPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool HelloWorldPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + HelloWorld* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + HelloWorld_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || HelloWorld_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void HelloWorldPubSubType::register_type_object_representation() +{ + register_HelloWorld_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "HelloWorldCdrAux.ipp" diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.h b/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.h new file mode 100644 index 00000000000..4b09a679ee5 --- /dev/null +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file HelloWorldPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_HELLOWORLD_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_HELLOWORLD_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "HelloWorld.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated HelloWorld is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type HelloWorld defined by the user in the IDL file. + * @ingroup HelloWorld + */ +class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef HelloWorld type; + + eProsima_user_DllExport HelloWorldPubSubType(); + + eProsima_user_DllExport ~HelloWorldPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_HELLOWORLD_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx new file mode 100644 index 00000000000..83279c5d000 --- /dev/null +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx @@ -0,0 +1,164 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file HelloWorldTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "HelloWorldTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "HelloWorld.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_HelloWorld_type_identifier( + TypeIdentifierPair& type_ids_HelloWorld) +{ + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) + { + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_HelloWorld = "HelloWorld"; + eprosima::fastcdr::optional type_ann_builtin_HelloWorld; + eprosima::fastcdr::optional ann_custom_HelloWorld; + CompleteTypeDetail detail_HelloWorld = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_HelloWorld, ann_custom_HelloWorld, type_name_HelloWorld.to_string()); + CompleteStructHeader header_HelloWorld; + header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); + CompleteStructMemberSeq member_seq_HelloWorld; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_HelloWorld.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_HelloWorld); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_20", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_array_char_20_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_20 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_20_ec))}; + if (!element_identifier_anonymous_array_char_20_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_20 = EK_COMPLETE; + if (TK_NONE == type_ids_message.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_20 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_20 = 0; + PlainCollectionHeader header_anonymous_array_char_20 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_20, element_flags_anonymous_array_char_20); + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(20)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_20, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_20)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_20", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_20 already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_HelloWorld.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_HelloWorld); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_message); + } + CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "HelloWorld already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.hpp new file mode 100644 index 00000000000..2eba797b07f --- /dev/null +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file HelloWorldTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register HelloWorld related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_HelloWorld_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/Configurability/samplePubSubTypes.cxx b/examples/cpp/dds/Configurability/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/Configurability/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/Configurability/samplePubSubTypes.h b/examples/cpp/dds/Configurability/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/Configurability/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/Configurability/sampleTypeObjectSupport.hpp b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.h b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.cxx index fe783982b0f..58928b6f057 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.cxx b/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.cxx new file mode 100644 index 00000000000..70697eb1c1d --- /dev/null +++ b/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "TopicPubSubTypes.h" + +#include +#include + +#include "TopicCdrAux.hpp" +#include "TopicTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +TopicPubSubType::TopicPubSubType() +{ + setName("Topic"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Topic::getMaxCdrSerializedSize()); +#else + Topic_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Topic_max_key_cdr_typesize > 16 ? Topic_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +TopicPubSubType::~TopicPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool TopicPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool TopicPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function TopicPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* TopicPubSubType::createData() +{ + return reinterpret_cast(new Topic()); +} + +void TopicPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool TopicPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Topic_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Topic_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void TopicPubSubType::register_type_object_representation() +{ + register_Topic_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "TopicCdrAux.ipp" diff --git a/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.h b/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.h new file mode 100644 index 00000000000..8af82d4fcdf --- /dev/null +++ b/examples/cpp/dds/CustomListenerExample/TopicPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "Topic.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated Topic is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Topic defined by the user in the IDL file. + * @ingroup Topic + */ +class TopicPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Topic type; + + eProsima_user_DllExport TopicPubSubType(); + + eProsima_user_DllExport ~TopicPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx new file mode 100644 index 00000000000..ec70f284376 --- /dev/null +++ b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx @@ -0,0 +1,138 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "TopicTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Topic.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Topic_type_identifier( + TypeIdentifierPair& type_ids_Topic) +{ + + ReturnCode_t return_code_Topic {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Topic = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Topic", type_ids_Topic); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Topic) + { + StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_Topic = "Topic"; + eprosima::fastcdr::optional type_ann_builtin_Topic; + eprosima::fastcdr::optional ann_custom_Topic; + CompleteTypeDetail detail_Topic = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Topic, ann_custom_Topic, type_name_Topic.to_string()); + CompleteStructHeader header_Topic; + header_Topic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Topic); + CompleteStructMemberSeq member_seq_Topic; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Topic); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Topic); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_message); + } + CompleteStructType struct_type_Topic = TypeObjectUtils::build_complete_struct_type(struct_flags_Topic, header_Topic, member_seq_Topic); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Topic, type_name_Topic.to_string(), type_ids_Topic)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Topic already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.hpp b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.hpp new file mode 100644 index 00000000000..6b3e255eba0 --- /dev/null +++ b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Topic related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Topic_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDataTypeObjectSupport.cxx b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDataTypeObjectSupport.cxx new file mode 100644 index 00000000000..80a797f7f94 --- /dev/null +++ b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDataTypeObjectSupport.cxx @@ -0,0 +1,138 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file CustomPayloadPoolDataTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "CustomPayloadPoolDataTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "CustomPayloadPoolData.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_CustomPayloadPoolData_type_identifier( + TypeIdentifierPair& type_ids_CustomPayloadPoolData) +{ + + ReturnCode_t return_code_CustomPayloadPoolData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_CustomPayloadPoolData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "CustomPayloadPoolData", type_ids_CustomPayloadPoolData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_CustomPayloadPoolData) + { + StructTypeFlag struct_flags_CustomPayloadPoolData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_CustomPayloadPoolData = "CustomPayloadPoolData"; + eprosima::fastcdr::optional type_ann_builtin_CustomPayloadPoolData; + eprosima::fastcdr::optional ann_custom_CustomPayloadPoolData; + CompleteTypeDetail detail_CustomPayloadPoolData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_CustomPayloadPoolData, ann_custom_CustomPayloadPoolData, type_name_CustomPayloadPoolData.to_string()); + CompleteStructHeader header_CustomPayloadPoolData; + header_CustomPayloadPoolData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_CustomPayloadPoolData); + CompleteStructMemberSeq member_seq_CustomPayloadPoolData; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_CustomPayloadPoolData.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_CustomPayloadPoolData); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_CustomPayloadPoolData, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_CustomPayloadPoolData.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_CustomPayloadPoolData); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_CustomPayloadPoolData, member_message); + } + CompleteStructType struct_type_CustomPayloadPoolData = TypeObjectUtils::build_complete_struct_type(struct_flags_CustomPayloadPoolData, header_CustomPayloadPoolData, member_seq_CustomPayloadPoolData); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_CustomPayloadPoolData, type_name_CustomPayloadPoolData.to_string(), type_ids_CustomPayloadPoolData)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "CustomPayloadPoolData already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.cxx b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.cxx new file mode 100644 index 00000000000..4039df4d417 --- /dev/null +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file deadlinepayloadPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "deadlinepayloadPubSubTypes.h" + +#include +#include + +#include "deadlinepayloadCdrAux.hpp" +#include "deadlinepayloadTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +HelloMsgPubSubType::HelloMsgPubSubType() +{ + setName("HelloMsg"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(HelloMsg::getMaxCdrSerializedSize()); +#else + HelloMsg_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = HelloMsg_max_key_cdr_typesize > 16 ? HelloMsg_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +HelloMsgPubSubType::~HelloMsgPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool HelloMsgPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + HelloMsg* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool HelloMsgPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + HelloMsg* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function HelloMsgPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* HelloMsgPubSubType::createData() +{ + return reinterpret_cast(new HelloMsg()); +} + +void HelloMsgPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool HelloMsgPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + HelloMsg* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + HelloMsg_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || HelloMsg_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void HelloMsgPubSubType::register_type_object_representation() +{ + register_HelloMsg_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "deadlinepayloadCdrAux.ipp" diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.h b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.h new file mode 100644 index 00000000000..7a354e84055 --- /dev/null +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file deadlinepayloadPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_DEADLINEPAYLOAD_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_DEADLINEPAYLOAD_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "deadlinepayload.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated deadlinepayload is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type HelloMsg defined by the user in the IDL file. + * @ingroup deadlinepayload + */ +class HelloMsgPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef HelloMsg type; + + eProsima_user_DllExport HelloMsgPubSubType(); + + eProsima_user_DllExport ~HelloMsgPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_DEADLINEPAYLOAD_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx new file mode 100644 index 00000000000..b9768d78f93 --- /dev/null +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx @@ -0,0 +1,151 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file deadlinepayloadTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "deadlinepayloadTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "deadlinepayload.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_HelloMsg_type_identifier( + TypeIdentifierPair& type_ids_HelloMsg) +{ + + ReturnCode_t return_code_HelloMsg {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloMsg = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloMsg", type_ids_HelloMsg); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloMsg) + { + StructTypeFlag struct_flags_HelloMsg = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_HelloMsg = "HelloMsg"; + eprosima::fastcdr::optional type_ann_builtin_HelloMsg; + eprosima::fastcdr::optional ann_custom_HelloMsg; + CompleteTypeDetail detail_HelloMsg = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_HelloMsg, ann_custom_HelloMsg, type_name_HelloMsg.to_string()); + CompleteStructHeader header_HelloMsg; + header_HelloMsg = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloMsg); + CompleteStructMemberSeq member_seq_HelloMsg; + { + TypeIdentifierPair type_ids_deadlinekey; + ReturnCode_t return_code_deadlinekey {eprosima::fastdds::dds::RETCODE_OK}; + return_code_deadlinekey = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_deadlinekey); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_deadlinekey) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "deadlinekey Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_deadlinekey = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_deadlinekey = 0x00000000; + bool common_deadlinekey_ec {false}; + CommonStructMember common_deadlinekey {TypeObjectUtils::build_common_struct_member(member_id_deadlinekey, member_flags_deadlinekey, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_deadlinekey, common_deadlinekey_ec))}; + if (!common_deadlinekey_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure deadlinekey member TypeIdentifier inconsistent."); + return; + } + MemberName name_deadlinekey = "deadlinekey"; + eprosima::fastcdr::optional member_ann_builtin_deadlinekey; + ann_custom_HelloMsg.reset(); + AppliedAnnotationSeq tmp_ann_custom_deadlinekey; + eprosima::fastcdr::optional unit_deadlinekey; + eprosima::fastcdr::optional min_deadlinekey; + eprosima::fastcdr::optional max_deadlinekey; + eprosima::fastcdr::optional hash_id_deadlinekey; + if (unit_deadlinekey.has_value() || min_deadlinekey.has_value() || max_deadlinekey.has_value() || hash_id_deadlinekey.has_value()) + { + member_ann_builtin_deadlinekey = TypeObjectUtils::build_applied_builtin_member_annotations(unit_deadlinekey, min_deadlinekey, max_deadlinekey, hash_id_deadlinekey); + } + if (!tmp_ann_custom_deadlinekey.empty()) + { + ann_custom_HelloMsg = tmp_ann_custom_deadlinekey; + } + CompleteMemberDetail detail_deadlinekey = TypeObjectUtils::build_complete_member_detail(name_deadlinekey, member_ann_builtin_deadlinekey, ann_custom_HelloMsg); + CompleteStructMember member_deadlinekey = TypeObjectUtils::build_complete_struct_member(common_deadlinekey, detail_deadlinekey); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloMsg, member_deadlinekey); + } + { + TypeIdentifierPair type_ids_payload; + ReturnCode_t return_code_payload {eprosima::fastdds::dds::RETCODE_OK}; + return_code_payload = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_256", type_ids_payload); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_payload) + { + { + LBound bound = 256; + StringLTypeDefn string_ldefn = TypeObjectUtils::build_string_l_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_string_type_identifier(string_ldefn, + "anonymous_string_256", type_ids_payload)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_256 already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_payload = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_payload = 0x00000001; + bool common_payload_ec {false}; + CommonStructMember common_payload {TypeObjectUtils::build_common_struct_member(member_id_payload, member_flags_payload, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_payload, common_payload_ec))}; + if (!common_payload_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure payload member TypeIdentifier inconsistent."); + return; + } + MemberName name_payload = "payload"; + eprosima::fastcdr::optional member_ann_builtin_payload; + ann_custom_HelloMsg.reset(); + CompleteMemberDetail detail_payload = TypeObjectUtils::build_complete_member_detail(name_payload, member_ann_builtin_payload, ann_custom_HelloMsg); + CompleteStructMember member_payload = TypeObjectUtils::build_complete_struct_member(common_payload, detail_payload); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloMsg, member_payload); + } + CompleteStructType struct_type_HelloMsg = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloMsg, header_HelloMsg, member_seq_HelloMsg); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloMsg, type_name_HelloMsg.to_string(), type_ids_HelloMsg)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "HelloMsg already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx new file mode 100644 index 00000000000..ec70f284376 --- /dev/null +++ b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx @@ -0,0 +1,138 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "TopicTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Topic.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Topic_type_identifier( + TypeIdentifierPair& type_ids_Topic) +{ + + ReturnCode_t return_code_Topic {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Topic = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Topic", type_ids_Topic); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Topic) + { + StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_Topic = "Topic"; + eprosima::fastcdr::optional type_ann_builtin_Topic; + eprosima::fastcdr::optional ann_custom_Topic; + CompleteTypeDetail detail_Topic = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Topic, ann_custom_Topic, type_name_Topic.to_string()); + CompleteStructHeader header_Topic; + header_Topic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Topic); + CompleteStructMemberSeq member_seq_Topic; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Topic); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Topic); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_message); + } + CompleteStructType struct_type_Topic = TypeObjectUtils::build_complete_struct_type(struct_flags_Topic, header_Topic, member_seq_Topic); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Topic, type_name_Topic.to_string(), type_ids_Topic)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Topic already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.hpp b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.hpp new file mode 100644 index 00000000000..6b3e255eba0 --- /dev/null +++ b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Topic related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Topic_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.h b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.cxx index fe783982b0f..58928b6f057 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.cxx b/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.cxx new file mode 100644 index 00000000000..fb77a83726d --- /dev/null +++ b/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file FilteringExamplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "FilteringExamplePubSubTypes.h" + +#include +#include + +#include "FilteringExampleCdrAux.hpp" +#include "FilteringExampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +FilteringExamplePubSubType::FilteringExamplePubSubType() +{ + setName("FilteringExample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(FilteringExample::getMaxCdrSerializedSize()); +#else + FilteringExample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = FilteringExample_max_key_cdr_typesize > 16 ? FilteringExample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +FilteringExamplePubSubType::~FilteringExamplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool FilteringExamplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + FilteringExample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool FilteringExamplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + FilteringExample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function FilteringExamplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* FilteringExamplePubSubType::createData() +{ + return reinterpret_cast(new FilteringExample()); +} + +void FilteringExamplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool FilteringExamplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + FilteringExample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + FilteringExample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || FilteringExample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void FilteringExamplePubSubType::register_type_object_representation() +{ + register_FilteringExample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "FilteringExampleCdrAux.ipp" diff --git a/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.h b/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.h new file mode 100644 index 00000000000..379c2b76c26 --- /dev/null +++ b/examples/cpp/dds/Filtering/FilteringExamplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file FilteringExamplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_FILTERINGEXAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_FILTERINGEXAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "FilteringExample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated FilteringExample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type FilteringExample defined by the user in the IDL file. + * @ingroup FilteringExample + */ +class FilteringExamplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef FilteringExample type; + + eProsima_user_DllExport FilteringExamplePubSubType(); + + eProsima_user_DllExport ~FilteringExamplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_FILTERINGEXAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..25a58904bf2 --- /dev/null +++ b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx @@ -0,0 +1,100 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file FilteringExampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "FilteringExampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "FilteringExample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_FilteringExample_type_identifier( + TypeIdentifierPair& type_ids_FilteringExample) +{ + + ReturnCode_t return_code_FilteringExample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FilteringExample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FilteringExample", type_ids_FilteringExample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FilteringExample) + { + StructTypeFlag struct_flags_FilteringExample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_FilteringExample = "FilteringExample"; + eprosima::fastcdr::optional type_ann_builtin_FilteringExample; + eprosima::fastcdr::optional ann_custom_FilteringExample; + CompleteTypeDetail detail_FilteringExample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_FilteringExample, ann_custom_FilteringExample, type_name_FilteringExample.to_string()); + CompleteStructHeader header_FilteringExample; + header_FilteringExample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FilteringExample); + CompleteStructMemberSeq member_seq_FilteringExample; + { + TypeIdentifierPair type_ids_sampleNumber; + ReturnCode_t return_code_sampleNumber {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sampleNumber = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_sampleNumber); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sampleNumber) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sampleNumber Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_sampleNumber = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_sampleNumber = 0x00000000; + bool common_sampleNumber_ec {false}; + CommonStructMember common_sampleNumber {TypeObjectUtils::build_common_struct_member(member_id_sampleNumber, member_flags_sampleNumber, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sampleNumber, common_sampleNumber_ec))}; + if (!common_sampleNumber_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sampleNumber member TypeIdentifier inconsistent."); + return; + } + MemberName name_sampleNumber = "sampleNumber"; + eprosima::fastcdr::optional member_ann_builtin_sampleNumber; + ann_custom_FilteringExample.reset(); + CompleteMemberDetail detail_sampleNumber = TypeObjectUtils::build_complete_member_detail(name_sampleNumber, member_ann_builtin_sampleNumber, ann_custom_FilteringExample); + CompleteStructMember member_sampleNumber = TypeObjectUtils::build_complete_struct_member(common_sampleNumber, detail_sampleNumber); + TypeObjectUtils::add_complete_struct_member(member_seq_FilteringExample, member_sampleNumber); + } + CompleteStructType struct_type_FilteringExample = TypeObjectUtils::build_complete_struct_type(struct_flags_FilteringExample, header_FilteringExample, member_seq_FilteringExample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FilteringExample, type_name_FilteringExample.to_string(), type_ids_FilteringExample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "FilteringExample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.hpp b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..458f0657204 --- /dev/null +++ b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file FilteringExampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_FILTERINGEXAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_FILTERINGEXAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register FilteringExample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_FilteringExample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_FILTERINGEXAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.cxx b/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.cxx index 9267a718200..37df0bd9384 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.cxx +++ b/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.cxx @@ -219,9 +219,9 @@ bool FlowControlExamplePubSubType::getKey( return true; } -void FlowControlExamplePubSubType::register_type_object_representation() const +void FlowControlExamplePubSubType::register_type_object_representation() { - register_FlowControlExample_type_objects(); + register_FlowControlExample_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.h b/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.h index ce79bf04a31..3606697eae8 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.h +++ b/examples/cpp/dds/FlowControlExample/FlowControlExamplePubSubTypes.h @@ -89,7 +89,7 @@ class FlowControlExamplePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.cxx b/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.cxx index e7231e9a6a7..5625b56e76a 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_FlowControlExample_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_FlowControlExample_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FlowControlExample_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FlowControlExample) { + + ReturnCode_t return_code_FlowControlExample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FlowControlExample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FlowControlExample", type_ids_FlowControlExample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FlowControlExample) { - StructTypeFlag struct_flags_FlowControlExample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_FlowControlExample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_FlowControlExample; - TypeIdentifierPair type_ids_FlowControlExample; QualifiedTypeName type_name_FlowControlExample = "FlowControlExample"; eprosima::fastcdr::optional type_ann_builtin_FlowControlExample; eprosima::fastcdr::optional ann_custom_FlowControlExample; @@ -66,69 +59,33 @@ void register_FlowControlExample_type_identifier( header_FlowControlExample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FlowControlExample); CompleteStructMemberSeq member_seq_FlowControlExample; { - return_code_FlowControlExample = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_600000", type_ids_FlowControlExample); + "anonymous_array_char_600000", type_ids_message); - if (return_code_FlowControlExample != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { - return_code_FlowControlExample = + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_FlowControlExample); + "_char", type_ids_message); - if (return_code_FlowControlExample != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_600000 {nullptr}; - if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1()._d() || TK_NONE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_600000 = new TypeIdentifier(type_ids_FlowControlExample.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_char_600000_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_600000 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_600000_ec))}; + if (!element_identifier_anonymous_array_char_600000_ec) { - element_identifier_anonymous_array_char_600000 = new TypeIdentifier(type_ids_FlowControlExample.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_600000 = EK_COMPLETE; - if (TK_NONE == type_ids_FlowControlExample.type_identifier2()._d()) + if (TK_NONE == type_ids_message.type_identifier2()._d()) { equiv_kind_anonymous_array_char_600000 = EK_BOTH; } @@ -141,68 +98,21 @@ void register_FlowControlExample_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_600000, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_600000)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_600000")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_600000", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_600000 already registered in TypeObjectRegistry for a different type."); } } - return_code_FlowControlExample = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_600000", type_ids_FlowControlExample); - if (return_code_FlowControlExample != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_600000: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000000; - if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1()._d() || TK_NONE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_FlowControlExample.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_FlowControlExample.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -213,62 +123,26 @@ void register_FlowControlExample_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FlowControlExample, member_message); } { - return_code_FlowControlExample = + TypeIdentifierPair type_ids_wasFast; + ReturnCode_t return_code_wasFast {eprosima::fastdds::dds::RETCODE_OK}; + return_code_wasFast = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_FlowControlExample); + "_char", type_ids_wasFast); - if (return_code_FlowControlExample != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_wasFast) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "wasFast Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_wasFast = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_wasFast = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_wasFast; MemberId member_id_wasFast = 0x00000001; - if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1()._d() || TK_NONE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_wasFast = TypeObjectUtils::build_common_struct_member(member_id_wasFast, member_flags_wasFast, type_ids_FlowControlExample.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FlowControlExample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FlowControlExample.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_wasFast = TypeObjectUtils::build_common_struct_member(member_id_wasFast, member_flags_wasFast, type_ids_FlowControlExample.type_identifier2()); - } - else + bool common_wasFast_ec {false}; + CommonStructMember common_wasFast {TypeObjectUtils::build_common_struct_member(member_id_wasFast, member_flags_wasFast, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_wasFast, common_wasFast_ec))}; + if (!common_wasFast_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure wasFast member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure wasFast member TypeIdentifier inconsistent."); return; } MemberName name_wasFast = "wasFast"; @@ -280,21 +154,11 @@ void register_FlowControlExample_type_identifier( } CompleteStructType struct_type_FlowControlExample = TypeObjectUtils::build_complete_struct_type(struct_flags_FlowControlExample, header_FlowControlExample, member_seq_FlowControlExample); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FlowControlExample, type_name_FlowControlExample.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FlowControlExample, type_name_FlowControlExample.to_string(), type_ids_FlowControlExample)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FlowControlExample already registered in TypeObjectRegistry for a different type."); } - return_code_FlowControlExample = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FlowControlExample", type_ids_FlowControlExample); - if (return_code_FlowControlExample != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FlowControlExample: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.hpp b/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.hpp index 4f9e5b0b7d4..84da183f2d4 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.hpp +++ b/examples/cpp/dds/FlowControlExample/FlowControlExampleTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_FlowControlExample_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_FlowControlExample_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FlowControlExample_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.h b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.h index 52736f6dad8..4b09a679ee5 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.cxx index 4746f013148..200d00d67fe 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_20", type_ids_HelloWorld); + "anonymous_string_20", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = static_cast(20); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_20")) + "anonymous_string_20", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_20 already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_20", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_20: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.h b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.cxx index 40ccefd127a..d055db2dec7 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -215,69 +127,33 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_message); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_1048576", type_ids_HelloWorld); + "anonymous_array_char_1048576", type_ids_data); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { - return_code_HelloWorld = + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_HelloWorld); + "_char", type_ids_data); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_1048576 {nullptr}; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_1048576 = new TypeIdentifier(type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_1048576 = new TypeIdentifier(type_ids_HelloWorld.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_1048576_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_1048576 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_array_char_1048576_ec))}; + if (!element_identifier_anonymous_array_char_1048576_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_1048576 = EK_COMPLETE; - if (TK_NONE == type_ids_HelloWorld.type_identifier2()._d()) + if (TK_NONE == type_ids_data.type_identifier2()._d()) { equiv_kind_anonymous_array_char_1048576 = EK_BOTH; } @@ -290,68 +166,21 @@ void register_HelloWorld_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_1048576, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_1048576)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_1048576")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_1048576", type_ids_data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_1048576 already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_1048576", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_1048576: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -363,21 +192,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.h b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.cxx index fe783982b0f..58928b6f057 100644 --- a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/HistoryKind/samplePubSubTypes.cxx b/examples/cpp/dds/HistoryKind/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/HistoryKind/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/HistoryKind/samplePubSubTypes.h b/examples/cpp/dds/HistoryKind/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/HistoryKind/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.hpp b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/Keys/samplePubSubTypes.cxx b/examples/cpp/dds/Keys/samplePubSubTypes.cxx index cae143a08ca..321f250d975 100644 --- a/examples/cpp/dds/Keys/samplePubSubTypes.cxx +++ b/examples/cpp/dds/Keys/samplePubSubTypes.cxx @@ -219,9 +219,9 @@ bool samplePubSubType::getKey( return true; } -void samplePubSubType::register_type_object_representation() const +void samplePubSubType::register_type_object_representation() { - register_sample_type_objects(); + register_sample_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/Keys/samplePubSubTypes.h b/examples/cpp/dds/Keys/samplePubSubTypes.h index 9e59aa58042..1ec6375ba7f 100644 --- a/examples/cpp/dds/Keys/samplePubSubTypes.h +++ b/examples/cpp/dds/Keys/samplePubSubTypes.h @@ -89,7 +89,7 @@ class samplePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/Keys/sampleTypeObjectSupport.cxx b/examples/cpp/dds/Keys/sampleTypeObjectSupport.cxx index c41f08861af..65d39b03994 100644 --- a/examples/cpp/dds/Keys/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/Keys/sampleTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_sample_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_sample_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_sample_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_sample) { + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) { - StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_sample; - TypeIdentifierPair type_ids_sample; QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; @@ -66,62 +59,26 @@ void register_sample_type_identifier( header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); CompleteStructMemberSeq member_seq_sample; { - return_code_sample = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_sample); + "_byte", type_ids_index); - if (return_code_sample != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_sample.type_identifier1()._d() || TK_NONE == type_ids_sample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_sample.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_sample.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,62 +89,26 @@ void register_sample_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); } { - return_code_sample = + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_sample); + "_byte", type_ids_key_value); - if (return_code_sample != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_value; MemberId member_id_key_value = 0x00000001; - if (EK_COMPLETE == type_ids_sample.type_identifier1()._d() || TK_NONE == type_ids_sample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sample.type_identifier1()._d() && - EK_COMPLETE == type_ids_sample.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sample.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_value = TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, type_ids_sample.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sample.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sample.type_identifier2()._d() && - EK_COMPLETE == type_ids_sample.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sample.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sample.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sample.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_value = TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, type_ids_sample.type_identifier2()); - } - else + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); return; } MemberName name_key_value = "key_value"; @@ -212,21 +133,11 @@ void register_sample_type_identifier( } CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sample already registered in TypeObjectRegistry for a different type."); } - return_code_sample = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "sample", type_ids_sample); - if (return_code_sample != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "sample: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/Keys/sampleTypeObjectSupport.hpp b/examples/cpp/dds/Keys/sampleTypeObjectSupport.hpp index 928abc89970..013609fa263 100644 --- a/examples/cpp/dds/Keys/sampleTypeObjectSupport.hpp +++ b/examples/cpp/dds/Keys/sampleTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_sample_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_sample_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_sample_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/LateJoiners/samplePubSubTypes.cxx b/examples/cpp/dds/LateJoiners/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/LateJoiners/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/LateJoiners/samplePubSubTypes.h b/examples/cpp/dds/LateJoiners/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/LateJoiners/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.hpp b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.cxx b/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.cxx new file mode 100644 index 00000000000..30d909b77f5 --- /dev/null +++ b/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file LifespanPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "LifespanPubSubTypes.h" + +#include +#include + +#include "LifespanCdrAux.hpp" +#include "LifespanTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +LifespanPubSubType::LifespanPubSubType() +{ + setName("Lifespan"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Lifespan::getMaxCdrSerializedSize()); +#else + Lifespan_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Lifespan_max_key_cdr_typesize > 16 ? Lifespan_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +LifespanPubSubType::~LifespanPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool LifespanPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Lifespan* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool LifespanPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Lifespan* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function LifespanPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* LifespanPubSubType::createData() +{ + return reinterpret_cast(new Lifespan()); +} + +void LifespanPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool LifespanPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Lifespan* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Lifespan_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Lifespan_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void LifespanPubSubType::register_type_object_representation() +{ + register_Lifespan_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "LifespanCdrAux.ipp" diff --git a/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.h b/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.h new file mode 100644 index 00000000000..1314dbb2e9f --- /dev/null +++ b/examples/cpp/dds/LifespanQoSExample/LifespanPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file LifespanPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_LIFESPAN_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_LIFESPAN_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "Lifespan.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated Lifespan is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Lifespan defined by the user in the IDL file. + * @ingroup Lifespan + */ +class LifespanPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Lifespan type; + + eProsima_user_DllExport LifespanPubSubType(); + + eProsima_user_DllExport ~LifespanPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_LIFESPAN_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx new file mode 100644 index 00000000000..9306797b046 --- /dev/null +++ b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx @@ -0,0 +1,138 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file LifespanTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "LifespanTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Lifespan.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Lifespan_type_identifier( + TypeIdentifierPair& type_ids_Lifespan) +{ + + ReturnCode_t return_code_Lifespan {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Lifespan = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Lifespan", type_ids_Lifespan); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Lifespan) + { + StructTypeFlag struct_flags_Lifespan = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_Lifespan = "Lifespan"; + eprosima::fastcdr::optional type_ann_builtin_Lifespan; + eprosima::fastcdr::optional ann_custom_Lifespan; + CompleteTypeDetail detail_Lifespan = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Lifespan, ann_custom_Lifespan, type_name_Lifespan.to_string()); + CompleteStructHeader header_Lifespan; + header_Lifespan = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Lifespan); + CompleteStructMemberSeq member_seq_Lifespan; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_Lifespan.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Lifespan); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Lifespan, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_Lifespan.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Lifespan); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Lifespan, member_message); + } + CompleteStructType struct_type_Lifespan = TypeObjectUtils::build_complete_struct_type(struct_flags_Lifespan, header_Lifespan, member_seq_Lifespan); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Lifespan, type_name_Lifespan.to_string(), type_ids_Lifespan)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Lifespan already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.hpp b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.hpp new file mode 100644 index 00000000000..9ddc11df87d --- /dev/null +++ b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file LifespanTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_LIFESPAN_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_LIFESPAN_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Lifespan related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Lifespan_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_LIFESPAN_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.cxx b/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.cxx new file mode 100644 index 00000000000..70697eb1c1d --- /dev/null +++ b/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "TopicPubSubTypes.h" + +#include +#include + +#include "TopicCdrAux.hpp" +#include "TopicTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +TopicPubSubType::TopicPubSubType() +{ + setName("Topic"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(Topic::getMaxCdrSerializedSize()); +#else + Topic_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = Topic_max_key_cdr_typesize > 16 ? Topic_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +TopicPubSubType::~TopicPubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool TopicPubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool TopicPubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function TopicPubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* TopicPubSubType::createData() +{ + return reinterpret_cast(new Topic()); +} + +void TopicPubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool TopicPubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + Topic* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + Topic_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || Topic_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void TopicPubSubType::register_type_object_representation() +{ + register_Topic_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "TopicCdrAux.ipp" diff --git a/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.h b/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.h new file mode 100644 index 00000000000..8af82d4fcdf --- /dev/null +++ b/examples/cpp/dds/LivelinessQoS/TopicPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "Topic.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated Topic is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type Topic defined by the user in the IDL file. + * @ingroup Topic + */ +class TopicPubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef Topic type; + + eProsima_user_DllExport TopicPubSubType(); + + eProsima_user_DllExport ~TopicPubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_TOPIC_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx new file mode 100644 index 00000000000..ec70f284376 --- /dev/null +++ b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx @@ -0,0 +1,138 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "TopicTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Topic.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Topic_type_identifier( + TypeIdentifierPair& type_ids_Topic) +{ + + ReturnCode_t return_code_Topic {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Topic = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Topic", type_ids_Topic); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Topic) + { + StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_Topic = "Topic"; + eprosima::fastcdr::optional type_ann_builtin_Topic; + eprosima::fastcdr::optional ann_custom_Topic; + CompleteTypeDetail detail_Topic = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Topic, ann_custom_Topic, type_name_Topic.to_string()); + CompleteStructHeader header_Topic; + header_Topic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Topic); + CompleteStructMemberSeq member_seq_Topic; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_Topic); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_index); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000001; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_Topic.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_Topic); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_Topic, member_message); + } + CompleteStructType struct_type_Topic = TypeObjectUtils::build_complete_struct_type(struct_flags_Topic, header_Topic, member_seq_Topic); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Topic, type_name_Topic.to_string(), type_ids_Topic)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Topic already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.hpp b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.hpp new file mode 100644 index 00000000000..6b3e255eba0 --- /dev/null +++ b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file TopicTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register Topic related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Topic_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_TOPIC_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.cxx b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.cxx new file mode 100644 index 00000000000..21831e3b34e --- /dev/null +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file OwnershipStrengthPubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "OwnershipStrengthPubSubTypes.h" + +#include +#include + +#include "OwnershipStrengthCdrAux.hpp" +#include "OwnershipStrengthTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +ExampleMessagePubSubType::ExampleMessagePubSubType() +{ + setName("ExampleMessage"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(ExampleMessage::getMaxCdrSerializedSize()); +#else + ExampleMessage_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = false; + uint32_t keyLength = ExampleMessage_max_key_cdr_typesize > 16 ? ExampleMessage_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +ExampleMessagePubSubType::~ExampleMessagePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool ExampleMessagePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + ExampleMessage* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool ExampleMessagePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + ExampleMessage* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function ExampleMessagePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* ExampleMessagePubSubType::createData() +{ + return reinterpret_cast(new ExampleMessage()); +} + +void ExampleMessagePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool ExampleMessagePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + ExampleMessage* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + ExampleMessage_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || ExampleMessage_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void ExampleMessagePubSubType::register_type_object_representation() +{ + register_ExampleMessage_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "OwnershipStrengthCdrAux.ipp" diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.h b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.h new file mode 100644 index 00000000000..21f51bc127f --- /dev/null +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthPubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file OwnershipStrengthPubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "OwnershipStrength.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated OwnershipStrength is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type ExampleMessage defined by the user in the IDL file. + * @ingroup OwnershipStrength + */ +class ExampleMessagePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef ExampleMessage type; + + eProsima_user_DllExport ExampleMessagePubSubType(); + + eProsima_user_DllExport ~ExampleMessagePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx new file mode 100644 index 00000000000..9c4650ab567 --- /dev/null +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx @@ -0,0 +1,168 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file OwnershipStrengthTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "OwnershipStrengthTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "OwnershipStrength.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_ExampleMessage_type_identifier( + TypeIdentifierPair& type_ids_ExampleMessage) +{ + + ReturnCode_t return_code_ExampleMessage {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ExampleMessage = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ExampleMessage", type_ids_ExampleMessage); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ExampleMessage) + { + StructTypeFlag struct_flags_ExampleMessage = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_ExampleMessage = "ExampleMessage"; + eprosima::fastcdr::optional type_ann_builtin_ExampleMessage; + eprosima::fastcdr::optional ann_custom_ExampleMessage; + CompleteTypeDetail detail_ExampleMessage = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ExampleMessage, ann_custom_ExampleMessage, type_name_ExampleMessage.to_string()); + CompleteStructHeader header_ExampleMessage; + header_ExampleMessage = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ExampleMessage); + CompleteStructMemberSeq member_seq_ExampleMessage; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_ExampleMessage.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_ExampleMessage); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_ExampleMessage, member_index); + } + { + TypeIdentifierPair type_ids_ownershipStrength; + ReturnCode_t return_code_ownershipStrength {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ownershipStrength = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_ownershipStrength); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ownershipStrength) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "ownershipStrength Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_ownershipStrength = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_ownershipStrength = 0x00000001; + bool common_ownershipStrength_ec {false}; + CommonStructMember common_ownershipStrength {TypeObjectUtils::build_common_struct_member(member_id_ownershipStrength, member_flags_ownershipStrength, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ownershipStrength, common_ownershipStrength_ec))}; + if (!common_ownershipStrength_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ownershipStrength member TypeIdentifier inconsistent."); + return; + } + MemberName name_ownershipStrength = "ownershipStrength"; + eprosima::fastcdr::optional member_ann_builtin_ownershipStrength; + ann_custom_ExampleMessage.reset(); + CompleteMemberDetail detail_ownershipStrength = TypeObjectUtils::build_complete_member_detail(name_ownershipStrength, member_ann_builtin_ownershipStrength, ann_custom_ExampleMessage); + CompleteStructMember member_ownershipStrength = TypeObjectUtils::build_complete_struct_member(common_ownershipStrength, detail_ownershipStrength); + TypeObjectUtils::add_complete_struct_member(member_seq_ExampleMessage, member_ownershipStrength); + } + { + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_message); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_message)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_message = 0x00000002; + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_ExampleMessage.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_ExampleMessage); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_ExampleMessage, member_message); + } + CompleteStructType struct_type_ExampleMessage = TypeObjectUtils::build_complete_struct_type(struct_flags_ExampleMessage, header_ExampleMessage, member_seq_ExampleMessage); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ExampleMessage, type_name_ExampleMessage.to_string(), type_ids_ExampleMessage)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "ExampleMessage already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.hpp b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.hpp new file mode 100644 index 00000000000..df3ccd0dab7 --- /dev/null +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file OwnershipStrengthTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register ExampleMessage related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_ExampleMessage_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.cxx b/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.cxx index 8c8a2588d31..7d458c70499 100644 --- a/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.cxx +++ b/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.cxx @@ -219,9 +219,9 @@ bool RequestTypePubSubType::getKey( return true; } -void RequestTypePubSubType::register_type_object_representation() const +void RequestTypePubSubType::register_type_object_representation() { - register_Calculator_type_objects(); + register_RequestType_type_identifier(type_identifiers_); } ReplyTypePubSubType::ReplyTypePubSubType() @@ -412,9 +412,9 @@ bool ReplyTypePubSubType::getKey( return true; } -void ReplyTypePubSubType::register_type_object_representation() const +void ReplyTypePubSubType::register_type_object_representation() { - register_Calculator_type_objects(); + register_ReplyType_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.h b/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.h index d39610f7308..f8a5c87c045 100644 --- a/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.h +++ b/examples/cpp/dds/RequestReplyExample/CalculatorPubSubTypes.h @@ -89,7 +89,7 @@ class RequestTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -180,7 +180,7 @@ class ReplyTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.cxx b/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.cxx index 5c44185959e..574938928b7 100644 --- a/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.cxx +++ b/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.cxx @@ -38,28 +38,86 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_Calculator_type_objects() +void register_OperationType_type_identifier( + TypeIdentifierPair& type_ids_OperationType) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_RequestType_type_identifier(type_id); - - register_ReplyType_type_identifier(type_id); - - }); -} - -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method + ReturnCode_t return_code_OperationType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_OperationType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "OperationType", type_ids_OperationType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_OperationType) + { + EnumTypeFlag enum_flags_OperationType = 0; + BitBound bit_bound_OperationType = 32; + CommonEnumeratedHeader common_OperationType = TypeObjectUtils::build_common_enumerated_header(bit_bound_OperationType); + QualifiedTypeName type_name_OperationType = "OperationType"; + eprosima::fastcdr::optional type_ann_builtin_OperationType; + eprosima::fastcdr::optional ann_custom_OperationType; + CompleteTypeDetail detail_OperationType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_OperationType, ann_custom_OperationType, type_name_OperationType.to_string()); + CompleteEnumeratedHeader header_OperationType = TypeObjectUtils::build_complete_enumerated_header(common_OperationType, detail_OperationType); + CompleteEnumeratedLiteralSeq literal_seq_OperationType; + { + EnumeratedLiteralFlag flags_ADDITION = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ADDITION = TypeObjectUtils::build_common_enumerated_literal(0, flags_ADDITION); + eprosima::fastcdr::optional member_ann_builtin_ADDITION; + ann_custom_OperationType.reset(); + MemberName name_ADDITION = "ADDITION"; + CompleteMemberDetail detail_ADDITION = TypeObjectUtils::build_complete_member_detail(name_ADDITION, member_ann_builtin_ADDITION, ann_custom_OperationType); + CompleteEnumeratedLiteral literal_ADDITION = TypeObjectUtils::build_complete_enumerated_literal(common_ADDITION, detail_ADDITION); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_ADDITION); + } + { + EnumeratedLiteralFlag flags_SUBTRACTION = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_SUBTRACTION = TypeObjectUtils::build_common_enumerated_literal(1, flags_SUBTRACTION); + eprosima::fastcdr::optional member_ann_builtin_SUBTRACTION; + ann_custom_OperationType.reset(); + MemberName name_SUBTRACTION = "SUBTRACTION"; + CompleteMemberDetail detail_SUBTRACTION = TypeObjectUtils::build_complete_member_detail(name_SUBTRACTION, member_ann_builtin_SUBTRACTION, ann_custom_OperationType); + CompleteEnumeratedLiteral literal_SUBTRACTION = TypeObjectUtils::build_complete_enumerated_literal(common_SUBTRACTION, detail_SUBTRACTION); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_SUBTRACTION); + } + { + EnumeratedLiteralFlag flags_MULTIPLICATION = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MULTIPLICATION = TypeObjectUtils::build_common_enumerated_literal(2, flags_MULTIPLICATION); + eprosima::fastcdr::optional member_ann_builtin_MULTIPLICATION; + ann_custom_OperationType.reset(); + MemberName name_MULTIPLICATION = "MULTIPLICATION"; + CompleteMemberDetail detail_MULTIPLICATION = TypeObjectUtils::build_complete_member_detail(name_MULTIPLICATION, member_ann_builtin_MULTIPLICATION, ann_custom_OperationType); + CompleteEnumeratedLiteral literal_MULTIPLICATION = TypeObjectUtils::build_complete_enumerated_literal(common_MULTIPLICATION, detail_MULTIPLICATION); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_MULTIPLICATION); + } + { + EnumeratedLiteralFlag flags_DIVISION = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_DIVISION = TypeObjectUtils::build_common_enumerated_literal(3, flags_DIVISION); + eprosima::fastcdr::optional member_ann_builtin_DIVISION; + ann_custom_OperationType.reset(); + MemberName name_DIVISION = "DIVISION"; + CompleteMemberDetail detail_DIVISION = TypeObjectUtils::build_complete_member_detail(name_DIVISION, member_ann_builtin_DIVISION, ann_custom_OperationType); + CompleteEnumeratedLiteral literal_DIVISION = TypeObjectUtils::build_complete_enumerated_literal(common_DIVISION, detail_DIVISION); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_DIVISION); + } + CompleteEnumeratedType enumerated_type_OperationType = TypeObjectUtils::build_complete_enumerated_type(enum_flags_OperationType, header_OperationType, + literal_seq_OperationType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_OperationType, type_name_OperationType.to_string(), type_ids_OperationType)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "OperationType already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_RequestType_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_RequestType) { + + ReturnCode_t return_code_RequestType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_RequestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "RequestType", type_ids_RequestType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_RequestType) { - StructTypeFlag struct_flags_RequestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_RequestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_RequestType; - TypeIdentifierPair type_ids_RequestType; QualifiedTypeName type_name_RequestType = "RequestType"; eprosima::fastcdr::optional type_ann_builtin_RequestType; eprosima::fastcdr::optional ann_custom_RequestType; @@ -68,125 +126,24 @@ void register_RequestType_type_identifier( header_RequestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_RequestType); CompleteStructMemberSeq member_seq_RequestType; { - return_code_RequestType = + TypeIdentifierPair type_ids_operation; + ReturnCode_t return_code_operation {eprosima::fastdds::dds::RETCODE_OK}; + return_code_operation = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "OperationType", type_ids_RequestType); + "OperationType", type_ids_operation); - if (return_code_RequestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_operation) { - EnumTypeFlag enum_flags_OperationType = 0; - BitBound bit_bound_OperationType = 32; - CommonEnumeratedHeader common_OperationType = TypeObjectUtils::build_common_enumerated_header(bit_bound_OperationType); - QualifiedTypeName type_name_OperationType = "OperationType"; - eprosima::fastcdr::optional type_ann_builtin_OperationType; - eprosima::fastcdr::optional ann_custom_OperationType; - CompleteTypeDetail detail_OperationType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_OperationType, ann_custom_OperationType, type_name_OperationType.to_string()); - CompleteEnumeratedHeader header_OperationType = TypeObjectUtils::build_complete_enumerated_header(common_OperationType, detail_OperationType); - CompleteEnumeratedLiteralSeq literal_seq_OperationType; - { - EnumeratedLiteralFlag flags_ADDITION = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ADDITION = TypeObjectUtils::build_common_enumerated_literal(0, flags_ADDITION); - eprosima::fastcdr::optional member_ann_builtin_ADDITION; - ann_custom_OperationType.reset(); - MemberName name_ADDITION = "ADDITION"; - CompleteMemberDetail detail_ADDITION = TypeObjectUtils::build_complete_member_detail(name_ADDITION, member_ann_builtin_ADDITION, ann_custom_OperationType); - CompleteEnumeratedLiteral literal_ADDITION = TypeObjectUtils::build_complete_enumerated_literal(common_ADDITION, detail_ADDITION); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_ADDITION); - } - { - EnumeratedLiteralFlag flags_SUBTRACTION = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_SUBTRACTION = TypeObjectUtils::build_common_enumerated_literal(1, flags_SUBTRACTION); - eprosima::fastcdr::optional member_ann_builtin_SUBTRACTION; - ann_custom_OperationType.reset(); - MemberName name_SUBTRACTION = "SUBTRACTION"; - CompleteMemberDetail detail_SUBTRACTION = TypeObjectUtils::build_complete_member_detail(name_SUBTRACTION, member_ann_builtin_SUBTRACTION, ann_custom_OperationType); - CompleteEnumeratedLiteral literal_SUBTRACTION = TypeObjectUtils::build_complete_enumerated_literal(common_SUBTRACTION, detail_SUBTRACTION); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_SUBTRACTION); - } - { - EnumeratedLiteralFlag flags_MULTIPLICATION = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MULTIPLICATION = TypeObjectUtils::build_common_enumerated_literal(2, flags_MULTIPLICATION); - eprosima::fastcdr::optional member_ann_builtin_MULTIPLICATION; - ann_custom_OperationType.reset(); - MemberName name_MULTIPLICATION = "MULTIPLICATION"; - CompleteMemberDetail detail_MULTIPLICATION = TypeObjectUtils::build_complete_member_detail(name_MULTIPLICATION, member_ann_builtin_MULTIPLICATION, ann_custom_OperationType); - CompleteEnumeratedLiteral literal_MULTIPLICATION = TypeObjectUtils::build_complete_enumerated_literal(common_MULTIPLICATION, detail_MULTIPLICATION); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_MULTIPLICATION); - } - { - EnumeratedLiteralFlag flags_DIVISION = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DIVISION = TypeObjectUtils::build_common_enumerated_literal(3, flags_DIVISION); - eprosima::fastcdr::optional member_ann_builtin_DIVISION; - ann_custom_OperationType.reset(); - MemberName name_DIVISION = "DIVISION"; - CompleteMemberDetail detail_DIVISION = TypeObjectUtils::build_complete_member_detail(name_DIVISION, member_ann_builtin_DIVISION, ann_custom_OperationType); - CompleteEnumeratedLiteral literal_DIVISION = TypeObjectUtils::build_complete_enumerated_literal(common_DIVISION, detail_DIVISION); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_OperationType, literal_DIVISION); - } - CompleteEnumeratedType enumerated_type_OperationType = TypeObjectUtils::build_complete_enumerated_type(enum_flags_OperationType, header_OperationType, - literal_seq_OperationType); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_OperationType, type_name_OperationType.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "OperationType already registered in TypeObjectRegistry for a different type."); - } - return_code_RequestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "OperationType", type_ids_RequestType); - if (return_code_RequestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "OperationType: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_OperationType_type_identifier(type_ids_operation); } - StructMemberFlag member_flags_operation = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_operation = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_operation; MemberId member_id_operation = 0x00000000; - if (EK_COMPLETE == type_ids_RequestType.type_identifier1()._d() || TK_NONE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_operation = TypeObjectUtils::build_common_struct_member(member_id_operation, member_flags_operation, type_ids_RequestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_operation = TypeObjectUtils::build_common_struct_member(member_id_operation, member_flags_operation, type_ids_RequestType.type_identifier2()); - } - else + bool common_operation_ec {false}; + CommonStructMember common_operation {TypeObjectUtils::build_common_struct_member(member_id_operation, member_flags_operation, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_operation, common_operation_ec))}; + if (!common_operation_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure operation member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure operation member TypeIdentifier inconsistent."); return; } MemberName name_operation = "operation"; @@ -197,62 +154,26 @@ void register_RequestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_RequestType, member_operation); } { - return_code_RequestType = + TypeIdentifierPair type_ids_x; + ReturnCode_t return_code_x {eprosima::fastdds::dds::RETCODE_OK}; + return_code_x = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_RequestType); + "_int32_t", type_ids_x); - if (return_code_RequestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_x) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "x Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_x = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_x = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_x; MemberId member_id_x = 0x00000001; - if (EK_COMPLETE == type_ids_RequestType.type_identifier1()._d() || TK_NONE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_struct_member(member_id_x, member_flags_x, type_ids_RequestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_struct_member(member_id_x, member_flags_x, type_ids_RequestType.type_identifier2()); - } - else + bool common_x_ec {false}; + CommonStructMember common_x {TypeObjectUtils::build_common_struct_member(member_id_x, member_flags_x, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_x, common_x_ec))}; + if (!common_x_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure x member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure x member TypeIdentifier inconsistent."); return; } MemberName name_x = "x"; @@ -263,62 +184,26 @@ void register_RequestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_RequestType, member_x); } { - return_code_RequestType = + TypeIdentifierPair type_ids_y; + ReturnCode_t return_code_y {eprosima::fastdds::dds::RETCODE_OK}; + return_code_y = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_RequestType); + "_int32_t", type_ids_y); - if (return_code_RequestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_y) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "y Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_y = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_y = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_y; MemberId member_id_y = 0x00000002; - if (EK_COMPLETE == type_ids_RequestType.type_identifier1()._d() || TK_NONE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_y = TypeObjectUtils::build_common_struct_member(member_id_y, member_flags_y, type_ids_RequestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_RequestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RequestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_RequestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RequestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RequestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_y_ec {false}; + CommonStructMember common_y {TypeObjectUtils::build_common_struct_member(member_id_y, member_flags_y, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_y, common_y_ec))}; + if (!common_y_ec) { - common_y = TypeObjectUtils::build_common_struct_member(member_id_y, member_flags_y, type_ids_RequestType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure y member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure y member TypeIdentifier inconsistent."); return; } MemberName name_y = "y"; @@ -330,32 +215,26 @@ void register_RequestType_type_identifier( } CompleteStructType struct_type_RequestType = TypeObjectUtils::build_complete_struct_type(struct_flags_RequestType, header_RequestType, member_seq_RequestType); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_RequestType, type_name_RequestType.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_RequestType, type_name_RequestType.to_string(), type_ids_RequestType)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "RequestType already registered in TypeObjectRegistry for a different type."); } - return_code_RequestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "RequestType", type_ids_RequestType); - if (return_code_RequestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "RequestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ReplyType_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ReplyType) { + + ReturnCode_t return_code_ReplyType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ReplyType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ReplyType", type_ids_ReplyType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ReplyType) { - StructTypeFlag struct_flags_ReplyType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ReplyType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ReplyType; - TypeIdentifierPair type_ids_ReplyType; QualifiedTypeName type_name_ReplyType = "ReplyType"; eprosima::fastcdr::optional type_ann_builtin_ReplyType; eprosima::fastcdr::optional ann_custom_ReplyType; @@ -364,62 +243,26 @@ void register_ReplyType_type_identifier( header_ReplyType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ReplyType); CompleteStructMemberSeq member_seq_ReplyType; { - return_code_ReplyType = + TypeIdentifierPair type_ids_z; + ReturnCode_t return_code_z {eprosima::fastdds::dds::RETCODE_OK}; + return_code_z = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ReplyType); + "_int64_t", type_ids_z); - if (return_code_ReplyType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_z) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "z Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_z = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_z = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_z; MemberId member_id_z = 0x00000000; - if (EK_COMPLETE == type_ids_ReplyType.type_identifier1()._d() || TK_NONE == type_ids_ReplyType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ReplyType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ReplyType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ReplyType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ReplyType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ReplyType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ReplyType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ReplyType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ReplyType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ReplyType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ReplyType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_z = TypeObjectUtils::build_common_struct_member(member_id_z, member_flags_z, type_ids_ReplyType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ReplyType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ReplyType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ReplyType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ReplyType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ReplyType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ReplyType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ReplyType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ReplyType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ReplyType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ReplyType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ReplyType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ReplyType.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_z_ec {false}; + CommonStructMember common_z {TypeObjectUtils::build_common_struct_member(member_id_z, member_flags_z, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_z, common_z_ec))}; + if (!common_z_ec) { - common_z = TypeObjectUtils::build_common_struct_member(member_id_z, member_flags_z, type_ids_ReplyType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure z member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure z member TypeIdentifier inconsistent."); return; } MemberName name_z = "z"; @@ -431,21 +274,11 @@ void register_ReplyType_type_identifier( } CompleteStructType struct_type_ReplyType = TypeObjectUtils::build_complete_struct_type(struct_flags_ReplyType, header_ReplyType, member_seq_ReplyType); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ReplyType, type_name_ReplyType.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ReplyType, type_name_ReplyType.to_string(), type_ids_ReplyType)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ReplyType already registered in TypeObjectRegistry for a different type."); } - return_code_ReplyType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ReplyType", type_ids_ReplyType); - if (return_code_ReplyType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ReplyType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.hpp b/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.hpp index e8f782ab6bb..602d96dc580 100644 --- a/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.hpp +++ b/examples/cpp/dds/RequestReplyExample/CalculatorTypeObjectSupport.hpp @@ -35,13 +35,20 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_Calculator_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +/** + * @brief Register OperationType related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_OperationType_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register RequestType related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -53,7 +60,7 @@ eProsima_user_DllExport void register_Calculator_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_RequestType_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ReplyType related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +72,7 @@ eProsima_user_DllExport void register_RequestType_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ReplyType_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.cxx b/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.h b/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Controller/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.hpp b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.cxx b/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.h b/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Events/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.hpp b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.cxx b/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.cxx new file mode 100644 index 00000000000..321f250d975 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.cxx @@ -0,0 +1,229 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.cpp + * This header file contains the implementation of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + +#include "samplePubSubTypes.h" + +#include +#include + +#include "sampleCdrAux.hpp" +#include "sampleTypeObjectSupport.hpp" + +using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; +using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; +using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + +samplePubSubType::samplePubSubType() +{ + setName("sample"); + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(sample::getMaxCdrSerializedSize()); +#else + sample_max_cdr_typesize; +#endif + type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ + m_typeSize = type_size + 4; /*encapsulation*/ + m_isGetKeyDefined = true; + uint32_t keyLength = sample_max_key_cdr_typesize > 16 ? sample_max_key_cdr_typesize : 16; + m_keyBuffer = reinterpret_cast(malloc(keyLength)); + memset(m_keyBuffer, 0, keyLength); +} + +samplePubSubType::~samplePubSubType() +{ + if (m_keyBuffer != nullptr) + { + free(m_keyBuffer); + } +} + +bool samplePubSubType::serialize( + void* data, + SerializedPayload_t* payload, + DataRepresentationId_t data_representation) +{ + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->max_size); + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN, + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); + payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; +#if FASTCDR_VERSION_MAJOR > 1 + ser.set_encoding_flag( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : + eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 + + try + { + // Serialize encapsulation + ser.serialize_encapsulation(); + // Serialize the object. + ser << *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else + payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 + return true; +} + +bool samplePubSubType::deserialize( + SerializedPayload_t* payload, + void* data) +{ + try + { + // Convert DATA to pointer of your type + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); + + // Object that deserializes the data. + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN +#if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR +#endif // FASTCDR_VERSION_MAJOR == 1 + ); + + // Deserialize encapsulation. + deser.read_encapsulation(); + payload->encapsulation = deser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + + // Deserialize the object. + deser >> *p_type; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return false; + } + + return true; +} + +std::function samplePubSubType::getSerializedSizeProvider( + void* data, + DataRepresentationId_t data_representation) +{ + return [data, data_representation]() -> uint32_t + { +#if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; +#else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } +#endif // FASTCDR_VERSION_MAJOR == 1 + }; +} + +void* samplePubSubType::createData() +{ + return reinterpret_cast(new sample()); +} + +void samplePubSubType::deleteData( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool samplePubSubType::getKey( + void* data, + InstanceHandle_t* handle, + bool force_md5) +{ + if (!m_isGetKeyDefined) + { + return false; + } + + sample* p_type = static_cast(data); + + // Object that manages the raw buffer. + eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(m_keyBuffer), + sample_max_key_cdr_typesize); + + // Object that serializes the data. + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); +#if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); +#else + eprosima::fastcdr::serialize_key(ser, *p_type); +#endif // FASTCDR_VERSION_MAJOR == 1 + if (force_md5 || sample_max_key_cdr_typesize > 16) + { + m_md5.init(); +#if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); +#else + m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); +#endif // FASTCDR_VERSION_MAJOR == 1 + m_md5.finalize(); + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_md5.digest[i]; + } + } + else + { + for (uint8_t i = 0; i < 16; ++i) + { + handle->value[i] = m_keyBuffer[i]; + } + } + return true; +} + +void samplePubSubType::register_type_object_representation() +{ + register_sample_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "sampleCdrAux.ipp" diff --git a/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.h b/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.h new file mode 100644 index 00000000000..1ec6375ba7f --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Multimedia/samplePubSubTypes.h @@ -0,0 +1,133 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file samplePubSubTypes.h + * This header file contains the declaration of the serialization functions. + * + * This file was generated by the tool fastddsgen. + */ + + +#ifndef _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ +#define _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +#if !defined(GEN_API_VER) || (GEN_API_VER != 2) +#error \ + Generated sample is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. +#endif // GEN_API_VER + + +/*! + * @brief This class represents the TopicDataType of the type sample defined by the user in the IDL file. + * @ingroup sample + */ +class samplePubSubType : public eprosima::fastdds::dds::TopicDataType +{ +public: + + typedef sample type; + + eProsima_user_DllExport samplePubSubType(); + + eProsima_user_DllExport ~samplePubSubType() override; + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload) override + { + return serialize(data, payload, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport bool serialize( + void* data, + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool deserialize( + eprosima::fastrtps::rtps::SerializedPayload_t* payload, + void* data) override; + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data) override + { + return getSerializedSizeProvider(data, eprosima::fastdds::dds::DEFAULT_DATA_REPRESENTATION); + } + + eProsima_user_DllExport std::function getSerializedSizeProvider( + void* data, + eprosima::fastdds::dds::DataRepresentationId_t data_representation) override; + + eProsima_user_DllExport bool getKey( + void* data, + eprosima::fastrtps::rtps::InstanceHandle_t* ihandle, + bool force_md5 = false) override; + + eProsima_user_DllExport void* createData() override; + + eProsima_user_DllExport void deleteData( + void* data) override; + + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_SAMPLE_PUBSUBTYPES_H_ + diff --git a/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx new file mode 100644 index 00000000000..e9dcd1a977b --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx @@ -0,0 +1,143 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "sampleTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sample.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_sample_type_identifier( + TypeIdentifierPair& type_ids_sample) +{ + + ReturnCode_t return_code_sample {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sample", type_ids_sample); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample) + { + StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + QualifiedTypeName type_name_sample = "sample"; + eprosima::fastcdr::optional type_ann_builtin_sample; + eprosima::fastcdr::optional ann_custom_sample; + CompleteTypeDetail detail_sample = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_sample, ann_custom_sample, type_name_sample.to_string()); + CompleteStructHeader header_sample; + header_sample = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sample); + CompleteStructMemberSeq member_seq_sample; + { + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_index); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + MemberId member_id_index = 0x00000000; + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_sample.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_sample); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_index); + } + { + TypeIdentifierPair type_ids_key_value; + ReturnCode_t return_code_key_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_key_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_value) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "key_value Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_key_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + MemberId member_id_key_value = 0x00000001; + bool common_key_value_ec {false}; + CommonStructMember common_key_value {TypeObjectUtils::build_common_struct_member(member_id_key_value, member_flags_key_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_value, common_key_value_ec))}; + if (!common_key_value_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_value member TypeIdentifier inconsistent."); + return; + } + MemberName name_key_value = "key_value"; + eprosima::fastcdr::optional member_ann_builtin_key_value; + ann_custom_sample.reset(); + AppliedAnnotationSeq tmp_ann_custom_key_value; + eprosima::fastcdr::optional unit_key_value; + eprosima::fastcdr::optional min_key_value; + eprosima::fastcdr::optional max_key_value; + eprosima::fastcdr::optional hash_id_key_value; + if (unit_key_value.has_value() || min_key_value.has_value() || max_key_value.has_value() || hash_id_key_value.has_value()) + { + member_ann_builtin_key_value = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_value, min_key_value, max_key_value, hash_id_key_value); + } + if (!tmp_ann_custom_key_value.empty()) + { + ann_custom_sample = tmp_ann_custom_key_value; + } + CompleteMemberDetail detail_key_value = TypeObjectUtils::build_complete_member_detail(name_key_value, member_ann_builtin_key_value, ann_custom_sample); + CompleteStructMember member_key_value = TypeObjectUtils::build_complete_struct_member(common_key_value, detail_key_value); + TypeObjectUtils::add_complete_struct_member(member_seq_sample, member_key_value); + } + CompleteStructType struct_type_sample = TypeObjectUtils::build_complete_struct_type(struct_flags_sample, header_sample, member_seq_sample); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sample, type_name_sample.to_string(), type_ids_sample)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "sample already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.hpp b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.hpp new file mode 100644 index 00000000000..013609fa263 --- /dev/null +++ b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file sampleTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ + +#include + + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register sample related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_sample_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_SAMPLE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.h b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.cxx index fe783982b0f..58928b6f057 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.cxx b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.h b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.h +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.cxx index fe783982b0f..58928b6f057 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { - StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -66,62 +59,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.cxx b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.cxx index 5ce26c2a2ed..9465143dada 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool LoanableHelloWorldPubSubType::getKey( return true; } -void LoanableHelloWorldPubSubType::register_type_object_representation() const +void LoanableHelloWorldPubSubType::register_type_object_representation() { - register_LoanableHelloWorld_type_objects(); + register_LoanableHelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.h b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.h index 33525ee7726..67ffb09d3bc 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.h +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldPubSubTypes.h @@ -122,7 +122,7 @@ class LoanableHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.cxx index 5e60cdfdb02..968860a0b50 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_LoanableHelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_LoanableHelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LoanableHelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LoanableHelloWorld) { + + ReturnCode_t return_code_LoanableHelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LoanableHelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LoanableHelloWorld", type_ids_LoanableHelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LoanableHelloWorld) { StructTypeFlag struct_flags_LoanableHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_LoanableHelloWorld; - TypeIdentifierPair type_ids_LoanableHelloWorld; QualifiedTypeName type_name_LoanableHelloWorld = "LoanableHelloWorld"; eprosima::fastcdr::optional type_ann_builtin_LoanableHelloWorld; eprosima::fastcdr::optional ann_custom_LoanableHelloWorld; @@ -73,62 +66,26 @@ void register_LoanableHelloWorld_type_identifier( header_LoanableHelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LoanableHelloWorld); CompleteStructMemberSeq member_seq_LoanableHelloWorld; { - return_code_LoanableHelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LoanableHelloWorld); + "_uint32_t", type_ids_index); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_LoanableHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,69 +96,33 @@ void register_LoanableHelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_LoanableHelloWorld, member_index); } { - return_code_LoanableHelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_256", type_ids_LoanableHelloWorld); + "anonymous_array_char_256", type_ids_message); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { - return_code_LoanableHelloWorld = + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_LoanableHelloWorld); + "_char", type_ids_message); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_256 {nullptr}; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_256 = new TypeIdentifier(type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_256 = new TypeIdentifier(type_ids_LoanableHelloWorld.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_256_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_256 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_256_ec))}; + if (!element_identifier_anonymous_array_char_256_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_256 = EK_COMPLETE; - if (TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d()) + if (TK_NONE == type_ids_message.type_identifier2()._d()) { equiv_kind_anonymous_array_char_256 = EK_BOTH; } @@ -214,68 +135,21 @@ void register_LoanableHelloWorld_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_256, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_256)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_256")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_256", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_256 already registered in TypeObjectRegistry for a different type."); } } - return_code_LoanableHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_256", type_ids_LoanableHelloWorld); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_256: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_LoanableHelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -287,21 +161,11 @@ void register_LoanableHelloWorld_type_identifier( } CompleteStructType struct_type_LoanableHelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_LoanableHelloWorld, header_LoanableHelloWorld, member_seq_LoanableHelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LoanableHelloWorld, type_name_LoanableHelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LoanableHelloWorld, type_name_LoanableHelloWorld.to_string(), type_ids_LoanableHelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LoanableHelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_LoanableHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LoanableHelloWorld", type_ids_LoanableHelloWorld); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LoanableHelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.hpp index 5bbfd579bfc..7cb9711a279 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_LoanableHelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_LoanableHelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LoanableHelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.cxx b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.cxx index 5ce26c2a2ed..9465143dada 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.cxx +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool LoanableHelloWorldPubSubType::getKey( return true; } -void LoanableHelloWorldPubSubType::register_type_object_representation() const +void LoanableHelloWorldPubSubType::register_type_object_representation() { - register_LoanableHelloWorld_type_objects(); + register_LoanableHelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.h b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.h index 33525ee7726..67ffb09d3bc 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.h +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldPubSubTypes.h @@ -122,7 +122,7 @@ class LoanableHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.cxx index 5e60cdfdb02..968860a0b50 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_LoanableHelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_LoanableHelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LoanableHelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LoanableHelloWorld) { + + ReturnCode_t return_code_LoanableHelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LoanableHelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LoanableHelloWorld", type_ids_LoanableHelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LoanableHelloWorld) { StructTypeFlag struct_flags_LoanableHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_LoanableHelloWorld; - TypeIdentifierPair type_ids_LoanableHelloWorld; QualifiedTypeName type_name_LoanableHelloWorld = "LoanableHelloWorld"; eprosima::fastcdr::optional type_ann_builtin_LoanableHelloWorld; eprosima::fastcdr::optional ann_custom_LoanableHelloWorld; @@ -73,62 +66,26 @@ void register_LoanableHelloWorld_type_identifier( header_LoanableHelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LoanableHelloWorld); CompleteStructMemberSeq member_seq_LoanableHelloWorld; { - return_code_LoanableHelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LoanableHelloWorld); + "_uint32_t", type_ids_index); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_LoanableHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,69 +96,33 @@ void register_LoanableHelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_LoanableHelloWorld, member_index); } { - return_code_LoanableHelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_256", type_ids_LoanableHelloWorld); + "anonymous_array_char_256", type_ids_message); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { - return_code_LoanableHelloWorld = + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_LoanableHelloWorld); + "_char", type_ids_message); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_256 {nullptr}; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_256 = new TypeIdentifier(type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_256 = new TypeIdentifier(type_ids_LoanableHelloWorld.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_256_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_256 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, element_identifier_anonymous_array_char_256_ec))}; + if (!element_identifier_anonymous_array_char_256_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_256 = EK_COMPLETE; - if (TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d()) + if (TK_NONE == type_ids_message.type_identifier2()._d()) { equiv_kind_anonymous_array_char_256 = EK_BOTH; } @@ -214,68 +135,21 @@ void register_LoanableHelloWorld_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_256, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_256)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_256")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_256", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_256 already registered in TypeObjectRegistry for a different type."); } } - return_code_LoanableHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_256", type_ids_LoanableHelloWorld); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_256: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_LoanableHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LoanableHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LoanableHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_LoanableHelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -287,21 +161,11 @@ void register_LoanableHelloWorld_type_identifier( } CompleteStructType struct_type_LoanableHelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_LoanableHelloWorld, header_LoanableHelloWorld, member_seq_LoanableHelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LoanableHelloWorld, type_name_LoanableHelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LoanableHelloWorld, type_name_LoanableHelloWorld.to_string(), type_ids_LoanableHelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LoanableHelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_LoanableHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LoanableHelloWorld", type_ids_LoanableHelloWorld); - if (return_code_LoanableHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LoanableHelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.hpp b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.hpp index 5bbfd579bfc..7cb9711a279 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_LoanableHelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_LoanableHelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LoanableHelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/examples/cpp/hello_world/HelloWorldPubSubTypes.cxx b/examples/cpp/hello_world/HelloWorldPubSubTypes.cxx index db018e69782..aa161b2e163 100644 --- a/examples/cpp/hello_world/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/hello_world/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/examples/cpp/hello_world/HelloWorldPubSubTypes.h b/examples/cpp/hello_world/HelloWorldPubSubTypes.h index a9b4ac119e0..7c83d2b300b 100644 --- a/examples/cpp/hello_world/HelloWorldPubSubTypes.h +++ b/examples/cpp/hello_world/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/examples/cpp/hello_world/HelloWorldTypeObjectSupport.cxx b/examples/cpp/hello_world/HelloWorldTypeObjectSupport.cxx index fedf539c3fd..aaf391eeed3 100644 --- a/examples/cpp/hello_world/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/hello_world/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -73,62 +66,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_HelloWorld); + "_uint32_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,79 +96,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -223,21 +135,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/examples/cpp/hello_world/HelloWorldTypeObjectSupport.hpp b/examples/cpp/hello_world/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/examples/cpp/hello_world/HelloWorldTypeObjectSupport.hpp +++ b/examples/cpp/hello_world/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/include/fastdds/dds/core/policy/QosPolicies.hpp b/include/fastdds/dds/core/policy/QosPolicies.hpp index db8ef1cb8e7..f49f2fc3a08 100644 --- a/include/fastdds/dds/core/policy/QosPolicies.hpp +++ b/include/fastdds/dds/core/policy/QosPolicies.hpp @@ -2640,7 +2640,7 @@ class TypeInformationParameter : public Parameter_t, public QosPolicy private: - //!Boolean that states if the TypeInformationParameter has been asigned manually or not. + //!Boolean that states if the TypeInformationParameter has been assigned manually or not. bool assigned_; }; diff --git a/include/fastdds/dds/topic/TopicDataType.hpp b/include/fastdds/dds/topic/TopicDataType.hpp index 3262574fd78..604f1f9b498 100644 --- a/include/fastdds/dds/topic/TopicDataType.hpp +++ b/include/fastdds/dds/topic/TopicDataType.hpp @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -203,99 +204,13 @@ class TopicDataType } /** - * Get the type identifier + * Get the type identifiers * - * @return TypeIdV1 + * @return @ref xtypes::TypeIdentifierPair */ - FASTDDS_EXPORTED_API inline const std::shared_ptr type_identifier() const + FASTDDS_EXPORTED_API inline const xtypes::TypeIdentifierPair& type_identifiers() const { - return type_identifier_; - } - - /** - * Set type identifier - * - * @param id new value for TypeIdV1 - */ - FASTDDS_EXPORTED_API inline void type_identifier( - const TypeIdV1& id) - { - type_identifier_ = std::make_shared(id); - } - - /** - * Set type identifier - * - * @param id shared pointer to TypeIdV1 - */ - FASTDDS_EXPORTED_API inline void type_identifier( - const std::shared_ptr id) - { - type_identifier_ = std::move(id); - } - - /** - * Get the type object - * - * @return TypeObjectV1 - */ - FASTDDS_EXPORTED_API inline const std::shared_ptr type_object() const - { - return type_object_; - } - - /** - * Set type object - * - * @param object new value for TypeObjectV1 - */ - FASTDDS_EXPORTED_API inline void type_object( - const TypeObjectV1& object) - { - type_object_ = std::make_shared(object); - } - - /** - * Set type object - * - * @param object shared pointer to TypeObjectV1 - */ - FASTDDS_EXPORTED_API inline void type_object( - std::shared_ptr object) - { - type_object_ = std::move(object); - } - - /** - * Get the type information - * - * @return TypeInformationParameter - */ - FASTDDS_EXPORTED_API inline const std::shared_ptr type_information() const - { - return type_information_; - } - - /** - * Set type information - * - * @param info new value for TypeInformationParameter - */ - FASTDDS_EXPORTED_API inline void type_information( - const xtypes::TypeInformationParameter& info) - { - type_information_ = std::make_shared(info); - } - - /** - * Set type information - * - * @param info shared pointer to TypeInformationParameter - */ - FASTDDS_EXPORTED_API inline void type_information( - std::shared_ptr info) - { - type_information_ = std::move(info); + return type_identifiers_; } /** @@ -340,7 +255,7 @@ class TopicDataType /** * @brief Register TypeObject type representation */ - FASTDDS_EXPORTED_API virtual inline void register_type_object_representation() const + FASTDDS_EXPORTED_API virtual inline void register_type_object_representation() { } @@ -353,12 +268,7 @@ class TopicDataType protected: - //!Type Identifier XTYPES 1.1 - std::shared_ptr type_identifier_; - //!Type Object XTYPES 1.1 - std::shared_ptr type_object_; - //!XTYPES 1.2 - std::shared_ptr type_information_; + xtypes::TypeIdentifierPair type_identifiers_; private: diff --git a/include/fastdds/dds/topic/TypeSupport.hpp b/include/fastdds/dds/topic/TypeSupport.hpp index 97ad1b4cda4..8a614d82ee8 100644 --- a/include/fastdds/dds/topic/TypeSupport.hpp +++ b/include/fastdds/dds/topic/TypeSupport.hpp @@ -239,9 +239,7 @@ class TypeSupport : public std::shared_ptr return get()->m_typeSize == type_support->m_typeSize && get()->m_isGetKeyDefined == type_support->m_isGetKeyDefined && get()->m_topicDataTypeName == type_support->m_topicDataTypeName - && get()->type_identifier() == type_support->type_identifier() - && get()->type_information() == type_support->type_information() - && get()->type_object() == type_support->type_object(); + && get()->type_identifiers_ == type_support->type_identifiers_; } /** diff --git a/include/fastdds/dds/xtypes/common.hpp b/include/fastdds/dds/xtypes/common.hpp index 412e566c688..cdce000d9b4 100644 --- a/include/fastdds/dds/xtypes/common.hpp +++ b/include/fastdds/dds/xtypes/common.hpp @@ -29,17 +29,15 @@ namespace xtypes { enum class ExtensibilityKind : uint32_t { - NOT_APPLIED, FINAL, APPENDABLE, MUTABLE }; -enum class TryConstructKind : uint32_t +enum class TryConstructFailAction : uint32_t { - NOT_APPLIED, - USE_DEFAULT, DISCARD, + USE_DEFAULT, TRIM }; diff --git a/include/fastdds/dds/xtypes/dynamic_types/DynamicPubSubType.hpp b/include/fastdds/dds/xtypes/dynamic_types/DynamicPubSubType.hpp index abbe4a68d57..d2dfb8a3ffd 100644 --- a/include/fastdds/dds/xtypes/dynamic_types/DynamicPubSubType.hpp +++ b/include/fastdds/dds/xtypes/dynamic_types/DynamicPubSubType.hpp @@ -141,7 +141,7 @@ class DynamicPubSubType : public virtual eprosima::fastdds::dds::TopicDataType traits::ref_type type); //Register TypeObject representation in Fast DDS TypeObjectRegistry - FASTDDS_EXPORTED_API void register_type_object_representation() const override; + FASTDDS_EXPORTED_API void register_type_object_representation() override; //}}} diff --git a/include/fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp b/include/fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp index 6c7d0b5e5da..fc815bb73d6 100644 --- a/include/fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp +++ b/include/fastdds/dds/xtypes/type_representation/ITypeObjectRegistry.hpp @@ -54,7 +54,8 @@ class ITypeObjectRegistry * * @param[in] type_name Name of the type being registered. * @param[in] complete_type_object CompleteTypeObject related to the given type name. - * @param[out] type_id TypeIdentifier corresponding to the CompleteTypeObject just registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteTypeObject just registered and the + * generated MinimalTypeObject. * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. * RETCODE_BAD_PARAMETER if there is already another different TypeObject registered with the * given type_name. @@ -64,18 +65,42 @@ class ITypeObjectRegistry virtual FASTDDS_EXPORTED_API ReturnCode_t register_type_object( const std::string& type_name, const CompleteTypeObject& complete_type_object, - TypeIdentifier& type_id) = 0; + TypeIdentifierPair& type_ids) = 0; + + /** + * @brief Register a remote TypeObject. + * This auxiliary method might register only the minimal TypeObject and TypeIdentifier or register both + * TypeObjects constructing the minimal from the complete TypeObject information. + * TypeObject consistency is not checked in this method as the order of the dependencies received by the + * TypeLookupService is not guaranteed. + * The consistency is checked by the TypeLookupService after all dependencies are registered. + * + * @pre @ref TypeIdentifierPair::type_identifier1 discriminator must match TypeObject discriminator or be TK_NONE. + * @ref TypeIdentifierPair::type_identifier1 consistency is only checked in Debug build mode. + * + * @param[in] type_object Related TypeObject being registered. + * @param[inout] type_ids Returns the registered @ref TypeIdentifier. + * @ref TypeIdentifierPair::type_identifier1 might be TK_NONE. + * In other case this function will check it is consistence with the provided @ref TypeObject. + * @return ReturnCode_t RETCODE_OK if correctly registered. + * RETCODE_PRECONDITION_NOT_MET if the discriminators differ. + * RETCODE_PRECONDITION_NOT_MET if the TypeIdentifier is not consistent with the given + * TypeObject. + */ + virtual ReturnCode_t register_type_object( + const TypeObject& type_object, + TypeIdentifierPair& type_ids) = 0; /** * @brief Register DynamicType TypeObject. * * @param[in] dynamic_type DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the registered DynamicType TypeObject. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the registered DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ virtual FASTDDS_EXPORTED_API ReturnCode_t register_typeobject_w_dynamic_type( const DynamicType::_ref_type& dynamic_type, - TypeIdentifier& type_id) = 0; + TypeIdentifierPair& type_ids) = 0; /** * @brief Register an indirect hash TypeIdentifier. @@ -85,7 +110,8 @@ class ITypeObjectRegistry * @pre type_name must not be empty. * * @param[in] type_name Name of the type being registered. - * @param[in] type_identifier TypeIdentier related to the given type name. + * @param[in,out] type_identifier @ref TypeIdentifierPair related to the given type name. It must be set in + * @ref TypeIdentifierPair::type_identifier1. At the end this object is filled with both TypeIdentifiers. * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. * RETCODE_BAD_PARAMETER if there is already another different TypeIdentifier registered with * the given type_name. @@ -94,7 +120,7 @@ class ITypeObjectRegistry */ virtual FASTDDS_EXPORTED_API ReturnCode_t register_type_identifier( const std::string& type_name, - const TypeIdentifier& type_identifier) = 0; + TypeIdentifierPair& type_identifier) = 0; /** * @brief Get the TypeObjects related to the given type name. @@ -144,6 +170,23 @@ class ITypeObjectRegistry const TypeIdentifier& type_identifier, TypeObject& type_object) = 0; + /** + * @brief Get the TypeInformation related to a specific type_name. + * + * @pre type_ids must not be empty. + * + * @param[in] type_ids @ref TypeIdentifierPair which type information is queried. + * @param[out] type_information Related TypeInformation for the given @ref TypeIdentifier. + * @param[in] with_dependencies + * @return ReturnCode_t RETCODE_OK if the type_ids are found within the registry. + * RETCODE_NO_DATA if the given type_ids is not found. + * RETCODE_BAD_PARAMETER if the given @ref TypeIdentifier corresponds to a indirect hash TypeIdentifier. + * RETCODE_PRECONDITION_NOT_MET if any type_ids is empty. + */ + virtual ReturnCode_t get_type_information( + const TypeIdentifierPair& type_ids, + TypeInformation& type_information, + bool with_dependencies = false) = 0; }; diff --git a/include/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp b/include/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp index 294d3c1e1a7..e7db70bf8d6 100644 --- a/include/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp +++ b/include/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp @@ -69,7 +69,7 @@ class TypeObjectUtils * @return CollectionElementFlag instance. */ FASTDDS_EXPORTED_API static CollectionElementFlag build_collection_element_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool external); /** @@ -85,7 +85,7 @@ class TypeObjectUtils * @return StructMemberFlag instance. */ FASTDDS_EXPORTED_API static StructMemberFlag build_struct_member_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool optional, bool must_understand, bool key, @@ -100,7 +100,7 @@ class TypeObjectUtils * @return UnionMemberFlag instance. */ FASTDDS_EXPORTED_API static UnionMemberFlag build_union_member_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool default_member, bool external); @@ -112,7 +112,7 @@ class TypeObjectUtils * @return UnionDiscriminatorFlag instance. */ FASTDDS_EXPORTED_API static UnionDiscriminatorFlag build_union_discriminator_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool key); /** @@ -166,7 +166,7 @@ class TypeObjectUtils * BitsetTypeFlag: Unused. No flags apply. */ - /*************** Indirect Hash TypeIdentifiers ***************************/ + //{{{ Indirect Hash TypeIdentifiers /** * @brief Build StringSTypeDefn instance. @@ -381,7 +381,10 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static const ExtendedTypeDefn build_extended_type_defn(); - /*************** Register Indirect Hash TypeIdentifiers ***************************/ + //}}} + + //{{{ Register Indirect Hash TypeIdentifiers + /** * Primitive types are registered when TypeObjectRegistry is instantiated. */ @@ -391,6 +394,7 @@ class TypeObjectUtils * * @param[in] string StringSTypeDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the StringSTypeDefn just registered. * @param[in] wstring Flag to build a wstring. Default false. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). @@ -402,6 +406,7 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_s_string_type_identifier( const StringSTypeDefn& string, const std::string& type_name, + TypeIdentifierPair& type_ids, bool wstring = false); /** @@ -409,6 +414,7 @@ class TypeObjectUtils * * @param[in] string StringLTypeDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the StringLTypeDefn just registered. * @param[in] wstring Flag to build a wstring. Default false. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). @@ -420,6 +426,7 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_l_string_type_identifier( const StringLTypeDefn& string, const std::string& type_name, + TypeIdentifierPair& type_ids, bool wstring = false); /** @@ -427,6 +434,7 @@ class TypeObjectUtils * * @param[in] plain_seq PlainSequenceSElemDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainSequenceSElemDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -436,13 +444,15 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_s_sequence_type_identifier( const PlainSequenceSElemDefn& plain_seq, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register large sequence TypeIdentifier into TypeObjectRegistry. * * @param[in] plain_seq PlainSequenceLElemDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainSequenceLElemDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -452,13 +462,15 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_l_sequence_type_identifier( const PlainSequenceLElemDefn& plain_seq, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register small array TypeIdentifier into TypeObjectRegistry. * * @param[in] plain_array PlainArraySElemDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainArraySElemDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -468,13 +480,15 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_s_array_type_identifier( const PlainArraySElemDefn& plain_array, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register large array TypeIdentifier into TypeObjectRegistry. * * @param[in] plain_array PlainArrayLElemDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainArrayLElemDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -484,13 +498,15 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_l_array_type_identifier( const PlainArrayLElemDefn& plain_array, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register small map TypeIdentifier into TypeObjectRegistry. * * @param[in] plain_map PlainMapSTypeDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainMapSTypeDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -500,13 +516,15 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_s_map_type_identifier( const PlainMapSTypeDefn& plain_map, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register large map TypeIdentifier into TypeObjectRegistry. * * @param[in] plain_map PlainMapLTypeDefn union member to set. * @param[in] type_name Type name to be registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the PlainMapLTypeDefn just registered. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given member is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -516,7 +534,8 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_l_map_type_identifier( const PlainMapLTypeDefn& plain_map, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register StronglyConnectedComponent TypeIdentifier into TypeObjectRegistry. @@ -531,8 +550,9 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_scc_type_identifier( const StronglyConnectedComponentId& scc, const std::string& type_name); + //}}} - /*************** Annotation usage ***************************/ + //{{{ Annotation usage /** * @brief Build ExtendedAnnotationParameterValue instance (empty. Available for future extension). * @@ -767,8 +787,9 @@ class TypeObjectUtils PlacementKind placement, const eprosima::fastcdr::fixed_string<32>& language, const std::string& text); + //}}} - /*************** Aggregate types: ***************************/ + //{{{ Aggregate types /** * @brief Build AppliedBuiltinMemberAnnotations instance. * @@ -922,8 +943,9 @@ class TypeObjectUtils /** * MinimalStructType constructed from CompleteStructType. */ + //}}} - /*************** Union: *********************************************/ + //{{{ Union /** * @brief Add label to the union case label sequence. @@ -1068,8 +1090,9 @@ class TypeObjectUtils /** * MinimalUnionType constructed from CompleteUnionType. */ + //}}} - /*************** Annotation: ****************************************/ + //{{{ Annotation /** * @brief Build CommonAnnotationParameter instance. @@ -1154,8 +1177,9 @@ class TypeObjectUtils /** * MinimalAnnotationType constructed from CompleteAnnotationType. */ + //}}} - /*************** Alias: *********************************************/ + //{{{ Alias /** * @brief Build CommonAliasBody instance. @@ -1226,8 +1250,9 @@ class TypeObjectUtils /** * MinimalAliasType constructed from CompleteAliasType. */ + //}}} - /*************** Collections: ***************************************/ + //{{{ Collections /** * @brief Build CompleteElementDetail instance. @@ -1303,8 +1328,9 @@ class TypeObjectUtils /** * MinimalCollectionHeader constructed from CompleteCollectionHeader. */ + //}}} - /*************** Sequence: ******************************************/ + //{{{ Sequence /** * @brief Build CompleteSequenceType instance. @@ -1326,8 +1352,9 @@ class TypeObjectUtils /** * MinimalSequenceType constructed from CompleteSequenceType. */ + //}}} - /*************** Array: *********************************************/ + //{{{ Array /** * @brief Build CommonArrayHeader instance. @@ -1377,8 +1404,9 @@ class TypeObjectUtils /** * MinimalArrayType constructed from CompleteArrayType. */ + //}}} - /*************** Map: ***********************************************/ + //{{{ Map /** * @brief Build CompleteMapType instance. @@ -1404,8 +1432,9 @@ class TypeObjectUtils /** * MinimalMapType constructed from CompleteMapType. */ + //}}} - /*************** Enumeration: **************************************/ + //{{{ Enumeration /** * @brief Build CommonEnumeratedLiteral instance. @@ -1508,8 +1537,9 @@ class TypeObjectUtils /** * MinimalEnumeratedType constructed from CompleteEnumeratedType. */ + //}}} - /*************** Bitmask: *******************************************/ + //{{{ Bitmask /** * @brief Build CommonBitflag instance. @@ -1582,8 +1612,9 @@ class TypeObjectUtils BitmaskTypeFlag bitmask_flags, const CompleteBitmaskHeader& header, const CompleteBitflagSeq& flag_seq); + //}}} - /*************** Bitset: ********************************************/ + //{{{ Bitset /** * @brief Build CommonBitfield instance. @@ -1675,8 +1706,9 @@ class TypeObjectUtils /** * MinimalBitsetType constructed from CompleteBitsetType. */ + //}}} - /*************** Type Object: ***************************************/ + //{{{ Type Object /** * @brief Build CompleteExtendedType instance. (empty. Available for future extension) @@ -1691,6 +1723,8 @@ class TypeObjectUtils * * @param[in] alias_type CompleteAliasType. * @param[in] type_name Name to be registered in the registry. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteAliasType just registered and the + * generated MinimalAliasType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1700,7 +1734,8 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_alias_type_object( const CompleteAliasType& alias_type, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register annotation TypeObject into TypeObjectRegistry. @@ -1708,7 +1743,8 @@ class TypeObjectUtils * * @param[in] annotation_type CompleteAnnotationType. * @param[in] type_name Name to be registered in the registry. - * @param[out] type_id Complete TypeIdentifier corresponding to the CompleteAnnotationType being registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteAnnotationType just registered and the + * generated MinimalAnnotationType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1719,7 +1755,7 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_annotation_type_object( const CompleteAnnotationType& annotation_type, const std::string& type_name, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register structure TypeObject into TypeObjectRegistry. @@ -1727,7 +1763,8 @@ class TypeObjectUtils * * @param[in] struct_type CompleteStructType. * @param[in] type_name Name to be registered in the registry. - * @param[out] type_id Complete TypeIdentifier corresponding to the CompleteStructType being registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteStructType just registered and the + * generated MinimalStructType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1738,7 +1775,7 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_struct_type_object( const CompleteStructType& struct_type, const std::string& type_name, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register union TypeObject into TypeObjectRegistry. @@ -1746,7 +1783,8 @@ class TypeObjectUtils * * @param[in] union_type CompleteUnionType. * @param[in] type_name Name to be registered in the registry. - * @param[out] type_id Complete TypeIdentifier corresponding to the CompleteUnionType being registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteUnionType just registered and the + * generated MinimalUnionType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1757,7 +1795,7 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_union_type_object( const CompleteUnionType& union_type, const std::string& type_name, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register bitset TypeObject into TypeObjectRegistry. @@ -1765,6 +1803,8 @@ class TypeObjectUtils * * @param[in] bitset_type CompleteBitsetType. * @param[in] type_name Name to be registered in the registry. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteBitsetType just registered and the + * generated MinimalBitsetType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1774,7 +1814,8 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_bitset_type_object( const CompleteBitsetType& bitset_type, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register sequence TypeObject into TypeObjectRegistry. @@ -1833,6 +1874,8 @@ class TypeObjectUtils * * @param[in] enumerated_type CompleteEnumeratedType. * @param[in] type_name Name to be registered in the registry. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteEnumeratedType just registered and the + * generated MinimalEnumeratedType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1842,7 +1885,8 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_enumerated_type_object( const CompleteEnumeratedType& enumerated_type, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); /** * @brief Register bitmask TypeObject into TypeObjectRegistry. @@ -1850,6 +1894,8 @@ class TypeObjectUtils * * @param[in] bitmask_type CompleteBitmaskType. * @param[in] type_name Name to be registered in the registry. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteBitmaskType just registered and the + * generated MinimalBitmaskType. * @exception eprosima::fastdds::dds::xtypes::InvalidArgumentError exception if the given type is inconsistent * (only in Debug build mode). * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. @@ -1859,9 +1905,11 @@ class TypeObjectUtils */ FASTDDS_EXPORTED_API static ReturnCode_t build_and_register_bitmask_type_object( const CompleteBitmaskType& bitmask_type, - const std::string& type_name); + const std::string& type_name, + TypeIdentifierPair& type_ids); + //}}} - /*************** Auxiliary public methods ***************************/ + //{{{ Auxiliary public methods /** * @brief Calculate the MD5 hash of the provided name. @@ -1882,6 +1930,29 @@ class TypeObjectUtils FASTDDS_EXPORTED_API static void type_object_consistency( const TypeObject& type_object); + /** + * @brief If one of the @ref TypeIdentifier in @ref TypeIdentifierPair is minimal, returns its reference. + * + * @param[in] type_ids @ref TypeIdentifierPair used to retrieve the @ref TypeIdentifier. + * @param[out] ec Returns if there was an error. + * @return Reference to the minimal @ref TypeIdentifier. + */ + FASTDDS_EXPORTED_API static const TypeIdentifier& retrieve_minimal_type_identifier( + const TypeIdentifierPair& type_ids, + bool& ec); + + /** + * @brief If one of the @ref TypeIdentifier in @ref TypeIdentifierPair is complete, returns its reference. + * + * @param[in] type_ids @ref TypeIdentifierPair used to retrieve the @ref TypeIdentifier. + * @param[out] ec Returns if there was an error. + * @return Reference to the complete @ref TypeIdentifier. + */ + FASTDDS_EXPORTED_API static const TypeIdentifier& retrieve_complete_type_identifier( + const TypeIdentifierPair& type_ids, + bool& ec); + //}}} + private: friend class TypeObjectRegistry; @@ -1893,17 +1964,17 @@ class TypeObjectUtils protected: - /*************** Auxiliary methods ***************************/ + //{{{ Auxiliary methods /** * @brief Set the try construct behavior in a given MemberFlag * * @param[in,out] member_flag Bitmask to be set. - * @param[in] try_construct_kind TryConstructKind. + * @param[in] try_construct_kind @ref TryConstructFailAction. */ static void set_try_construct_behavior( MemberFlag& member_flag, - TryConstructKind try_construct_kind); + TryConstructFailAction try_construct_kind); /** * @brief Set the TypeFlag object. @@ -1971,8 +2042,9 @@ class TypeObjectUtils */ static bool is_indirect_hash_type_identifier( const TypeIdentifier& type_identifier); + //}}} - /*************** Consistency methods (Debug) ***************************/ + //{{{ Consistency methods (Debug) /** * TypeObjectHashId is always consistent. Default constructor already sets the discriminator to one valid value. @@ -3051,6 +3123,7 @@ class TypeObjectUtils */ static void minimal_type_object_consistency( const MinimalTypeObject& minimal_type_object); + //}}} }; } // xtypes diff --git a/include/fastdds/dds/xtypes/type_representation/detail/dds_xtypes_typeobjectPubSubTypes.h b/include/fastdds/dds/xtypes/type_representation/detail/dds_xtypes_typeobjectPubSubTypes.h index e0ab20d2983..badfe1246a9 100644 --- a/include/fastdds/dds/xtypes/type_representation/detail/dds_xtypes_typeobjectPubSubTypes.h +++ b/include/fastdds/dds/xtypes/type_representation/detail/dds_xtypes_typeobjectPubSubTypes.h @@ -213,7 +213,7 @@ class StringSTypeDefnPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -359,7 +359,7 @@ class StringLTypeDefnPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -472,7 +472,7 @@ class PlainCollectionHeaderPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -563,7 +563,7 @@ class PlainSequenceSElemDefnPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -654,7 +654,7 @@ class PlainSequenceLElemDefnPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -745,7 +745,7 @@ class PlainArraySElemDefnPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -836,7 +836,7 @@ class PlainArrayLElemDefnPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -927,7 +927,7 @@ class PlainMapSTypeDefnPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1018,7 +1018,7 @@ class PlainMapLTypeDefnPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1109,7 +1109,7 @@ class StronglyConnectedComponentIdPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1200,7 +1200,7 @@ class ExtendedTypeDefnPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1296,7 +1296,7 @@ class ExtendedAnnotationParameterValuePubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1388,7 +1388,7 @@ class AppliedAnnotationParameterPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1480,7 +1480,7 @@ class AppliedAnnotationPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1572,7 +1572,7 @@ class AppliedVerbatimAnnotationPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1663,7 +1663,7 @@ class AppliedBuiltinMemberAnnotationsPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1754,7 +1754,7 @@ class CommonStructMemberPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1845,7 +1845,7 @@ class CompleteMemberDetailPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1969,7 +1969,7 @@ class MinimalMemberDetailPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2082,7 +2082,7 @@ class CompleteStructMemberPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2174,7 +2174,7 @@ class MinimalStructMemberPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2266,7 +2266,7 @@ class AppliedBuiltinTypeAnnotationsPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2357,7 +2357,7 @@ class MinimalTypeDetailPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2466,7 +2466,7 @@ class CompleteTypeDetailPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2557,7 +2557,7 @@ class CompleteStructHeaderPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2648,7 +2648,7 @@ class MinimalStructHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2739,7 +2739,7 @@ class CompleteStructTypePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2830,7 +2830,7 @@ class MinimalStructTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2922,7 +2922,7 @@ class CommonUnionMemberPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3013,7 +3013,7 @@ class CompleteUnionMemberPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3105,7 +3105,7 @@ class MinimalUnionMemberPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3197,7 +3197,7 @@ class CommonDiscriminatorMemberPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3288,7 +3288,7 @@ class CompleteDiscriminatorMemberPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3379,7 +3379,7 @@ class MinimalDiscriminatorMemberPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3470,7 +3470,7 @@ class CompleteUnionHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3561,7 +3561,7 @@ class MinimalUnionHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3652,7 +3652,7 @@ class CompleteUnionTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3743,7 +3743,7 @@ class MinimalUnionTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3834,7 +3834,7 @@ class CommonAnnotationParameterPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3925,7 +3925,7 @@ class CompleteAnnotationParameterPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4017,7 +4017,7 @@ class MinimalAnnotationParameterPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4109,7 +4109,7 @@ class CompleteAnnotationHeaderPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4200,7 +4200,7 @@ class MinimalAnnotationHeaderPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4291,7 +4291,7 @@ class CompleteAnnotationTypePubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4382,7 +4382,7 @@ class MinimalAnnotationTypePubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4473,7 +4473,7 @@ class CommonAliasBodyPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4564,7 +4564,7 @@ class CompleteAliasBodyPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4655,7 +4655,7 @@ class MinimalAliasBodyPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4746,7 +4746,7 @@ class CompleteAliasHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4837,7 +4837,7 @@ class MinimalAliasHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4928,7 +4928,7 @@ class CompleteAliasTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5019,7 +5019,7 @@ class MinimalAliasTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5110,7 +5110,7 @@ class CompleteElementDetailPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5201,7 +5201,7 @@ class CommonCollectionElementPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5292,7 +5292,7 @@ class CompleteCollectionElementPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5383,7 +5383,7 @@ class MinimalCollectionElementPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5507,7 +5507,7 @@ class CommonCollectionHeaderPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5620,7 +5620,7 @@ class CompleteCollectionHeaderPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5711,7 +5711,7 @@ class MinimalCollectionHeaderPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5802,7 +5802,7 @@ class CompleteSequenceTypePubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5893,7 +5893,7 @@ class MinimalSequenceTypePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5984,7 +5984,7 @@ class CommonArrayHeaderPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6075,7 +6075,7 @@ class CompleteArrayHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6166,7 +6166,7 @@ class MinimalArrayHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6257,7 +6257,7 @@ class CompleteArrayTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6348,7 +6348,7 @@ class MinimalArrayTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6439,7 +6439,7 @@ class CompleteMapTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6530,7 +6530,7 @@ class MinimalMapTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6622,7 +6622,7 @@ class CommonEnumeratedLiteralPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6713,7 +6713,7 @@ class CompleteEnumeratedLiteralPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6805,7 +6805,7 @@ class MinimalEnumeratedLiteralPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6930,7 +6930,7 @@ class CommonEnumeratedHeaderPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7043,7 +7043,7 @@ class CompleteEnumeratedHeaderPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7134,7 +7134,7 @@ class MinimalEnumeratedHeaderPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7225,7 +7225,7 @@ class CompleteEnumeratedTypePubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7316,7 +7316,7 @@ class MinimalEnumeratedTypePubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7407,7 +7407,7 @@ class CommonBitflagPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7498,7 +7498,7 @@ class CompleteBitflagPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7590,7 +7590,7 @@ class MinimalBitflagPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7715,7 +7715,7 @@ class CommonBitmaskHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7830,7 +7830,7 @@ class CompleteBitmaskTypePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7921,7 +7921,7 @@ class MinimalBitmaskTypePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8012,7 +8012,7 @@ class CommonBitfieldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8103,7 +8103,7 @@ class CompleteBitfieldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8195,7 +8195,7 @@ class MinimalBitfieldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8287,7 +8287,7 @@ class CompleteBitsetHeaderPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8378,7 +8378,7 @@ class MinimalBitsetHeaderPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8469,7 +8469,7 @@ class CompleteBitsetTypePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8560,7 +8560,7 @@ class MinimalBitsetTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8651,7 +8651,7 @@ class CompleteExtendedTypePubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8743,7 +8743,7 @@ class MinimalExtendedTypePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8838,7 +8838,7 @@ class TypeIdentifierTypeObjectPairPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8930,7 +8930,7 @@ class TypeIdentifierPairPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9022,7 +9022,7 @@ class TypeIdentfierWithSizePubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9114,7 +9114,7 @@ class TypeIdentifierWithDependenciesPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9206,7 +9206,7 @@ class TypeInformationPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/include/fastdds/rtps/attributes/TopicAttributes.h b/include/fastdds/rtps/attributes/TopicAttributes.h index 7234ce4242c..8b1ecb7ffcd 100644 --- a/include/fastdds/rtps/attributes/TopicAttributes.h +++ b/include/fastdds/rtps/attributes/TopicAttributes.h @@ -43,7 +43,6 @@ class TopicAttributes : topicKind(rtps::NO_KEY) , topicName("UNDEF") , topicDataType("UNDEF") - , auto_fill_type_information(true) { } @@ -56,7 +55,6 @@ class TopicAttributes topicKind = tKind; topicName = name; topicDataType = dataType; - auto_fill_type_information = true; } virtual ~TopicAttributes() @@ -115,8 +113,6 @@ class TopicAttributes TypeObjectV1 type; //!XTYPES 1.2 xtypes::TypeInformationParameter type_information; - //!Tries to complete type information (TypeObjectV2) - bool auto_fill_type_information; /** * Method to check whether the defined QOS are correct. diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp index 8c28c8d4dbf..b4005172a74 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupReplyListener.cpp @@ -144,8 +144,10 @@ void TypeLookupReplyListener::check_get_types_reply( ReturnCode_t register_result = RETCODE_OK; for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) { + xtypes::TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); if (RETCODE_OK != fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_type_object(pair.type_identifier(), pair.type_object())) + register_type_object(pair.type_object(), type_ids, false)) { // If any of the types is not registered, log error EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, diff --git a/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx b/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx index 437543a48f1..e46bb9c1207 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx +++ b/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.cxx @@ -225,7 +225,7 @@ namespace builtin { return true; } - void TypeLookup_getTypes_InPubSubType::register_type_object_representation() const + void TypeLookup_getTypes_InPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -419,7 +419,7 @@ namespace builtin { return true; } - void TypeLookup_getTypes_OutPubSubType::register_type_object_representation() const + void TypeLookup_getTypes_OutPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -614,7 +614,7 @@ namespace builtin { return true; } - void TypeLookup_getTypeDependencies_InPubSubType::register_type_object_representation() const + void TypeLookup_getTypeDependencies_InPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -808,7 +808,7 @@ namespace builtin { return true; } - void TypeLookup_getTypeDependencies_OutPubSubType::register_type_object_representation() const + void TypeLookup_getTypeDependencies_OutPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1004,7 +1004,7 @@ namespace builtin { return true; } - void TypeLookup_RequestPubSubType::register_type_object_representation() const + void TypeLookup_RequestPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1199,7 +1199,7 @@ namespace builtin { return true; } - void TypeLookup_ReplyPubSubType::register_type_object_representation() const + void TypeLookup_ReplyPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); diff --git a/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.h b/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.h index cc9d5070918..53a673eab0e 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.h +++ b/src/cpp/fastdds/builtin/type_lookup_service/detail/TypeLookupTypesPubSubTypes.h @@ -101,7 +101,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -192,7 +192,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -284,7 +284,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -375,7 +375,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -468,7 +468,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -560,7 +560,7 @@ namespace builtin void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx b/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx index c6f3ada8b49..1e220b26b9d 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx +++ b/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.cxx @@ -224,7 +224,7 @@ bool EntityId_tPubSubType::getKey( return true; } -void EntityId_tPubSubType::register_type_object_representation() const +void EntityId_tPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -418,7 +418,7 @@ bool GUID_tPubSubType::getKey( return true; } -void GUID_tPubSubType::register_type_object_representation() const +void GUID_tPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -612,7 +612,7 @@ bool SequenceNumber_tPubSubType::getKey( return true; } -void SequenceNumber_tPubSubType::register_type_object_representation() const +void SequenceNumber_tPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -806,7 +806,7 @@ bool SampleIdentityPubSubType::getKey( return true; } -void SampleIdentityPubSubType::register_type_object_representation() const +void SampleIdentityPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1001,7 +1001,7 @@ namespace rpc { return true; } - void RequestHeaderPubSubType::register_type_object_representation() const + void RequestHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1195,7 +1195,7 @@ namespace rpc { return true; } - void ReplyHeaderPubSubType::register_type_object_representation() const + void ReplyHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); diff --git a/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.h b/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.h index 05df3d16287..640cb6a7bfd 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.h +++ b/src/cpp/fastdds/builtin/type_lookup_service/detail/rpc_typesPubSubTypes.h @@ -97,7 +97,7 @@ class EntityId_tPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -188,7 +188,7 @@ class GUID_tPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -279,7 +279,7 @@ class SequenceNumber_tPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -370,7 +370,7 @@ class SampleIdentityPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -468,7 +468,7 @@ namespace rpc void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -559,7 +559,7 @@ namespace rpc void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/src/cpp/fastdds/publisher/DataWriterImpl.cpp b/src/cpp/fastdds/publisher/DataWriterImpl.cpp index a983a7d69a0..7e4a64d557a 100644 --- a/src/cpp/fastdds/publisher/DataWriterImpl.cpp +++ b/src/cpp/fastdds/publisher/DataWriterImpl.cpp @@ -1654,18 +1654,14 @@ fastrtps::TopicAttributes DataWriterImpl::get_topic_attributes( topic_att.topicName = topic.get_name(); topic_att.topicDataType = topic.get_type_name(); topic_att.topicKind = type->m_isGetKeyDefined ? WITH_KEY : NO_KEY; - topic_att.auto_fill_type_information = type->auto_fill_type_information(); - if (type->type_identifier()) + if (type->auto_fill_type_information() && xtypes::TK_NONE != type->type_identifiers().type_identifier1()._d()) { - topic_att.type_id = *type->type_identifier(); - } - if (type->type_object()) - { - topic_att.type = *type->type_object(); - } - if (type->type_information()) - { - topic_att.type_information = *type->type_information(); + if (RETCODE_OK == + fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_information( + type->type_identifiers(), topic_att.type_information.type_information)) + { + topic_att.type_information.assigned(true); + } } return topic_att; } diff --git a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp index 4633a1a9e14..885b69861c7 100644 --- a/src/cpp/fastdds/subscriber/DataReaderImpl.cpp +++ b/src/cpp/fastdds/subscriber/DataReaderImpl.cpp @@ -50,6 +50,7 @@ #include #include #include +#include #include #ifdef FASTDDS_STATISTICS #include @@ -1772,19 +1773,15 @@ fastrtps::TopicAttributes DataReaderImpl::topic_attributes() const topic_att.topicDataType = topic_->get_type_name(); topic_att.historyQos = qos_.history(); topic_att.resourceLimitsQos = qos_.resource_limits(); - if (type_->type_object()) + if (type_->auto_fill_type_information() && xtypes::TK_NONE != type_->type_identifiers().type_identifier1()._d()) { - topic_att.type = *type_->type_object(); - } - if (type_->type_identifier()) - { - topic_att.type_id = *type_->type_identifier(); - } - if (type_->type_information()) - { - topic_att.type_information = *type_->type_information(); + if (RETCODE_OK == + fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_information( + type_->type_identifiers(), topic_att.type_information.type_information)) + { + topic_att.type_information.assigned(true); + } } - topic_att.auto_fill_type_information = type_->auto_fill_type_information(); return topic_att; } diff --git a/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp b/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp index 1dbc0f849a2..9aaec7654e1 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.cpp @@ -33,6 +33,14 @@ traits::ref_type traits::make_shared ReturnCode_t AnnotationDescriptorImpl::get_value( ObjectName& value, const ObjectName& key) noexcept +{ + const AnnotationDescriptorImpl& myself = *this; + return myself.get_value(value, key); +} + +ReturnCode_t AnnotationDescriptorImpl::get_value( + ObjectName& value, + const ObjectName& key) const noexcept { auto it = value_.find(key); @@ -47,6 +55,13 @@ ReturnCode_t AnnotationDescriptorImpl::get_value( ReturnCode_t AnnotationDescriptorImpl::get_all_value( Parameters& value) noexcept +{ + const AnnotationDescriptorImpl& myself = *this; + return myself.get_all_value(value); +} + +ReturnCode_t AnnotationDescriptorImpl::get_all_value( + Parameters& value) const noexcept { value = value_; return RETCODE_OK; diff --git a/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.hpp b/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.hpp index c51bb805a81..2b62de1daea 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/AnnotationDescriptorImpl.hpp @@ -61,9 +61,16 @@ class AnnotationDescriptorImpl : public virtual AnnotationDescriptor ObjectName& value, const ObjectName& key) noexcept override; + ReturnCode_t get_value( + ObjectName& value, + const ObjectName& key) const noexcept; + ReturnCode_t get_all_value( Parameters& value) noexcept override; + ReturnCode_t get_all_value( + Parameters& value) const noexcept; + ReturnCode_t set_value( const ObjectName& key, const ObjectName& value) noexcept override; diff --git a/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp b/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp index 28126fd6adb..9ebe613117c 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/DynamicPubSubType.cpp @@ -234,13 +234,12 @@ ReturnCode_t DynamicPubSubType::set_dynamic_type( return RETCODE_BAD_PARAMETER; } -void DynamicPubSubType::register_type_object_representation() const +void DynamicPubSubType::register_type_object_representation() { if (dynamic_type_) { - xtypes::TypeIdentifier type_id; if (RETCODE_OK != fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer(). - register_typeobject_w_dynamic_type(dynamic_type_, type_id)) + register_typeobject_w_dynamic_type(dynamic_type_, type_identifiers_)) { EPROSIMA_LOG_ERROR(DYN_TYPES, "Error registering DynamicType TypeObject representation."); } diff --git a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp index 5fc9a26cd84..e41a939cee6 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeBuilderFactoryImpl.cpp @@ -528,12 +528,9 @@ traits::ref_type DynamicTypeBuilderFactoryImpl::create_struc type_descriptor.kind(TK_STRUCTURE); type_descriptor.name(struct_type.header().detail().type_name()); type_descriptor.is_nested(struct_type.struct_flags() & xtypes::IS_NESTED); - if (struct_type.struct_flags() & (xtypes::IS_FINAL | xtypes::IS_APPENDABLE | xtypes::IS_MUTABLE)) - { - type_descriptor.extensibility_kind(struct_type.struct_flags() & xtypes::IS_FINAL ? ExtensibilityKind::FINAL : - (struct_type.struct_flags() & - xtypes::IS_MUTABLE ? ExtensibilityKind::MUTABLE : ExtensibilityKind::APPENDABLE)); - } + type_descriptor.extensibility_kind(struct_type.struct_flags() & xtypes::IS_FINAL ? ExtensibilityKind::FINAL : + (struct_type.struct_flags() & + xtypes::IS_MUTABLE ? ExtensibilityKind::MUTABLE : ExtensibilityKind::APPENDABLE)); bool inheritance_correct {true}; if (xtypes::TK_NONE != struct_type.header().base_type()._d()) { @@ -1425,8 +1422,23 @@ bool DynamicTypeBuilderFactoryImpl::apply_custom_annotations( { for (const xtypes::AppliedAnnotationParameter& parameter : annotation.param_seq().value()) { - annotation_descriptor->set_value(get_string_from_name_hash(parameter.paramname_hash()), - get_annotation_parameter_value(parameter.value())); + ObjectName paramname = get_string_from_name_hash(parameter.paramname_hash()); + // Search the real name of annotation parameter. + if (xtypes::EK_COMPLETE == annotation_type_object._d()) + { + for (auto member : annotation_type_object.complete().annotation_type().member_seq()) + { + xtypes::NameHash member_name_hash {xtypes::TypeObjectUtils::name_hash( + member.name().to_string())}; + + if (parameter.paramname_hash() == member_name_hash) + { + paramname = member.name(); + break; + } + } + } + annotation_descriptor->set_value(paramname, get_annotation_parameter_value(parameter.value())); } } if (member_id != MEMBER_ID_INVALID && diff --git a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.hpp b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.hpp index 688b70d451b..35b5698827f 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeImpl.hpp @@ -72,6 +72,11 @@ class DynamicTypeImpl : public virtual traits::base_type traits::ref_type& descriptor, uint32_t idx) noexcept override; + const std::vector get_annotations() const + { + return annotation_; + } + uint32_t get_verbatim_text_count() noexcept override; ReturnCode_t get_verbatim_text( diff --git a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.hpp b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.hpp index 3fb4bcb17cd..87c8d47ea66 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/DynamicTypeMemberImpl.hpp @@ -47,6 +47,11 @@ class DynamicTypeMemberImpl : public virtual traits::base_typ traits::ref_type& descriptor, uint32_t idx) noexcept override; + const std::vector get_annotations() const + { + return annotation_; + } + uint32_t get_verbatim_text_count() noexcept override; ReturnCode_t get_verbatim_text( diff --git a/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp b/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp index 303bfaad387..cd549fd5fb5 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.cpp @@ -24,6 +24,49 @@ namespace eprosima { namespace fastdds { namespace dds { +bool default_value_compare( + const traits::ref_type type, + const std::string& d1, + const std::string& d2) +{ + bool ret_value {false}; + if (d1 == d2) + { + ret_value = true; + } + else + { + switch (type->get_kind()) + { + case TK_BOOLEAN: + ret_value = (d1.empty() && 0 == d2.compare(CONST_FALSE)) || + (0 == d1.compare(CONST_FALSE) && d2.empty()); + break; + case TK_BYTE: + case TK_INT8: + case TK_UINT8: + case TK_INT16: + case TK_UINT16: + case TK_INT32: + case TK_UINT32: + case TK_INT64: + case TK_UINT64: + case TK_FLOAT32: + case TK_FLOAT64: + case TK_FLOAT128: + case TK_CHAR8: + case TK_CHAR16: + case TK_ENUM: + ret_value = (d1.empty() && 0 == d2.compare("0")) || + (0 == d1.compare("0") && d2.empty()); + break; + default: + break; + } + } + return ret_value; +} + template<> traits::ref_type traits::make_shared() { @@ -73,7 +116,7 @@ bool MemberDescriptorImpl::equals( return name_ == descriptor.name_ && id_ == descriptor.id_ && (type_ && type_->equals(descriptor.type_)) && - default_value_ == descriptor.default_value_ && + default_value_compare(type_, default_value_, descriptor.default_value_) && index_ == descriptor.index_ && equal_labels(descriptor.label_) && try_construct_kind_ == descriptor.try_construct_kind_ && @@ -277,7 +320,7 @@ bool MemberDescriptorImpl::is_consistent() noexcept "try_construct_kind is set but parent type of member is not TK_STRUCTURE or TK_UNION."); return false; } - else + else if (TryConstructKind::DISCARD != try_construct_kind_) { EPROSIMA_LOG_WARNING(DYN_TYPES, "try_construct_kind is not implemented yet."); } diff --git a/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.hpp b/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.hpp index 49384d4444d..60ebe59a4ec 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/MemberDescriptorImpl.hpp @@ -325,11 +325,6 @@ class MemberDescriptorImpl : public virtual MemberDescriptor bool is_consistent() noexcept override; - bool is_try_construct_kind_set() const noexcept - { - return is_try_construct_kind_set_; - } - }; } // namespace dds diff --git a/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.hpp b/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.hpp index f5bd00b1660..f6716db804c 100644 --- a/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.hpp +++ b/src/cpp/fastdds/xtypes/dynamic_types/TypeDescriptorImpl.hpp @@ -237,11 +237,6 @@ class TypeDescriptorImpl : public virtual TypeDescriptor bool is_consistent() noexcept override; - bool is_extensibility_set() const noexcept - { - return is_extensibility_set_; - } - }; } // namespace dds diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp index 428ac738a26..7b1b8af4716 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -49,14 +50,15 @@ constexpr const int32_t NO_DEPENDENCIES = -1; bool TypeRegistryEntry::operator !=( const TypeRegistryEntry& entry) { - return this->type_object_ != entry.type_object_ || - this->type_object_serialized_size_ != entry.type_object_serialized_size_; + return this->type_object != entry.type_object || + this->type_object_serialized_size != entry.type_object_serialized_size || + this->complementary_type_id != entry.complementary_type_id; } ReturnCode_t TypeObjectRegistry::register_type_object( const std::string& type_name, const CompleteTypeObject& complete_type_object, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { if (type_name.empty()) { @@ -75,14 +77,14 @@ ReturnCode_t TypeObjectRegistry::register_type_object( #endif // !defined(NDEBUG) TypeRegistryEntry complete_entry; TypeRegistryEntry minimal_entry; - complete_entry.type_object_.complete(complete_type_object); - minimal_entry.type_object_ = build_minimal_from_complete_type_object(complete_type_object); - TypeIdentifierPair type_ids; - type_ids.type_identifier1(calculate_type_identifier(minimal_entry.type_object_, - minimal_entry.type_object_serialized_size_)); - type_ids.type_identifier2(calculate_type_identifier(complete_entry.type_object_, - complete_entry.type_object_serialized_size_)); - type_id = type_ids.type_identifier2(); + complete_entry.type_object.complete(complete_type_object); + minimal_entry.type_object = build_minimal_from_complete_type_object(complete_type_object); + type_ids.type_identifier1(calculate_type_identifier(minimal_entry.type_object, + minimal_entry.type_object_serialized_size)); + type_ids.type_identifier2(calculate_type_identifier(complete_entry.type_object, + complete_entry.type_object_serialized_size)); + complete_entry.complementary_type_id = type_ids.type_identifier1(); + minimal_entry.complementary_type_id = type_ids.type_identifier2(); std::lock_guard data_guard(type_object_registry_mutex_); auto type_ids_result {local_type_identifiers_.insert({type_name, type_ids})}; @@ -114,17 +116,17 @@ ReturnCode_t TypeObjectRegistry::register_type_object( ReturnCode_t TypeObjectRegistry::register_type_identifier( const std::string& type_name, - const TypeIdentifier& type_identifier) + TypeIdentifierPair& type_identifier) { // Preconditions - if (TypeObjectUtils::is_direct_hash_type_identifier(type_identifier) || type_name.empty()) + if (TypeObjectUtils::is_direct_hash_type_identifier(type_identifier.type_identifier1()) || type_name.empty()) { return eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET; } #if !defined(NDEBUG) try { - TypeObjectUtils::type_identifier_consistency(type_identifier); + TypeObjectUtils::type_identifier_consistency(type_identifier.type_identifier1()); } catch (eprosima::fastdds::dds::xtypes::InvalidArgumentError& exception) { @@ -132,89 +134,92 @@ ReturnCode_t TypeObjectRegistry::register_type_identifier( return eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET; } #endif // !defined(NDEBUG) - TypeIdentifierPair type_identifiers; - type_identifiers.type_identifier1(type_identifier); - switch (type_identifier._d()) + ExtendedTypeDefn reset_type_id; + type_identifier.type_identifier2().extended_defn(reset_type_id); + + switch (type_identifier.type_identifier1()._d()) { case TI_PLAIN_SEQUENCE_SMALL: - if (EK_BOTH != type_identifier.seq_sdefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().seq_sdefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().seq_sdefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().seq_sdefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().seq_sdefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().seq_sdefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().seq_sdefn().element_identifier()))); + *type_identifier.type_identifier2().seq_sdefn().element_identifier()))); } break; case TI_PLAIN_SEQUENCE_LARGE: - if (EK_BOTH != type_identifier.seq_ldefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().seq_ldefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().seq_ldefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().seq_ldefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().seq_ldefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().seq_ldefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().seq_ldefn().element_identifier()))); + *type_identifier.type_identifier2().seq_ldefn().element_identifier()))); } break; case TI_PLAIN_ARRAY_SMALL: - if (EK_BOTH != type_identifier.array_sdefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().array_sdefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().array_sdefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().array_sdefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().array_sdefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().array_sdefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().array_sdefn().element_identifier()))); + *type_identifier.type_identifier2().array_sdefn().element_identifier()))); } break; case TI_PLAIN_ARRAY_LARGE: - if (EK_BOTH != type_identifier.array_ldefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().array_ldefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().array_ldefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().array_ldefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().array_ldefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().array_ldefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().array_ldefn().element_identifier()))); + *type_identifier.type_identifier2().array_ldefn().element_identifier()))); } break; case TI_PLAIN_MAP_SMALL: - if (EK_BOTH != type_identifier.map_sdefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().map_sdefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().map_sdefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().map_sdefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().map_sdefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().map_sdefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().map_sdefn().element_identifier()))); + *type_identifier.type_identifier2().map_sdefn().element_identifier()))); } - if (TypeObjectUtils::is_direct_hash_type_identifier(*type_identifier.map_sdefn().key_identifier())) + if (TypeObjectUtils::is_direct_hash_type_identifier(*type_identifier.type_identifier1().map_sdefn(). + key_identifier())) { - if (TK_NONE == type_identifiers.type_identifier2()._d()) + if (TK_NONE == type_identifier.type_identifier2()._d()) { - type_identifiers.type_identifier2(type_identifier); + type_identifier.type_identifier2(type_identifier.type_identifier1()); } - type_identifiers.type_identifier1().map_sdefn().key_identifier(new TypeIdentifier( + type_identifier.type_identifier1().map_sdefn().key_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().map_sdefn().key_identifier()))); + *type_identifier.type_identifier2().map_sdefn().key_identifier()))); } break; case TI_PLAIN_MAP_LARGE: - if (EK_BOTH != type_identifier.map_ldefn().header().equiv_kind()) + if (EK_BOTH != type_identifier.type_identifier1().map_ldefn().header().equiv_kind()) { - type_identifiers.type_identifier2(type_identifier); - type_identifiers.type_identifier1().map_ldefn().header().equiv_kind(EK_MINIMAL); - type_identifiers.type_identifier1().map_ldefn().element_identifier(new TypeIdentifier( + type_identifier.type_identifier2(type_identifier.type_identifier1()); + type_identifier.type_identifier1().map_ldefn().header().equiv_kind(EK_MINIMAL); + type_identifier.type_identifier1().map_ldefn().element_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().map_ldefn().element_identifier()))); + *type_identifier.type_identifier2().map_ldefn().element_identifier()))); } - if (TypeObjectUtils::is_direct_hash_type_identifier(*type_identifier.map_ldefn().key_identifier())) + if (TypeObjectUtils::is_direct_hash_type_identifier(*type_identifier.type_identifier1().map_ldefn(). + key_identifier())) { - if (TK_NONE == type_identifiers.type_identifier2()._d()) + if (TK_NONE == type_identifier.type_identifier2()._d()) { - type_identifiers.type_identifier2(type_identifier); + type_identifier.type_identifier2(type_identifier.type_identifier1()); } - type_identifiers.type_identifier1().map_ldefn().key_identifier(new TypeIdentifier( + type_identifier.type_identifier1().map_ldefn().key_identifier(new TypeIdentifier( get_complementary_type_identifier( - *type_identifiers.type_identifier2().map_ldefn().key_identifier()))); + *type_identifier.type_identifier2().map_ldefn().key_identifier()))); } break; default: @@ -222,10 +227,10 @@ ReturnCode_t TypeObjectRegistry::register_type_identifier( } std::lock_guard data_guard(type_object_registry_mutex_); - auto result {local_type_identifiers_.insert({type_name, type_identifiers})}; + auto result {local_type_identifiers_.insert({type_name, type_identifier})}; if (!result.second) { - if (local_type_identifiers_[type_name] != type_identifiers) + if (local_type_identifiers_[type_name] != type_identifier) { return eprosima::fastdds::dds::RETCODE_BAD_PARAMETER; } @@ -255,16 +260,16 @@ ReturnCode_t TypeObjectRegistry::get_type_objects( if (EK_MINIMAL == type_ids.type_identifier1()._d()) { type_objects.minimal_type_object = - type_registry_entries_.at(type_ids.type_identifier1()).type_object_; + type_registry_entries_.at(type_ids.type_identifier1()).type_object; type_objects.complete_type_object = - type_registry_entries_.at(type_ids.type_identifier2()).type_object_; + type_registry_entries_.at(type_ids.type_identifier2()).type_object; } else { type_objects.complete_type_object = - type_registry_entries_.at(type_ids.type_identifier1()).type_object_; + type_registry_entries_.at(type_ids.type_identifier1()).type_object; type_objects.minimal_type_object = - type_registry_entries_.at(type_ids.type_identifier2()).type_object_; + type_registry_entries_.at(type_ids.type_identifier2()).type_object; } } return ret_code; @@ -301,7 +306,7 @@ ReturnCode_t TypeObjectRegistry::get_type_object( try { std::lock_guard data_guard(type_object_registry_mutex_); - type_object = type_registry_entries_.at(type_identifier).type_object_; + type_object = type_registry_entries_.at(type_identifier).type_object; } catch (std::exception&) { @@ -311,46 +316,153 @@ ReturnCode_t TypeObjectRegistry::get_type_object( } ReturnCode_t TypeObjectRegistry::get_type_information( - const std::string& type_name, - TypeInformation& type_information) + const TypeIdentifierPair& type_ids, + TypeInformation& type_information, + bool with_dependencies) { - TypeIdentifierPair type_ids; - ReturnCode_t ret_code {get_type_identifiers(type_name, type_ids)}; - if (eprosima::fastdds::dds::RETCODE_OK == ret_code) + if (TK_NONE == type_ids.type_identifier1()._d()) { - if (!TypeObjectUtils::is_direct_hash_type_identifier(type_ids.type_identifier1()) || - !TypeObjectUtils::is_direct_hash_type_identifier(type_ids.type_identifier2())) + return RETCODE_PRECONDITION_NOT_MET; + } + + if (!TypeObjectUtils::is_direct_hash_type_identifier(type_ids.type_identifier1()) || + (TK_NONE != type_ids.type_identifier2()._d() && + !TypeObjectUtils::is_direct_hash_type_identifier(type_ids.type_identifier2()))) + { + return eprosima::fastdds::dds::RETCODE_BAD_PARAMETER; + } + + { + std::lock_guard data_guard(type_object_registry_mutex_); + if (type_registry_entries_.end() == type_registry_entries_.find(type_ids.type_identifier1()) || + (TK_NONE != type_ids.type_identifier2()._d() && + type_registry_entries_.end() == type_registry_entries_.find(type_ids.type_identifier2()))) { - return eprosima::fastdds::dds::RETCODE_BAD_PARAMETER; + return RETCODE_NO_DATA; + } + } + + if (EK_COMPLETE == type_ids.type_identifier1()._d()) + { + type_information.complete().typeid_with_size().type_id(type_ids.type_identifier1()); + type_information.minimal().typeid_with_size().type_id(type_ids.type_identifier2()); + + if (with_dependencies) + { + std::unordered_set type_dependencies; + if (RETCODE_OK == get_type_dependencies_impl({type_ids.type_identifier1()}, + type_dependencies)) + { + type_information.complete().dependent_typeid_count(static_cast(type_dependencies.size())); + for (auto& dependency : type_dependencies) + { + type_information.complete().dependent_typeids().emplace_back(std::move(dependency)); + } + type_dependencies.clear(); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Error retrieving complete type dependenciest."); + } + + if (TK_NONE != type_ids.type_identifier2()._d()) + { + if (RETCODE_OK == get_type_dependencies_impl({type_ids.type_identifier2()}, + type_dependencies)) + { + type_information.minimal().dependent_typeid_count(static_cast(type_dependencies.size())); + for (auto& dependency : type_dependencies) + { + type_information.minimal().dependent_typeids().emplace_back(std::move(dependency)); + } + type_dependencies.clear(); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Error retrieving minimal type dependenciest."); + } + } + else + { + type_information.minimal().dependent_typeid_count(NO_DEPENDENCIES); + } } - if (EK_COMPLETE == type_ids.type_identifier1()._d()) + else { - type_information.complete().typeid_with_size().type_id(type_ids.type_identifier1()); type_information.complete().dependent_typeid_count(NO_DEPENDENCIES); - type_information.minimal().typeid_with_size().type_id(type_ids.type_identifier2()); type_information.minimal().dependent_typeid_count(NO_DEPENDENCIES); + } - std::lock_guard data_guard(type_object_registry_mutex_); - type_information.complete().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( - type_ids.type_identifier1()).type_object_serialized_size_); + std::lock_guard data_guard(type_object_registry_mutex_); + type_information.complete().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( + type_ids.type_identifier1()).type_object_serialized_size); + if (TK_NONE != type_ids.type_identifier2()._d()) + { type_information.minimal().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( - type_ids.type_identifier2()).type_object_serialized_size_); + type_ids.type_identifier2()).type_object_serialized_size); + } + } + else + { + type_information.minimal().typeid_with_size().type_id(type_ids.type_identifier1()); + type_information.complete().typeid_with_size().type_id(type_ids.type_identifier2()); + + if (with_dependencies) + { + std::unordered_set type_dependencies; + if (RETCODE_OK == get_type_dependencies_impl({type_ids.type_identifier1()}, + type_dependencies)) + { + type_information.minimal().dependent_typeid_count(static_cast(type_dependencies.size())); + for (auto& dependency : type_dependencies) + { + type_information.minimal().dependent_typeids().emplace_back(std::move(dependency)); + } + type_dependencies.clear(); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Error retrieving minimal type dependenciest."); + } + + if (TK_NONE != type_ids.type_identifier2()._d()) + { + if (RETCODE_OK == get_type_dependencies_impl({type_ids.type_identifier2()}, + type_dependencies)) + { + type_information.complete().dependent_typeid_count(static_cast(type_dependencies.size())); + for (auto& dependency : type_dependencies) + { + type_information.complete().dependent_typeids().emplace_back(std::move(dependency)); + } + type_dependencies.clear(); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Error retrieving complete type dependenciest."); + } + } + else + { + type_information.minimal().dependent_typeid_count(NO_DEPENDENCIES); + } } else { - type_information.minimal().typeid_with_size().type_id(type_ids.type_identifier1()); type_information.minimal().dependent_typeid_count(NO_DEPENDENCIES); - type_information.complete().typeid_with_size().type_id(type_ids.type_identifier2()); type_information.complete().dependent_typeid_count(NO_DEPENDENCIES); + } - std::lock_guard data_guard(type_object_registry_mutex_); - type_information.minimal().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( - type_ids.type_identifier1()).type_object_serialized_size_); + std::lock_guard data_guard(type_object_registry_mutex_); + type_information.minimal().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( + type_ids.type_identifier1()).type_object_serialized_size); + if (TK_NONE != type_ids.type_identifier2()._d()) + { type_information.complete().typeid_with_size().typeobject_serialized_size(type_registry_entries_.at( - type_ids.type_identifier2()).type_object_serialized_size_); + type_ids.type_identifier2()).type_object_serialized_size); } } - return ret_code; + return RETCODE_OK; } ReturnCode_t TypeObjectRegistry::get_type_dependencies( @@ -378,7 +490,7 @@ bool TypeObjectRegistry::is_type_identifier_known( if (it != type_registry_entries_.end()) { // Check typeobject_serialized_size is the same - if (it->second.type_object_serialized_size_ == type_identifier_with_size.typeobject_serialized_size()) + if (it->second.type_object_serialized_size == type_identifier_with_size.typeobject_serialized_size()) { return true; } @@ -449,31 +561,71 @@ TypeObjectRegistry::TypeObjectRegistry() } ReturnCode_t TypeObjectRegistry::register_type_object( - const TypeIdentifier& type_identifier, - const TypeObject& type_object) + const TypeObject& type_object, + TypeIdentifierPair& type_ids, + bool build_minimal) { uint32_t type_object_serialized_size {0}; - if (type_identifier._d() != type_object._d() || - type_identifier != calculate_type_identifier(type_object, type_object_serialized_size)) + TypeIdentifier type_identifier {calculate_type_identifier(type_object, type_object_serialized_size)}; + + if (TK_NONE == type_ids.type_identifier1()._d()) + { + if (build_minimal && EK_COMPLETE == type_object._d()) + { + type_ids.type_identifier2(type_identifier); + } + else + { + type_ids.type_identifier1(type_identifier); + } + } + else if (type_ids.type_identifier1()._d() != type_object._d() || + type_identifier != type_ids.type_identifier1()) { return eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET; } - if (EK_COMPLETE == type_object._d()) + else if (build_minimal && EK_COMPLETE == type_object._d()) + { + type_ids.type_identifier2(type_identifier); + } + + TypeRegistryEntry complete_entry; + + if (build_minimal && EK_COMPLETE == type_object._d()) { - TypeRegistryEntry entry; - entry.type_object_ = build_minimal_from_complete_type_object(type_object.complete()); - TypeIdentifier minimal_type_id {calculate_type_identifier(entry.type_object_, - entry.type_object_serialized_size_)}; + TypeRegistryEntry minimal_entry; + minimal_entry.type_object = build_minimal_from_complete_type_object(type_object.complete()); + type_ids.type_identifier1(calculate_type_identifier(minimal_entry.type_object, + minimal_entry.type_object_serialized_size)); + minimal_entry.complementary_type_id = type_ids.type_identifier2(); + complete_entry.complementary_type_id = type_ids.type_identifier1(); std::lock_guard data_guard(type_object_registry_mutex_); - type_registry_entries_.insert({minimal_type_id, entry}); + type_registry_entries_.insert({type_ids.type_identifier1(), minimal_entry}); } - TypeRegistryEntry entry; - entry.type_object_ = type_object; - entry.type_object_serialized_size_ = type_object_serialized_size; + + complete_entry.type_object = type_object; + complete_entry.type_object_serialized_size = type_object_serialized_size; std::lock_guard data_guard(type_object_registry_mutex_); - type_registry_entries_.insert({type_identifier, entry}); + if (!type_registry_entries_.insert({type_identifier, complete_entry}).second) + { + if (build_minimal && EK_COMPLETE == type_object._d()) + { + auto it = type_registry_entries_.find(type_identifier); + assert(type_registry_entries_.end() != it); + + if (TK_NONE == it->second.complementary_type_id._d()) + { + it->second.complementary_type_id = type_ids.type_identifier1(); + } + else if (type_ids.type_identifier1() != it->second.complementary_type_id) + { + EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, + "Registering an already registered complete type object but with different minimal type identifier"); + } + } + } return eprosima::fastdds::dds::RETCODE_OK; } @@ -705,23 +857,13 @@ ReturnCode_t TypeObjectRegistry::get_dependencies_from_type_object( const TypeIdentifier TypeObjectRegistry::get_complementary_type_identifier( const TypeIdentifier& type_id) { - std::lock_guard data_guard(type_object_registry_mutex_); - for (const auto& it : local_type_identifiers_) + if (TypeObjectUtils::is_direct_hash_type_identifier(type_id)) { - if (it.second.type_identifier1() == type_id) - { - if (TK_NONE != it.second.type_identifier2()._d()) - { - return it.second.type_identifier2(); - } - else - { - return it.second.type_identifier1(); - } - } - else if (it.second.type_identifier2() == type_id) + std::lock_guard data_guard(type_object_registry_mutex_); + auto it = type_registry_entries_.find(type_id); + if (type_registry_entries_.end() != it) { - return it.second.type_identifier1(); + return it->second.complementary_type_id; } } return type_id; @@ -789,7 +931,7 @@ void TypeObjectRegistry::add_dependency( type_id_size.type_id(type_id); { std::lock_guard data_guard(type_object_registry_mutex_); - type_id_size.typeobject_serialized_size(type_registry_entries_.at(type_id).type_object_serialized_size_); + type_id_size.typeobject_serialized_size(type_registry_entries_.at(type_id).type_object_serialized_size); } type_dependencies.insert(type_id_size); } @@ -1148,56 +1290,145 @@ void TypeObjectRegistry::register_primitive_type_identifiers() const TypeIdentifier TypeObjectRegistry::minimal_from_complete_type_identifier( const TypeIdentifier& type_id) { - if (EK_COMPLETE == type_id._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_id._d() && type_id.seq_sdefn().header().equiv_kind() == EK_COMPLETE) || - (TI_PLAIN_SEQUENCE_LARGE == type_id._d() && type_id.seq_ldefn().header().equiv_kind() == EK_COMPLETE) || - (TI_PLAIN_ARRAY_SMALL == type_id._d() && type_id.array_sdefn().header().equiv_kind() == EK_COMPLETE) || - (TI_PLAIN_ARRAY_LARGE == type_id._d() && type_id.array_ldefn().header().equiv_kind() == EK_COMPLETE) || - (TI_PLAIN_MAP_SMALL == type_id._d() && (type_id.map_sdefn().header().equiv_kind() == EK_COMPLETE || - type_id.map_sdefn().key_identifier()->_d() == EK_COMPLETE)) || - (TI_PLAIN_MAP_LARGE == type_id._d() && (type_id.map_ldefn().header().equiv_kind() == EK_COMPLETE || - type_id.map_ldefn().key_identifier()->_d() == EK_COMPLETE))) + switch (type_id._d()) { - std::lock_guard data_guard(type_object_registry_mutex_); - for (const auto& it : local_type_identifiers_) + case EK_COMPLETE: { - if (it.second.type_identifier1() == type_id) + std::lock_guard data_guard(type_object_registry_mutex_); + auto it = type_registry_entries_.find(type_id); + if (type_registry_entries_.end() != it) { - return it.second.type_identifier2(); + return it->second.complementary_type_id; } - else if (it.second.type_identifier2() == type_id) + } + break; + case TI_PLAIN_SEQUENCE_SMALL: + if (type_id.seq_sdefn().header().equiv_kind() == EK_COMPLETE) { - return it.second.type_identifier1(); + TypeIdentifier ret_type_id; + ret_type_id = type_id; + ret_type_id.seq_sdefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.seq_sdefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.seq_sdefn().element_identifier()))); + return ret_type_id; } - } + break; + case TI_PLAIN_SEQUENCE_LARGE: + if (type_id.seq_ldefn().header().equiv_kind() == EK_COMPLETE) + { + TypeIdentifier ret_type_id; + ret_type_id = type_id; + ret_type_id.seq_ldefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.seq_ldefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.seq_ldefn().element_identifier()))); + return ret_type_id; + } + break; + case TI_PLAIN_ARRAY_SMALL: + if (type_id.array_sdefn().header().equiv_kind() == EK_COMPLETE) + { + TypeIdentifier ret_type_id; + ret_type_id = type_id; + ret_type_id.array_sdefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.array_sdefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.array_sdefn().element_identifier()))); + return ret_type_id; + } + break; + case TI_PLAIN_ARRAY_LARGE: + if (type_id.array_ldefn().header().equiv_kind() == EK_COMPLETE) + { + TypeIdentifier ret_type_id; + ret_type_id = type_id; + ret_type_id.array_ldefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.array_ldefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.array_ldefn().element_identifier()))); + return ret_type_id; + } + break; + case TI_PLAIN_MAP_SMALL: + if (type_id.map_sdefn().header().equiv_kind() == EK_COMPLETE || + type_id.map_sdefn().key_identifier()->_d() == EK_COMPLETE) + { + TypeIdentifier ret_type_id; + ret_type_id = type_id; + + if (type_id.map_sdefn().header().equiv_kind() == EK_COMPLETE) + { + ret_type_id.map_sdefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.map_sdefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.map_sdefn().element_identifier()))); + } + if (type_id.map_sdefn().key_identifier()->_d() == EK_COMPLETE) + { + ret_type_id.map_sdefn().key_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.map_sdefn().key_identifier()))); + } + return ret_type_id; + } + break; + case TI_PLAIN_MAP_LARGE: + if (type_id.map_ldefn().header().equiv_kind() == EK_COMPLETE || + type_id.map_ldefn().key_identifier()->_d() == EK_COMPLETE) + { + TypeIdentifier ret_type_id; + ret_type_id = type_id; + + if (type_id.map_ldefn().header().equiv_kind() == EK_COMPLETE) + { + ret_type_id.map_ldefn().header().equiv_kind(EK_MINIMAL); + ret_type_id.map_ldefn().element_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.map_ldefn().element_identifier()))); + } + if (type_id.map_ldefn().key_identifier()->_d() == EK_COMPLETE) + { + ret_type_id.map_ldefn().key_identifier(new TypeIdentifier( + get_complementary_type_identifier( + *type_id.map_ldefn().key_identifier()))); + } + return ret_type_id; + } + break; + default: + break; } + return type_id; } ReturnCode_t TypeObjectRegistry::register_typeobject_w_dynamic_type( const DynamicType::_ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {eprosima::fastdds::dds::RETCODE_OK}; traits::ref_type dynamic_type_impl {traits::narrow(dynamic_type)}; - ExtendedTypeDefn reset_type_id; + type_ids.type_identifier1().extended_defn(reset_type_id); + type_ids.type_identifier2().extended_defn(reset_type_id); + switch (dynamic_type_impl->get_kind()) { case eprosima::fastdds::dds::TK_ALIAS: - ret_code = register_typeobject_w_alias_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_alias_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_ANNOTATION: - ret_code = register_typeobject_w_annotation_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_annotation_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_STRUCTURE: - ret_code = register_typeobject_w_struct_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_struct_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_UNION: - ret_code = register_typeobject_w_union_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_union_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_BITSET: - ret_code = register_typeobject_w_bitset_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_bitset_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_SEQUENCE: { @@ -1205,11 +1436,11 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_dynamic_type( if (0 == dynamic_type_impl->get_annotation_count() && 0 == dynamic_type_impl->get_verbatim_text_count() && 0 == type_descriptor.element_type()->get_annotation_count()) { - ret_code = typeidentifier_w_sequence_dynamic_type(dynamic_type_impl, type_id); + ret_code = typeidentifier_w_sequence_dynamic_type(dynamic_type_impl, type_ids); } else { - ret_code = register_typeobject_w_sequence_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_sequence_dynamic_type(dynamic_type_impl, type_ids); } break; } @@ -1219,11 +1450,11 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_dynamic_type( if (0 == dynamic_type_impl->get_annotation_count() && 0 == dynamic_type_impl->get_verbatim_text_count() && 0 == type_descriptor.element_type()->get_annotation_count()) { - ret_code = typeidentifier_w_array_dynamic_type(dynamic_type_impl, type_id); + ret_code = typeidentifier_w_array_dynamic_type(dynamic_type_impl, type_ids.type_identifier1()); } else { - ret_code = register_typeobject_w_array_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_array_dynamic_type(dynamic_type_impl, type_ids); } break; } @@ -1234,85 +1465,70 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_dynamic_type( 0 == type_descriptor.element_type()->get_annotation_count() && 0 == type_descriptor.key_element_type()->get_annotation_count()) { - ret_code = typeidentifier_w_map_dynamic_type(dynamic_type_impl, type_id); + ret_code = typeidentifier_w_map_dynamic_type(dynamic_type_impl, type_ids.type_identifier1()); } else { - ret_code = register_typeobject_w_map_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_map_dynamic_type(dynamic_type_impl, type_ids); } break; } case eprosima::fastdds::dds::TK_ENUM: - ret_code = register_typeobject_w_enum_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_enum_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_BITMASK: - ret_code = register_typeobject_w_bitmask_dynamic_type(dynamic_type_impl, type_id); + ret_code = register_typeobject_w_bitmask_dynamic_type(dynamic_type_impl, type_ids); break; case eprosima::fastdds::dds::TK_BOOLEAN: - type_id.extended_defn(reset_type_id); - type_id._d(TK_BOOLEAN); + type_ids.type_identifier1()._d(TK_BOOLEAN); break; case eprosima::fastdds::dds::TK_BYTE: - type_id.extended_defn(reset_type_id); - type_id._d(TK_BYTE); + type_ids.type_identifier1()._d(TK_BYTE); break; case eprosima::fastdds::dds::TK_INT16: - type_id.extended_defn(reset_type_id); - type_id._d(TK_INT16); + type_ids.type_identifier1()._d(TK_INT16); break; case eprosima::fastdds::dds::TK_INT32: - type_id.extended_defn(reset_type_id); - type_id._d(TK_INT32); + type_ids.type_identifier1()._d(TK_INT32); break; case eprosima::fastdds::dds::TK_INT64: - type_id.extended_defn(reset_type_id); - type_id._d(TK_INT64); + type_ids.type_identifier1()._d(TK_INT64); break; case eprosima::fastdds::dds::TK_UINT16: - type_id.extended_defn(reset_type_id); - type_id._d(TK_UINT16); + type_ids.type_identifier1()._d(TK_UINT16); break; case eprosima::fastdds::dds::TK_UINT32: - type_id.extended_defn(reset_type_id); - type_id._d(TK_UINT32); + type_ids.type_identifier1()._d(TK_UINT32); break; case eprosima::fastdds::dds::TK_UINT64: - type_id.extended_defn(reset_type_id); - type_id._d(TK_UINT64); + type_ids.type_identifier1()._d(TK_UINT64); break; case eprosima::fastdds::dds::TK_FLOAT32: - type_id.extended_defn(reset_type_id); - type_id._d(TK_FLOAT32); + type_ids.type_identifier1()._d(TK_FLOAT32); break; case eprosima::fastdds::dds::TK_FLOAT64: - type_id.extended_defn(reset_type_id); - type_id._d(TK_FLOAT64); + type_ids.type_identifier1()._d(TK_FLOAT64); break; case eprosima::fastdds::dds::TK_FLOAT128: - type_id.extended_defn(reset_type_id); - type_id._d(TK_FLOAT128); + type_ids.type_identifier1()._d(TK_FLOAT128); break; case eprosima::fastdds::dds::TK_INT8: - type_id.extended_defn(reset_type_id); - type_id._d(TK_INT8); + type_ids.type_identifier1()._d(TK_INT8); break; case eprosima::fastdds::dds::TK_UINT8: - type_id.extended_defn(reset_type_id); - type_id._d(TK_UINT8); + type_ids.type_identifier1()._d(TK_UINT8); break; case eprosima::fastdds::dds::TK_CHAR8: - type_id.extended_defn(reset_type_id); - type_id._d(TK_CHAR8); + type_ids.type_identifier1()._d(TK_CHAR8); break; case eprosima::fastdds::dds::TK_CHAR16: - type_id.extended_defn(reset_type_id); - type_id._d(TK_CHAR16); + type_ids.type_identifier1()._d(TK_CHAR16); break; case eprosima::fastdds::dds::TK_STRING8: - typeidentifier_w_string_dynamic_type(dynamic_type_impl, type_id); + typeidentifier_w_string_dynamic_type(dynamic_type_impl, type_ids.type_identifier1()); break; case eprosima::fastdds::dds::TK_STRING16: - typeidentifier_w_wstring_dynamic_type(dynamic_type_impl, type_id); + typeidentifier_w_wstring_dynamic_type(dynamic_type_impl, type_ids.type_identifier1()); break; // DynamicType consistency is ensure by DynamicTypeBuilder. } @@ -1325,7 +1541,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_alias_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1335,10 +1551,13 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_alias_dynamic_type( const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; - TypeIdentifier alias_type_id; - register_typeobject_w_dynamic_type(type_descriptor.base_type(), alias_type_id); + TypeIdentifierPair alias_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.base_type(), alias_type_ids); - CommonAliasBody common {TypeObjectUtils::build_common_alias_body(0, alias_type_id)}; + bool ec {false}; + CommonAliasBody common {TypeObjectUtils::build_common_alias_body(0, TypeObjectUtils::retrieve_complete_type_identifier( + alias_type_ids, + ec))}; CompleteAliasBody body {TypeObjectUtils::build_complete_alias_body(common, eprosima::fastcdr::optional(), eprosima::fastcdr::optional())}; @@ -1347,9 +1566,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_alias_dynamic_type( complete_typeobject.alias_type(alias_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1357,7 +1574,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_alias_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_annotation_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1368,9 +1585,12 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_annotation_dynamic_type( for (auto& member : parameters) { MemberDescriptorImpl& member_descriptor {member->get_descriptor()}; - TypeIdentifier parameter_type_id; - register_typeobject_w_dynamic_type(member_descriptor.type(), parameter_type_id); - CommonAnnotationParameter common {TypeObjectUtils::build_common_annotation_parameter(0, parameter_type_id)}; + TypeIdentifierPair parameter_type_ids; + register_typeobject_w_dynamic_type(member_descriptor.type(), parameter_type_ids); + bool ec {false}; + CommonAnnotationParameter common {TypeObjectUtils::build_common_annotation_parameter(0, TypeObjectUtils::retrieve_complete_type_identifier( + parameter_type_ids, + ec))}; AnnotationParameterValue default_value; set_annotation_parameter_value(member_descriptor.type(), member_descriptor.default_value(), @@ -1386,9 +1606,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_annotation_dynamic_type( complete_typeobject.annotation_type(annotation_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1396,28 +1614,29 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_annotation_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_struct_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; StructTypeFlag struct_flags {TypeObjectUtils::build_struct_type_flag( - type_descriptor.is_extensibility_set() ? - extensibility_kind( - type_descriptor.extensibility_kind()) : ExtensibilityKind::NOT_APPLIED, + extensibility_kind(type_descriptor.extensibility_kind()), type_descriptor.is_nested(), false)}; CompleteTypeDetail detail; complete_type_detail(dynamic_type, detail); - TypeIdentifier base_type_id; + TypeIdentifierPair base_type_ids; if (type_descriptor.base_type()) { - register_typeobject_w_dynamic_type(type_descriptor.base_type(), base_type_id); + register_typeobject_w_dynamic_type(type_descriptor.base_type(), base_type_ids); } - CompleteStructHeader header {TypeObjectUtils::build_complete_struct_header(base_type_id, detail)}; + bool ec {false}; + CompleteStructHeader header {TypeObjectUtils::build_complete_struct_header(TypeObjectUtils::retrieve_complete_type_identifier( + base_type_ids, + ec), detail)}; auto& struct_members {dynamic_type->get_all_members_by_index()}; CompleteStructMemberSeq member_seq; @@ -1427,17 +1646,17 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_struct_dynamic_type( { MemberDescriptorImpl& member_descriptor {(*member)->get_descriptor()}; StructMemberFlag member_flags = TypeObjectUtils::build_struct_member_flag( - member_descriptor.is_try_construct_kind_set() ? - try_construct_kind(member_descriptor.try_construct_kind()) : TryConstructKind::NOT_APPLIED, + try_construct_kind(member_descriptor.try_construct_kind()), member_descriptor.is_optional(), member_descriptor.is_must_understand(), member_descriptor.is_key(), member_descriptor.is_shared()); - TypeIdentifier member_type_id; - register_typeobject_w_dynamic_type(member_descriptor.type(), member_type_id); + TypeIdentifierPair member_type_ids; + register_typeobject_w_dynamic_type(member_descriptor.type(), member_type_ids); CommonStructMember common {TypeObjectUtils::build_common_struct_member(member_descriptor.id(), - member_flags, member_type_id)}; + member_flags, + TypeObjectUtils::retrieve_complete_type_identifier(member_type_ids, ec))}; CompleteMemberDetail member_detail; - complete_member_detail(member_descriptor, member_detail); + complete_member_detail(*member, member_detail); CompleteStructMember struct_member {TypeObjectUtils::build_complete_struct_member(common, member_detail)}; TypeObjectUtils::add_complete_struct_member(member_seq, struct_member); } @@ -1447,9 +1666,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_struct_dynamic_type( complete_typeobject.struct_type(struct_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1457,16 +1674,14 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_struct_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_union_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; UnionTypeFlag union_flags {TypeObjectUtils::build_union_type_flag( - type_descriptor.is_extensibility_set() ? - extensibility_kind( - type_descriptor.extensibility_kind()) : ExtensibilityKind::NOT_APPLIED, + extensibility_kind(type_descriptor.extensibility_kind()), type_descriptor.is_nested(), false)}; CompleteTypeDetail detail; @@ -1475,16 +1690,20 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_union_dynamic_type( // Union discriminator is described using a TypeDescriptor and not a MemberDescriptor (!) UnionDiscriminatorFlag discriminator_flags {TypeObjectUtils::build_union_discriminator_flag( - TryConstructKind::NOT_APPLIED, false)}; - TypeIdentifier discriminator_type_id; - register_typeobject_w_dynamic_type(type_descriptor.discriminator_type(), discriminator_type_id); + TryConstructFailAction::DISCARD, false)}; + TypeIdentifierPair discriminator_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.discriminator_type(), discriminator_type_ids); + bool ec {false}; CommonDiscriminatorMember common_discriminator {TypeObjectUtils::build_common_discriminator_member( - discriminator_flags, discriminator_type_id)}; + discriminator_flags, TypeObjectUtils::retrieve_complete_type_identifier( + discriminator_type_ids, + ec))}; eprosima::fastcdr::optional ann_builtin; apply_verbatim_annotation(type_descriptor.discriminator_type(), ann_builtin); eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(type_descriptor.discriminator_type(), ann_custom); + apply_custom_annotations(traits::narrow( + type_descriptor.discriminator_type())->get_annotations(), ann_custom); CompleteDiscriminatorMember discriminator {TypeObjectUtils::build_complete_discriminator_member( common_discriminator, ann_builtin, ann_custom)}; @@ -1497,22 +1716,22 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_union_dynamic_type( { MemberDescriptorImpl& member_descriptor {member->get_descriptor()}; UnionMemberFlag member_flags {TypeObjectUtils::build_union_member_flag( - member_descriptor.is_try_construct_kind_set() ? try_construct_kind( - member_descriptor.try_construct_kind()) : - TryConstructKind::NOT_APPLIED, member_descriptor.is_default_label(), + try_construct_kind(member_descriptor.try_construct_kind()), + member_descriptor.is_default_label(), member_descriptor.is_shared())}; - TypeIdentifier member_type_id; - register_typeobject_w_dynamic_type(member_descriptor.type(), member_type_id); + TypeIdentifierPair member_type_ids; + register_typeobject_w_dynamic_type(member_descriptor.type(), member_type_ids); UnionCaseLabelSeq labels; for (int32_t label : member_descriptor.label()) { TypeObjectUtils::add_union_case_label(labels, label); } CommonUnionMember common {TypeObjectUtils::build_common_union_member(member_descriptor.id(), member_flags, - member_type_id, labels)}; + TypeObjectUtils::retrieve_complete_type_identifier(member_type_ids, + ec), labels)}; CompleteMemberDetail member_detail; - complete_member_detail(member_descriptor, member_detail); + complete_member_detail(member, member_detail); CompleteUnionMember union_member {TypeObjectUtils::build_complete_union_member(common, member_detail)}; TypeObjectUtils::add_complete_union_member(member_seq, union_member); } @@ -1524,9 +1743,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_union_dynamic_type( complete_typeobject.union_type(union_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1534,7 +1751,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_union_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitset_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1553,7 +1770,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitset_dynamic_type( static_cast(type_descriptor.bound().at(member_descriptor.index())), type_kind(member_descriptor.type()->get_kind()))}; CompleteMemberDetail member_detail; - complete_member_detail(member_descriptor, member_detail); + complete_member_detail(bitfield, member_detail); CompleteBitfield bitfield_member {TypeObjectUtils::build_complete_bitfield(common, member_detail)}; TypeObjectUtils::add_complete_bitfield(field_seq, bitfield_member); } @@ -1563,9 +1780,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitset_dynamic_type( complete_typeobject.bitset_type(bitset_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1573,7 +1788,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitset_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_sequence_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1588,13 +1803,17 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_sequence_dynamic_type( CompleteCollectionHeader header {TypeObjectUtils::build_complete_collection_header(common, detail)}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); // CollectionElementFlags are not applicable (!) - CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, element_type_id)}; + bool ec {false}; + CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, TypeObjectUtils::retrieve_complete_type_identifier( + element_type_ids, + ec))}; eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(type_descriptor.element_type(), ann_custom); + apply_custom_annotations(traits::narrow( + type_descriptor.element_type())->get_annotations(), ann_custom); CompleteElementDetail detail_element {TypeObjectUtils::build_complete_element_detail( eprosima::fastcdr::optional(), @@ -1606,9 +1825,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_sequence_dynamic_type( complete_typeobject.sequence_type(sequence_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1616,7 +1833,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_sequence_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_array_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1629,13 +1846,17 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_array_dynamic_type( CompleteArrayHeader header {TypeObjectUtils::build_complete_array_header(common, detail)}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); // CollectionElementFlags are not applicable (!) - CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, element_type_id)}; + bool ec {false}; + CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, TypeObjectUtils::retrieve_complete_type_identifier( + element_type_ids, + ec))}; eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(type_descriptor.element_type(), ann_custom); + apply_custom_annotations(traits::narrow( + type_descriptor.element_type())->get_annotations(), ann_custom); CompleteElementDetail detail_element {TypeObjectUtils::build_complete_element_detail( eprosima::fastcdr::optional(), ann_custom)}; @@ -1646,9 +1867,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_array_dynamic_type( complete_typeobject.array_type(array_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1656,7 +1875,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_array_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_map_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1671,24 +1890,31 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_map_dynamic_type( CompleteCollectionHeader header {TypeObjectUtils::build_complete_collection_header(common, detail)}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); // CollectionElementFlags are not applicable (!) - CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, element_type_id)}; + bool ec {false}; + CommonCollectionElement common_element {TypeObjectUtils::build_common_collection_element(0, TypeObjectUtils::retrieve_complete_type_identifier( + element_type_ids, + ec))}; eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(type_descriptor.element_type(), ann_custom); + apply_custom_annotations(traits::narrow( + type_descriptor.element_type())->get_annotations(), ann_custom); CompleteElementDetail detail_element {TypeObjectUtils::build_complete_element_detail( eprosima::fastcdr::optional(), ann_custom)}; CompleteCollectionElement element {TypeObjectUtils::build_complete_collection_element(common_element, detail_element)}; - TypeIdentifier key_type_id; - register_typeobject_w_dynamic_type(type_descriptor.key_element_type(), key_type_id); - CommonCollectionElement common_key {TypeObjectUtils::build_common_collection_element(0, key_type_id)}; + TypeIdentifierPair key_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.key_element_type(), key_type_ids); + CommonCollectionElement common_key {TypeObjectUtils::build_common_collection_element(0, TypeObjectUtils::retrieve_complete_type_identifier( + key_type_ids, + ec))}; eprosima::fastcdr::optional ann_custom_key; - apply_custom_annotations(type_descriptor.key_element_type(), ann_custom_key); + apply_custom_annotations(traits::narrow( + type_descriptor.key_element_type())->get_annotations(), ann_custom_key); CompleteElementDetail detail_key {TypeObjectUtils::build_complete_element_detail( eprosima::fastcdr::optional(), ann_custom_key)}; @@ -1699,9 +1925,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_map_dynamic_type( complete_typeobject.map_type(map_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1709,7 +1933,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_map_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_enum_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1748,7 +1972,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_enum_dynamic_type( CommonEnumeratedLiteral common_literal {TypeObjectUtils::build_common_enumerated_literal( member_descriptor.index(), flags)}; CompleteMemberDetail member_detail; - complete_member_detail(member_descriptor, member_detail); + complete_member_detail(literal, member_detail); CompleteEnumeratedLiteral literal_member {TypeObjectUtils::build_complete_enumerated_literal(common_literal, member_detail)}; TypeObjectUtils::add_complete_enumerated_literal(literal_seq, literal_member); @@ -1759,9 +1983,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_enum_dynamic_type( complete_typeobject.enumerated_type(enumerated_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1769,7 +1991,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_enum_dynamic_type( ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitmask_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; @@ -1789,7 +2011,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitmask_dynamic_type( CommonBitflag common_bitflag {TypeObjectUtils::build_common_bitflag( static_cast(member_descriptor.id()), 0)}; CompleteMemberDetail member_detail; - complete_member_detail(member_descriptor, member_detail); + complete_member_detail(bitflag, member_detail); CompleteBitflag bitflag_member {TypeObjectUtils::build_complete_bitflag(common_bitflag, member_detail)}; TypeObjectUtils::add_complete_bitflag(flag_seq, bitflag_member); } @@ -1798,9 +2020,7 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitmask_dynamic_type( complete_typeobject.bitmask_type(bitmask_type); TypeObject typeobject; typeobject.complete(complete_typeobject); - uint32_t dummy; - type_id = calculate_type_identifier(typeobject, dummy); - ret_code = register_type_object(type_id, typeobject); + ret_code = register_type_object(typeobject, type_ids, true); assert(RETCODE_OK == ret_code); return ret_code; @@ -1808,16 +2028,23 @@ ReturnCode_t TypeObjectRegistry::register_typeobject_w_bitmask_dynamic_type( ReturnCode_t TypeObjectRegistry::typeidentifier_w_sequence_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { ReturnCode_t ret_code {RETCODE_OK}; const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); + bool ec {false}; + const TypeIdentifier& element_type_id { + TK_NONE == element_type_ids.type_identifier2()._d() ? + element_type_ids.type_identifier1() : + TypeObjectUtils::retrieve_complete_type_identifier(element_type_ids, ec)}; EquivalenceKind equiv_kind {equivalence_kind(element_type_id)}; + assert((TK_NONE == element_type_ids.type_identifier2()._d() && EK_BOTH == equiv_kind) || EK_COMPLETE == equiv_kind); + // CollectionElementFlags cannot be applied because element_type is a DynamicType and the applicable annotations are // contained in MemberDescriptor (accessible through DynamicTypeMember). XTypes inconsistency (!) PlainCollectionHeader header {TypeObjectUtils::build_plain_collection_header(equiv_kind, 0)}; @@ -1831,13 +2058,48 @@ ReturnCode_t TypeObjectRegistry::typeidentifier_w_sequence_dynamic_type( 0 : static_cast(type_descriptor.bound().front()); PlainSequenceSElemDefn seq_defn {TypeObjectUtils::build_plain_sequence_s_elem_defn(header, bound, external_element_type_id)}; - type_id.seq_sdefn(seq_defn); + type_ids.type_identifier1().seq_sdefn(seq_defn); } else { PlainSequenceLElemDefn seq_defn {TypeObjectUtils::build_plain_sequence_l_elem_defn(header, type_descriptor.bound().front(), external_element_type_id)}; - type_id.seq_ldefn(seq_defn); + type_ids.type_identifier1().seq_ldefn(seq_defn); + } + + if (EK_BOTH != equiv_kind) + { + const TypeIdentifier& element_type_id_minimal {TypeObjectUtils::retrieve_minimal_type_identifier( + element_type_ids, ec)}; + EquivalenceKind equiv_kind_minimal {equivalence_kind(element_type_id_minimal)}; + + // CollectionElementFlags cannot be applied because element_type is a DynamicType and the applicable annotations are + // contained in MemberDescriptor (accessible through DynamicTypeMember). XTypes inconsistency (!) + PlainCollectionHeader header_minimal {TypeObjectUtils::build_plain_collection_header(equiv_kind_minimal, 0)}; + + eprosima::fastcdr::external external_element_type_id_minimal = + eprosima::fastcdr::external(new TypeIdentifier(element_type_id_minimal)); + if ((static_cast(LENGTH_UNLIMITED) == type_descriptor.bound().front()) || + 256 > type_descriptor.bound().front()) + { + SBound bound = (static_cast(LENGTH_UNLIMITED) == type_descriptor.bound().front()) ? + 0 : static_cast(type_descriptor.bound().front()); + PlainSequenceSElemDefn seq_defn {TypeObjectUtils::build_plain_sequence_s_elem_defn(header_minimal, bound, + external_element_type_id_minimal)}; + type_ids.type_identifier2().seq_sdefn(seq_defn); + } + else + { + PlainSequenceLElemDefn seq_defn {TypeObjectUtils::build_plain_sequence_l_elem_defn(header_minimal, + type_descriptor.bound().front(), + external_element_type_id_minimal)}; + type_ids.type_identifier2().seq_ldefn(seq_defn); + } + } + else + { + ExtendedTypeDefn reset_type_id; + type_ids.type_identifier2().extended_defn(reset_type_id); } return ret_code; @@ -1851,9 +2113,11 @@ ReturnCode_t TypeObjectRegistry::typeidentifier_w_array_dynamic_type( const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); + bool ec {false}; + const TypeIdentifier& element_type_id {TypeObjectUtils::retrieve_complete_type_identifier(element_type_ids, ec)}; EquivalenceKind equiv_kind {equivalence_kind(element_type_id)}; PlainCollectionHeader header {TypeObjectUtils::build_plain_collection_header(equiv_kind, 0)}; @@ -1897,11 +2161,14 @@ ReturnCode_t TypeObjectRegistry::typeidentifier_w_map_dynamic_type( const TypeDescriptorImpl& type_descriptor {dynamic_type->get_descriptor()}; - TypeIdentifier element_type_id; - register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_id); - TypeIdentifier key_type_id; - register_typeobject_w_dynamic_type(type_descriptor.key_element_type(), key_type_id); + TypeIdentifierPair element_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.element_type(), element_type_ids); + TypeIdentifierPair key_type_ids; + register_typeobject_w_dynamic_type(type_descriptor.key_element_type(), key_type_ids); + bool ec {false}; + const TypeIdentifier& element_type_id {TypeObjectUtils::retrieve_complete_type_identifier(element_type_ids, ec)}; + const TypeIdentifier& key_type_id {TypeObjectUtils::retrieve_complete_type_identifier(key_type_ids, ec)}; EquivalenceKind equiv_kind {equivalence_kind(element_type_id, key_type_id)}; PlainCollectionHeader header {TypeObjectUtils::build_plain_collection_header(equiv_kind, 0)}; eprosima::fastcdr::external external_element_type_id = @@ -1973,52 +2240,49 @@ ReturnCode_t TypeObjectRegistry::typeidentifier_w_wstring_dynamic_type( } ReturnCode_t TypeObjectRegistry::apply_custom_annotations( - const DynamicType::_ref_type& dynamic_type, + const std::vector& annotations, eprosima::fastcdr::optional& ann_custom) { ReturnCode_t ret_code {RETCODE_OK}; AppliedAnnotationSeq tmp_ann_custom; - if (0 != dynamic_type->get_annotation_count()) + for (auto& annotation_descriptor : annotations) { - AnnotationDescriptor::_ref_type annotation_descriptor {traits::make_shared()}; - for (uint32_t i {0}; i < dynamic_type->get_annotation_count(); ++i) - { - dynamic_type->get_annotation(annotation_descriptor, i); + TypeIdentifierPair annotation_typeids; + register_typeobject_w_annotation_dynamic_type(traits::narrow( + annotation_descriptor.type()), annotation_typeids); - TypeIdentifier annotation_typeid; - register_typeobject_w_annotation_dynamic_type(traits::narrow( - annotation_descriptor->type()), annotation_typeid); + Parameters parameter_seq; + annotation_descriptor.get_all_value(parameter_seq); // Always returns RETCODE_OK - Parameters parameter_seq; - annotation_descriptor->get_all_value(parameter_seq); // Always returns RETCODE_OK - - eprosima::fastcdr::optional param_seq; - AppliedAnnotationParameterSeq tmp_param_seq; - for (auto param = parameter_seq.begin(); param != parameter_seq.end(); ++param) - { - NameHash paramname_hash {TypeObjectUtils::name_hash(param->first.to_string())}; - - AnnotationParameterValue param_value; - DynamicTypeMember::_ref_type param_member; - // DynamicTypeBuilder::apply_annotation checks annotation consistency. - ret_code = annotation_descriptor->type()->get_member_by_name(param_member, param->first); - assert(RETCODE_OK == ret_code); - MemberDescriptor::_ref_type param_descriptor {traits::make_shared()}; - param_member->get_descriptor(param_descriptor); - set_annotation_parameter_value(param_descriptor->type(), param->second.to_string(), - param_value); - AppliedAnnotationParameter parameter {TypeObjectUtils::build_applied_annotation_parameter( - paramname_hash, param_value)}; - TypeObjectUtils::add_applied_annotation_parameter(tmp_param_seq, parameter); - } - if (!tmp_param_seq.empty()) - { - param_seq = tmp_param_seq; - } - AppliedAnnotation applied_annotation {TypeObjectUtils::build_applied_annotation(annotation_typeid, - param_seq)}; - TypeObjectUtils::add_applied_annotation(tmp_ann_custom, applied_annotation); + eprosima::fastcdr::optional param_seq; + AppliedAnnotationParameterSeq tmp_param_seq; + for (auto param = parameter_seq.begin(); param != parameter_seq.end(); ++param) + { + NameHash paramname_hash {TypeObjectUtils::name_hash(param->first.to_string())}; + + AnnotationParameterValue param_value; + DynamicTypeMember::_ref_type param_member; + // DynamicTypeBuilder::apply_annotation checks annotation consistency. + ret_code = annotation_descriptor.type()->get_member_by_name(param_member, param->first); + assert(RETCODE_OK == ret_code); + MemberDescriptor::_ref_type param_descriptor {traits::make_shared()}; + param_member->get_descriptor(param_descriptor); + set_annotation_parameter_value(param_descriptor->type(), param->second.to_string(), + param_value); + AppliedAnnotationParameter parameter {TypeObjectUtils::build_applied_annotation_parameter( + paramname_hash, param_value)}; + TypeObjectUtils::add_applied_annotation_parameter(tmp_param_seq, parameter); } + if (!tmp_param_seq.empty()) + { + param_seq = tmp_param_seq; + } + bool ec {false}; + AppliedAnnotation applied_annotation {TypeObjectUtils::build_applied_annotation(TypeObjectUtils::retrieve_complete_type_identifier( + annotation_typeids, + ec), + param_seq)}; + TypeObjectUtils::add_applied_annotation(tmp_ann_custom, applied_annotation); } if (!tmp_ann_custom.empty()) { @@ -2133,7 +2397,7 @@ ReturnCode_t TypeObjectRegistry::complete_type_detail( apply_verbatim_annotation(dynamic_type, ann_builtin); eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(dynamic_type, ann_custom); + apply_custom_annotations(dynamic_type->get_annotations(), ann_custom); detail = TypeObjectUtils::build_complete_type_detail(ann_builtin, ann_custom, dynamic_type->get_name()); @@ -2142,16 +2406,16 @@ ReturnCode_t TypeObjectRegistry::complete_type_detail( } ReturnCode_t TypeObjectRegistry::complete_member_detail( - const MemberDescriptorImpl& member_descriptor, + const traits::ref_type& member, CompleteMemberDetail& member_detail) { // @unit, @max, @min, @range & @hashid builtin annotations are not applied with dynamic language binding eprosima::fastcdr::optional member_ann_builtin; // Empty eprosima::fastcdr::optional ann_custom; - apply_custom_annotations(member_descriptor.type(), ann_custom); + apply_custom_annotations(member->get_annotations(), ann_custom); - member_detail = TypeObjectUtils::build_complete_member_detail(member_descriptor.name(), + member_detail = TypeObjectUtils::build_complete_member_detail(member->get_descriptor().name(), member_ann_builtin, ann_custom); return RETCODE_OK; } @@ -2159,7 +2423,7 @@ ReturnCode_t TypeObjectRegistry::complete_member_detail( ExtensibilityKind TypeObjectRegistry::extensibility_kind( eprosima::fastdds::dds::ExtensibilityKind extensibility_kind) const { - ExtensibilityKind ret_extensibility_kind {ExtensibilityKind::NOT_APPLIED}; + ExtensibilityKind ret_extensibility_kind {ExtensibilityKind::APPENDABLE}; switch (extensibility_kind) { case eprosima::fastdds::dds::ExtensibilityKind::FINAL: @@ -2175,20 +2439,20 @@ ExtensibilityKind TypeObjectRegistry::extensibility_kind( return ret_extensibility_kind; } -TryConstructKind TypeObjectRegistry::try_construct_kind( +TryConstructFailAction TypeObjectRegistry::try_construct_kind( eprosima::fastdds::dds::TryConstructKind try_construct_kind) const { - TryConstructKind ret_try_construct_kind {TryConstructKind::NOT_APPLIED}; + TryConstructFailAction ret_try_construct_kind {TryConstructFailAction::DISCARD}; switch (try_construct_kind) { case eprosima::fastdds::dds::TryConstructKind::DISCARD: - ret_try_construct_kind = TryConstructKind::DISCARD; + ret_try_construct_kind = TryConstructFailAction::DISCARD; break; case eprosima::fastdds::dds::TryConstructKind::TRIM: - ret_try_construct_kind = TryConstructKind::TRIM; + ret_try_construct_kind = TryConstructFailAction::TRIM; break; case eprosima::fastdds::dds::TryConstructKind::USE_DEFAULT: - ret_try_construct_kind = TryConstructKind::USE_DEFAULT; + ret_try_construct_kind = TryConstructFailAction::USE_DEFAULT; break; } return ret_try_construct_kind; @@ -2295,40 +2559,25 @@ EquivalenceKind TypeObjectRegistry::equivalence_kind( switch (element_type_id._d()) { case TI_PLAIN_SEQUENCE_SMALL: - if (EK_BOTH != element_type_id.seq_sdefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.seq_sdefn().header().equiv_kind(); break; case TI_PLAIN_SEQUENCE_LARGE: - if (EK_BOTH != element_type_id.seq_ldefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.seq_ldefn().header().equiv_kind(); break; case TI_PLAIN_ARRAY_SMALL: - if (EK_BOTH != element_type_id.array_sdefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.array_sdefn().header().equiv_kind(); break; case TI_PLAIN_ARRAY_LARGE: - if (EK_BOTH != element_type_id.array_ldefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.array_ldefn().header().equiv_kind(); break; case TI_PLAIN_MAP_SMALL: - if (EK_BOTH != element_type_id.map_sdefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.map_sdefn().header().equiv_kind(); break; case TI_PLAIN_MAP_LARGE: - if (EK_BOTH != element_type_id.map_ldefn().header().equiv_kind()) - { - equiv_kind = EK_COMPLETE; - } + equiv_kind = element_type_id.map_ldefn().header().equiv_kind(); + break; + case EK_MINIMAL: + equiv_kind = EK_MINIMAL; break; case EK_COMPLETE: equiv_kind = EK_COMPLETE; diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp index 04d1cea4f6c..e60c9ec2a91 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -68,9 +69,11 @@ using ReturnCode_t = eprosima::fastdds::dds::ReturnCode_t; struct TypeRegistryEntry { // TypeObject - TypeObject type_object_; + TypeObject type_object; // TypeObject serialized size - uint32_t type_object_serialized_size_ {0}; + uint32_t type_object_serialized_size {0}; + // Complementary TypeIdentifier. + TypeIdentifier complementary_type_id; bool operator !=( const TypeRegistryEntry& entry); @@ -94,7 +97,8 @@ class TypeObjectRegistry : public ITypeObjectRegistry * * @param[in] type_name Name of the type being registered. * @param[in] complete_type_object CompleteTypeObject related to the given type name. - * @param[out] type_id TypeIdentifier corresponding to the CompleteTypeObject just registered. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the CompleteTypeObject just registered and the + * generated MinimalTypeObject. * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. * RETCODE_BAD_PARAMETER if there is already another different TypeObject registered with the * given type_name. @@ -104,7 +108,60 @@ class TypeObjectRegistry : public ITypeObjectRegistry ReturnCode_t register_type_object( const std::string& type_name, const CompleteTypeObject& complete_type_object, - TypeIdentifier& type_id) override; + TypeIdentifierPair& type_ids) override; + + /** + * @brief Register a remote TypeObject. + * This auxiliary method might register only the minimal TypeObject and TypeIdentifier or register both + * TypeObjects constructing the minimal from the complete TypeObject information. + * TypeObject consistency is not checked in this method as the order of the dependencies received by the + * TypeLookupService is not guaranteed. + * The consistency is checked by the TypeLookupService after all dependencies are registered. + * + * @pre @ref TypeIdentifierPair::type_identifier1 discriminator must match TypeObject discriminator or be TK_NONE. + * @ref TypeIdentifierPair::type_identifier1 consistency is only checked in Debug build mode. + * + * @param[in] type_object Related TypeObject being registered. + * @param[in,out] type_ids Returns the registered @ref TypeIdentifierPair. + * @ref TypeIdentifierPair::type_identifier1 might be TK_NONE. + * In other case this function will check it is consistence with the provided @TypeObject. + * @return ReturnCode_t RETCODE_OK if correctly registered. + * RETCODE_PRECONDITION_NOT_MET if the discriminators differ. + * RETCODE_PRECONDITION_NOT_MET if the TypeIdentifier is not consistent with the given + * TypeObject. + */ + ReturnCode_t register_type_object( + const TypeObject& type_object, + TypeIdentifierPair& type_ids) override + { + return register_type_object(type_object, type_ids, false); + } + + /** + * @brief Register a remote TypeObject. + * This auxiliary method might register only the minimal TypeObject and TypeIdentifier or register both + * TypeObjects constructing the minimal from the complete TypeObject information. + * TypeObject consistency is not checked in this method as the order of the dependencies received by the + * TypeLookupService is not guaranteed. + * The consistency is checked by the TypeLookupService after all dependencies are registered. + * + * @pre @ref TypeIdentifierPair::type_identifier1 discriminator must match TypeObject discriminator or be TK_NONE. + * @ref TypeIdentifierPair::type_identifier1 consistency is only checked in Debug build mode. + * + * @param[in] type_object Related TypeObject being registered. + * @param[in,out] type_ids Returns the registered @ref TypeIdentifierPair. + * @param[in] build_minimal Minimal TypeObject should be built. + * @ref TypeIdentifierPair::type_identifier1 might be TK_NONE. + * In other case this function will check it is consistence with the provided @TypeObject. + * @return ReturnCode_t RETCODE_OK if correctly registered. + * RETCODE_PRECONDITION_NOT_MET if the discriminators differ. + * RETCODE_PRECONDITION_NOT_MET if the TypeIdentifier is not consistent with the given + * TypeObject. + */ + ReturnCode_t register_type_object( + const TypeObject& type_object, + TypeIdentifierPair& type_ids, + bool build_minimal); /** * @brief Register an indirect hash TypeIdentifier. @@ -114,7 +171,8 @@ class TypeObjectRegistry : public ITypeObjectRegistry * @pre type_name must not be empty. * * @param[in] type_name Name of the type being registered. - * @param[in] type_identifier TypeIdentier related to the given type name. + * @param[inout] type_identifier @ref TypeIdentifierPair related to the given type name. It must be set in + * @ref TypeIdentifierPair::type_identifier1. At the end this object is filled with both TypeIdentifiers. * @return ReturnCode_t RETCODE_OK if correctly registered in TypeObjectRegistry. * RETCODE_BAD_PARAMETER if there is already another different TypeIdentifier registered with * the given type_name. @@ -123,7 +181,7 @@ class TypeObjectRegistry : public ITypeObjectRegistry */ ReturnCode_t register_type_identifier( const std::string& type_name, - const TypeIdentifier& type_identifier) override; + TypeIdentifierPair& type_identifier) override; /** * @brief Get the TypeObjects related to the given type name. @@ -174,20 +232,22 @@ class TypeObjectRegistry : public ITypeObjectRegistry TypeObject& type_object) override; /** - * @brief Get the TypeInformation related to a specific type_name. + * @brief Build the TypeInformation related to the provided @ref TypeIdentifierPair. * - * @pre type_name must not be empty. + * @pre type_ids must not be empty. At least @ref TypeIdentifierPair::type_identifier1 must be filled. * - * @param[in] type_name Type which type information is queried. - * @param[out] type_information Related TypeInformation for the given type name. - * @return ReturnCode_t RETCODE_OK if the type_name is found within the registry. - * RETCODE_NO_DATA if the given type_name is not found. - * RETCODE_BAD_PARAMETER if the given type name corresponds to a indirect hash TypeIdentifier. - * RETCODE_PRECONDITION_NOT_MET if the type_name is empty. + * @param[in] type_ids @ref TypeIdentifierPair which type information is queried. + * @param[out] type_information Related TypeInformation for the given @ref TypeIdentifier. + * @param[in] with_dependencies + * @return ReturnCode_t RETCODE_OK if the type_ids are found within the registry. + * RETCODE_NO_DATA if the given type_ids is not found. + * RETCODE_BAD_PARAMETER if the given @ref TypeIdentifier corresponds to a indirect hash TypeIdentifier. + * RETCODE_PRECONDITION_NOT_MET if any type_ids is empty. */ ReturnCode_t get_type_information( - const std::string& type_name, - TypeInformation& type_information); + const TypeIdentifierPair& type_ids, + TypeInformation& type_information, + bool with_dependencies = false) override; /** * @brief Get the type dependencies of the given direct hash type identifiers. @@ -231,38 +291,16 @@ class TypeObjectRegistry : public ITypeObjectRegistry const TypeObject& type_object, uint32_t& type_object_serialized_size); - /** - * @brief Register a remote TypeObject. - * This auxiliary method might register only the minimal TypeObject and TypeIdentifier or register both - * TypeObjects constructing the minimal from the complete TypeObject information. - * TypeObject consistency is not checked in this method as the order of the dependencies received by the - * TypeLookupService is not guaranteed. - * The consistency is checked by the TypeLookupService after all dependencies are registered. - * - * @pre TypeIdentifier discriminator must match TypeObject discriminator. - * TypeIdentifier consistency is only checked in Debug build mode. - * - * @param[in] type_identifier TypeIdentifier to register. - * @param[in] type_object Related TypeObject being registered. - * @return ReturnCode_t RETCODE_OK if correctly registered. - * RETCODE_PRECONDITION_NOT_MET if the discriminators differ. - * RETCODE_PRECONDITION_NOT_MET if the TypeIdentifier is not consistent with the given - * TypeObject. - */ - ReturnCode_t register_type_object( - const TypeIdentifier& type_identifier, - const TypeObject& type_object); - /** * @brief Register DynamicType TypeObject. * * @param[in] dynamic_type DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the registered DynamicType TypeObject. + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the registered DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_dynamic_type( const DynamicType::_ref_type& dynamic_type, - TypeIdentifier& type_id) override; + TypeIdentifierPair& type_ids) override; /** * @brief Check if two given types are compatible according to the given TypeConsistencyEnforcement QoS. @@ -772,144 +810,122 @@ class TypeObjectRegistry : public ITypeObjectRegistry * @brief Register DynamicType TypeObject of an Alias type. * * @param[in] dynamic_type Alias DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Alias DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_alias_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of an Annotation type. * * @param[in] dynamic_type Annotation DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Annotation DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_annotation_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Structure type. * * @param[in] dynamic_type Structure DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Structure DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_struct_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Union type. * * @param[in] dynamic_type Union DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Union DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_union_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Bitset type. * * @param[in] dynamic_type Bitset DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Bitset DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_bitset_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Sequence type. * * @param[in] dynamic_type Sequence DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Sequence DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_sequence_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Array type. * * @param[in] dynamic_type Array DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Array DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_array_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Map type. * * @param[in] dynamic_type Map DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Map DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_map_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Enumeration type. * * @param[in] dynamic_type Enumeration DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Enumeration DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_enum_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType TypeObject of a Bitmask type. * * @param[in] dynamic_type Bitmask DynamicType to be registered. - * @param[out] type_id TypeIdentifier corresponding to the Bitmask DynamicType TypeObject. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t register_typeobject_w_bitmask_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType indirect-hash TypeIdentifier of a Sequence type. * * @param[in] dynamic_type Sequence DynamicType to be registered. - * @param[out] type_id Complete indirect hash TypeIdentifier corresponding to the Sequence DynamicType. - * TypeIdentifier is required to define dependencies within the parent TypeObject - * (if applicable). + * @param[out] type_ids @ref TypeIdentifierPair corresponding to the Alias DynamicType TypeObject. * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t typeidentifier_w_sequence_dynamic_type( const traits::ref_type& dynamic_type, - TypeIdentifier& type_id); + TypeIdentifierPair& type_ids); /** * @brief Register DynamicType indirect-hash TypeIdentifier of a Array type. @@ -971,7 +987,7 @@ class TypeObjectRegistry : public ITypeObjectRegistry * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t apply_custom_annotations( - const DynamicType::_ref_type& dynamic_type, + const std::vector& annotations, eprosima::fastcdr::optional& ann_custom); /** @@ -1017,7 +1033,7 @@ class TypeObjectRegistry : public ITypeObjectRegistry * @return ReturnCode_t RETCODE_OK always. */ ReturnCode_t complete_member_detail( - const MemberDescriptorImpl& member_descriptor, + const traits::ref_type& member, CompleteMemberDetail& member_detail); /** @@ -1033,9 +1049,9 @@ class TypeObjectRegistry : public ITypeObjectRegistry * @brief Auxiliary function to translate TryConstructKind namespace. * * @param[in] try_construct_kind to be translated. - * @return const TryConstructKind translated. + * @return const @ref TryConstructFailAction translated. */ - TryConstructKind try_construct_kind( + TryConstructFailAction try_construct_kind( eprosima::fastdds::dds::TryConstructKind try_construct_kind) const; /** diff --git a/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp index e0d41c865ed..b079582089b 100644 --- a/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp +++ b/src/cpp/fastdds/xtypes/type_representation/TypeObjectUtils.cpp @@ -77,7 +77,7 @@ const TypeObjectHashId TypeObjectUtils::build_type_object_hash_id( } CollectionElementFlag TypeObjectUtils::build_collection_element_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool external) { CollectionElementFlag collection_element_flag = 0; @@ -90,7 +90,7 @@ CollectionElementFlag TypeObjectUtils::build_collection_element_flag( } StructMemberFlag TypeObjectUtils::build_struct_member_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool optional, bool must_understand, bool key, @@ -122,7 +122,7 @@ StructMemberFlag TypeObjectUtils::build_struct_member_flag( } UnionMemberFlag TypeObjectUtils::build_union_member_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool default_member, bool external) { @@ -140,7 +140,7 @@ UnionMemberFlag TypeObjectUtils::build_union_member_flag( } UnionDiscriminatorFlag TypeObjectUtils::build_union_discriminator_flag( - TryConstructKind try_construct_kind, + TryConstructFailAction try_construct_kind, bool key) { UnionDiscriminatorFlag union_discriminator_flag = 0; @@ -356,104 +356,104 @@ const ExtendedTypeDefn TypeObjectUtils::build_extended_type_defn() ReturnCode_t TypeObjectUtils::build_and_register_s_string_type_identifier( const StringSTypeDefn& string, const std::string& type_name, + TypeIdentifierPair& type_ids, bool wstring) { - TypeIdentifier type_identifier; - type_identifier.string_sdefn(string); + type_ids.type_identifier1().string_sdefn(string); if (wstring) { - type_identifier._d(TI_STRING16_SMALL); + type_ids.type_identifier1()._d(TI_STRING16_SMALL); } - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_l_string_type_identifier( const StringLTypeDefn& string, const std::string& type_name, + TypeIdentifierPair& type_ids, bool wstring) { #if !defined(NDEBUG) string_ldefn_consistency(string); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.string_ldefn(string); + type_ids.type_identifier1().string_ldefn(string); if (wstring) { - type_identifier._d(TI_STRING16_LARGE); + type_ids.type_identifier1()._d(TI_STRING16_LARGE); } - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_s_sequence_type_identifier( const PlainSequenceSElemDefn& plain_seq, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) seq_sdefn_consistency(plain_seq); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.seq_sdefn(plain_seq); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().seq_sdefn(plain_seq); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_l_sequence_type_identifier( const PlainSequenceLElemDefn& plain_seq, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) seq_ldefn_consistency(plain_seq); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.seq_ldefn(plain_seq); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().seq_ldefn(plain_seq); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_s_array_type_identifier( const PlainArraySElemDefn& plain_array, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) array_sdefn_consistency(plain_array); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.array_sdefn(plain_array); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().array_sdefn(plain_array); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_l_array_type_identifier( const PlainArrayLElemDefn& plain_array, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) array_ldefn_consistency(plain_array); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.array_ldefn(plain_array); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().array_ldefn(plain_array); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_s_map_type_identifier( const PlainMapSTypeDefn& plain_map, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) map_sdefn_consistency(plain_map); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.map_sdefn(plain_map); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().map_sdefn(plain_map); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_l_map_type_identifier( const PlainMapLTypeDefn& plain_map, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) map_ldefn_consistency(plain_map); #endif // !defined(NDEBUG) - TypeIdentifier type_identifier; - type_identifier.map_ldefn(plain_map); - return type_object_registry_observer().register_type_identifier(type_name, type_identifier); + type_ids.type_identifier1().map_ldefn(plain_map); + return type_object_registry_observer().register_type_identifier(type_name, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_scc_type_identifier( @@ -1683,67 +1683,67 @@ const CompleteExtendedType TypeObjectUtils::build_complete_extended_type() ReturnCode_t TypeObjectUtils::build_and_register_alias_type_object( const CompleteAliasType& alias_type, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_alias_type_consistency(alias_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.alias_type(alias_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_annotation_type_object( const CompleteAnnotationType& annotation_type, const std::string& type_name, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_annotation_type_consistency(annotation_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.annotation_type(annotation_type); - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_struct_type_object( const CompleteStructType& struct_type, const std::string& type_name, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_struct_type_consistency(struct_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.struct_type(struct_type); - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_union_type_object( const CompleteUnionType& union_type, const std::string& type_name, - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_union_type_consistency(union_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.union_type(union_type); - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_bitset_type_object( const CompleteBitsetType& bitset_type, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_bitset_type_consistency(bitset_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.bitset_type(bitset_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_sequence_type_object( @@ -1755,8 +1755,8 @@ ReturnCode_t TypeObjectUtils::build_and_register_sequence_type_object( #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.sequence_type(sequence_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + TypeIdentifierPair type_ids; + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_array_type_object( @@ -1768,8 +1768,8 @@ ReturnCode_t TypeObjectUtils::build_and_register_array_type_object( #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.array_type(array_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + TypeIdentifierPair type_ids; + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_map_type_object( @@ -1781,34 +1781,34 @@ ReturnCode_t TypeObjectUtils::build_and_register_map_type_object( #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.map_type(map_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + TypeIdentifierPair type_ids; + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_enumerated_type_object( const CompleteEnumeratedType& enumerated_type, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_enumerated_type_consistency(enumerated_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.enumerated_type(enumerated_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } ReturnCode_t TypeObjectUtils::build_and_register_bitmask_type_object( const CompleteBitmaskType& bitmask_type, - const std::string& type_name) + const std::string& type_name, + TypeIdentifierPair& type_ids) { #if !defined(NDEBUG) complete_bitmask_type_consistency(bitmask_type); #endif // !defined(NDEBUG) CompleteTypeObject type_object; type_object.bitmask_type(bitmask_type); - TypeIdentifier type_id; - return type_object_registry_observer().register_type_object(type_name, type_object, type_id); + return type_object_registry_observer().register_type_object(type_name, type_object, type_ids); } const NameHash TypeObjectUtils::name_hash( @@ -1841,23 +1841,23 @@ void TypeObjectUtils::type_object_consistency( void TypeObjectUtils::set_try_construct_behavior( MemberFlag& member_flag, - TryConstructKind try_construct_kind) + TryConstructFailAction try_construct_kind) { switch (try_construct_kind) { - case TryConstructKind::USE_DEFAULT: + case TryConstructFailAction::USE_DEFAULT: member_flag |= MemberFlagBits::TRY_CONSTRUCT2; break; - case TryConstructKind::TRIM: + case TryConstructFailAction::TRIM: member_flag |= MemberFlagBits::TRY_CONSTRUCT1 | MemberFlagBits::TRY_CONSTRUCT2; break; - case TryConstructKind::DISCARD: + case TryConstructFailAction::DISCARD: member_flag |= MemberFlagBits::TRY_CONSTRUCT1; break; - // TryContructKind::NOT_APPLIED + // INVALID default: break; } @@ -1923,6 +1923,102 @@ bool TypeObjectUtils::is_direct_hash_type_identifier( return direct_hash; } +const TypeIdentifier& TypeObjectUtils::retrieve_minimal_type_identifier( + const TypeIdentifierPair& type_ids, + bool& ec) +{ + ec = true; + + if (EK_MINIMAL == type_ids.type_identifier1()._d() || TK_NONE == type_ids.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids.type_identifier1()._d() && + EK_MINIMAL == type_ids.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids.type_identifier1()._d() && + EK_MINIMAL == type_ids.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids.type_identifier1()._d() && + EK_MINIMAL == type_ids.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids.type_identifier1()._d() && + EK_MINIMAL == type_ids.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids.type_identifier1()._d() && + (EK_MINIMAL == type_ids.type_identifier1().map_sdefn().header().equiv_kind() || + EK_MINIMAL == type_ids.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids.type_identifier1()._d() && + (EK_MINIMAL == type_ids.type_identifier1().map_ldefn().header().equiv_kind() || + EK_MINIMAL == type_ids.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + return type_ids.type_identifier1(); + } + else if (EK_MINIMAL == type_ids.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids.type_identifier2()._d() && + EK_MINIMAL == type_ids.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids.type_identifier2()._d() && + EK_MINIMAL == type_ids.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids.type_identifier2()._d() && + EK_MINIMAL == type_ids.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids.type_identifier2()._d() && + EK_MINIMAL == type_ids.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids.type_identifier2()._d() && + (EK_MINIMAL == type_ids.type_identifier2().map_sdefn().header().equiv_kind() || + EK_MINIMAL == type_ids.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids.type_identifier2()._d() && + (EK_MINIMAL == type_ids.type_identifier2().map_ldefn().header().equiv_kind() || + EK_MINIMAL == type_ids.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + return type_ids.type_identifier2(); + } + + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inconsistent key TypeIdentifier."); + ec = false; + return type_ids.type_identifier1(); +} + +const TypeIdentifier& TypeObjectUtils::retrieve_complete_type_identifier( + const TypeIdentifierPair& type_ids, + bool& ec) +{ + ec = true; + + if (EK_COMPLETE == type_ids.type_identifier1()._d() || TK_NONE == type_ids.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids.type_identifier1()._d() && + EK_COMPLETE == type_ids.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids.type_identifier1()._d() && + EK_COMPLETE == type_ids.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids.type_identifier1()._d() && + EK_COMPLETE == type_ids.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids.type_identifier1()._d() && + EK_COMPLETE == type_ids.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids.type_identifier1()._d() && + (EK_COMPLETE == type_ids.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids.type_identifier1()._d() && + (EK_COMPLETE == type_ids.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + return type_ids.type_identifier1(); + } + else if (EK_COMPLETE == type_ids.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids.type_identifier2()._d() && + EK_COMPLETE == type_ids.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids.type_identifier2()._d() && + EK_COMPLETE == type_ids.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids.type_identifier2()._d() && + EK_COMPLETE == type_ids.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids.type_identifier2()._d() && + EK_COMPLETE == type_ids.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids.type_identifier2()._d() && + (EK_COMPLETE == type_ids.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids.type_identifier2()._d() && + (EK_COMPLETE == type_ids.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + return type_ids.type_identifier2(); + } + + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inconsistent key TypeIdentifier."); + ec = false; + return type_ids.type_identifier1(); +} + bool TypeObjectUtils::is_indirect_hash_type_identifier( const TypeIdentifier& type_identifier) { diff --git a/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx b/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx index b742c7d6047..25692d26104 100644 --- a/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx +++ b/src/cpp/fastdds/xtypes/type_representation/dds_xtypes_typeobjectPubSubTypes.cxx @@ -227,7 +227,7 @@ bool StringSTypeDefnPubSubType::getKey( return true; } -void StringSTypeDefnPubSubType::register_type_object_representation() const +void StringSTypeDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -421,7 +421,7 @@ bool StringLTypeDefnPubSubType::getKey( return true; } -void StringLTypeDefnPubSubType::register_type_object_representation() const +void StringLTypeDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -615,7 +615,7 @@ bool PlainCollectionHeaderPubSubType::getKey( return true; } -void PlainCollectionHeaderPubSubType::register_type_object_representation() const +void PlainCollectionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -809,7 +809,7 @@ bool PlainSequenceSElemDefnPubSubType::getKey( return true; } -void PlainSequenceSElemDefnPubSubType::register_type_object_representation() const +void PlainSequenceSElemDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1003,7 +1003,7 @@ bool PlainSequenceLElemDefnPubSubType::getKey( return true; } -void PlainSequenceLElemDefnPubSubType::register_type_object_representation() const +void PlainSequenceLElemDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1197,7 +1197,7 @@ bool PlainArraySElemDefnPubSubType::getKey( return true; } -void PlainArraySElemDefnPubSubType::register_type_object_representation() const +void PlainArraySElemDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1391,7 +1391,7 @@ bool PlainArrayLElemDefnPubSubType::getKey( return true; } -void PlainArrayLElemDefnPubSubType::register_type_object_representation() const +void PlainArrayLElemDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1585,7 +1585,7 @@ bool PlainMapSTypeDefnPubSubType::getKey( return true; } -void PlainMapSTypeDefnPubSubType::register_type_object_representation() const +void PlainMapSTypeDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1779,7 +1779,7 @@ bool PlainMapLTypeDefnPubSubType::getKey( return true; } -void PlainMapLTypeDefnPubSubType::register_type_object_representation() const +void PlainMapLTypeDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1973,7 +1973,7 @@ bool StronglyConnectedComponentIdPubSubType::getKey( return true; } -void StronglyConnectedComponentIdPubSubType::register_type_object_representation() const +void StronglyConnectedComponentIdPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2167,7 +2167,7 @@ bool ExtendedTypeDefnPubSubType::getKey( return true; } -void ExtendedTypeDefnPubSubType::register_type_object_representation() const +void ExtendedTypeDefnPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2366,7 +2366,7 @@ bool ExtendedAnnotationParameterValuePubSubType::getKey( return true; } -void ExtendedAnnotationParameterValuePubSubType::register_type_object_representation() const +void ExtendedAnnotationParameterValuePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2561,7 +2561,7 @@ bool AppliedAnnotationParameterPubSubType::getKey( return true; } -void AppliedAnnotationParameterPubSubType::register_type_object_representation() const +void AppliedAnnotationParameterPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2756,7 +2756,7 @@ bool AppliedAnnotationPubSubType::getKey( return true; } -void AppliedAnnotationPubSubType::register_type_object_representation() const +void AppliedAnnotationPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2951,7 +2951,7 @@ bool AppliedVerbatimAnnotationPubSubType::getKey( return true; } -void AppliedVerbatimAnnotationPubSubType::register_type_object_representation() const +void AppliedVerbatimAnnotationPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3145,7 +3145,7 @@ bool AppliedBuiltinMemberAnnotationsPubSubType::getKey( return true; } -void AppliedBuiltinMemberAnnotationsPubSubType::register_type_object_representation() const +void AppliedBuiltinMemberAnnotationsPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3339,7 +3339,7 @@ bool CommonStructMemberPubSubType::getKey( return true; } -void CommonStructMemberPubSubType::register_type_object_representation() const +void CommonStructMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3533,7 +3533,7 @@ bool CompleteMemberDetailPubSubType::getKey( return true; } -void CompleteMemberDetailPubSubType::register_type_object_representation() const +void CompleteMemberDetailPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3727,7 +3727,7 @@ bool MinimalMemberDetailPubSubType::getKey( return true; } -void MinimalMemberDetailPubSubType::register_type_object_representation() const +void MinimalMemberDetailPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3921,7 +3921,7 @@ bool CompleteStructMemberPubSubType::getKey( return true; } -void CompleteStructMemberPubSubType::register_type_object_representation() const +void CompleteStructMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4116,7 +4116,7 @@ bool MinimalStructMemberPubSubType::getKey( return true; } -void MinimalStructMemberPubSubType::register_type_object_representation() const +void MinimalStructMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4311,7 +4311,7 @@ bool AppliedBuiltinTypeAnnotationsPubSubType::getKey( return true; } -void AppliedBuiltinTypeAnnotationsPubSubType::register_type_object_representation() const +void AppliedBuiltinTypeAnnotationsPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4505,7 +4505,7 @@ bool MinimalTypeDetailPubSubType::getKey( return true; } -void MinimalTypeDetailPubSubType::register_type_object_representation() const +void MinimalTypeDetailPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4699,7 +4699,7 @@ bool CompleteTypeDetailPubSubType::getKey( return true; } -void CompleteTypeDetailPubSubType::register_type_object_representation() const +void CompleteTypeDetailPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4893,7 +4893,7 @@ bool CompleteStructHeaderPubSubType::getKey( return true; } -void CompleteStructHeaderPubSubType::register_type_object_representation() const +void CompleteStructHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5087,7 +5087,7 @@ bool MinimalStructHeaderPubSubType::getKey( return true; } -void MinimalStructHeaderPubSubType::register_type_object_representation() const +void MinimalStructHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5281,7 +5281,7 @@ bool CompleteStructTypePubSubType::getKey( return true; } -void CompleteStructTypePubSubType::register_type_object_representation() const +void CompleteStructTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5475,7 +5475,7 @@ bool MinimalStructTypePubSubType::getKey( return true; } -void MinimalStructTypePubSubType::register_type_object_representation() const +void MinimalStructTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5670,7 +5670,7 @@ bool CommonUnionMemberPubSubType::getKey( return true; } -void CommonUnionMemberPubSubType::register_type_object_representation() const +void CommonUnionMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5864,7 +5864,7 @@ bool CompleteUnionMemberPubSubType::getKey( return true; } -void CompleteUnionMemberPubSubType::register_type_object_representation() const +void CompleteUnionMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -6059,7 +6059,7 @@ bool MinimalUnionMemberPubSubType::getKey( return true; } -void MinimalUnionMemberPubSubType::register_type_object_representation() const +void MinimalUnionMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -6254,7 +6254,7 @@ bool CommonDiscriminatorMemberPubSubType::getKey( return true; } -void CommonDiscriminatorMemberPubSubType::register_type_object_representation() const +void CommonDiscriminatorMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -6448,7 +6448,7 @@ bool CompleteDiscriminatorMemberPubSubType::getKey( return true; } -void CompleteDiscriminatorMemberPubSubType::register_type_object_representation() const +void CompleteDiscriminatorMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -6642,7 +6642,7 @@ bool MinimalDiscriminatorMemberPubSubType::getKey( return true; } -void MinimalDiscriminatorMemberPubSubType::register_type_object_representation() const +void MinimalDiscriminatorMemberPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -6836,7 +6836,7 @@ bool CompleteUnionHeaderPubSubType::getKey( return true; } -void CompleteUnionHeaderPubSubType::register_type_object_representation() const +void CompleteUnionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -7030,7 +7030,7 @@ bool MinimalUnionHeaderPubSubType::getKey( return true; } -void MinimalUnionHeaderPubSubType::register_type_object_representation() const +void MinimalUnionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -7224,7 +7224,7 @@ bool CompleteUnionTypePubSubType::getKey( return true; } -void CompleteUnionTypePubSubType::register_type_object_representation() const +void CompleteUnionTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -7418,7 +7418,7 @@ bool MinimalUnionTypePubSubType::getKey( return true; } -void MinimalUnionTypePubSubType::register_type_object_representation() const +void MinimalUnionTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -7612,7 +7612,7 @@ bool CommonAnnotationParameterPubSubType::getKey( return true; } -void CommonAnnotationParameterPubSubType::register_type_object_representation() const +void CommonAnnotationParameterPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -7806,7 +7806,7 @@ bool CompleteAnnotationParameterPubSubType::getKey( return true; } -void CompleteAnnotationParameterPubSubType::register_type_object_representation() const +void CompleteAnnotationParameterPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8001,7 +8001,7 @@ bool MinimalAnnotationParameterPubSubType::getKey( return true; } -void MinimalAnnotationParameterPubSubType::register_type_object_representation() const +void MinimalAnnotationParameterPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8196,7 +8196,7 @@ bool CompleteAnnotationHeaderPubSubType::getKey( return true; } -void CompleteAnnotationHeaderPubSubType::register_type_object_representation() const +void CompleteAnnotationHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8390,7 +8390,7 @@ bool MinimalAnnotationHeaderPubSubType::getKey( return true; } -void MinimalAnnotationHeaderPubSubType::register_type_object_representation() const +void MinimalAnnotationHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8584,7 +8584,7 @@ bool CompleteAnnotationTypePubSubType::getKey( return true; } -void CompleteAnnotationTypePubSubType::register_type_object_representation() const +void CompleteAnnotationTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8778,7 +8778,7 @@ bool MinimalAnnotationTypePubSubType::getKey( return true; } -void MinimalAnnotationTypePubSubType::register_type_object_representation() const +void MinimalAnnotationTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -8972,7 +8972,7 @@ bool CommonAliasBodyPubSubType::getKey( return true; } -void CommonAliasBodyPubSubType::register_type_object_representation() const +void CommonAliasBodyPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -9166,7 +9166,7 @@ bool CompleteAliasBodyPubSubType::getKey( return true; } -void CompleteAliasBodyPubSubType::register_type_object_representation() const +void CompleteAliasBodyPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -9360,7 +9360,7 @@ bool MinimalAliasBodyPubSubType::getKey( return true; } -void MinimalAliasBodyPubSubType::register_type_object_representation() const +void MinimalAliasBodyPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -9554,7 +9554,7 @@ bool CompleteAliasHeaderPubSubType::getKey( return true; } -void CompleteAliasHeaderPubSubType::register_type_object_representation() const +void CompleteAliasHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -9748,7 +9748,7 @@ bool MinimalAliasHeaderPubSubType::getKey( return true; } -void MinimalAliasHeaderPubSubType::register_type_object_representation() const +void MinimalAliasHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -9942,7 +9942,7 @@ bool CompleteAliasTypePubSubType::getKey( return true; } -void CompleteAliasTypePubSubType::register_type_object_representation() const +void CompleteAliasTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -10136,7 +10136,7 @@ bool MinimalAliasTypePubSubType::getKey( return true; } -void MinimalAliasTypePubSubType::register_type_object_representation() const +void MinimalAliasTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -10330,7 +10330,7 @@ bool CompleteElementDetailPubSubType::getKey( return true; } -void CompleteElementDetailPubSubType::register_type_object_representation() const +void CompleteElementDetailPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -10524,7 +10524,7 @@ bool CommonCollectionElementPubSubType::getKey( return true; } -void CommonCollectionElementPubSubType::register_type_object_representation() const +void CommonCollectionElementPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -10718,7 +10718,7 @@ bool CompleteCollectionElementPubSubType::getKey( return true; } -void CompleteCollectionElementPubSubType::register_type_object_representation() const +void CompleteCollectionElementPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -10912,7 +10912,7 @@ bool MinimalCollectionElementPubSubType::getKey( return true; } -void MinimalCollectionElementPubSubType::register_type_object_representation() const +void MinimalCollectionElementPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -11106,7 +11106,7 @@ bool CommonCollectionHeaderPubSubType::getKey( return true; } -void CommonCollectionHeaderPubSubType::register_type_object_representation() const +void CommonCollectionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -11300,7 +11300,7 @@ bool CompleteCollectionHeaderPubSubType::getKey( return true; } -void CompleteCollectionHeaderPubSubType::register_type_object_representation() const +void CompleteCollectionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -11494,7 +11494,7 @@ bool MinimalCollectionHeaderPubSubType::getKey( return true; } -void MinimalCollectionHeaderPubSubType::register_type_object_representation() const +void MinimalCollectionHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -11688,7 +11688,7 @@ bool CompleteSequenceTypePubSubType::getKey( return true; } -void CompleteSequenceTypePubSubType::register_type_object_representation() const +void CompleteSequenceTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -11882,7 +11882,7 @@ bool MinimalSequenceTypePubSubType::getKey( return true; } -void MinimalSequenceTypePubSubType::register_type_object_representation() const +void MinimalSequenceTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -12076,7 +12076,7 @@ bool CommonArrayHeaderPubSubType::getKey( return true; } -void CommonArrayHeaderPubSubType::register_type_object_representation() const +void CommonArrayHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -12270,7 +12270,7 @@ bool CompleteArrayHeaderPubSubType::getKey( return true; } -void CompleteArrayHeaderPubSubType::register_type_object_representation() const +void CompleteArrayHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -12464,7 +12464,7 @@ bool MinimalArrayHeaderPubSubType::getKey( return true; } -void MinimalArrayHeaderPubSubType::register_type_object_representation() const +void MinimalArrayHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -12658,7 +12658,7 @@ bool CompleteArrayTypePubSubType::getKey( return true; } -void CompleteArrayTypePubSubType::register_type_object_representation() const +void CompleteArrayTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -12852,7 +12852,7 @@ bool MinimalArrayTypePubSubType::getKey( return true; } -void MinimalArrayTypePubSubType::register_type_object_representation() const +void MinimalArrayTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -13046,7 +13046,7 @@ bool CompleteMapTypePubSubType::getKey( return true; } -void CompleteMapTypePubSubType::register_type_object_representation() const +void CompleteMapTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -13240,7 +13240,7 @@ bool MinimalMapTypePubSubType::getKey( return true; } -void MinimalMapTypePubSubType::register_type_object_representation() const +void MinimalMapTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -13435,7 +13435,7 @@ bool CommonEnumeratedLiteralPubSubType::getKey( return true; } -void CommonEnumeratedLiteralPubSubType::register_type_object_representation() const +void CommonEnumeratedLiteralPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -13629,7 +13629,7 @@ bool CompleteEnumeratedLiteralPubSubType::getKey( return true; } -void CompleteEnumeratedLiteralPubSubType::register_type_object_representation() const +void CompleteEnumeratedLiteralPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -13824,7 +13824,7 @@ bool MinimalEnumeratedLiteralPubSubType::getKey( return true; } -void MinimalEnumeratedLiteralPubSubType::register_type_object_representation() const +void MinimalEnumeratedLiteralPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14019,7 +14019,7 @@ bool CommonEnumeratedHeaderPubSubType::getKey( return true; } -void CommonEnumeratedHeaderPubSubType::register_type_object_representation() const +void CommonEnumeratedHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14213,7 +14213,7 @@ bool CompleteEnumeratedHeaderPubSubType::getKey( return true; } -void CompleteEnumeratedHeaderPubSubType::register_type_object_representation() const +void CompleteEnumeratedHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14407,7 +14407,7 @@ bool MinimalEnumeratedHeaderPubSubType::getKey( return true; } -void MinimalEnumeratedHeaderPubSubType::register_type_object_representation() const +void MinimalEnumeratedHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14601,7 +14601,7 @@ bool CompleteEnumeratedTypePubSubType::getKey( return true; } -void CompleteEnumeratedTypePubSubType::register_type_object_representation() const +void CompleteEnumeratedTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14795,7 +14795,7 @@ bool MinimalEnumeratedTypePubSubType::getKey( return true; } -void MinimalEnumeratedTypePubSubType::register_type_object_representation() const +void MinimalEnumeratedTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -14989,7 +14989,7 @@ bool CommonBitflagPubSubType::getKey( return true; } -void CommonBitflagPubSubType::register_type_object_representation() const +void CommonBitflagPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -15183,7 +15183,7 @@ bool CompleteBitflagPubSubType::getKey( return true; } -void CompleteBitflagPubSubType::register_type_object_representation() const +void CompleteBitflagPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -15378,7 +15378,7 @@ bool MinimalBitflagPubSubType::getKey( return true; } -void MinimalBitflagPubSubType::register_type_object_representation() const +void MinimalBitflagPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -15573,7 +15573,7 @@ bool CommonBitmaskHeaderPubSubType::getKey( return true; } -void CommonBitmaskHeaderPubSubType::register_type_object_representation() const +void CommonBitmaskHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -15769,7 +15769,7 @@ bool CompleteBitmaskTypePubSubType::getKey( return true; } -void CompleteBitmaskTypePubSubType::register_type_object_representation() const +void CompleteBitmaskTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -15963,7 +15963,7 @@ bool MinimalBitmaskTypePubSubType::getKey( return true; } -void MinimalBitmaskTypePubSubType::register_type_object_representation() const +void MinimalBitmaskTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -16157,7 +16157,7 @@ bool CommonBitfieldPubSubType::getKey( return true; } -void CommonBitfieldPubSubType::register_type_object_representation() const +void CommonBitfieldPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -16351,7 +16351,7 @@ bool CompleteBitfieldPubSubType::getKey( return true; } -void CompleteBitfieldPubSubType::register_type_object_representation() const +void CompleteBitfieldPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -16546,7 +16546,7 @@ bool MinimalBitfieldPubSubType::getKey( return true; } -void MinimalBitfieldPubSubType::register_type_object_representation() const +void MinimalBitfieldPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -16741,7 +16741,7 @@ bool CompleteBitsetHeaderPubSubType::getKey( return true; } -void CompleteBitsetHeaderPubSubType::register_type_object_representation() const +void CompleteBitsetHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -16935,7 +16935,7 @@ bool MinimalBitsetHeaderPubSubType::getKey( return true; } -void MinimalBitsetHeaderPubSubType::register_type_object_representation() const +void MinimalBitsetHeaderPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -17129,7 +17129,7 @@ bool CompleteBitsetTypePubSubType::getKey( return true; } -void CompleteBitsetTypePubSubType::register_type_object_representation() const +void CompleteBitsetTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -17323,7 +17323,7 @@ bool MinimalBitsetTypePubSubType::getKey( return true; } -void MinimalBitsetTypePubSubType::register_type_object_representation() const +void MinimalBitsetTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -17517,7 +17517,7 @@ bool CompleteExtendedTypePubSubType::getKey( return true; } -void CompleteExtendedTypePubSubType::register_type_object_representation() const +void CompleteExtendedTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -17712,7 +17712,7 @@ bool MinimalExtendedTypePubSubType::getKey( return true; } -void MinimalExtendedTypePubSubType::register_type_object_representation() const +void MinimalExtendedTypePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -17910,7 +17910,7 @@ bool TypeIdentifierTypeObjectPairPubSubType::getKey( return true; } -void TypeIdentifierTypeObjectPairPubSubType::register_type_object_representation() const +void TypeIdentifierTypeObjectPairPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -18105,7 +18105,7 @@ bool TypeIdentifierPairPubSubType::getKey( return true; } -void TypeIdentifierPairPubSubType::register_type_object_representation() const +void TypeIdentifierPairPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -18300,7 +18300,7 @@ bool TypeIdentfierWithSizePubSubType::getKey( return true; } -void TypeIdentfierWithSizePubSubType::register_type_object_representation() const +void TypeIdentfierWithSizePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -18495,7 +18495,7 @@ bool TypeIdentifierWithDependenciesPubSubType::getKey( return true; } -void TypeIdentifierWithDependenciesPubSubType::register_type_object_representation() const +void TypeIdentifierWithDependenciesPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -18690,7 +18690,7 @@ bool TypeInformationPubSubType::getKey( return true; } -void TypeInformationPubSubType::register_type_object_representation() const +void TypeInformationPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp index c70932a95e2..dc0f9fab2ee 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp @@ -164,20 +164,6 @@ bool EDP::newLocalReaderProxyData( rpd->plugin_security_attributes_ = 0UL; } #endif // if HAVE_SECURITY - if (att.auto_fill_type_information) - { - // TypeInformation - if (!att.type_information.assigned()) - { - fastdds::dds::xtypes::TypeInformation type_info; - if (eprosima::fastdds::dds::RETCODE_OK == - eprosima::fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer() - .get_type_information(rpd->typeName().c_str(), type_info)) - { - rpd->type_information() = type_info; - } - } - } return true; }; @@ -271,21 +257,6 @@ bool EDP::newLocalWriterProxyData( } #endif // if HAVE_SECURITY - if (att.auto_fill_type_information) - { - // TypeInformation - if (!att.type_information.assigned()) - { - fastdds::dds::xtypes::TypeInformation type_info; - if (eprosima::fastdds::dds::RETCODE_OK == - eprosima::fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer() - .get_type_information(wpd->typeName().c_str(), type_info)) - { - wpd->type_information() = type_info; - } - } - } - return true; }; @@ -318,11 +289,11 @@ bool EDP::newLocalWriterProxyData( bool EDP::updatedLocalReader( RTPSReader* reader, - const TopicAttributes& att, + const TopicAttributes&, const fastdds::dds::ReaderQos& rqos, const fastdds::rtps::ContentFilterProperty* content_filter) { - auto init_fun = [this, reader, &rqos, &att, content_filter]( + auto init_fun = [this, reader, &rqos, content_filter]( ReaderProxyData* rdata, bool updating, const ParticipantProxyData& participant_data) @@ -365,21 +336,6 @@ bool EDP::updatedLocalReader( rdata->isAlive(true); rdata->m_expectsInlineQos = reader->expects_inline_qos(); - if (att.auto_fill_type_information) - { - // TypeInformation - if (!rdata->type_information().assigned()) - { - fastdds::dds::xtypes::TypeInformation type_info; - if (eprosima::fastdds::dds::RETCODE_OK == - eprosima::fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer() - .get_type_information(rdata->typeName().c_str(), type_info)) - { - rdata->type_information() = type_info; - } - } - } - return true; }; @@ -407,10 +363,10 @@ bool EDP::updatedLocalReader( bool EDP::updatedLocalWriter( RTPSWriter* writer, - const TopicAttributes& att, + const TopicAttributes&, const fastdds::dds::WriterQos& wqos) { - auto init_fun = [this, writer, &wqos, &att]( + auto init_fun = [this, writer, &wqos]( WriterProxyData* wdata, bool updating, const ParticipantProxyData& participant_data) @@ -432,21 +388,6 @@ bool EDP::updatedLocalWriter( } wdata->m_qos.setQos(wqos, false); - if (att.auto_fill_type_information) - { - // TypeInformation - if (!wdata->type_information().assigned()) - { - fastdds::dds::xtypes::TypeInformation type_info; - if (eprosima::fastdds::dds::RETCODE_OK == - eprosima::fastrtps::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer() - .get_type_information(wdata->typeName().c_str(), type_info)) - { - wdata->type_information() = type_info; - } - } - } - return true; }; diff --git a/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp b/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp index 6cb91c8ba9a..f771fa76770 100644 --- a/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp +++ b/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp @@ -516,21 +516,25 @@ bool DomainParticipantImpl::register_statistics_type_and_topic( if (HISTORY_LATENCY_TOPIC == topic_name) { efd::TypeSupport history_latency_type(new WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, history_latency_type); } else if (NETWORK_LATENCY_TOPIC == topic_name) { efd::TypeSupport network_latency_type(new Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, network_latency_type); } else if (PUBLICATION_THROUGHPUT_TOPIC == topic_name || SUBSCRIPTION_THROUGHPUT_TOPIC == topic_name) { efd::TypeSupport throughput_type(new EntityDataPubSubType); + throughput_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, throughput_type); } else if (RTPS_SENT_TOPIC == topic_name || RTPS_LOST_TOPIC == topic_name) { efd::TypeSupport rtps_traffic_type(new Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, rtps_traffic_type); } else if (RESENT_DATAS_TOPIC == topic_name || HEARTBEAT_COUNT_TOPIC == topic_name || @@ -538,21 +542,25 @@ bool DomainParticipantImpl::register_statistics_type_and_topic( DATA_COUNT_TOPIC == topic_name || PDP_PACKETS_TOPIC == topic_name || EDP_PACKETS_TOPIC == topic_name) { efd::TypeSupport count_type(new EntityCountPubSubType); + count_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, count_type); } else if (DISCOVERY_TOPIC == topic_name) { efd::TypeSupport discovery_type(new DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, discovery_type); } else if (SAMPLE_DATAS_TOPIC == topic_name) { efd::TypeSupport sample_identity_count_type(new SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, sample_identity_count_type); } else if (PHYSICAL_DATA_TOPIC == topic_name) { efd::TypeSupport physical_data_type(new PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, physical_data_type); } return return_code; diff --git a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx index 4fb6eeb1156..4dc788af245 100644 --- a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx +++ b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx @@ -222,9 +222,9 @@ namespace eprosima { return true; } - void ConnectionPubSubType::register_type_object_representation() const + void ConnectionPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_Connection_type_identifier(type_identifiers_); } QosPolicyCount_sPubSubType::QosPolicyCount_sPubSubType() @@ -415,9 +415,9 @@ namespace eprosima { return true; } - void QosPolicyCount_sPubSubType::register_type_object_representation() const + void QosPolicyCount_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_QosPolicyCount_s_type_identifier(type_identifiers_); } BaseStatus_sPubSubType::BaseStatus_sPubSubType() @@ -608,9 +608,9 @@ namespace eprosima { return true; } - void BaseStatus_sPubSubType::register_type_object_representation() const + void BaseStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_BaseStatus_s_type_identifier(type_identifiers_); } @@ -802,9 +802,9 @@ namespace eprosima { return true; } - void IncompatibleQoSStatus_sPubSubType::register_type_object_representation() const + void IncompatibleQoSStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_IncompatibleQoSStatus_s_type_identifier(type_identifiers_); } LivelinessChangedStatus_sPubSubType::LivelinessChangedStatus_sPubSubType() @@ -995,9 +995,9 @@ namespace eprosima { return true; } - void LivelinessChangedStatus_sPubSubType::register_type_object_representation() const + void LivelinessChangedStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_LivelinessChangedStatus_s_type_identifier(type_identifiers_); } DeadlineMissedStatus_sPubSubType::DeadlineMissedStatus_sPubSubType() @@ -1188,9 +1188,9 @@ namespace eprosima { return true; } - void DeadlineMissedStatus_sPubSubType::register_type_object_representation() const + void DeadlineMissedStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_DeadlineMissedStatus_s_type_identifier(type_identifiers_); } @@ -1388,9 +1388,9 @@ namespace eprosima { return true; } - void MonitorServiceStatusDataPubSubType::register_type_object_representation() const + void MonitorServiceStatusDataPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_MonitorServiceStatusData_type_identifier(type_identifiers_); } } // namespace statistics diff --git a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h index cc0d28dffc7..c6d5c8faa2d 100644 --- a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h +++ b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h @@ -96,7 +96,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -187,7 +187,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -278,7 +278,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -370,7 +370,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -461,7 +461,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -552,7 +552,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -660,7 +660,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx b/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx index 02f0061a5bd..268b97a6439 100644 --- a/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx +++ b/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx @@ -39,73 +39,79 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_monitorservice_types_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_WriterReaderData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_PhysicalData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Data_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Connection_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier(type_id); - - }); -} - namespace eprosima { namespace fastdds { namespace statistics { -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Connection_type_identifier( - TypeIdentifier& type_id) +void register_ConnectionMode_type_identifier( + TypeIdentifierPair& type_ids_ConnectionMode) +{ + ReturnCode_t return_code_ConnectionMode {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ConnectionMode = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::ConnectionMode", type_ids_ConnectionMode); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ConnectionMode) + { + EnumTypeFlag enum_flags_ConnectionMode = 0; + BitBound bit_bound_ConnectionMode = 32; + CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); + QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; + eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; + eprosima::fastcdr::optional ann_custom_ConnectionMode; + CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); + CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); + CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; + { + EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); + eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; + ann_custom_ConnectionMode.reset(); + MemberName name_DATA_SHARING = "DATA_SHARING"; + CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); + } + { + EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); + eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; + ann_custom_ConnectionMode.reset(); + MemberName name_INTRAPROCESS = "INTRAPROCESS"; + CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); + } + { + EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); + eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; + ann_custom_ConnectionMode.reset(); + MemberName name_TRANSPORT = "TRANSPORT"; + CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); + } + CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, + literal_seq_ConnectionMode); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string(), type_ids_ConnectionMode)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Connection_type_identifier( + TypeIdentifierPair& type_ids_Connection) { + + ReturnCode_t return_code_Connection {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Connection = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Connection", type_ids_Connection); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Connection) { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; eprosima::fastcdr::optional type_ann_builtin_Connection; eprosima::fastcdr::optional ann_custom_Connection; @@ -114,115 +120,24 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); CompleteStructMemberSeq member_seq_Connection; { - return_code_Connection = + TypeIdentifierPair type_ids_mode; + ReturnCode_t return_code_mode {eprosima::fastdds::dds::RETCODE_OK}; + return_code_mode = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); + "eprosima::fastdds::statistics::ConnectionMode", type_ids_mode); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_mode) { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_ConnectionMode_type_identifier(type_ids_mode); } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_mode; MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else + bool common_mode_ec {false}; + CommonStructMember common_mode {TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_mode, common_mode_ec))}; + if (!common_mode_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure mode member TypeIdentifier inconsistent."); return; } MemberName name_mode = "mode"; @@ -233,572 +148,24 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); } { - return_code_Connection = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -809,376 +176,31 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); } { - return_code_Connection = + TypeIdentifierPair type_ids_announced_locators; + ReturnCode_t return_code_announced_locators {eprosima::fastdds::dds::RETCODE_OK}; + return_code_announced_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); + "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_announced_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_announced_locators) { - return_code_Connection = + return_code_announced_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_announced_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_announced_locators) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_announced_locators); } - else + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_announced_locators, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) + if (TK_NONE == type_ids_announced_locators.type_identifier2()._d()) { equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; } @@ -1189,68 +211,21 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_announced_locators)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_announced_locators; MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else + bool common_announced_locators_ec {false}; + CommonStructMember common_announced_locators {TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_announced_locators, common_announced_locators_ec))}; + if (!common_announced_locators_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure announced_locators member TypeIdentifier inconsistent."); return; } MemberName name_announced_locators = "announced_locators"; @@ -1261,376 +236,31 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); } { - return_code_Connection = + TypeIdentifierPair type_ids_used_locators; + ReturnCode_t return_code_used_locators {eprosima::fastdds::dds::RETCODE_OK}; + return_code_used_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); + "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_used_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_used_locators) { - return_code_Connection = + return_code_used_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_used_locators); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_used_locators) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_used_locators); } - else + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_used_locators, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) + if (TK_NONE == type_ids_used_locators.type_identifier2()._d()) { equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; } @@ -1641,68 +271,21 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_used_locators)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_used_locators; MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else + bool common_used_locators_ec {false}; + CommonStructMember common_used_locators {TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_used_locators, common_used_locators_ec))}; + if (!common_used_locators_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure used_locators member TypeIdentifier inconsistent."); return; } MemberName name_used_locators = "used_locators"; @@ -1714,32 +297,26 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( } CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_ids_Connection)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( - TypeIdentifier& type_id) +void register_QosPolicyCount_s_type_identifier( + TypeIdentifierPair& type_ids_QosPolicyCount_s) { + + ReturnCode_t return_code_QosPolicyCount_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_QosPolicyCount_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCount_s) { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; @@ -1748,62 +325,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); CompleteStructMemberSeq member_seq_QosPolicyCount_s; { - return_code_QosPolicyCount_s = + TypeIdentifierPair type_ids_policy_id; + ReturnCode_t return_code_policy_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_policy_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); + "_uint32_t", type_ids_policy_id); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_policy_id) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_policy_id; MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_policy_id_ec {false}; + CommonStructMember common_policy_id {TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_policy_id, common_policy_id_ec))}; + if (!common_policy_id_ec) { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure policy_id member TypeIdentifier inconsistent."); return; } MemberName name_policy_id = "policy_id"; @@ -1814,62 +355,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); } { - return_code_QosPolicyCount_s = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); + "_uint32_t", type_ids_count); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -1881,32 +386,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( } CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_ids_QosPolicyCount_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_BaseStatus_s_type_identifier( + TypeIdentifierPair& type_ids_BaseStatus_s) { + + ReturnCode_t return_code_BaseStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BaseStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BaseStatus_s) { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; eprosima::fastcdr::optional ann_custom_BaseStatus_s; @@ -1915,62 +414,26 @@ void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); CompleteStructMemberSeq member_seq_BaseStatus_s; { - return_code_BaseStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -1982,32 +445,106 @@ void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( } CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_ids_BaseStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_BaseStatus_s = + } +} +void register_QosPolicyCountSeq_s_type_identifier( + TypeIdentifierPair& type_ids_QosPolicyCountSeq_s) +{ + ReturnCode_t return_code_QosPolicyCountSeq_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_QosPolicyCountSeq_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_QosPolicyCountSeq_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) + { + AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; + QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; + eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; + eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; + CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); + CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); + AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; + return_code_QosPolicyCountSeq_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) + "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_QosPolicyCountSeq_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + return_code_QosPolicyCountSeq_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCountSeq_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) + { + eprosima::fastdds::statistics::register_QosPolicyCount_s_type_identifier(type_ids_QosPolicyCountSeq_s); + } + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_QosPolicyCountSeq_s, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_QosPolicyCountSeq_s.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_QosPolicyCountSeq_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_QosPolicyCountSeq_s_ec {false}; + CommonAliasBody common_QosPolicyCountSeq_s {TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_QosPolicyCountSeq_s, common_QosPolicyCountSeq_s_ec))}; + if (!common_QosPolicyCountSeq_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); return; } + eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; + ann_custom_QosPolicyCountSeq_s.reset(); + CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, + member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); + CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, + header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, + type_name_QosPolicyCountSeq_s.to_string(), type_ids_QosPolicyCountSeq_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); + } } } + // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_IncompatibleQoSStatus_s_type_identifier( + TypeIdentifierPair& type_ids_IncompatibleQoSStatus_s) { + + ReturnCode_t return_code_IncompatibleQoSStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_IncompatibleQoSStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_IncompatibleQoSStatus_s) { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; @@ -2016,62 +553,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -2082,62 +583,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); } { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_last_policy_id; + ReturnCode_t return_code_last_policy_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_policy_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); + "_uint32_t", type_ids_last_policy_id); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_policy_id) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_policy_id; MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else + bool common_last_policy_id_ec {false}; + CommonStructMember common_last_policy_id {TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_policy_id, common_last_policy_id_ec))}; + if (!common_last_policy_id_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_policy_id member TypeIdentifier inconsistent."); return; } MemberName name_last_policy_id = "last_policy_id"; @@ -2148,379 +613,24 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); } { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_policies; + ReturnCode_t return_code_policies {eprosima::fastdds::dds::RETCODE_OK}; + return_code_policies = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); + "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_policies); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_policies) { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_QosPolicyCountSeq_s_type_identifier(type_ids_policies); } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_policies; MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_policies_ec {false}; + CommonStructMember common_policies {TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_policies, common_policies_ec))}; + if (!common_policies_ec) { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure policies member TypeIdentifier inconsistent."); return; } MemberName name_policies = "policies"; @@ -2532,32 +642,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie } CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_ids_IncompatibleQoSStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_LivelinessChangedStatus_s_type_identifier( + TypeIdentifierPair& type_ids_LivelinessChangedStatus_s) { + + ReturnCode_t return_code_LivelinessChangedStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LivelinessChangedStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessChangedStatus_s) { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; @@ -2566,62 +670,26 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_alive_count; + ReturnCode_t return_code_alive_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alive_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); + "_uint32_t", type_ids_alive_count); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alive_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_alive_count; MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool common_alive_count_ec {false}; + CommonStructMember common_alive_count {TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alive_count, common_alive_count_ec))}; + if (!common_alive_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure alive_count member TypeIdentifier inconsistent."); return; } MemberName name_alive_count = "alive_count"; @@ -2632,63 +700,27 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); } { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_not_alive_count; + ReturnCode_t return_code_not_alive_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_not_alive_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); + "_uint32_t", type_ids_not_alive_count); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_not_alive_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_not_alive_count; MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_not_alive_count_ec {false}; + CommonStructMember common_not_alive_count {TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_not_alive_count, common_not_alive_count_ec))}; + if (!common_not_alive_count_ec) { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure not_alive_count member TypeIdentifier inconsistent."); + return; } MemberName name_not_alive_count = "not_alive_count"; eprosima::fastcdr::optional member_ann_builtin_not_alive_count; @@ -2698,69 +730,33 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); } { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_last_publication_handle; + ReturnCode_t return_code_last_publication_handle {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_publication_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); + "anonymous_array_uint8_t_16", type_ids_last_publication_handle); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_publication_handle) { - return_code_LivelinessChangedStatus_s = + return_code_last_publication_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); + "_byte", type_ids_last_publication_handle); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_publication_handle) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_publication_handle, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) + if (TK_NONE == type_ids_last_publication_handle.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -2773,68 +769,21 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_last_publication_handle)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_publication_handle; MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool common_last_publication_handle_ec {false}; + CommonStructMember common_last_publication_handle {TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_publication_handle, common_last_publication_handle_ec))}; + if (!common_last_publication_handle_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_publication_handle member TypeIdentifier inconsistent."); return; } MemberName name_last_publication_handle = "last_publication_handle"; @@ -2846,32 +795,26 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif } CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_ids_LivelinessChangedStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_DeadlineMissedStatus_s_type_identifier( + TypeIdentifierPair& type_ids_DeadlineMissedStatus_s) { + + ReturnCode_t return_code_DeadlineMissedStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DeadlineMissedStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DeadlineMissedStatus_s) { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; @@ -2880,62 +823,26 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; { - return_code_DeadlineMissedStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -2946,69 +853,33 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); } { - return_code_DeadlineMissedStatus_s = + TypeIdentifierPair type_ids_last_instance_handle; + ReturnCode_t return_code_last_instance_handle {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_instance_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); + "anonymous_array_uint8_t_16", type_ids_last_instance_handle); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_instance_handle) { - return_code_DeadlineMissedStatus_s = + return_code_last_instance_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); + "_byte", type_ids_last_instance_handle); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_instance_handle) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_instance_handle, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) + if (TK_NONE == type_ids_last_instance_handle.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -3021,68 +892,21 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_last_instance_handle)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_instance_handle; MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else + bool common_last_instance_handle_ec {false}; + CommonStructMember common_last_instance_handle {TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_instance_handle, common_last_instance_handle_ec))}; + if (!common_last_instance_handle_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_instance_handle member TypeIdentifier inconsistent."); return; } MemberName name_last_instance_handle = "last_instance_handle"; @@ -3094,40 +918,228 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier } CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_ids_DeadlineMissedStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_DeadlineMissedStatus_s = + } +} +void register_LivelinessLostStatus_s_type_identifier( + TypeIdentifierPair& type_ids_LivelinessLostStatus_s) +{ + ReturnCode_t return_code_LivelinessLostStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LivelinessLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_LivelinessLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessLostStatus_s) + { + AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; + QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; + eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; + CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); + CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); + AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; + return_code_LivelinessLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_LivelinessLostStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessLostStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_LivelinessLostStatus_s); + } + bool common_LivelinessLostStatus_s_ec {false}; + CommonAliasBody common_LivelinessLostStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_LivelinessLostStatus_s, common_LivelinessLostStatus_s_ec))}; + if (!common_LivelinessLostStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; + ann_custom_LivelinessLostStatus_s.reset(); + CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, + member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); + CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, + header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, + type_name_LivelinessLostStatus_s.to_string(), type_ids_LivelinessLostStatus_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_InconsistentTopicStatus_s_type_identifier( + TypeIdentifierPair& type_ids_InconsistentTopicStatus_s) +{ + ReturnCode_t return_code_InconsistentTopicStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InconsistentTopicStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_InconsistentTopicStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InconsistentTopicStatus_s) + { + AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; + QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; + eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; + CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); + CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); + AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; + return_code_InconsistentTopicStatus_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_InconsistentTopicStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InconsistentTopicStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_InconsistentTopicStatus_s); + } + bool common_InconsistentTopicStatus_s_ec {false}; + CommonAliasBody common_InconsistentTopicStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InconsistentTopicStatus_s, common_InconsistentTopicStatus_s_ec))}; + if (!common_InconsistentTopicStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; + ann_custom_InconsistentTopicStatus_s.reset(); + CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, + member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); + CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, + header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, + type_name_InconsistentTopicStatus_s.to_string(), type_ids_InconsistentTopicStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_SampleLostStatus_s_type_identifier( + TypeIdentifierPair& type_ids_SampleLostStatus_s) +{ + ReturnCode_t return_code_SampleLostStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_SampleLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleLostStatus_s) + { + AliasTypeFlag alias_flags_SampleLostStatus_s = 0; + QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; + eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; + CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); + CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); + AliasMemberFlag related_flags_SampleLostStatus_s = 0; + return_code_SampleLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_SampleLostStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleLostStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_SampleLostStatus_s); + } + bool common_SampleLostStatus_s_ec {false}; + CommonAliasBody common_SampleLostStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_SampleLostStatus_s, common_SampleLostStatus_s_ec))}; + if (!common_SampleLostStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); return; } + eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; + ann_custom_SampleLostStatus_s.reset(); + CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, + member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); + CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, + header_SampleLostStatus_s, body_SampleLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, + type_name_SampleLostStatus_s.to_string(), type_ids_SampleLostStatus_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); + } } } + namespace StatusKind { +void register_StatusKind_type_identifier( + TypeIdentifierPair& type_ids_StatusKind) +{ + ReturnCode_t return_code_StatusKind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StatusKind = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_StatusKind); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StatusKind) + { + AliasTypeFlag alias_flags_StatusKind = 0; + QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; + eprosima::fastcdr::optional type_ann_builtin_StatusKind; + eprosima::fastcdr::optional ann_custom_StatusKind; + CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); + CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); + AliasMemberFlag related_flags_StatusKind = 0; + return_code_StatusKind = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StatusKind); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StatusKind) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_StatusKind_ec {false}; + CommonAliasBody common_StatusKind {TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_StatusKind, common_StatusKind_ec))}; + if (!common_StatusKind_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_StatusKind; + ann_custom_StatusKind.reset(); + CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, + member_ann_builtin_StatusKind, ann_custom_StatusKind); + CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, + header_StatusKind, body_StatusKind); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, + type_name_StatusKind.to_string(), type_ids_StatusKind)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); + } + } +} + + } // namespace StatusKind // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( - TypeIdentifier& type_id) +void register_MonitorServiceData_type_identifier( + TypeIdentifierPair& type_ids_MonitorServiceData) { + ReturnCode_t return_code_MonitorServiceData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MonitorServiceData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - ReturnCode_t return_code_MonitorServiceData; - TypeIdentifierPair type_ids_MonitorServiceData; - UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_MonitorServiceData = "eprosima::fastdds::statistics::MonitorServiceData"; eprosima::fastcdr::optional type_ann_builtin_MonitorServiceData; eprosima::fastcdr::optional ann_custom_MonitorServiceData; CompleteTypeDetail detail_MonitorServiceData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData, type_name_MonitorServiceData.to_string()); CompleteUnionHeader header_MonitorServiceData = TypeObjectUtils::build_complete_union_header(detail_MonitorServiceData); - UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3135,88 +1147,7 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::StatusKind::register_StatusKind_type_identifier(type_ids_MonitorServiceData); } CommonDiscriminatorMember common_MonitorServiceData; if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) @@ -3231,7 +1162,6 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceData discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_MonitorServiceData.reset(); @@ -3244,61 +1174,23 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; @@ -3313,72 +1205,25 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_proxy; TypeObjectUtils::add_union_case_label(label_seq_entity_proxy, static_cast(StatusKind::PROXY)); - CommonUnionMember common_entity_proxy; MemberId member_id_entity_proxy = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier1(), - label_seq_entity_proxy); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier2(), - label_seq_entity_proxy); - } - else + bool common_entity_proxy_ec {false}; + CommonUnionMember common_entity_proxy {TypeObjectUtils::build_common_union_member(member_id_entity_proxy, + member_flags_entity_proxy, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_entity_proxy_ec), label_seq_entity_proxy)}; + if (!common_entity_proxy_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_proxy member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_proxy member TypeIdentifier inconsistent."); return; } MemberName name_entity_proxy = "entity_proxy"; @@ -3393,1688 +1238,21 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Connection", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; - QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; - eprosima::fastcdr::optional type_ann_builtin_Connection; - eprosima::fastcdr::optional ann_custom_Connection; - CompleteTypeDetail detail_Connection = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Connection, ann_custom_Connection, type_name_Connection.to_string()); - CompleteStructHeader header_Connection; - header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); - CompleteStructMemberSeq member_seq_Connection; - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_mode; - MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_mode = "mode"; - eprosima::fastcdr::optional member_ann_builtin_mode; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_mode = TypeObjectUtils::build_complete_member_detail(name_mode, member_ann_builtin_mode, ann_custom_Connection); - CompleteStructMember member_mode = TypeObjectUtils::build_complete_struct_member(common_mode, detail_mode); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_Connection); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_announced_locators; - MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_announced_locators = "announced_locators"; - eprosima::fastcdr::optional member_ann_builtin_announced_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_announced_locators = TypeObjectUtils::build_complete_member_detail(name_announced_locators, member_ann_builtin_announced_locators, ann_custom_Connection); - CompleteStructMember member_announced_locators = TypeObjectUtils::build_complete_struct_member(common_announced_locators, detail_announced_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_used_locators; - MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_used_locators = "used_locators"; - eprosima::fastcdr::optional member_ann_builtin_used_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_used_locators = TypeObjectUtils::build_complete_member_detail(name_used_locators, member_ann_builtin_used_locators, ann_custom_Connection); - CompleteStructMember member_used_locators = TypeObjectUtils::build_complete_struct_member(common_used_locators, detail_used_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_used_locators); - } - CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_Connection; - type_ids_MonitorServiceData = type_ids_Connection; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); + eprosima::fastdds::statistics::register_Connection_type_identifier(type_ids_MonitorServiceData); } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_COMPLETE; @@ -5089,72 +1267,25 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_connection_list; TypeObjectUtils::add_union_case_label(label_seq_connection_list, static_cast(StatusKind::CONNECTION_LIST)); - CommonUnionMember common_connection_list; MemberId member_id_connection_list = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier1(), - label_seq_connection_list); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier2(), - label_seq_connection_list); - } - else + bool common_connection_list_ec {false}; + CommonUnionMember common_connection_list {TypeObjectUtils::build_common_union_member(member_id_connection_list, + member_flags_connection_list, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_connection_list_ec), label_seq_connection_list)}; + if (!common_connection_list_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union connection_list member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union connection_list member TypeIdentifier inconsistent."); return; } MemberName name_connection_list = "connection_list"; @@ -5169,605 +1300,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; - QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; - eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; - CompleteTypeDetail detail_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_IncompatibleQoSStatus_s, ann_custom_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string()); - CompleteStructHeader header_IncompatibleQoSStatus_s; - header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); - CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_policy_id; - MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_policy_id = "last_policy_id"; - eprosima::fastcdr::optional member_ann_builtin_last_policy_id; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_last_policy_id = TypeObjectUtils::build_complete_member_detail(name_last_policy_id, member_ann_builtin_last_policy_id, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_last_policy_id = TypeObjectUtils::build_complete_struct_member(common_last_policy_id, detail_last_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policies; - MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policies = "policies"; - eprosima::fastcdr::optional member_ann_builtin_policies; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_policies = TypeObjectUtils::build_complete_member_detail(name_policies, member_ann_builtin_policies, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_policies = TypeObjectUtils::build_complete_struct_member(common_policies, detail_policies); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_policies); - } - CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_IncompatibleQoSStatus_s; - type_ids_MonitorServiceData = type_ids_IncompatibleQoSStatus_s; - } + eprosima::fastdds::statistics::register_IncompatibleQoSStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_incompatible_qos_status; TypeObjectUtils::add_union_case_label(label_seq_incompatible_qos_status, static_cast(StatusKind::INCOMPATIBLE_QOS)); - CommonUnionMember common_incompatible_qos_status; MemberId member_id_incompatible_qos_status = 0x00000003; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_incompatible_qos_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_incompatible_qos_status); - } - else + bool common_incompatible_qos_status_ec {false}; + CommonUnionMember common_incompatible_qos_status {TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, + member_flags_incompatible_qos_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_incompatible_qos_status_ec), label_seq_incompatible_qos_status)}; + if (!common_incompatible_qos_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union incompatible_qos_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union incompatible_qos_status member TypeIdentifier inconsistent."); return; } MemberName name_incompatible_qos_status = "incompatible_qos_status"; @@ -5782,234 +1330,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; - QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; - eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; - CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); - CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); - AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_InconsistentTopicStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; - ann_custom_InconsistentTopicStatus_s.reset(); - CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); - CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_InconsistentTopicStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_inconsistent_topic_status; TypeObjectUtils::add_union_case_label(label_seq_inconsistent_topic_status, static_cast(StatusKind::INCONSISTENT_TOPIC)); - CommonUnionMember common_inconsistent_topic_status; MemberId member_id_inconsistent_topic_status = 0x00000004; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_inconsistent_topic_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_inconsistent_topic_status); - } - else + bool common_inconsistent_topic_status_ec {false}; + CommonUnionMember common_inconsistent_topic_status {TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, + member_flags_inconsistent_topic_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_inconsistent_topic_status_ec), label_seq_inconsistent_topic_status)}; + if (!common_inconsistent_topic_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union inconsistent_topic_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union inconsistent_topic_status member TypeIdentifier inconsistent."); return; } MemberName name_inconsistent_topic_status = "inconsistent_topic_status"; @@ -6024,234 +1360,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; - QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; - CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); - CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); - AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_LivelinessLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; - ann_custom_LivelinessLostStatus_s.reset(); - CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); - CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_LivelinessLostStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_liveliness_lost_status; TypeObjectUtils::add_union_case_label(label_seq_liveliness_lost_status, static_cast(StatusKind::LIVELINESS_LOST)); - CommonUnionMember common_liveliness_lost_status; MemberId member_id_liveliness_lost_status = 0x00000005; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_liveliness_lost_status_ec {false}; + CommonUnionMember common_liveliness_lost_status {TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, + member_flags_liveliness_lost_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_liveliness_lost_status_ec), label_seq_liveliness_lost_status)}; + if (!common_liveliness_lost_status_ec) { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union liveliness_lost_status member TypeIdentifier inconsistent."); return; } MemberName name_liveliness_lost_status = "liveliness_lost_status"; @@ -6266,369 +1390,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; - QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; - CompleteTypeDetail detail_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessChangedStatus_s, ann_custom_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string()); - CompleteStructHeader header_LivelinessChangedStatus_s; - header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); - CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_alive_count; - MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_alive_count = "alive_count"; - eprosima::fastcdr::optional member_ann_builtin_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_alive_count = TypeObjectUtils::build_complete_member_detail(name_alive_count, member_ann_builtin_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_alive_count = TypeObjectUtils::build_complete_struct_member(common_alive_count, detail_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_not_alive_count; - MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_not_alive_count = "not_alive_count"; - eprosima::fastcdr::optional member_ann_builtin_not_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_not_alive_count = TypeObjectUtils::build_complete_member_detail(name_not_alive_count, member_ann_builtin_not_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_not_alive_count = TypeObjectUtils::build_complete_struct_member(common_not_alive_count, detail_not_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_publication_handle; - MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_publication_handle = "last_publication_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_publication_handle; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_last_publication_handle = TypeObjectUtils::build_complete_member_detail(name_last_publication_handle, member_ann_builtin_last_publication_handle, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_last_publication_handle = TypeObjectUtils::build_complete_struct_member(common_last_publication_handle, detail_last_publication_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_last_publication_handle); - } - CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_LivelinessChangedStatus_s; - type_ids_MonitorServiceData = type_ids_LivelinessChangedStatus_s; - } + eprosima::fastdds::statistics::register_LivelinessChangedStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_liveliness_changed_status; TypeObjectUtils::add_union_case_label(label_seq_liveliness_changed_status, static_cast(StatusKind::LIVELINESS_CHANGED)); - CommonUnionMember common_liveliness_changed_status; MemberId member_id_liveliness_changed_status = 0x00000006; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_liveliness_changed_status_ec {false}; + CommonUnionMember common_liveliness_changed_status {TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, + member_flags_liveliness_changed_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_liveliness_changed_status_ec), label_seq_liveliness_changed_status)}; + if (!common_liveliness_changed_status_ec) { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_changed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_changed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_changed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union liveliness_changed_status member TypeIdentifier inconsistent."); return; } MemberName name_liveliness_changed_status = "liveliness_changed_status"; @@ -6643,303 +1420,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; - QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; - eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; - CompleteTypeDetail detail_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DeadlineMissedStatus_s, ann_custom_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string()); - CompleteStructHeader header_DeadlineMissedStatus_s; - header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); - CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); - } - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_instance_handle; - MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_instance_handle = "last_instance_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_instance_handle; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_last_instance_handle = TypeObjectUtils::build_complete_member_detail(name_last_instance_handle, member_ann_builtin_last_instance_handle, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_last_instance_handle = TypeObjectUtils::build_complete_struct_member(common_last_instance_handle, detail_last_instance_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_last_instance_handle); - } - CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_DeadlineMissedStatus_s; - type_ids_MonitorServiceData = type_ids_DeadlineMissedStatus_s; - } + eprosima::fastdds::statistics::register_DeadlineMissedStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_deadline_missed_status; TypeObjectUtils::add_union_case_label(label_seq_deadline_missed_status, static_cast(StatusKind::DEADLINE_MISSED)); - CommonUnionMember common_deadline_missed_status; MemberId member_id_deadline_missed_status = 0x00000007; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_deadline_missed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_deadline_missed_status); - } - else + bool common_deadline_missed_status_ec {false}; + CommonUnionMember common_deadline_missed_status {TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, + member_flags_deadline_missed_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_deadline_missed_status_ec), label_seq_deadline_missed_status)}; + if (!common_deadline_missed_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union deadline_missed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union deadline_missed_status member TypeIdentifier inconsistent."); return; } MemberName name_deadline_missed_status = "deadline_missed_status"; @@ -6954,234 +1450,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_SampleLostStatus_s = 0; - QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; - eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; - CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); - CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); - AliasMemberFlag related_flags_SampleLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_SampleLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; - ann_custom_SampleLostStatus_s.reset(); - CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); - CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, header_SampleLostStatus_s, body_SampleLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_SampleLostStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_sample_lost_status; TypeObjectUtils::add_union_case_label(label_seq_sample_lost_status, static_cast(StatusKind::SAMPLE_LOST)); - CommonUnionMember common_sample_lost_status; MemberId member_id_sample_lost_status = 0x00000008; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_sample_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_sample_lost_status); - } - else + bool common_sample_lost_status_ec {false}; + CommonUnionMember common_sample_lost_status {TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, + member_flags_sample_lost_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_sample_lost_status_ec), label_seq_sample_lost_status)}; + if (!common_sample_lost_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union sample_lost_status member TypeIdentifier inconsistent."); return; } MemberName name_sample_lost_status = "sample_lost_status"; @@ -7196,62 +1480,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "statuses_size Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_statuses_size; TypeObjectUtils::add_union_case_label(label_seq_statuses_size, static_cast(StatusKind::STATUSES_SIZE)); - CommonUnionMember common_statuses_size; MemberId member_id_statuses_size = 0x00000009; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier1(), - label_seq_statuses_size); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_statuses_size_ec {false}; + CommonUnionMember common_statuses_size {TypeObjectUtils::build_common_union_member(member_id_statuses_size, + member_flags_statuses_size, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_statuses_size_ec), label_seq_statuses_size)}; + if (!common_statuses_size_ec) { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier2(), - label_seq_statuses_size); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union statuses_size member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union statuses_size member TypeIdentifier inconsistent."); return; } MemberName name_statuses_size = "statuses_size"; @@ -7264,32 +1510,26 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( CompleteUnionType union_type_MonitorServiceData = TypeObjectUtils::build_complete_union_type(union_flags_MonitorServiceData, header_MonitorServiceData, discriminator_MonitorServiceData, member_seq_MonitorServiceData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceData already registered in TypeObjectRegistry for a different type."); } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier( - TypeIdentifier& type_id) +void register_MonitorServiceStatusData_type_identifier( + TypeIdentifierPair& type_ids_MonitorServiceStatusData) { + + ReturnCode_t return_code_MonitorServiceStatusData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MonitorServiceStatusData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::MonitorServiceStatusData", type_ids_MonitorServiceStatusData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceStatusData) { - StructTypeFlag struct_flags_MonitorServiceStatusData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MonitorServiceStatusData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MonitorServiceStatusData; - TypeIdentifierPair type_ids_MonitorServiceStatusData; QualifiedTypeName type_name_MonitorServiceStatusData = "eprosima::fastdds::statistics::MonitorServiceStatusData"; eprosima::fastcdr::optional type_ann_builtin_MonitorServiceStatusData; eprosima::fastcdr::optional ann_custom_MonitorServiceStatusData; @@ -7298,572 +1538,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi header_MonitorServiceStatusData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MonitorServiceStatusData); CompleteStructMemberSeq member_seq_MonitorServiceStatusData; { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_local_entity; + ReturnCode_t return_code_local_entity {eprosima::fastdds::dds::RETCODE_OK}; + return_code_local_entity = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_local_entity); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_local_entity) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceStatusData = return_code_GUID_s; - type_ids_MonitorServiceStatusData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_local_entity); } - StructMemberFlag member_flags_local_entity = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_local_entity = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_local_entity; MemberId member_id_local_entity = 0x00000000; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_entity = TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_local_entity_ec {false}; + CommonStructMember common_local_entity {TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_local_entity, common_local_entity_ec))}; + if (!common_local_entity_ec) { - common_local_entity = TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_entity member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure local_entity member TypeIdentifier inconsistent."); return; } MemberName name_local_entity = "local_entity"; @@ -7887,140 +1579,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_local_entity); } { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_status_kind; + ReturnCode_t return_code_status_kind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_status_kind = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_status_kind); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_status_kind) { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceStatusData); - - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceStatusData); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::StatusKind::register_StatusKind_type_identifier(type_ids_status_kind); } - StructMemberFlag member_flags_status_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_status_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_status_kind; MemberId member_id_status_kind = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_status_kind_ec {false}; + CommonStructMember common_status_kind {TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_status_kind, common_status_kind_ec))}; + if (!common_status_kind_ec) { - common_status_kind = TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_status_kind = TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure status_kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure status_kind member TypeIdentifier inconsistent."); return; } MemberName name_status_kind = "status_kind"; @@ -8044,4223 +1620,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_status_kind); } { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::MonitorServiceData", type_ids_value); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - ReturnCode_t return_code_MonitorServiceData; - TypeIdentifierPair type_ids_MonitorServiceData; - UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_MonitorServiceData = "eprosima::fastdds::statistics::MonitorServiceData"; - eprosima::fastcdr::optional type_ann_builtin_MonitorServiceData; - eprosima::fastcdr::optional ann_custom_MonitorServiceData; - CompleteTypeDetail detail_MonitorServiceData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData, type_name_MonitorServiceData.to_string()); - CompleteUnionHeader header_MonitorServiceData = TypeObjectUtils::build_complete_union_header(detail_MonitorServiceData); - UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonDiscriminatorMember common_MonitorServiceData; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - common_MonitorServiceData = TypeObjectUtils::build_common_discriminator_member(member_flags_MonitorServiceData, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - common_MonitorServiceData = TypeObjectUtils::build_common_discriminator_member(member_flags_MonitorServiceData, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_MonitorServiceData.reset(); - ann_custom_MonitorServiceData.reset(); - CompleteDiscriminatorMember discriminator_MonitorServiceData = TypeObjectUtils::build_complete_discriminator_member(common_MonitorServiceData, - type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData); - CompleteUnionMemberSeq member_seq_MonitorServiceData; - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_uint8_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_uint8_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_unbounded, element_flags_anonymous_sequence_uint8_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_entity_proxy; - TypeObjectUtils::add_union_case_label(label_seq_entity_proxy, static_cast(StatusKind::PROXY)); - CommonUnionMember common_entity_proxy; - MemberId member_id_entity_proxy = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier1(), - label_seq_entity_proxy); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier2(), - label_seq_entity_proxy); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_proxy member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entity_proxy = "entity_proxy"; - eprosima::fastcdr::optional member_ann_builtin_entity_proxy; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_entity_proxy = TypeObjectUtils::build_complete_member_detail(name_entity_proxy, member_ann_builtin_entity_proxy, ann_custom_MonitorServiceData); - CompleteUnionMember member_entity_proxy = TypeObjectUtils::build_complete_union_member(common_entity_proxy, detail_entity_proxy); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_entity_proxy); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; - QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; - eprosima::fastcdr::optional type_ann_builtin_Connection; - eprosima::fastcdr::optional ann_custom_Connection; - CompleteTypeDetail detail_Connection = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Connection, ann_custom_Connection, type_name_Connection.to_string()); - CompleteStructHeader header_Connection; - header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); - CompleteStructMemberSeq member_seq_Connection; - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_mode; - MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_mode = "mode"; - eprosima::fastcdr::optional member_ann_builtin_mode; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_mode = TypeObjectUtils::build_complete_member_detail(name_mode, member_ann_builtin_mode, ann_custom_Connection); - CompleteStructMember member_mode = TypeObjectUtils::build_complete_struct_member(common_mode, detail_mode); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_Connection); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_announced_locators; - MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_announced_locators = "announced_locators"; - eprosima::fastcdr::optional member_ann_builtin_announced_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_announced_locators = TypeObjectUtils::build_complete_member_detail(name_announced_locators, member_ann_builtin_announced_locators, ann_custom_Connection); - CompleteStructMember member_announced_locators = TypeObjectUtils::build_complete_struct_member(common_announced_locators, detail_announced_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_used_locators; - MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_used_locators = "used_locators"; - eprosima::fastcdr::optional member_ann_builtin_used_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_used_locators = TypeObjectUtils::build_complete_member_detail(name_used_locators, member_ann_builtin_used_locators, ann_custom_Connection); - CompleteStructMember member_used_locators = TypeObjectUtils::build_complete_struct_member(common_used_locators, detail_used_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_used_locators); - } - CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_Connection; - type_ids_MonitorServiceData = type_ids_Connection; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_connection_list; - TypeObjectUtils::add_union_case_label(label_seq_connection_list, static_cast(StatusKind::CONNECTION_LIST)); - CommonUnionMember common_connection_list; - MemberId member_id_connection_list = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier1(), - label_seq_connection_list); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier2(), - label_seq_connection_list); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union connection_list member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_connection_list = "connection_list"; - eprosima::fastcdr::optional member_ann_builtin_connection_list; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_connection_list = TypeObjectUtils::build_complete_member_detail(name_connection_list, member_ann_builtin_connection_list, ann_custom_MonitorServiceData); - CompleteUnionMember member_connection_list = TypeObjectUtils::build_complete_union_member(common_connection_list, detail_connection_list); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_connection_list); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; - QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; - eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; - CompleteTypeDetail detail_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_IncompatibleQoSStatus_s, ann_custom_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string()); - CompleteStructHeader header_IncompatibleQoSStatus_s; - header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); - CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_policy_id; - MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_policy_id = "last_policy_id"; - eprosima::fastcdr::optional member_ann_builtin_last_policy_id; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_last_policy_id = TypeObjectUtils::build_complete_member_detail(name_last_policy_id, member_ann_builtin_last_policy_id, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_last_policy_id = TypeObjectUtils::build_complete_struct_member(common_last_policy_id, detail_last_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policies; - MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policies = "policies"; - eprosima::fastcdr::optional member_ann_builtin_policies; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_policies = TypeObjectUtils::build_complete_member_detail(name_policies, member_ann_builtin_policies, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_policies = TypeObjectUtils::build_complete_struct_member(common_policies, detail_policies); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_policies); - } - CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_IncompatibleQoSStatus_s; - type_ids_MonitorServiceData = type_ids_IncompatibleQoSStatus_s; - } - } - UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_incompatible_qos_status; - TypeObjectUtils::add_union_case_label(label_seq_incompatible_qos_status, static_cast(StatusKind::INCOMPATIBLE_QOS)); - CommonUnionMember common_incompatible_qos_status; - MemberId member_id_incompatible_qos_status = 0x00000003; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_incompatible_qos_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_incompatible_qos_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union incompatible_qos_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_incompatible_qos_status = "incompatible_qos_status"; - eprosima::fastcdr::optional member_ann_builtin_incompatible_qos_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_incompatible_qos_status = TypeObjectUtils::build_complete_member_detail(name_incompatible_qos_status, member_ann_builtin_incompatible_qos_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_incompatible_qos_status = TypeObjectUtils::build_complete_union_member(common_incompatible_qos_status, detail_incompatible_qos_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_incompatible_qos_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; - QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; - eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; - CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); - CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); - AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_InconsistentTopicStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; - ann_custom_InconsistentTopicStatus_s.reset(); - CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); - CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_inconsistent_topic_status; - TypeObjectUtils::add_union_case_label(label_seq_inconsistent_topic_status, static_cast(StatusKind::INCONSISTENT_TOPIC)); - CommonUnionMember common_inconsistent_topic_status; - MemberId member_id_inconsistent_topic_status = 0x00000004; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_inconsistent_topic_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_inconsistent_topic_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union inconsistent_topic_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_inconsistent_topic_status = "inconsistent_topic_status"; - eprosima::fastcdr::optional member_ann_builtin_inconsistent_topic_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_inconsistent_topic_status = TypeObjectUtils::build_complete_member_detail(name_inconsistent_topic_status, member_ann_builtin_inconsistent_topic_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_inconsistent_topic_status = TypeObjectUtils::build_complete_union_member(common_inconsistent_topic_status, detail_inconsistent_topic_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_inconsistent_topic_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; - QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; - CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); - CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); - AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_LivelinessLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; - ann_custom_LivelinessLostStatus_s.reset(); - CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); - CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_liveliness_lost_status; - TypeObjectUtils::add_union_case_label(label_seq_liveliness_lost_status, static_cast(StatusKind::LIVELINESS_LOST)); - CommonUnionMember common_liveliness_lost_status; - MemberId member_id_liveliness_lost_status = 0x00000005; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_liveliness_lost_status = "liveliness_lost_status"; - eprosima::fastcdr::optional member_ann_builtin_liveliness_lost_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_liveliness_lost_status = TypeObjectUtils::build_complete_member_detail(name_liveliness_lost_status, member_ann_builtin_liveliness_lost_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_liveliness_lost_status = TypeObjectUtils::build_complete_union_member(common_liveliness_lost_status, detail_liveliness_lost_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_liveliness_lost_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; - QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; - CompleteTypeDetail detail_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessChangedStatus_s, ann_custom_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string()); - CompleteStructHeader header_LivelinessChangedStatus_s; - header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); - CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_alive_count; - MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_alive_count = "alive_count"; - eprosima::fastcdr::optional member_ann_builtin_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_alive_count = TypeObjectUtils::build_complete_member_detail(name_alive_count, member_ann_builtin_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_alive_count = TypeObjectUtils::build_complete_struct_member(common_alive_count, detail_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_not_alive_count; - MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_not_alive_count = "not_alive_count"; - eprosima::fastcdr::optional member_ann_builtin_not_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_not_alive_count = TypeObjectUtils::build_complete_member_detail(name_not_alive_count, member_ann_builtin_not_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_not_alive_count = TypeObjectUtils::build_complete_struct_member(common_not_alive_count, detail_not_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_publication_handle; - MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_publication_handle = "last_publication_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_publication_handle; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_last_publication_handle = TypeObjectUtils::build_complete_member_detail(name_last_publication_handle, member_ann_builtin_last_publication_handle, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_last_publication_handle = TypeObjectUtils::build_complete_struct_member(common_last_publication_handle, detail_last_publication_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_last_publication_handle); - } - CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_LivelinessChangedStatus_s; - type_ids_MonitorServiceData = type_ids_LivelinessChangedStatus_s; - } - } - UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_liveliness_changed_status; - TypeObjectUtils::add_union_case_label(label_seq_liveliness_changed_status, static_cast(StatusKind::LIVELINESS_CHANGED)); - CommonUnionMember common_liveliness_changed_status; - MemberId member_id_liveliness_changed_status = 0x00000006; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_changed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_changed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_changed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_liveliness_changed_status = "liveliness_changed_status"; - eprosima::fastcdr::optional member_ann_builtin_liveliness_changed_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_liveliness_changed_status = TypeObjectUtils::build_complete_member_detail(name_liveliness_changed_status, member_ann_builtin_liveliness_changed_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_liveliness_changed_status = TypeObjectUtils::build_complete_union_member(common_liveliness_changed_status, detail_liveliness_changed_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_liveliness_changed_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; - QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; - eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; - CompleteTypeDetail detail_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DeadlineMissedStatus_s, ann_custom_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string()); - CompleteStructHeader header_DeadlineMissedStatus_s; - header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); - CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); - } - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_instance_handle; - MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_instance_handle = "last_instance_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_instance_handle; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_last_instance_handle = TypeObjectUtils::build_complete_member_detail(name_last_instance_handle, member_ann_builtin_last_instance_handle, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_last_instance_handle = TypeObjectUtils::build_complete_struct_member(common_last_instance_handle, detail_last_instance_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_last_instance_handle); - } - CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_DeadlineMissedStatus_s; - type_ids_MonitorServiceData = type_ids_DeadlineMissedStatus_s; - } - } - UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_deadline_missed_status; - TypeObjectUtils::add_union_case_label(label_seq_deadline_missed_status, static_cast(StatusKind::DEADLINE_MISSED)); - CommonUnionMember common_deadline_missed_status; - MemberId member_id_deadline_missed_status = 0x00000007; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_deadline_missed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_deadline_missed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union deadline_missed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_deadline_missed_status = "deadline_missed_status"; - eprosima::fastcdr::optional member_ann_builtin_deadline_missed_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_deadline_missed_status = TypeObjectUtils::build_complete_member_detail(name_deadline_missed_status, member_ann_builtin_deadline_missed_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_deadline_missed_status = TypeObjectUtils::build_complete_union_member(common_deadline_missed_status, detail_deadline_missed_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_deadline_missed_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_SampleLostStatus_s = 0; - QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; - eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; - CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); - CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); - AliasMemberFlag related_flags_SampleLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_SampleLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; - ann_custom_SampleLostStatus_s.reset(); - CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); - CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, header_SampleLostStatus_s, body_SampleLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_sample_lost_status; - TypeObjectUtils::add_union_case_label(label_seq_sample_lost_status, static_cast(StatusKind::SAMPLE_LOST)); - CommonUnionMember common_sample_lost_status; - MemberId member_id_sample_lost_status = 0x00000008; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_sample_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_sample_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sample_lost_status = "sample_lost_status"; - eprosima::fastcdr::optional member_ann_builtin_sample_lost_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_sample_lost_status = TypeObjectUtils::build_complete_member_detail(name_sample_lost_status, member_ann_builtin_sample_lost_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_sample_lost_status = TypeObjectUtils::build_complete_union_member(common_sample_lost_status, detail_sample_lost_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_sample_lost_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "statuses_size Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_statuses_size; - TypeObjectUtils::add_union_case_label(label_seq_statuses_size, static_cast(StatusKind::STATUSES_SIZE)); - CommonUnionMember common_statuses_size; - MemberId member_id_statuses_size = 0x00000009; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier1(), - label_seq_statuses_size); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier2(), - label_seq_statuses_size); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union statuses_size member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_statuses_size = "statuses_size"; - eprosima::fastcdr::optional member_ann_builtin_statuses_size; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_statuses_size = TypeObjectUtils::build_complete_member_detail(name_statuses_size, member_ann_builtin_statuses_size, ann_custom_MonitorServiceData); - CompleteUnionMember member_statuses_size = TypeObjectUtils::build_complete_union_member(common_statuses_size, detail_statuses_size); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_statuses_size); - } - CompleteUnionType union_type_MonitorServiceData = TypeObjectUtils::build_complete_union_type(union_flags_MonitorServiceData, header_MonitorServiceData, discriminator_MonitorServiceData, - member_seq_MonitorServiceData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceStatusData = return_code_MonitorServiceData; - type_ids_MonitorServiceStatusData = type_ids_MonitorServiceData; - } + eprosima::fastdds::statistics::register_MonitorServiceData_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12272,21 +1649,11 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi } CompleteStructType struct_type_MonitorServiceStatusData = TypeObjectUtils::build_complete_struct_type(struct_flags_MonitorServiceStatusData, header_MonitorServiceStatusData, member_seq_MonitorServiceStatusData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MonitorServiceStatusData, type_name_MonitorServiceStatusData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MonitorServiceStatusData, type_name_MonitorServiceStatusData.to_string(), type_ids_MonitorServiceStatusData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceStatusData already registered in TypeObjectRegistry for a different type."); } - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceStatusData", type_ids_MonitorServiceStatusData); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceStatusData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.hpp b/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.hpp index b1e4de055bd..703ef46f1c6 100644 --- a/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.hpp +++ b/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.hpp @@ -36,18 +36,26 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_monitorservice_types_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace eprosima { namespace fastdds { namespace statistics { /** - * @brief Register eprosima_fastdds_statistics_Connection related TypeIdentifier. + * @brief Register ConnectionMode related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_ConnectionMode_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register Connection related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -56,11 +64,11 @@ namespace statistics { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Connection_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Connection_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_QosPolicyCount_s related TypeIdentifier. + * @brief Register QosPolicyCount_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -69,11 +77,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Connection_typ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_QosPolicyCount_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_BaseStatus_s related TypeIdentifier. + * @brief Register BaseStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -82,12 +90,52 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_QosPolicyCount * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_BaseStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register QosPolicyCountSeq_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_QosPolicyCountSeq_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + +/** + * @brief Register IncompatibleQoSStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_IncompatibleQoSStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register LivelinessChangedStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_LivelinessChangedStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_IncompatibleQoSStatus_s related TypeIdentifier. + * @brief Register DeadlineMissedStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -96,11 +144,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_BaseStatus_s_t * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_DeadlineMissedStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_LivelinessChangedStatus_s related TypeIdentifier. + * @brief Register LivelinessLostStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -109,11 +157,13 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_IncompatibleQo * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_LivelinessLostStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + /** - * @brief Register eprosima_fastdds_statistics_DeadlineMissedStatus_s related TypeIdentifier. + * @brief Register InconsistentTopicStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -122,17 +172,55 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_LivelinessChan * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_InconsistentTopicStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register SampleLostStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_SampleLostStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + namespace StatusKind { +/** + * @brief Register StatusKind related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_StatusKind_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + + + + + + + + + + } // namespace StatusKind /** - * @brief Register eprosima_fastdds_statistics_MonitorServiceData related TypeIdentifier. + * @brief Register MonitorServiceData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -141,11 +229,11 @@ namespace StatusKind { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_MonitorServiceData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_MonitorServiceStatusData related TypeIdentifier. + * @brief Register MonitorServiceStatusData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -154,8 +242,8 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorService * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_MonitorServiceStatusData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace statistics diff --git a/src/cpp/statistics/types/typesPubSubTypes.cxx b/src/cpp/statistics/types/typesPubSubTypes.cxx index 582e4152f52..fb048b99c9b 100644 --- a/src/cpp/statistics/types/typesPubSubTypes.cxx +++ b/src/cpp/statistics/types/typesPubSubTypes.cxx @@ -223,9 +223,9 @@ namespace eprosima { return true; } - void EntityId_sPubSubType::register_type_object_representation() const + void EntityId_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityId_s_type_identifier(type_identifiers_); } GuidPrefix_sPubSubType::GuidPrefix_sPubSubType() @@ -416,9 +416,9 @@ namespace eprosima { return true; } - void GuidPrefix_sPubSubType::register_type_object_representation() const + void GuidPrefix_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_GuidPrefix_s_type_identifier(type_identifiers_); } GUID_sPubSubType::GUID_sPubSubType() @@ -609,9 +609,9 @@ namespace eprosima { return true; } - void GUID_sPubSubType::register_type_object_representation() const + void GUID_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_GUID_s_type_identifier(type_identifiers_); } SequenceNumber_sPubSubType::SequenceNumber_sPubSubType() @@ -802,9 +802,9 @@ namespace eprosima { return true; } - void SequenceNumber_sPubSubType::register_type_object_representation() const + void SequenceNumber_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SequenceNumber_s_type_identifier(type_identifiers_); } SampleIdentity_sPubSubType::SampleIdentity_sPubSubType() @@ -995,9 +995,9 @@ namespace eprosima { return true; } - void SampleIdentity_sPubSubType::register_type_object_representation() const + void SampleIdentity_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SampleIdentity_s_type_identifier(type_identifiers_); } Locator_sPubSubType::Locator_sPubSubType() @@ -1188,9 +1188,9 @@ namespace eprosima { return true; } - void Locator_sPubSubType::register_type_object_representation() const + void Locator_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Locator_s_type_identifier(type_identifiers_); } } // namespace detail @@ -1383,9 +1383,9 @@ namespace eprosima { return true; } - void DiscoveryTimePubSubType::register_type_object_representation() const + void DiscoveryTimePubSubType::register_type_object_representation() { - register_types_type_objects(); + register_DiscoveryTime_type_identifier(type_identifiers_); } EntityCountPubSubType::EntityCountPubSubType() @@ -1576,9 +1576,9 @@ namespace eprosima { return true; } - void EntityCountPubSubType::register_type_object_representation() const + void EntityCountPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityCount_type_identifier(type_identifiers_); } SampleIdentityCountPubSubType::SampleIdentityCountPubSubType() @@ -1769,9 +1769,9 @@ namespace eprosima { return true; } - void SampleIdentityCountPubSubType::register_type_object_representation() const + void SampleIdentityCountPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SampleIdentityCount_type_identifier(type_identifiers_); } Entity2LocatorTrafficPubSubType::Entity2LocatorTrafficPubSubType() @@ -1962,9 +1962,9 @@ namespace eprosima { return true; } - void Entity2LocatorTrafficPubSubType::register_type_object_representation() const + void Entity2LocatorTrafficPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Entity2LocatorTraffic_type_identifier(type_identifiers_); } WriterReaderDataPubSubType::WriterReaderDataPubSubType() @@ -2155,9 +2155,9 @@ namespace eprosima { return true; } - void WriterReaderDataPubSubType::register_type_object_representation() const + void WriterReaderDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_WriterReaderData_type_identifier(type_identifiers_); } Locator2LocatorDataPubSubType::Locator2LocatorDataPubSubType() @@ -2348,9 +2348,9 @@ namespace eprosima { return true; } - void Locator2LocatorDataPubSubType::register_type_object_representation() const + void Locator2LocatorDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Locator2LocatorData_type_identifier(type_identifiers_); } EntityDataPubSubType::EntityDataPubSubType() @@ -2541,9 +2541,9 @@ namespace eprosima { return true; } - void EntityDataPubSubType::register_type_object_representation() const + void EntityDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityData_type_identifier(type_identifiers_); } PhysicalDataPubSubType::PhysicalDataPubSubType() @@ -2734,9 +2734,9 @@ namespace eprosima { return true; } - void PhysicalDataPubSubType::register_type_object_representation() const + void PhysicalDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_PhysicalData_type_identifier(type_identifiers_); } namespace EventKind { diff --git a/src/cpp/statistics/types/typesPubSubTypes.h b/src/cpp/statistics/types/typesPubSubTypes.h index a235ad9169c..653945fdddb 100644 --- a/src/cpp/statistics/types/typesPubSubTypes.h +++ b/src/cpp/statistics/types/typesPubSubTypes.h @@ -97,7 +97,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -188,7 +188,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -279,7 +279,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -370,7 +370,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -461,7 +461,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -552,7 +552,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -644,7 +644,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -735,7 +735,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -826,7 +826,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -917,7 +917,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1008,7 +1008,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1099,7 +1099,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1190,7 +1190,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1281,7 +1281,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/src/cpp/statistics/types/typesTypeObjectSupport.cxx b/src/cpp/statistics/types/typesTypeObjectSupport.cxx index 8f7648a0d10..d13827cf3d7 100644 --- a/src/cpp/statistics/types/typesTypeObjectSupport.cxx +++ b/src/cpp/statistics/types/typesTypeObjectSupport.cxx @@ -38,58 +38,23 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_types_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_WriterReaderData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_PhysicalData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Data_type_identifier(type_id); - - }); -} - namespace eprosima { namespace fastdds { namespace statistics { namespace detail { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( - TypeIdentifier& type_id) +void register_EntityId_s_type_identifier( + TypeIdentifierPair& type_ids_EntityId_s) { + + ReturnCode_t return_code_EntityId_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityId_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityId_s) { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; eprosima::fastcdr::optional type_ann_builtin_EntityId_s; eprosima::fastcdr::optional ann_custom_EntityId_s; @@ -98,69 +63,33 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); CompleteStructMemberSeq member_seq_EntityId_s; { - return_code_EntityId_s = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); + "anonymous_array_uint8_t_4", type_ids_value); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_EntityId_s = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); + "_byte", type_ids_value); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_4_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_uint8_t_4_ec))}; + if (!element_identifier_anonymous_array_uint8_t_4_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; } @@ -173,68 +102,21 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); } } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -246,32 +128,26 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( } CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_ids_EntityId_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( - TypeIdentifier& type_id) +void register_GuidPrefix_s_type_identifier( + TypeIdentifierPair& type_ids_GuidPrefix_s) { + + ReturnCode_t return_code_GuidPrefix_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_GuidPrefix_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_GuidPrefix_s) { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; eprosima::fastcdr::optional ann_custom_GuidPrefix_s; @@ -280,69 +156,33 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); CompleteStructMemberSeq member_seq_GuidPrefix_s; { - return_code_GuidPrefix_s = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); + "anonymous_array_uint8_t_12", type_ids_value); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_GuidPrefix_s = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); + "_byte", type_ids_value); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_12_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_uint8_t_12_ec))}; + if (!element_identifier_anonymous_array_uint8_t_12_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; } @@ -355,68 +195,21 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); } } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -428,32 +221,26 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( } CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_ids_GuidPrefix_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( - TypeIdentifier& type_id) +void register_GUID_s_type_identifier( + TypeIdentifierPair& type_ids_GUID_s) { + + ReturnCode_t return_code_GUID_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_GUID_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_GUID_s) { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; eprosima::fastcdr::optional type_ann_builtin_GUID_s; eprosima::fastcdr::optional ann_custom_GUID_s; @@ -462,237 +249,24 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); CompleteStructMemberSeq member_seq_GUID_s; { - return_code_GUID_s = + TypeIdentifierPair type_ids_guidPrefix; + ReturnCode_t return_code_guidPrefix {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guidPrefix = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); + "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_guidPrefix); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guidPrefix) { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } + eprosima::fastdds::statistics::detail::register_GuidPrefix_s_type_identifier(type_ids_guidPrefix); } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_guidPrefix; MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else + bool common_guidPrefix_ec {false}; + CommonStructMember common_guidPrefix {TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guidPrefix, common_guidPrefix_ec))}; + if (!common_guidPrefix_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guidPrefix member TypeIdentifier inconsistent."); return; } MemberName name_guidPrefix = "guidPrefix"; @@ -703,237 +277,24 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); } { - return_code_GUID_s = + TypeIdentifierPair type_ids_entityId; + ReturnCode_t return_code_entityId {eprosima::fastdds::dds::RETCODE_OK}; + return_code_entityId = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); + "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_entityId); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_entityId) { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } + eprosima::fastdds::statistics::detail::register_EntityId_s_type_identifier(type_ids_entityId); } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_entityId; MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else + bool common_entityId_ec {false}; + CommonStructMember common_entityId {TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_entityId, common_entityId_ec))}; + if (!common_entityId_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure entityId member TypeIdentifier inconsistent."); return; } MemberName name_entityId = "entityId"; @@ -945,32 +306,26 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( } CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_ids_GUID_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier( - TypeIdentifier& type_id) +void register_SequenceNumber_s_type_identifier( + TypeIdentifierPair& type_ids_SequenceNumber_s) { + + ReturnCode_t return_code_SequenceNumber_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceNumber_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceNumber_s) { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; eprosima::fastcdr::optional ann_custom_SequenceNumber_s; @@ -979,62 +334,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); CompleteStructMemberSeq member_seq_SequenceNumber_s; { - return_code_SequenceNumber_s = + TypeIdentifierPair type_ids_high; + ReturnCode_t return_code_high {eprosima::fastdds::dds::RETCODE_OK}; + return_code_high = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); + "_int32_t", type_ids_high); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_high) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_high; MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_high_ec {false}; + CommonStructMember common_high {TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_high, common_high_ec))}; + if (!common_high_ec) { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure high member TypeIdentifier inconsistent."); return; } MemberName name_high = "high"; @@ -1045,62 +364,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); } { - return_code_SequenceNumber_s = + TypeIdentifierPair type_ids_low; + ReturnCode_t return_code_low {eprosima::fastdds::dds::RETCODE_OK}; + return_code_low = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); + "_uint32_t", type_ids_low); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_low) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_low; MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else + bool common_low_ec {false}; + CommonStructMember common_low {TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_low, common_low_ec))}; + if (!common_low_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure low member TypeIdentifier inconsistent."); return; } MemberName name_low = "low"; @@ -1112,32 +395,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie } CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_ids_SequenceNumber_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier( - TypeIdentifier& type_id) +void register_SampleIdentity_s_type_identifier( + TypeIdentifierPair& type_ids_SampleIdentity_s) { + + ReturnCode_t return_code_SampleIdentity_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleIdentity_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleIdentity_s) { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; eprosima::fastcdr::optional ann_custom_SampleIdentity_s; @@ -1146,572 +423,24 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); CompleteStructMemberSeq member_seq_SampleIdentity_s; { - return_code_SampleIdentity_s = + TypeIdentifierPair type_ids_writer_guid; + ReturnCode_t return_code_writer_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_writer_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_writer_guid); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_writer_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_writer_guid); } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_writer_guid; MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else + bool common_writer_guid_ec {false}; + CommonStructMember common_writer_guid {TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_writer_guid, common_writer_guid_ec))}; + if (!common_writer_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure writer_guid member TypeIdentifier inconsistent."); return; } MemberName name_writer_guid = "writer_guid"; @@ -1722,222 +451,24 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); } { - return_code_SampleIdentity_s = + TypeIdentifierPair type_ids_sequence_number; + ReturnCode_t return_code_sequence_number {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_number = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); + "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_sequence_number); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_number) { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } + eprosima::fastdds::statistics::detail::register_SequenceNumber_s_type_identifier(type_ids_sequence_number); } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_sequence_number; MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else + bool common_sequence_number_ec {false}; + CommonStructMember common_sequence_number {TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sequence_number, common_sequence_number_ec))}; + if (!common_sequence_number_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sequence_number member TypeIdentifier inconsistent."); return; } MemberName name_sequence_number = "sequence_number"; @@ -1949,32 +480,26 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie } CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_ids_SampleIdentity_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( - TypeIdentifier& type_id) +void register_Locator_s_type_identifier( + TypeIdentifierPair& type_ids_Locator_s) { + + ReturnCode_t return_code_Locator_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Locator_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Locator_s) { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; eprosima::fastcdr::optional type_ann_builtin_Locator_s; eprosima::fastcdr::optional ann_custom_Locator_s; @@ -1983,62 +508,26 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); CompleteStructMemberSeq member_seq_Locator_s; { - return_code_Locator_s = + TypeIdentifierPair type_ids_kind; + ReturnCode_t return_code_kind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_kind = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); + "_int32_t", type_ids_kind); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_kind) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_kind; MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_kind_ec {false}; + CommonStructMember common_kind {TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_kind, common_kind_ec))}; + if (!common_kind_ec) { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure kind member TypeIdentifier inconsistent."); return; } MemberName name_kind = "kind"; @@ -2049,62 +538,26 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); } { - return_code_Locator_s = + TypeIdentifierPair type_ids_port; + ReturnCode_t return_code_port {eprosima::fastdds::dds::RETCODE_OK}; + return_code_port = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); + "_uint32_t", type_ids_port); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_port) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_port; MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else + bool common_port_ec {false}; + CommonStructMember common_port {TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_port, common_port_ec))}; + if (!common_port_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure port member TypeIdentifier inconsistent."); return; } MemberName name_port = "port"; @@ -2115,69 +568,33 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); } { - return_code_Locator_s = + TypeIdentifierPair type_ids_address; + ReturnCode_t return_code_address {eprosima::fastdds::dds::RETCODE_OK}; + return_code_address = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); + "anonymous_array_uint8_t_16", type_ids_address); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_address) { - return_code_Locator_s = + return_code_address = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); + "_byte", type_ids_address); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_address) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_address, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) + if (TK_NONE == type_ids_address.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -2190,68 +607,21 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_address)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_address; MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_address_ec {false}; + CommonStructMember common_address {TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_address, common_address_ec))}; + if (!common_address_ec) { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure address member TypeIdentifier inconsistent."); return; } MemberName name_address = "address"; @@ -2263,34 +633,28 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( } CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_ids_Locator_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace detail // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( - TypeIdentifier& type_id) +void register_DiscoveryTime_type_identifier( + TypeIdentifierPair& type_ids_DiscoveryTime) { + + ReturnCode_t return_code_DiscoveryTime {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DiscoveryTime = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DiscoveryTime) { - StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_DiscoveryTime; - TypeIdentifierPair type_ids_DiscoveryTime; QualifiedTypeName type_name_DiscoveryTime = "eprosima::fastdds::statistics::DiscoveryTime"; eprosima::fastcdr::optional type_ann_builtin_DiscoveryTime; eprosima::fastcdr::optional ann_custom_DiscoveryTime; @@ -2299,572 +663,24 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( header_DiscoveryTime = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DiscoveryTime); CompleteStructMemberSeq member_seq_DiscoveryTime; { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_local_participant_guid; + ReturnCode_t return_code_local_participant_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_local_participant_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_local_participant_guid); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_local_participant_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_local_participant_guid); } - StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_local_participant_guid; MemberId member_id_local_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_local_participant_guid_ec {false}; + CommonStructMember common_local_participant_guid {TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_local_participant_guid, common_local_participant_guid_ec))}; + if (!common_local_participant_guid_ec) { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure local_participant_guid member TypeIdentifier inconsistent."); return; } MemberName name_local_participant_guid = "local_participant_guid"; @@ -2888,573 +704,25 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_local_participant_guid); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_remote_entity_guid; + ReturnCode_t return_code_remote_entity_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_remote_entity_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_remote_entity_guid); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_remote_entity_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_remote_entity_guid); } - StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_remote_entity_guid; MemberId member_id_remote_entity_guid = 0x00000001; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_remote_entity_guid_ec {false}; + CommonStructMember common_remote_entity_guid {TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_remote_entity_guid, common_remote_entity_guid_ec))}; + if (!common_remote_entity_guid_ec) { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure remote_entity_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure remote_entity_guid member TypeIdentifier inconsistent."); + return; } MemberName name_remote_entity_guid = "remote_entity_guid"; eprosima::fastcdr::optional member_ann_builtin_remote_entity_guid; @@ -3477,62 +745,26 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_remote_entity_guid); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_time; + ReturnCode_t return_code_time {eprosima::fastdds::dds::RETCODE_OK}; + return_code_time = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_DiscoveryTime); + "_uint64_t", type_ids_time); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_time) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "time Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_time; MemberId member_id_time = 0x00000002; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_time_ec {false}; + CommonStructMember common_time {TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_time, common_time_ec))}; + if (!common_time_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure time member TypeIdentifier inconsistent."); return; } MemberName name_time = "time"; @@ -3543,79 +775,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_time); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_host; + ReturnCode_t return_code_host {eprosima::fastdds::dds::RETCODE_OK}; + return_code_host = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_host); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_host) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_host)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_host; MemberId member_id_host = 0x00000003; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_host_ec {false}; + CommonStructMember common_host {TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_host, common_host_ec))}; + if (!common_host_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure host member TypeIdentifier inconsistent."); return; } MemberName name_host = "host"; @@ -3626,79 +813,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_host); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_user; + ReturnCode_t return_code_user {eprosima::fastdds::dds::RETCODE_OK}; + return_code_user = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_user); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_user) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_user)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_user; MemberId member_id_user = 0x00000004; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_user_ec {false}; + CommonStructMember common_user {TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_user, common_user_ec))}; + if (!common_user_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure user member TypeIdentifier inconsistent."); return; } MemberName name_user = "user"; @@ -3709,79 +851,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_user); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_process; + ReturnCode_t return_code_process {eprosima::fastdds::dds::RETCODE_OK}; + return_code_process = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_process); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_process) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_process)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_process; MemberId member_id_process = 0x00000005; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_process_ec {false}; + CommonStructMember common_process {TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_process, common_process_ec))}; + if (!common_process_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure process member TypeIdentifier inconsistent."); return; } MemberName name_process = "process"; @@ -3793,32 +890,26 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( } CompleteStructType struct_type_DiscoveryTime = TypeObjectUtils::build_complete_struct_type(struct_flags_DiscoveryTime, header_DiscoveryTime, member_seq_DiscoveryTime); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_ids_DiscoveryTime)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::DiscoveryTime already registered in TypeObjectRegistry for a different type."); } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_EntityCount_type_identifier( - TypeIdentifier& type_id) +void register_EntityCount_type_identifier( + TypeIdentifierPair& type_ids_EntityCount) { + + ReturnCode_t return_code_EntityCount {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityCount = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityCount) { - StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityCount; - TypeIdentifierPair type_ids_EntityCount; QualifiedTypeName type_name_EntityCount = "eprosima::fastdds::statistics::EntityCount"; eprosima::fastcdr::optional type_ann_builtin_EntityCount; eprosima::fastcdr::optional ann_custom_EntityCount; @@ -3827,572 +918,24 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( header_EntityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityCount); CompleteStructMemberSeq member_seq_EntityCount; { - return_code_EntityCount = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityCount); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityCount = return_code_GUID_s; - type_ids_EntityCount = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier2()); - } - else + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -4416,62 +959,26 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_guid); } { - return_code_EntityCount = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_EntityCount); + "_uint64_t", type_ids_count); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -4483,32 +990,26 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( } CompleteStructType struct_type_EntityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityCount, header_EntityCount, member_seq_EntityCount); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_ids_EntityCount)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::EntityCount already registered in TypeObjectRegistry for a different type."); } - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( - TypeIdentifier& type_id) +void register_SampleIdentityCount_type_identifier( + TypeIdentifierPair& type_ids_SampleIdentityCount) { + + ReturnCode_t return_code_SampleIdentityCount {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleIdentityCount = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleIdentityCount) { - StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SampleIdentityCount; - TypeIdentifierPair type_ids_SampleIdentityCount; QualifiedTypeName type_name_SampleIdentityCount = "eprosima::fastdds::statistics::SampleIdentityCount"; eprosima::fastcdr::optional type_ann_builtin_SampleIdentityCount; eprosima::fastcdr::optional ann_custom_SampleIdentityCount; @@ -4517,892 +1018,24 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( header_SampleIdentityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentityCount); CompleteStructMemberSeq member_seq_SampleIdentityCount; { - return_code_SampleIdentityCount = + TypeIdentifierPair type_ids_sample_id; + ReturnCode_t return_code_sample_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentityCount); + "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_sample_id); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample_id) { - { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; - QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; - eprosima::fastcdr::optional ann_custom_SampleIdentity_s; - CompleteTypeDetail detail_SampleIdentity_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentity_s, ann_custom_SampleIdentity_s, type_name_SampleIdentity_s.to_string()); - CompleteStructHeader header_SampleIdentity_s; - header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); - CompleteStructMemberSeq member_seq_SampleIdentity_s; - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_SampleIdentity_s); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); - } - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } - } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_sequence_number; - MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sequence_number = "sequence_number"; - eprosima::fastcdr::optional member_ann_builtin_sequence_number; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_sequence_number = TypeObjectUtils::build_complete_member_detail(name_sequence_number, member_ann_builtin_sequence_number, ann_custom_SampleIdentity_s); - CompleteStructMember member_sequence_number = TypeObjectUtils::build_complete_struct_member(common_sequence_number, detail_sequence_number); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_sequence_number); - } - CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentityCount = return_code_SampleIdentity_s; - type_ids_SampleIdentityCount = type_ids_SampleIdentity_s; - } + eprosima::fastdds::statistics::detail::register_SampleIdentity_s_type_identifier(type_ids_sample_id); } - StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_sample_id; MemberId member_id_sample_id = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_sample_id_ec {false}; + CommonStructMember common_sample_id {TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sample_id, common_sample_id_ec))}; + if (!common_sample_id_ec) { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sample_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sample_id member TypeIdentifier inconsistent."); return; } MemberName name_sample_id = "sample_id"; @@ -5426,62 +1059,26 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_sample_id); } { - return_code_SampleIdentityCount = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_SampleIdentityCount); + "_uint64_t", type_ids_count); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier2()); - } - else + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -5493,32 +1090,26 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( } CompleteStructType struct_type_SampleIdentityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentityCount, header_SampleIdentityCount, member_seq_SampleIdentityCount); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_ids_SampleIdentityCount)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::SampleIdentityCount already registered in TypeObjectRegistry for a different type."); } - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( - TypeIdentifier& type_id) +void register_Entity2LocatorTraffic_type_identifier( + TypeIdentifierPair& type_ids_Entity2LocatorTraffic) { + + ReturnCode_t return_code_Entity2LocatorTraffic {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Entity2LocatorTraffic = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Entity2LocatorTraffic) { - StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Entity2LocatorTraffic; - TypeIdentifierPair type_ids_Entity2LocatorTraffic; QualifiedTypeName type_name_Entity2LocatorTraffic = "eprosima::fastdds::statistics::Entity2LocatorTraffic"; eprosima::fastcdr::optional type_ann_builtin_Entity2LocatorTraffic; eprosima::fastcdr::optional ann_custom_Entity2LocatorTraffic; @@ -5527,572 +1118,24 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( header_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Entity2LocatorTraffic); CompleteStructMemberSeq member_seq_Entity2LocatorTraffic; { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_src_guid; + ReturnCode_t return_code_src_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_src_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Entity2LocatorTraffic); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_src_guid); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_src_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_GUID_s; - type_ids_Entity2LocatorTraffic = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_src_guid); } - StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_src_guid; MemberId member_id_src_guid = 0x00000000; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_src_guid_ec {false}; + CommonStructMember common_src_guid {TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_src_guid, common_src_guid_ec))}; + if (!common_src_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure src_guid member TypeIdentifier inconsistent."); return; } MemberName name_src_guid = "src_guid"; @@ -6116,369 +1159,24 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_src_guid); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_dst_locator; + ReturnCode_t return_code_dst_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dst_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Entity2LocatorTraffic); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_dst_locator); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dst_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_Locator_s; - type_ids_Entity2LocatorTraffic = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_dst_locator); } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_dst_locator; MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_dst_locator_ec {false}; + CommonStructMember common_dst_locator {TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dst_locator, common_dst_locator_ec))}; + if (!common_dst_locator_ec) { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dst_locator member TypeIdentifier inconsistent."); return; } MemberName name_dst_locator = "dst_locator"; @@ -6502,62 +1200,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_dst_locator); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_packet_count; + ReturnCode_t return_code_packet_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_packet_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); + "_uint64_t", type_ids_packet_count); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_packet_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "packet_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_packet_count; MemberId member_id_packet_count = 0x00000002; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_packet_count_ec {false}; + CommonStructMember common_packet_count {TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_packet_count, common_packet_count_ec))}; + if (!common_packet_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure packet_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure packet_count member TypeIdentifier inconsistent."); return; } MemberName name_packet_count = "packet_count"; @@ -6568,62 +1230,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_packet_count); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_byte_count; + ReturnCode_t return_code_byte_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_byte_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); + "_uint64_t", type_ids_byte_count); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_byte_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "byte_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_byte_count; MemberId member_id_byte_count = 0x00000003; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_byte_count_ec {false}; + CommonStructMember common_byte_count {TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_byte_count, common_byte_count_ec))}; + if (!common_byte_count_ec) { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure byte_count member TypeIdentifier inconsistent."); return; } MemberName name_byte_count = "byte_count"; @@ -6634,62 +1260,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_count); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_byte_magnitude_order; + ReturnCode_t return_code_byte_magnitude_order {eprosima::fastdds::dds::RETCODE_OK}; + return_code_byte_magnitude_order = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Entity2LocatorTraffic); + "_int16_t", type_ids_byte_magnitude_order); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_byte_magnitude_order) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "byte_magnitude_order Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_byte_magnitude_order; MemberId member_id_byte_magnitude_order = 0x00000004; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_byte_magnitude_order_ec {false}; + CommonStructMember common_byte_magnitude_order {TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_byte_magnitude_order, common_byte_magnitude_order_ec))}; + if (!common_byte_magnitude_order_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_magnitude_order member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure byte_magnitude_order member TypeIdentifier inconsistent."); return; } MemberName name_byte_magnitude_order = "byte_magnitude_order"; @@ -6701,32 +1291,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( } CompleteStructType struct_type_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_type(struct_flags_Entity2LocatorTraffic, header_Entity2LocatorTraffic, member_seq_Entity2LocatorTraffic); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_ids_Entity2LocatorTraffic)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Entity2LocatorTraffic already registered in TypeObjectRegistry for a different type."); } - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( - TypeIdentifier& type_id) +void register_WriterReaderData_type_identifier( + TypeIdentifierPair& type_ids_WriterReaderData) { + + ReturnCode_t return_code_WriterReaderData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_WriterReaderData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_WriterReaderData) { - StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_WriterReaderData; - TypeIdentifierPair type_ids_WriterReaderData; QualifiedTypeName type_name_WriterReaderData = "eprosima::fastdds::statistics::WriterReaderData"; eprosima::fastcdr::optional type_ann_builtin_WriterReaderData; eprosima::fastcdr::optional ann_custom_WriterReaderData; @@ -6735,572 +1319,24 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( header_WriterReaderData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WriterReaderData); CompleteStructMemberSeq member_seq_WriterReaderData; { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_writer_guid; + ReturnCode_t return_code_writer_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_writer_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_writer_guid); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_writer_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_writer_guid); } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_writer_guid; MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier2()); - } - else + bool common_writer_guid_ec {false}; + CommonStructMember common_writer_guid {TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_writer_guid, common_writer_guid_ec))}; + if (!common_writer_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure writer_guid member TypeIdentifier inconsistent."); return; } MemberName name_writer_guid = "writer_guid"; @@ -7324,572 +1360,24 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_writer_guid); } { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_reader_guid; + ReturnCode_t return_code_reader_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_reader_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_reader_guid); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_reader_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_reader_guid); } - StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_reader_guid; MemberId member_id_reader_guid = 0x00000001; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier2()); - } - else + bool common_reader_guid_ec {false}; + CommonStructMember common_reader_guid {TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_reader_guid, common_reader_guid_ec))}; + if (!common_reader_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure reader_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure reader_guid member TypeIdentifier inconsistent."); return; } MemberName name_reader_guid = "reader_guid"; @@ -7913,62 +1401,26 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_reader_guid); } { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_WriterReaderData); + "_float", type_ids_data); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -7980,32 +1432,26 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( } CompleteStructType struct_type_WriterReaderData = TypeObjectUtils::build_complete_struct_type(struct_flags_WriterReaderData, header_WriterReaderData, member_seq_WriterReaderData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_ids_WriterReaderData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::WriterReaderData already registered in TypeObjectRegistry for a different type."); } - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( - TypeIdentifier& type_id) +void register_Locator2LocatorData_type_identifier( + TypeIdentifierPair& type_ids_Locator2LocatorData) { + + ReturnCode_t return_code_Locator2LocatorData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Locator2LocatorData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Locator2LocatorData) { - StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Locator2LocatorData; - TypeIdentifierPair type_ids_Locator2LocatorData; QualifiedTypeName type_name_Locator2LocatorData = "eprosima::fastdds::statistics::Locator2LocatorData"; eprosima::fastcdr::optional type_ann_builtin_Locator2LocatorData; eprosima::fastcdr::optional ann_custom_Locator2LocatorData; @@ -8014,369 +1460,24 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( header_Locator2LocatorData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator2LocatorData); CompleteStructMemberSeq member_seq_Locator2LocatorData; { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_src_locator; + ReturnCode_t return_code_src_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_src_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_src_locator); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_src_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_src_locator); } - StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_src_locator; MemberId member_id_src_locator = 0x00000000; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else + bool common_src_locator_ec {false}; + CommonStructMember common_src_locator {TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_src_locator, common_src_locator_ec))}; + if (!common_src_locator_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure src_locator member TypeIdentifier inconsistent."); return; } MemberName name_src_locator = "src_locator"; @@ -8400,369 +1501,24 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_src_locator); } { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_dst_locator; + ReturnCode_t return_code_dst_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dst_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_dst_locator); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dst_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_dst_locator); } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_dst_locator; MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else + bool common_dst_locator_ec {false}; + CommonStructMember common_dst_locator {TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dst_locator, common_dst_locator_ec))}; + if (!common_dst_locator_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dst_locator member TypeIdentifier inconsistent."); return; } MemberName name_dst_locator = "dst_locator"; @@ -8786,62 +1542,26 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_dst_locator); } { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_Locator2LocatorData); + "_float", type_ids_data); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -8853,32 +1573,26 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( } CompleteStructType struct_type_Locator2LocatorData = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator2LocatorData, header_Locator2LocatorData, member_seq_Locator2LocatorData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_ids_Locator2LocatorData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Locator2LocatorData already registered in TypeObjectRegistry for a different type."); } - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_EntityData_type_identifier( - TypeIdentifier& type_id) +void register_EntityData_type_identifier( + TypeIdentifierPair& type_ids_EntityData) { + + ReturnCode_t return_code_EntityData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityData) { - StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityData; - TypeIdentifierPair type_ids_EntityData; QualifiedTypeName type_name_EntityData = "eprosima::fastdds::statistics::EntityData"; eprosima::fastcdr::optional type_ann_builtin_EntityData; eprosima::fastcdr::optional ann_custom_EntityData; @@ -8887,572 +1601,24 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( header_EntityData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityData); CompleteStructMemberSeq member_seq_EntityData; { - return_code_EntityData = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityData = return_code_GUID_s; - type_ids_EntityData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -9476,62 +1642,26 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_guid); } { - return_code_EntityData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_EntityData); + "_float", type_ids_data); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000001; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier2()); - } - else + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -9543,32 +1673,26 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( } CompleteStructType struct_type_EntityData = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityData, header_EntityData, member_seq_EntityData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_ids_EntityData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::EntityData already registered in TypeObjectRegistry for a different type."); } - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( - TypeIdentifier& type_id) +void register_PhysicalData_type_identifier( + TypeIdentifierPair& type_ids_PhysicalData) { + + ReturnCode_t return_code_PhysicalData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_PhysicalData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_PhysicalData) { - StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_PhysicalData; - TypeIdentifierPair type_ids_PhysicalData; QualifiedTypeName type_name_PhysicalData = "eprosima::fastdds::statistics::PhysicalData"; eprosima::fastcdr::optional type_ann_builtin_PhysicalData; eprosima::fastcdr::optional ann_custom_PhysicalData; @@ -9577,572 +1701,24 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( header_PhysicalData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_PhysicalData); CompleteStructMemberSeq member_seq_PhysicalData; { - return_code_PhysicalData = + TypeIdentifierPair type_ids_participant_guid; + ReturnCode_t return_code_participant_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_participant_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_PhysicalData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_participant_guid); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_participant_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_PhysicalData = return_code_GUID_s; - type_ids_PhysicalData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_participant_guid); } - StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_participant_guid; MemberId member_id_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_participant_guid_ec {false}; + CommonStructMember common_participant_guid {TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_participant_guid, common_participant_guid_ec))}; + if (!common_participant_guid_ec) { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure participant_guid member TypeIdentifier inconsistent."); return; } MemberName name_participant_guid = "participant_guid"; @@ -10166,79 +1742,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_participant_guid); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_host; + ReturnCode_t return_code_host {eprosima::fastdds::dds::RETCODE_OK}; + return_code_host = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_host); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_host) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_host)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_host; MemberId member_id_host = 0x00000001; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_host_ec {false}; + CommonStructMember common_host {TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_host, common_host_ec))}; + if (!common_host_ec) { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure host member TypeIdentifier inconsistent."); return; } MemberName name_host = "host"; @@ -10249,79 +1780,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_host); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_user; + ReturnCode_t return_code_user {eprosima::fastdds::dds::RETCODE_OK}; + return_code_user = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_user); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_user) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_user)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_user; MemberId member_id_user = 0x00000002; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_user_ec {false}; + CommonStructMember common_user {TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_user, common_user_ec))}; + if (!common_user_ec) { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure user member TypeIdentifier inconsistent."); return; } MemberName name_user = "user"; @@ -10332,79 +1818,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_user); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_process; + ReturnCode_t return_code_process {eprosima::fastdds::dds::RETCODE_OK}; + return_code_process = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_process); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_process) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_process)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_process; MemberId member_id_process = 0x00000003; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_process_ec {false}; + CommonStructMember common_process {TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_process, common_process_ec))}; + if (!common_process_ec) { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure process member TypeIdentifier inconsistent."); return; } MemberName name_process = "process"; @@ -10416,40 +1857,33 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( } CompleteStructType struct_type_PhysicalData = TypeObjectUtils::build_complete_struct_type(struct_flags_PhysicalData, header_PhysicalData, member_seq_PhysicalData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_ids_PhysicalData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::PhysicalData already registered in TypeObjectRegistry for a different type."); } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } namespace EventKind { } // namespace EventKind // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Data_type_identifier( - TypeIdentifier& type_id) +void register_Data_type_identifier( + TypeIdentifierPair& type_ids_Data) { + ReturnCode_t return_code_Data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Data = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Data", type_ids_Data); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - ReturnCode_t return_code_Data; - TypeIdentifierPair type_ids_Data; - UnionTypeFlag union_flags_Data = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Data = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Data = "eprosima::fastdds::statistics::Data"; eprosima::fastcdr::optional type_ann_builtin_Data; eprosima::fastcdr::optional ann_custom_Data; CompleteTypeDetail detail_Data = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Data, ann_custom_Data, type_name_Data.to_string()); CompleteUnionHeader header_Data = TypeObjectUtils::build_complete_union_header(detail_Data); - UnionDiscriminatorFlag member_flags_Data = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Data = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -10459,7 +1893,6 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Data; @@ -10475,7 +1908,6 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Data discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Data.reset(); @@ -10488,1334 +1920,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::WriterReaderData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_WriterReaderData; - TypeIdentifierPair type_ids_WriterReaderData; - QualifiedTypeName type_name_WriterReaderData = "eprosima::fastdds::statistics::WriterReaderData"; - eprosima::fastcdr::optional type_ann_builtin_WriterReaderData; - eprosima::fastcdr::optional ann_custom_WriterReaderData; - CompleteTypeDetail detail_WriterReaderData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_WriterReaderData, ann_custom_WriterReaderData, type_name_WriterReaderData.to_string()); - CompleteStructHeader header_WriterReaderData; - header_WriterReaderData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WriterReaderData); - CompleteStructMemberSeq member_seq_WriterReaderData; - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_WriterReaderData.reset(); - AppliedAnnotationSeq tmp_ann_custom_writer_guid; - eprosima::fastcdr::optional unit_writer_guid; - eprosima::fastcdr::optional min_writer_guid; - eprosima::fastcdr::optional max_writer_guid; - eprosima::fastcdr::optional hash_id_writer_guid; - if (unit_writer_guid.has_value() || min_writer_guid.has_value() || max_writer_guid.has_value() || hash_id_writer_guid.has_value()) - { - member_ann_builtin_writer_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_writer_guid, min_writer_guid, max_writer_guid, hash_id_writer_guid); - } - if (!tmp_ann_custom_writer_guid.empty()) - { - ann_custom_WriterReaderData = tmp_ann_custom_writer_guid; - } - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_WriterReaderData); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_writer_guid); - } - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_reader_guid; - MemberId member_id_reader_guid = 0x00000001; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure reader_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_reader_guid = "reader_guid"; - eprosima::fastcdr::optional member_ann_builtin_reader_guid; - ann_custom_WriterReaderData.reset(); - AppliedAnnotationSeq tmp_ann_custom_reader_guid; - eprosima::fastcdr::optional unit_reader_guid; - eprosima::fastcdr::optional min_reader_guid; - eprosima::fastcdr::optional max_reader_guid; - eprosima::fastcdr::optional hash_id_reader_guid; - if (unit_reader_guid.has_value() || min_reader_guid.has_value() || max_reader_guid.has_value() || hash_id_reader_guid.has_value()) - { - member_ann_builtin_reader_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_reader_guid, min_reader_guid, max_reader_guid, hash_id_reader_guid); - } - if (!tmp_ann_custom_reader_guid.empty()) - { - ann_custom_WriterReaderData = tmp_ann_custom_reader_guid; - } - CompleteMemberDetail detail_reader_guid = TypeObjectUtils::build_complete_member_detail(name_reader_guid, member_ann_builtin_reader_guid, ann_custom_WriterReaderData); - CompleteStructMember member_reader_guid = TypeObjectUtils::build_complete_struct_member(common_reader_guid, detail_reader_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_reader_guid); - } - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_WriterReaderData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_WriterReaderData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_data); - } - CompleteStructType struct_type_WriterReaderData = TypeObjectUtils::build_complete_struct_type(struct_flags_WriterReaderData, header_WriterReaderData, member_seq_WriterReaderData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData already registered in TypeObjectRegistry for a different type."); - } - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_WriterReaderData; - type_ids_Data = type_ids_WriterReaderData; - } + eprosima::fastdds::statistics::register_WriterReaderData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_writer_reader_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_writer_reader_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_writer_reader_data; TypeObjectUtils::add_union_case_label(label_seq_writer_reader_data, static_cast(EventKind::HISTORY2HISTORY_LATENCY)); - CommonUnionMember common_writer_reader_data; MemberId member_id_writer_reader_data = 0x00000001; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_reader_data = TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, member_flags_writer_reader_data, type_ids_Data.type_identifier1(), - label_seq_writer_reader_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_reader_data = TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, member_flags_writer_reader_data, type_ids_Data.type_identifier2(), - label_seq_writer_reader_data); - } - else + bool common_writer_reader_data_ec {false}; + CommonUnionMember common_writer_reader_data {TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, + member_flags_writer_reader_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_writer_reader_data_ec), label_seq_writer_reader_data)}; + if (!common_writer_reader_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union writer_reader_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union writer_reader_data member TypeIdentifier inconsistent."); return; } MemberName name_writer_reader_data = "writer_reader_data"; @@ -11830,928 +1950,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator2LocatorData; - TypeIdentifierPair type_ids_Locator2LocatorData; - QualifiedTypeName type_name_Locator2LocatorData = "eprosima::fastdds::statistics::Locator2LocatorData"; - eprosima::fastcdr::optional type_ann_builtin_Locator2LocatorData; - eprosima::fastcdr::optional ann_custom_Locator2LocatorData; - CompleteTypeDetail detail_Locator2LocatorData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator2LocatorData, ann_custom_Locator2LocatorData, type_name_Locator2LocatorData.to_string()); - CompleteStructHeader header_Locator2LocatorData; - header_Locator2LocatorData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator2LocatorData); - CompleteStructMemberSeq member_seq_Locator2LocatorData; - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_src_locator; - MemberId member_id_src_locator = 0x00000000; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_src_locator = "src_locator"; - eprosima::fastcdr::optional member_ann_builtin_src_locator; - ann_custom_Locator2LocatorData.reset(); - AppliedAnnotationSeq tmp_ann_custom_src_locator; - eprosima::fastcdr::optional unit_src_locator; - eprosima::fastcdr::optional min_src_locator; - eprosima::fastcdr::optional max_src_locator; - eprosima::fastcdr::optional hash_id_src_locator; - if (unit_src_locator.has_value() || min_src_locator.has_value() || max_src_locator.has_value() || hash_id_src_locator.has_value()) - { - member_ann_builtin_src_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_src_locator, min_src_locator, max_src_locator, hash_id_src_locator); - } - if (!tmp_ann_custom_src_locator.empty()) - { - ann_custom_Locator2LocatorData = tmp_ann_custom_src_locator; - } - CompleteMemberDetail detail_src_locator = TypeObjectUtils::build_complete_member_detail(name_src_locator, member_ann_builtin_src_locator, ann_custom_Locator2LocatorData); - CompleteStructMember member_src_locator = TypeObjectUtils::build_complete_struct_member(common_src_locator, detail_src_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_src_locator); - } - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_dst_locator; - MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_dst_locator = "dst_locator"; - eprosima::fastcdr::optional member_ann_builtin_dst_locator; - ann_custom_Locator2LocatorData.reset(); - AppliedAnnotationSeq tmp_ann_custom_dst_locator; - eprosima::fastcdr::optional unit_dst_locator; - eprosima::fastcdr::optional min_dst_locator; - eprosima::fastcdr::optional max_dst_locator; - eprosima::fastcdr::optional hash_id_dst_locator; - if (unit_dst_locator.has_value() || min_dst_locator.has_value() || max_dst_locator.has_value() || hash_id_dst_locator.has_value()) - { - member_ann_builtin_dst_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_dst_locator, min_dst_locator, max_dst_locator, hash_id_dst_locator); - } - if (!tmp_ann_custom_dst_locator.empty()) - { - ann_custom_Locator2LocatorData = tmp_ann_custom_dst_locator; - } - CompleteMemberDetail detail_dst_locator = TypeObjectUtils::build_complete_member_detail(name_dst_locator, member_ann_builtin_dst_locator, ann_custom_Locator2LocatorData); - CompleteStructMember member_dst_locator = TypeObjectUtils::build_complete_struct_member(common_dst_locator, detail_dst_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_dst_locator); - } - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_Locator2LocatorData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_Locator2LocatorData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_data); - } - CompleteStructType struct_type_Locator2LocatorData = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator2LocatorData, header_Locator2LocatorData, member_seq_Locator2LocatorData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_Locator2LocatorData; - type_ids_Data = type_ids_Locator2LocatorData; - } + eprosima::fastdds::statistics::register_Locator2LocatorData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_locator2locator_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_locator2locator_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_locator2locator_data; TypeObjectUtils::add_union_case_label(label_seq_locator2locator_data, static_cast(EventKind::NETWORK_LATENCY)); - CommonUnionMember common_locator2locator_data; MemberId member_id_locator2locator_data = 0x00000002; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_locator2locator_data = TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, member_flags_locator2locator_data, type_ids_Data.type_identifier1(), - label_seq_locator2locator_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_locator2locator_data = TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, member_flags_locator2locator_data, type_ids_Data.type_identifier2(), - label_seq_locator2locator_data); - } - else + bool common_locator2locator_data_ec {false}; + CommonUnionMember common_locator2locator_data {TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, + member_flags_locator2locator_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_locator2locator_data_ec), label_seq_locator2locator_data)}; + if (!common_locator2locator_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union locator2locator_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union locator2locator_data member TypeIdentifier inconsistent."); return; } MemberName name_locator2locator_data = "locator2locator_data"; @@ -12766,746 +1980,23 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::EntityData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityData; - TypeIdentifierPair type_ids_EntityData; - QualifiedTypeName type_name_EntityData = "eprosima::fastdds::statistics::EntityData"; - eprosima::fastcdr::optional type_ann_builtin_EntityData; - eprosima::fastcdr::optional ann_custom_EntityData; - CompleteTypeDetail detail_EntityData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityData, ann_custom_EntityData, type_name_EntityData.to_string()); - CompleteStructHeader header_EntityData; - header_EntityData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityData); - CompleteStructMemberSeq member_seq_EntityData; - { - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityData); - - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityData = return_code_GUID_s; - type_ids_EntityData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_EntityData.reset(); - AppliedAnnotationSeq tmp_ann_custom_guid; - eprosima::fastcdr::optional unit_guid; - eprosima::fastcdr::optional min_guid; - eprosima::fastcdr::optional max_guid; - eprosima::fastcdr::optional hash_id_guid; - if (unit_guid.has_value() || min_guid.has_value() || max_guid.has_value() || hash_id_guid.has_value()) - { - member_ann_builtin_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_guid, min_guid, max_guid, hash_id_guid); - } - if (!tmp_ann_custom_guid.empty()) - { - ann_custom_EntityData = tmp_ann_custom_guid; - } - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_EntityData); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_guid); - } - { - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_EntityData); - - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000001; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_EntityData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_EntityData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_data); - } - CompleteStructType struct_type_EntityData = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityData, header_EntityData, member_seq_EntityData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_EntityData; - type_ids_Data = type_ids_EntityData; - } + eprosima::fastdds::statistics::register_EntityData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_data; TypeObjectUtils::add_union_case_label(label_seq_entity_data, static_cast(EventKind::PUBLICATION_THROUGHPUT)); TypeObjectUtils::add_union_case_label(label_seq_entity_data, static_cast(EventKind::SUBSCRIPTION_THROUGHPUT)); - CommonUnionMember common_entity_data; MemberId member_id_entity_data = 0x00000003; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity_data_ec {false}; + CommonUnionMember common_entity_data {TypeObjectUtils::build_common_union_member(member_id_entity_data, + member_flags_entity_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity_data_ec), label_seq_entity_data)}; + if (!common_entity_data_ec) { - common_entity_data = TypeObjectUtils::build_common_union_member(member_id_entity_data, member_flags_entity_data, type_ids_Data.type_identifier1(), - label_seq_entity_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_data = TypeObjectUtils::build_common_union_member(member_id_entity_data, member_flags_entity_data, type_ids_Data.type_identifier2(), - label_seq_entity_data); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_data member TypeIdentifier inconsistent."); return; } MemberName name_entity_data = "entity_data"; @@ -13520,1264 +2011,23 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Entity2LocatorTraffic; - TypeIdentifierPair type_ids_Entity2LocatorTraffic; - QualifiedTypeName type_name_Entity2LocatorTraffic = "eprosima::fastdds::statistics::Entity2LocatorTraffic"; - eprosima::fastcdr::optional type_ann_builtin_Entity2LocatorTraffic; - eprosima::fastcdr::optional ann_custom_Entity2LocatorTraffic; - CompleteTypeDetail detail_Entity2LocatorTraffic = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Entity2LocatorTraffic, ann_custom_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string()); - CompleteStructHeader header_Entity2LocatorTraffic; - header_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Entity2LocatorTraffic); - CompleteStructMemberSeq member_seq_Entity2LocatorTraffic; - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_GUID_s; - type_ids_Entity2LocatorTraffic = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_src_guid; - MemberId member_id_src_guid = 0x00000000; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_src_guid = "src_guid"; - eprosima::fastcdr::optional member_ann_builtin_src_guid; - ann_custom_Entity2LocatorTraffic.reset(); - AppliedAnnotationSeq tmp_ann_custom_src_guid; - eprosima::fastcdr::optional unit_src_guid; - eprosima::fastcdr::optional min_src_guid; - eprosima::fastcdr::optional max_src_guid; - eprosima::fastcdr::optional hash_id_src_guid; - if (unit_src_guid.has_value() || min_src_guid.has_value() || max_src_guid.has_value() || hash_id_src_guid.has_value()) - { - member_ann_builtin_src_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_src_guid, min_src_guid, max_src_guid, hash_id_src_guid); - } - if (!tmp_ann_custom_src_guid.empty()) - { - ann_custom_Entity2LocatorTraffic = tmp_ann_custom_src_guid; - } - CompleteMemberDetail detail_src_guid = TypeObjectUtils::build_complete_member_detail(name_src_guid, member_ann_builtin_src_guid, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_src_guid = TypeObjectUtils::build_complete_struct_member(common_src_guid, detail_src_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_src_guid); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_Locator_s; - type_ids_Entity2LocatorTraffic = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_dst_locator; - MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_dst_locator = "dst_locator"; - eprosima::fastcdr::optional member_ann_builtin_dst_locator; - ann_custom_Entity2LocatorTraffic.reset(); - AppliedAnnotationSeq tmp_ann_custom_dst_locator; - eprosima::fastcdr::optional unit_dst_locator; - eprosima::fastcdr::optional min_dst_locator; - eprosima::fastcdr::optional max_dst_locator; - eprosima::fastcdr::optional hash_id_dst_locator; - if (unit_dst_locator.has_value() || min_dst_locator.has_value() || max_dst_locator.has_value() || hash_id_dst_locator.has_value()) - { - member_ann_builtin_dst_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_dst_locator, min_dst_locator, max_dst_locator, hash_id_dst_locator); - } - if (!tmp_ann_custom_dst_locator.empty()) - { - ann_custom_Entity2LocatorTraffic = tmp_ann_custom_dst_locator; - } - CompleteMemberDetail detail_dst_locator = TypeObjectUtils::build_complete_member_detail(name_dst_locator, member_ann_builtin_dst_locator, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_dst_locator = TypeObjectUtils::build_complete_struct_member(common_dst_locator, detail_dst_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_dst_locator); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "packet_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_packet_count; - MemberId member_id_packet_count = 0x00000002; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure packet_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_packet_count = "packet_count"; - eprosima::fastcdr::optional member_ann_builtin_packet_count; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_packet_count = TypeObjectUtils::build_complete_member_detail(name_packet_count, member_ann_builtin_packet_count, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_packet_count = TypeObjectUtils::build_complete_struct_member(common_packet_count, detail_packet_count); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_packet_count); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "byte_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_byte_count; - MemberId member_id_byte_count = 0x00000003; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_byte_count = "byte_count"; - eprosima::fastcdr::optional member_ann_builtin_byte_count; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_byte_count = TypeObjectUtils::build_complete_member_detail(name_byte_count, member_ann_builtin_byte_count, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_byte_count = TypeObjectUtils::build_complete_struct_member(common_byte_count, detail_byte_count); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_count); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "byte_magnitude_order Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_byte_magnitude_order; - MemberId member_id_byte_magnitude_order = 0x00000004; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_magnitude_order member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_byte_magnitude_order = "byte_magnitude_order"; - eprosima::fastcdr::optional member_ann_builtin_byte_magnitude_order; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_byte_magnitude_order = TypeObjectUtils::build_complete_member_detail(name_byte_magnitude_order, member_ann_builtin_byte_magnitude_order, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_byte_magnitude_order = TypeObjectUtils::build_complete_struct_member(common_byte_magnitude_order, detail_byte_magnitude_order); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_magnitude_order); - } - CompleteStructType struct_type_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_type(struct_flags_Entity2LocatorTraffic, header_Entity2LocatorTraffic, member_seq_Entity2LocatorTraffic); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic already registered in TypeObjectRegistry for a different type."); - } - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_Entity2LocatorTraffic; - type_ids_Data = type_ids_Entity2LocatorTraffic; - } + eprosima::fastdds::statistics::register_Entity2LocatorTraffic_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity2locator_traffic = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity2locator_traffic = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity2locator_traffic; TypeObjectUtils::add_union_case_label(label_seq_entity2locator_traffic, static_cast(EventKind::RTPS_SENT)); TypeObjectUtils::add_union_case_label(label_seq_entity2locator_traffic, static_cast(EventKind::RTPS_LOST)); - CommonUnionMember common_entity2locator_traffic; MemberId member_id_entity2locator_traffic = 0x00000004; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity2locator_traffic_ec {false}; + CommonUnionMember common_entity2locator_traffic {TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, + member_flags_entity2locator_traffic, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity2locator_traffic_ec), label_seq_entity2locator_traffic)}; + if (!common_entity2locator_traffic_ec) { - common_entity2locator_traffic = TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, member_flags_entity2locator_traffic, type_ids_Data.type_identifier1(), - label_seq_entity2locator_traffic); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity2locator_traffic = TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, member_flags_entity2locator_traffic, type_ids_Data.type_identifier2(), - label_seq_entity2locator_traffic); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity2locator_traffic member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity2locator_traffic member TypeIdentifier inconsistent."); return; } MemberName name_entity2locator_traffic = "entity2locator_traffic"; @@ -14792,697 +2042,11 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::EntityCount", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityCount; - TypeIdentifierPair type_ids_EntityCount; - QualifiedTypeName type_name_EntityCount = "eprosima::fastdds::statistics::EntityCount"; - eprosima::fastcdr::optional type_ann_builtin_EntityCount; - eprosima::fastcdr::optional ann_custom_EntityCount; - CompleteTypeDetail detail_EntityCount = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityCount, ann_custom_EntityCount, type_name_EntityCount.to_string()); - CompleteStructHeader header_EntityCount; - header_EntityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityCount); - CompleteStructMemberSeq member_seq_EntityCount; - { - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityCount); - - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityCount = return_code_GUID_s; - type_ids_EntityCount = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_EntityCount.reset(); - AppliedAnnotationSeq tmp_ann_custom_guid; - eprosima::fastcdr::optional unit_guid; - eprosima::fastcdr::optional min_guid; - eprosima::fastcdr::optional max_guid; - eprosima::fastcdr::optional hash_id_guid; - if (unit_guid.has_value() || min_guid.has_value() || max_guid.has_value() || hash_id_guid.has_value()) - { - member_ann_builtin_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_guid, min_guid, max_guid, hash_id_guid); - } - if (!tmp_ann_custom_guid.empty()) - { - ann_custom_EntityCount = tmp_ann_custom_guid; - } - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_EntityCount); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_guid); - } - { - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_EntityCount); - - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_EntityCount.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_EntityCount); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_count); - } - CompleteStructType struct_type_EntityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityCount, header_EntityCount, member_seq_EntityCount); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_EntityCount; - type_ids_Data = type_ids_EntityCount; - } + eprosima::fastdds::statistics::register_EntityCount_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_count; TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::RESENT_DATAS)); @@ -15493,51 +2057,14 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::DATA_COUNT)); TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::PDP_PACKETS)); TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::EDP_PACKETS)); - CommonUnionMember common_entity_count; MemberId member_id_entity_count = 0x00000005; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity_count_ec {false}; + CommonUnionMember common_entity_count {TypeObjectUtils::build_common_union_member(member_id_entity_count, + member_flags_entity_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity_count_ec), label_seq_entity_count)}; + if (!common_entity_count_ec) { - common_entity_count = TypeObjectUtils::build_common_union_member(member_id_entity_count, member_flags_entity_count, type_ids_Data.type_identifier1(), - label_seq_entity_count); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_count = TypeObjectUtils::build_common_union_member(member_id_entity_count, member_flags_entity_count, type_ids_Data.type_identifier2(), - label_seq_entity_count); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_count member TypeIdentifier inconsistent."); return; } MemberName name_entity_count = "entity_count"; @@ -15552,1583 +2079,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::DiscoveryTime", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DiscoveryTime; - TypeIdentifierPair type_ids_DiscoveryTime; - QualifiedTypeName type_name_DiscoveryTime = "eprosima::fastdds::statistics::DiscoveryTime"; - eprosima::fastcdr::optional type_ann_builtin_DiscoveryTime; - eprosima::fastcdr::optional ann_custom_DiscoveryTime; - CompleteTypeDetail detail_DiscoveryTime = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DiscoveryTime, ann_custom_DiscoveryTime, type_name_DiscoveryTime.to_string()); - CompleteStructHeader header_DiscoveryTime; - header_DiscoveryTime = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DiscoveryTime); - CompleteStructMemberSeq member_seq_DiscoveryTime; - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_local_participant_guid; - MemberId member_id_local_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_local_participant_guid = "local_participant_guid"; - eprosima::fastcdr::optional member_ann_builtin_local_participant_guid; - ann_custom_DiscoveryTime.reset(); - AppliedAnnotationSeq tmp_ann_custom_local_participant_guid; - eprosima::fastcdr::optional unit_local_participant_guid; - eprosima::fastcdr::optional min_local_participant_guid; - eprosima::fastcdr::optional max_local_participant_guid; - eprosima::fastcdr::optional hash_id_local_participant_guid; - if (unit_local_participant_guid.has_value() || min_local_participant_guid.has_value() || max_local_participant_guid.has_value() || hash_id_local_participant_guid.has_value()) - { - member_ann_builtin_local_participant_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_local_participant_guid, min_local_participant_guid, max_local_participant_guid, hash_id_local_participant_guid); - } - if (!tmp_ann_custom_local_participant_guid.empty()) - { - ann_custom_DiscoveryTime = tmp_ann_custom_local_participant_guid; - } - CompleteMemberDetail detail_local_participant_guid = TypeObjectUtils::build_complete_member_detail(name_local_participant_guid, member_ann_builtin_local_participant_guid, ann_custom_DiscoveryTime); - CompleteStructMember member_local_participant_guid = TypeObjectUtils::build_complete_struct_member(common_local_participant_guid, detail_local_participant_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_local_participant_guid); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_remote_entity_guid; - MemberId member_id_remote_entity_guid = 0x00000001; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure remote_entity_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_remote_entity_guid = "remote_entity_guid"; - eprosima::fastcdr::optional member_ann_builtin_remote_entity_guid; - ann_custom_DiscoveryTime.reset(); - AppliedAnnotationSeq tmp_ann_custom_remote_entity_guid; - eprosima::fastcdr::optional unit_remote_entity_guid; - eprosima::fastcdr::optional min_remote_entity_guid; - eprosima::fastcdr::optional max_remote_entity_guid; - eprosima::fastcdr::optional hash_id_remote_entity_guid; - if (unit_remote_entity_guid.has_value() || min_remote_entity_guid.has_value() || max_remote_entity_guid.has_value() || hash_id_remote_entity_guid.has_value()) - { - member_ann_builtin_remote_entity_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_remote_entity_guid, min_remote_entity_guid, max_remote_entity_guid, hash_id_remote_entity_guid); - } - if (!tmp_ann_custom_remote_entity_guid.empty()) - { - ann_custom_DiscoveryTime = tmp_ann_custom_remote_entity_guid; - } - CompleteMemberDetail detail_remote_entity_guid = TypeObjectUtils::build_complete_member_detail(name_remote_entity_guid, member_ann_builtin_remote_entity_guid, ann_custom_DiscoveryTime); - CompleteStructMember member_remote_entity_guid = TypeObjectUtils::build_complete_struct_member(common_remote_entity_guid, detail_remote_entity_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_remote_entity_guid); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "time Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_time; - MemberId member_id_time = 0x00000002; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_time = "time"; - eprosima::fastcdr::optional member_ann_builtin_time; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_time = TypeObjectUtils::build_complete_member_detail(name_time, member_ann_builtin_time, ann_custom_DiscoveryTime); - CompleteStructMember member_time = TypeObjectUtils::build_complete_struct_member(common_time, detail_time); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_time); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_host; - MemberId member_id_host = 0x00000003; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_host = "host"; - eprosima::fastcdr::optional member_ann_builtin_host; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_host = TypeObjectUtils::build_complete_member_detail(name_host, member_ann_builtin_host, ann_custom_DiscoveryTime); - CompleteStructMember member_host = TypeObjectUtils::build_complete_struct_member(common_host, detail_host); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_host); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_user; - MemberId member_id_user = 0x00000004; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_user = "user"; - eprosima::fastcdr::optional member_ann_builtin_user; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_user = TypeObjectUtils::build_complete_member_detail(name_user, member_ann_builtin_user, ann_custom_DiscoveryTime); - CompleteStructMember member_user = TypeObjectUtils::build_complete_struct_member(common_user, detail_user); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_user); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_process; - MemberId member_id_process = 0x00000005; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_process = "process"; - eprosima::fastcdr::optional member_ann_builtin_process; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_process = TypeObjectUtils::build_complete_member_detail(name_process, member_ann_builtin_process, ann_custom_DiscoveryTime); - CompleteStructMember member_process = TypeObjectUtils::build_complete_struct_member(common_process, detail_process); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_process); - } - CompleteStructType struct_type_DiscoveryTime = TypeObjectUtils::build_complete_struct_type(struct_flags_DiscoveryTime, header_DiscoveryTime, member_seq_DiscoveryTime); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime already registered in TypeObjectRegistry for a different type."); - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_DiscoveryTime; - type_ids_Data = type_ids_DiscoveryTime; - } + eprosima::fastdds::statistics::register_DiscoveryTime_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_discovery_time = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_discovery_time = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_discovery_time; TypeObjectUtils::add_union_case_label(label_seq_discovery_time, static_cast(EventKind::DISCOVERED_ENTITY)); - CommonUnionMember common_discovery_time; MemberId member_id_discovery_time = 0x00000006; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_discovery_time = TypeObjectUtils::build_common_union_member(member_id_discovery_time, member_flags_discovery_time, type_ids_Data.type_identifier1(), - label_seq_discovery_time); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_discovery_time = TypeObjectUtils::build_common_union_member(member_id_discovery_time, member_flags_discovery_time, type_ids_Data.type_identifier2(), - label_seq_discovery_time); - } - else + bool common_discovery_time_ec {false}; + CommonUnionMember common_discovery_time {TypeObjectUtils::build_common_union_member(member_id_discovery_time, + member_flags_discovery_time, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_discovery_time_ec), label_seq_discovery_time)}; + if (!common_discovery_time_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discovery_time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discovery_time member TypeIdentifier inconsistent."); return; } MemberName name_discovery_time = "discovery_time"; @@ -17143,1065 +2109,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentityCount; - TypeIdentifierPair type_ids_SampleIdentityCount; - QualifiedTypeName type_name_SampleIdentityCount = "eprosima::fastdds::statistics::SampleIdentityCount"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentityCount; - eprosima::fastcdr::optional ann_custom_SampleIdentityCount; - CompleteTypeDetail detail_SampleIdentityCount = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentityCount, ann_custom_SampleIdentityCount, type_name_SampleIdentityCount.to_string()); - CompleteStructHeader header_SampleIdentityCount; - header_SampleIdentityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentityCount); - CompleteStructMemberSeq member_seq_SampleIdentityCount; - { - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentityCount); - - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; - QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; - eprosima::fastcdr::optional ann_custom_SampleIdentity_s; - CompleteTypeDetail detail_SampleIdentity_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentity_s, ann_custom_SampleIdentity_s, type_name_SampleIdentity_s.to_string()); - CompleteStructHeader header_SampleIdentity_s; - header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); - CompleteStructMemberSeq member_seq_SampleIdentity_s; - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_SampleIdentity_s); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); - } - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } - } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_sequence_number; - MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sequence_number = "sequence_number"; - eprosima::fastcdr::optional member_ann_builtin_sequence_number; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_sequence_number = TypeObjectUtils::build_complete_member_detail(name_sequence_number, member_ann_builtin_sequence_number, ann_custom_SampleIdentity_s); - CompleteStructMember member_sequence_number = TypeObjectUtils::build_complete_struct_member(common_sequence_number, detail_sequence_number); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_sequence_number); - } - CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentityCount = return_code_SampleIdentity_s; - type_ids_SampleIdentityCount = type_ids_SampleIdentity_s; - } - } - StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_sample_id; - MemberId member_id_sample_id = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sample_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sample_id = "sample_id"; - eprosima::fastcdr::optional member_ann_builtin_sample_id; - ann_custom_SampleIdentityCount.reset(); - AppliedAnnotationSeq tmp_ann_custom_sample_id; - eprosima::fastcdr::optional unit_sample_id; - eprosima::fastcdr::optional min_sample_id; - eprosima::fastcdr::optional max_sample_id; - eprosima::fastcdr::optional hash_id_sample_id; - if (unit_sample_id.has_value() || min_sample_id.has_value() || max_sample_id.has_value() || hash_id_sample_id.has_value()) - { - member_ann_builtin_sample_id = TypeObjectUtils::build_applied_builtin_member_annotations(unit_sample_id, min_sample_id, max_sample_id, hash_id_sample_id); - } - if (!tmp_ann_custom_sample_id.empty()) - { - ann_custom_SampleIdentityCount = tmp_ann_custom_sample_id; - } - CompleteMemberDetail detail_sample_id = TypeObjectUtils::build_complete_member_detail(name_sample_id, member_ann_builtin_sample_id, ann_custom_SampleIdentityCount); - CompleteStructMember member_sample_id = TypeObjectUtils::build_complete_struct_member(common_sample_id, detail_sample_id); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_sample_id); - } - { - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_SampleIdentityCount); - - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_SampleIdentityCount.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_SampleIdentityCount); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_count); - } - CompleteStructType struct_type_SampleIdentityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentityCount, header_SampleIdentityCount, member_seq_SampleIdentityCount); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_SampleIdentityCount; - type_ids_Data = type_ids_SampleIdentityCount; - } + eprosima::fastdds::statistics::register_SampleIdentityCount_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_sample_identity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_sample_identity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_sample_identity_count; TypeObjectUtils::add_union_case_label(label_seq_sample_identity_count, static_cast(EventKind::SAMPLE_DATAS)); - CommonUnionMember common_sample_identity_count; MemberId member_id_sample_identity_count = 0x00000007; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_identity_count = TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, member_flags_sample_identity_count, type_ids_Data.type_identifier1(), - label_seq_sample_identity_count); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_identity_count = TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, member_flags_sample_identity_count, type_ids_Data.type_identifier2(), - label_seq_sample_identity_count); - } - else + bool common_sample_identity_count_ec {false}; + CommonUnionMember common_sample_identity_count {TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, + member_flags_sample_identity_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_sample_identity_count_ec), label_seq_sample_identity_count)}; + if (!common_sample_identity_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_identity_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union sample_identity_count member TypeIdentifier inconsistent."); return; } MemberName name_sample_identity_count = "sample_identity_count"; @@ -18216,928 +2139,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::PhysicalData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_PhysicalData; - TypeIdentifierPair type_ids_PhysicalData; - QualifiedTypeName type_name_PhysicalData = "eprosima::fastdds::statistics::PhysicalData"; - eprosima::fastcdr::optional type_ann_builtin_PhysicalData; - eprosima::fastcdr::optional ann_custom_PhysicalData; - CompleteTypeDetail detail_PhysicalData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_PhysicalData, ann_custom_PhysicalData, type_name_PhysicalData.to_string()); - CompleteStructHeader header_PhysicalData; - header_PhysicalData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_PhysicalData); - CompleteStructMemberSeq member_seq_PhysicalData; - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_PhysicalData = return_code_GUID_s; - type_ids_PhysicalData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_participant_guid; - MemberId member_id_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_participant_guid = "participant_guid"; - eprosima::fastcdr::optional member_ann_builtin_participant_guid; - ann_custom_PhysicalData.reset(); - AppliedAnnotationSeq tmp_ann_custom_participant_guid; - eprosima::fastcdr::optional unit_participant_guid; - eprosima::fastcdr::optional min_participant_guid; - eprosima::fastcdr::optional max_participant_guid; - eprosima::fastcdr::optional hash_id_participant_guid; - if (unit_participant_guid.has_value() || min_participant_guid.has_value() || max_participant_guid.has_value() || hash_id_participant_guid.has_value()) - { - member_ann_builtin_participant_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_participant_guid, min_participant_guid, max_participant_guid, hash_id_participant_guid); - } - if (!tmp_ann_custom_participant_guid.empty()) - { - ann_custom_PhysicalData = tmp_ann_custom_participant_guid; - } - CompleteMemberDetail detail_participant_guid = TypeObjectUtils::build_complete_member_detail(name_participant_guid, member_ann_builtin_participant_guid, ann_custom_PhysicalData); - CompleteStructMember member_participant_guid = TypeObjectUtils::build_complete_struct_member(common_participant_guid, detail_participant_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_participant_guid); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_host; - MemberId member_id_host = 0x00000001; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_host = "host"; - eprosima::fastcdr::optional member_ann_builtin_host; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_host = TypeObjectUtils::build_complete_member_detail(name_host, member_ann_builtin_host, ann_custom_PhysicalData); - CompleteStructMember member_host = TypeObjectUtils::build_complete_struct_member(common_host, detail_host); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_host); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_user; - MemberId member_id_user = 0x00000002; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_user = "user"; - eprosima::fastcdr::optional member_ann_builtin_user; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_user = TypeObjectUtils::build_complete_member_detail(name_user, member_ann_builtin_user, ann_custom_PhysicalData); - CompleteStructMember member_user = TypeObjectUtils::build_complete_struct_member(common_user, detail_user); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_user); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_process; - MemberId member_id_process = 0x00000003; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_process = "process"; - eprosima::fastcdr::optional member_ann_builtin_process; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_process = TypeObjectUtils::build_complete_member_detail(name_process, member_ann_builtin_process, ann_custom_PhysicalData); - CompleteStructMember member_process = TypeObjectUtils::build_complete_struct_member(common_process, detail_process); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_process); - } - CompleteStructType struct_type_PhysicalData = TypeObjectUtils::build_complete_struct_type(struct_flags_PhysicalData, header_PhysicalData, member_seq_PhysicalData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData already registered in TypeObjectRegistry for a different type."); - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_PhysicalData; - type_ids_Data = type_ids_PhysicalData; - } + eprosima::fastdds::statistics::register_PhysicalData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_physical_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_physical_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_physical_data; TypeObjectUtils::add_union_case_label(label_seq_physical_data, static_cast(EventKind::PHYSICAL_DATA)); - CommonUnionMember common_physical_data; MemberId member_id_physical_data = 0x00000008; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_physical_data = TypeObjectUtils::build_common_union_member(member_id_physical_data, member_flags_physical_data, type_ids_Data.type_identifier1(), - label_seq_physical_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_physical_data_ec {false}; + CommonUnionMember common_physical_data {TypeObjectUtils::build_common_union_member(member_id_physical_data, + member_flags_physical_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_physical_data_ec), label_seq_physical_data)}; + if (!common_physical_data_ec) { - common_physical_data = TypeObjectUtils::build_common_union_member(member_id_physical_data, member_flags_physical_data, type_ids_Data.type_identifier2(), - label_seq_physical_data); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union physical_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union physical_data member TypeIdentifier inconsistent."); return; } MemberName name_physical_data = "physical_data"; @@ -19150,21 +2167,11 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( CompleteUnionType union_type_Data = TypeObjectUtils::build_complete_union_type(union_flags_Data, header_Data, discriminator_Data, member_seq_Data); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Data, type_name_Data.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Data, type_name_Data.to_string(), type_ids_Data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Data already registered in TypeObjectRegistry for a different type."); } - return_code_Data = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Data", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Data: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/src/cpp/statistics/types/typesTypeObjectSupport.hpp b/src/cpp/statistics/types/typesTypeObjectSupport.hpp index 7b3cc02ed16..eb9221d8af5 100644 --- a/src/cpp/statistics/types/typesTypeObjectSupport.hpp +++ b/src/cpp/statistics/types/typesTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_types_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace eprosima { @@ -47,7 +42,7 @@ namespace fastdds { namespace statistics { namespace detail { /** - * @brief Register eprosima_fastdds_statistics_detail_EntityId_s related TypeIdentifier. + * @brief Register EntityId_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -56,11 +51,11 @@ namespace detail { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityId_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_GuidPrefix_s related TypeIdentifier. + * @brief Register GuidPrefix_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -69,11 +64,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_EntityI * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_GuidPrefix_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_GUID_s related TypeIdentifier. + * @brief Register GUID_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -82,11 +77,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GuidPre * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_GUID_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_SequenceNumber_s related TypeIdentifier. + * @brief Register SequenceNumber_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -95,11 +90,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GUID_s_ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SequenceNumber_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_SampleIdentity_s related TypeIdentifier. + * @brief Register SampleIdentity_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -108,11 +103,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Sequenc * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SampleIdentity_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_Locator_s related TypeIdentifier. + * @brief Register Locator_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -121,13 +116,13 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SampleI * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Locator_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace detail /** - * @brief Register eprosima_fastdds_statistics_DiscoveryTime related TypeIdentifier. + * @brief Register DiscoveryTime related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -136,11 +131,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Locator * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_DiscoveryTime_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_EntityCount related TypeIdentifier. + * @brief Register EntityCount related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -149,11 +144,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_DiscoveryTime_ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityCount_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityCount_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_SampleIdentityCount related TypeIdentifier. + * @brief Register SampleIdentityCount related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -162,11 +157,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityCount_ty * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SampleIdentityCount_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_Entity2LocatorTraffic related TypeIdentifier. + * @brief Register Entity2LocatorTraffic related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -175,11 +170,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_SampleIdentity * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Entity2LocatorTraffic_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_WriterReaderData related TypeIdentifier. + * @brief Register WriterReaderData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -188,11 +183,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Entity2Locator * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_WriterReaderData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_Locator2LocatorData related TypeIdentifier. + * @brief Register Locator2LocatorData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -201,11 +196,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_WriterReaderDa * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Locator2LocatorData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_EntityData related TypeIdentifier. + * @brief Register EntityData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -214,11 +209,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Locator2Locato * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_PhysicalData related TypeIdentifier. + * @brief Register PhysicalData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -227,14 +222,14 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityData_typ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_PhysicalData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); namespace EventKind { } // namespace EventKind /** - * @brief Register eprosima_fastdds_statistics_Data related TypeIdentifier. + * @brief Register Data related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -243,8 +238,8 @@ namespace EventKind { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Data_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Data_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace statistics diff --git a/test/blackbox/common/DDSBlackboxTestsStatisticsDomainParticipant.cpp b/test/blackbox/common/DDSBlackboxTestsStatisticsDomainParticipant.cpp index 81a80a88ff3..83d5882f274 100644 --- a/test/blackbox/common/DDSBlackboxTestsStatisticsDomainParticipant.cpp +++ b/test/blackbox/common/DDSBlackboxTestsStatisticsDomainParticipant.cpp @@ -260,20 +260,28 @@ TEST(StatisticsDomainParticipant, CreateParticipant) // Create TypeSupports eprosima::fastdds::dds::TypeSupport history_latency_type( new eprosima::fastdds::statistics::WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport network_latency_type( new eprosima::fastdds::statistics::Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport throughput_type( new eprosima::fastdds::statistics::EntityDataPubSubType); + throughput_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport rtps_traffic_type( new eprosima::fastdds::statistics::Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport count_type( new eprosima::fastdds::statistics::EntityCountPubSubType); + count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport discovery_type( new eprosima::fastdds::statistics::DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport sample_identity_count_type( new eprosima::fastdds::statistics::SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport physical_data_type( new eprosima::fastdds::statistics::PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport null_type(nullptr); // Create statistics DataReaders @@ -436,20 +444,28 @@ TEST(StatisticsDomainParticipant, CreateParticipantUsingXML) // Create TypeSupports eprosima::fastdds::dds::TypeSupport history_latency_type( new eprosima::fastdds::statistics::WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport network_latency_type( new eprosima::fastdds::statistics::Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport throughput_type( new eprosima::fastdds::statistics::EntityDataPubSubType); + throughput_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport rtps_traffic_type( new eprosima::fastdds::statistics::Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport count_type( new eprosima::fastdds::statistics::EntityCountPubSubType); + count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport discovery_type( new eprosima::fastdds::statistics::DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport sample_identity_count_type( new eprosima::fastdds::statistics::SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport physical_data_type( new eprosima::fastdds::statistics::PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport null_type(nullptr); // Create statistics DataReaders diff --git a/test/blackbox/types/Data1mbPubSubTypes.cxx b/test/blackbox/types/Data1mbPubSubTypes.cxx index 69545e46c94..a1afa559b08 100644 --- a/test/blackbox/types/Data1mbPubSubTypes.cxx +++ b/test/blackbox/types/Data1mbPubSubTypes.cxx @@ -219,9 +219,9 @@ bool Data1mbPubSubType::getKey( return true; } -void Data1mbPubSubType::register_type_object_representation() const +void Data1mbPubSubType::register_type_object_representation() { - register_Data1mb_type_objects(); + register_Data1mb_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/Data1mbPubSubTypes.h b/test/blackbox/types/Data1mbPubSubTypes.h index 6751701454f..5bab268fc61 100644 --- a/test/blackbox/types/Data1mbPubSubTypes.h +++ b/test/blackbox/types/Data1mbPubSubTypes.h @@ -89,7 +89,7 @@ class Data1mbPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/Data1mbTypeObjectSupport.cxx b/test/blackbox/types/Data1mbTypeObjectSupport.cxx index 9ade988ad2e..c94e85ef66f 100644 --- a/test/blackbox/types/Data1mbTypeObjectSupport.cxx +++ b/test/blackbox/types/Data1mbTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_Data1mb_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_Data1mb_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Data1mb_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Data1mb) { + + ReturnCode_t return_code_Data1mb {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Data1mb = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Data1mb", type_ids_Data1mb); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data1mb) { - StructTypeFlag struct_flags_Data1mb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Data1mb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Data1mb; - TypeIdentifierPair type_ids_Data1mb; QualifiedTypeName type_name_Data1mb = "Data1mb"; eprosima::fastcdr::optional type_ann_builtin_Data1mb; eprosima::fastcdr::optional ann_custom_Data1mb; @@ -66,69 +59,33 @@ void register_Data1mb_type_identifier( header_Data1mb = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Data1mb); CompleteStructMemberSeq member_seq_Data1mb; { - return_code_Data1mb = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_1024000", type_ids_Data1mb); + "anonymous_sequence_uint8_t_1024000", type_ids_data); - if (return_code_Data1mb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { - return_code_Data1mb = + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Data1mb); + "_byte", type_ids_data); - if (return_code_Data1mb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_1024000 {nullptr}; - if (EK_COMPLETE == type_ids_Data1mb.type_identifier1()._d() || TK_NONE == type_ids_Data1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint8_t_1024000_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_1024000 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_sequence_uint8_t_1024000_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_1024000_ec) { - element_identifier_anonymous_sequence_uint8_t_1024000 = new TypeIdentifier(type_ids_Data1mb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Data1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_1024000 = new TypeIdentifier(type_ids_Data1mb.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_1024000 = EK_COMPLETE; - if (TK_NONE == type_ids_Data1mb.type_identifier2()._d()) + if (TK_NONE == type_ids_data.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_1024000 = EK_BOTH; } @@ -139,68 +96,21 @@ void register_Data1mb_type_identifier( PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_1024000, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_1024000)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_1024000")) + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_1024000", type_ids_data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_1024000 already registered in TypeObjectRegistry for a different type."); } } - return_code_Data1mb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_1024000", type_ids_Data1mb); - if (return_code_Data1mb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_1024000: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000000; - if (EK_COMPLETE == type_ids_Data1mb.type_identifier1()._d() || TK_NONE == type_ids_Data1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Data1mb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Data1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data1mb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data1mb.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Data1mb.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -212,21 +122,11 @@ void register_Data1mb_type_identifier( } CompleteStructType struct_type_Data1mb = TypeObjectUtils::build_complete_struct_type(struct_flags_Data1mb, header_Data1mb, member_seq_Data1mb); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Data1mb, type_name_Data1mb.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Data1mb, type_name_Data1mb.to_string(), type_ids_Data1mb)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Data1mb already registered in TypeObjectRegistry for a different type."); } - return_code_Data1mb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Data1mb", type_ids_Data1mb); - if (return_code_Data1mb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Data1mb: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/Data1mbTypeObjectSupport.hpp b/test/blackbox/types/Data1mbTypeObjectSupport.hpp index 61ae7578200..33f3da5ed57 100644 --- a/test/blackbox/types/Data1mbTypeObjectSupport.hpp +++ b/test/blackbox/types/Data1mbTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_Data1mb_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_Data1mb_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Data1mb_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/Data64kbPubSubTypes.cxx b/test/blackbox/types/Data64kbPubSubTypes.cxx index 5a511b1e409..6184964c72d 100644 --- a/test/blackbox/types/Data64kbPubSubTypes.cxx +++ b/test/blackbox/types/Data64kbPubSubTypes.cxx @@ -219,9 +219,9 @@ bool Data64kbPubSubType::getKey( return true; } -void Data64kbPubSubType::register_type_object_representation() const +void Data64kbPubSubType::register_type_object_representation() { - register_Data64kb_type_objects(); + register_Data64kb_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/Data64kbPubSubTypes.h b/test/blackbox/types/Data64kbPubSubTypes.h index c24c71ba6fd..d209d7a6d66 100644 --- a/test/blackbox/types/Data64kbPubSubTypes.h +++ b/test/blackbox/types/Data64kbPubSubTypes.h @@ -89,7 +89,7 @@ class Data64kbPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/Data64kbTypeObjectSupport.cxx b/test/blackbox/types/Data64kbTypeObjectSupport.cxx index d907fbfc90b..348652defae 100644 --- a/test/blackbox/types/Data64kbTypeObjectSupport.cxx +++ b/test/blackbox/types/Data64kbTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_Data64kb_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_Data64kb_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Data64kb_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Data64kb) { + + ReturnCode_t return_code_Data64kb {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Data64kb = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Data64kb", type_ids_Data64kb); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data64kb) { - StructTypeFlag struct_flags_Data64kb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Data64kb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Data64kb; - TypeIdentifierPair type_ids_Data64kb; QualifiedTypeName type_name_Data64kb = "Data64kb"; eprosima::fastcdr::optional type_ann_builtin_Data64kb; eprosima::fastcdr::optional ann_custom_Data64kb; @@ -66,69 +59,33 @@ void register_Data64kb_type_identifier( header_Data64kb = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Data64kb); CompleteStructMemberSeq member_seq_Data64kb; { - return_code_Data64kb = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_63996", type_ids_Data64kb); + "anonymous_sequence_uint8_t_63996", type_ids_data); - if (return_code_Data64kb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { - return_code_Data64kb = + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Data64kb); + "_byte", type_ids_data); - if (return_code_Data64kb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_63996 {nullptr}; - if (EK_COMPLETE == type_ids_Data64kb.type_identifier1()._d() || TK_NONE == type_ids_Data64kb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data64kb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data64kb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint8_t_63996_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_63996 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_sequence_uint8_t_63996_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_63996_ec) { - element_identifier_anonymous_sequence_uint8_t_63996 = new TypeIdentifier(type_ids_Data64kb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Data64kb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data64kb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data64kb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_63996 = new TypeIdentifier(type_ids_Data64kb.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_63996 = EK_COMPLETE; - if (TK_NONE == type_ids_Data64kb.type_identifier2()._d()) + if (TK_NONE == type_ids_data.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_63996 = EK_BOTH; } @@ -139,68 +96,21 @@ void register_Data64kb_type_identifier( PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_63996, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_63996)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_63996")) + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_63996", type_ids_data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_63996 already registered in TypeObjectRegistry for a different type."); } } - return_code_Data64kb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_63996", type_ids_Data64kb); - if (return_code_Data64kb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_63996: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000000; - if (EK_COMPLETE == type_ids_Data64kb.type_identifier1()._d() || TK_NONE == type_ids_Data64kb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data64kb.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data64kb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data64kb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Data64kb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Data64kb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data64kb.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data64kb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data64kb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data64kb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data64kb.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Data64kb.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -212,21 +122,11 @@ void register_Data64kb_type_identifier( } CompleteStructType struct_type_Data64kb = TypeObjectUtils::build_complete_struct_type(struct_flags_Data64kb, header_Data64kb, member_seq_Data64kb); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Data64kb, type_name_Data64kb.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Data64kb, type_name_Data64kb.to_string(), type_ids_Data64kb)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Data64kb already registered in TypeObjectRegistry for a different type."); } - return_code_Data64kb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Data64kb", type_ids_Data64kb); - if (return_code_Data64kb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Data64kb: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/Data64kbTypeObjectSupport.hpp b/test/blackbox/types/Data64kbTypeObjectSupport.hpp index d11514c5319..ff0722999f4 100644 --- a/test/blackbox/types/Data64kbTypeObjectSupport.hpp +++ b/test/blackbox/types/Data64kbTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_Data64kb_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_Data64kb_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Data64kb_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/FixedSizedPubSubTypes.cxx b/test/blackbox/types/FixedSizedPubSubTypes.cxx index 7b2cd9108ce..fd53c02358f 100644 --- a/test/blackbox/types/FixedSizedPubSubTypes.cxx +++ b/test/blackbox/types/FixedSizedPubSubTypes.cxx @@ -219,9 +219,9 @@ bool FixedSizedPubSubType::getKey( return true; } -void FixedSizedPubSubType::register_type_object_representation() const +void FixedSizedPubSubType::register_type_object_representation() { - register_FixedSized_type_objects(); + register_FixedSized_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/FixedSizedPubSubTypes.h b/test/blackbox/types/FixedSizedPubSubTypes.h index fa83c8bc097..c6589e3c60a 100644 --- a/test/blackbox/types/FixedSizedPubSubTypes.h +++ b/test/blackbox/types/FixedSizedPubSubTypes.h @@ -122,7 +122,7 @@ class FixedSizedPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/FixedSizedTypeObjectSupport.cxx b/test/blackbox/types/FixedSizedTypeObjectSupport.cxx index b7aaaf24f2b..33b80e58f73 100644 --- a/test/blackbox/types/FixedSizedTypeObjectSupport.cxx +++ b/test/blackbox/types/FixedSizedTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_FixedSized_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_FixedSized_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixedSized_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixedSized) { + + ReturnCode_t return_code_FixedSized {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixedSized = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixedSized", type_ids_FixedSized); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixedSized) { StructTypeFlag struct_flags_FixedSized = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FixedSized; - TypeIdentifierPair type_ids_FixedSized; QualifiedTypeName type_name_FixedSized = "FixedSized"; eprosima::fastcdr::optional type_ann_builtin_FixedSized; eprosima::fastcdr::optional ann_custom_FixedSized; @@ -73,62 +66,26 @@ void register_FixedSized_type_identifier( header_FixedSized = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixedSized); CompleteStructMemberSeq member_seq_FixedSized; { - return_code_FixedSized = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_FixedSized); + "_uint16_t", type_ids_index); - if (return_code_FixedSized != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_FixedSized.type_identifier1()._d() || TK_NONE == type_ids_FixedSized.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixedSized.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixedSized.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixedSized.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixedSized.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixedSized.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixedSized.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixedSized.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixedSized.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixedSized.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixedSized.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_FixedSized.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixedSized.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixedSized.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixedSized.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixedSized.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixedSized.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixedSized.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixedSized.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixedSized.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixedSized.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixedSized.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixedSized.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixedSized.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_FixedSized.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -140,21 +97,11 @@ void register_FixedSized_type_identifier( } CompleteStructType struct_type_FixedSized = TypeObjectUtils::build_complete_struct_type(struct_flags_FixedSized, header_FixedSized, member_seq_FixedSized); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixedSized, type_name_FixedSized.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixedSized, type_name_FixedSized.to_string(), type_ids_FixedSized)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixedSized already registered in TypeObjectRegistry for a different type."); } - return_code_FixedSized = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixedSized", type_ids_FixedSized); - if (return_code_FixedSized != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixedSized: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/FixedSizedTypeObjectSupport.hpp b/test/blackbox/types/FixedSizedTypeObjectSupport.hpp index bdca837a327..cdc09e4f9b6 100644 --- a/test/blackbox/types/FixedSizedTypeObjectSupport.hpp +++ b/test/blackbox/types/FixedSizedTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_FixedSized_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_FixedSized_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixedSized_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/HelloWorldPubSubTypes.cxx b/test/blackbox/types/HelloWorldPubSubTypes.cxx index 870332377b7..0218144b5cb 100644 --- a/test/blackbox/types/HelloWorldPubSubTypes.cxx +++ b/test/blackbox/types/HelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool HelloWorldPubSubType::getKey( return true; } -void HelloWorldPubSubType::register_type_object_representation() const +void HelloWorldPubSubType::register_type_object_representation() { - register_HelloWorld_type_objects(); + register_HelloWorld_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/HelloWorldPubSubTypes.h b/test/blackbox/types/HelloWorldPubSubTypes.h index 52736f6dad8..4b09a679ee5 100644 --- a/test/blackbox/types/HelloWorldPubSubTypes.h +++ b/test/blackbox/types/HelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/HelloWorldTypeObjectSupport.cxx b/test/blackbox/types/HelloWorldTypeObjectSupport.cxx index ffa586730dc..9427e789848 100644 --- a/test/blackbox/types/HelloWorldTypeObjectSupport.cxx +++ b/test/blackbox/types/HelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_HelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_HelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_HelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_HelloWorld) { + + ReturnCode_t return_code_HelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_HelloWorld) { StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_HelloWorld; - TypeIdentifierPair type_ids_HelloWorld; QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; @@ -73,62 +66,26 @@ void register_HelloWorld_type_identifier( header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); CompleteStructMemberSeq member_seq_HelloWorld; { - return_code_HelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_HelloWorld); + "_uint16_t", type_ids_index); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -139,79 +96,34 @@ void register_HelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); } { - return_code_HelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_HelloWorld); + "anonymous_string_128", type_ids_message); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = static_cast(128); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_128")) + "anonymous_string_128", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); } } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -223,21 +135,11 @@ void register_HelloWorld_type_identifier( } CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string(), type_ids_HelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "HelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_HelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "HelloWorld", type_ids_HelloWorld); - if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/HelloWorldTypeObjectSupport.hpp b/test/blackbox/types/HelloWorldTypeObjectSupport.hpp index 4d5de07cbd7..2eba797b07f 100644 --- a/test/blackbox/types/HelloWorldTypeObjectSupport.hpp +++ b/test/blackbox/types/HelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_HelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_HelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_HelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/KeyedData1mbPubSubTypes.cxx b/test/blackbox/types/KeyedData1mbPubSubTypes.cxx index 6e9e352882a..34adec26bab 100644 --- a/test/blackbox/types/KeyedData1mbPubSubTypes.cxx +++ b/test/blackbox/types/KeyedData1mbPubSubTypes.cxx @@ -219,9 +219,9 @@ bool KeyedData1mbPubSubType::getKey( return true; } -void KeyedData1mbPubSubType::register_type_object_representation() const +void KeyedData1mbPubSubType::register_type_object_representation() { - register_KeyedData1mb_type_objects(); + register_KeyedData1mb_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/KeyedData1mbPubSubTypes.h b/test/blackbox/types/KeyedData1mbPubSubTypes.h index bad607dd6a1..8113f23441c 100644 --- a/test/blackbox/types/KeyedData1mbPubSubTypes.h +++ b/test/blackbox/types/KeyedData1mbPubSubTypes.h @@ -89,7 +89,7 @@ class KeyedData1mbPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/KeyedData1mbTypeObjectSupport.cxx b/test/blackbox/types/KeyedData1mbTypeObjectSupport.cxx index d55a5796d5c..87e80a8b10c 100644 --- a/test/blackbox/types/KeyedData1mbTypeObjectSupport.cxx +++ b/test/blackbox/types/KeyedData1mbTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_KeyedData1mb_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_KeyedData1mb_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedData1mb_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedData1mb) { + + ReturnCode_t return_code_KeyedData1mb {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedData1mb = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedData1mb", type_ids_KeyedData1mb); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedData1mb) { - StructTypeFlag struct_flags_KeyedData1mb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedData1mb = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedData1mb; - TypeIdentifierPair type_ids_KeyedData1mb; QualifiedTypeName type_name_KeyedData1mb = "KeyedData1mb"; eprosima::fastcdr::optional type_ann_builtin_KeyedData1mb; eprosima::fastcdr::optional ann_custom_KeyedData1mb; @@ -66,62 +59,26 @@ void register_KeyedData1mb_type_identifier( header_KeyedData1mb = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedData1mb); CompleteStructMemberSeq member_seq_KeyedData1mb; { - return_code_KeyedData1mb = + TypeIdentifierPair type_ids_key; + ReturnCode_t return_code_key {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_KeyedData1mb); + "_uint16_t", type_ids_key); - if (return_code_KeyedData1mb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key; MemberId member_id_key = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1()._d() || TK_NONE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key = TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, type_ids_KeyedData1mb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_key_ec {false}; + CommonStructMember common_key {TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key, common_key_ec))}; + if (!common_key_ec) { - common_key = TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, type_ids_KeyedData1mb.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key member TypeIdentifier inconsistent."); return; } MemberName name_key = "key"; @@ -145,69 +102,33 @@ void register_KeyedData1mb_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedData1mb, member_key); } { - return_code_KeyedData1mb = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_1023996", type_ids_KeyedData1mb); + "anonymous_sequence_uint8_t_1023996", type_ids_data); - if (return_code_KeyedData1mb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { - return_code_KeyedData1mb = + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_KeyedData1mb); + "_byte", type_ids_data); - if (return_code_KeyedData1mb != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_1023996 {nullptr}; - if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1()._d() || TK_NONE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_1023996 = new TypeIdentifier(type_ids_KeyedData1mb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_1023996 = new TypeIdentifier(type_ids_KeyedData1mb.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint8_t_1023996_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_1023996 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, element_identifier_anonymous_sequence_uint8_t_1023996_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_1023996_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_1023996 = EK_COMPLETE; - if (TK_NONE == type_ids_KeyedData1mb.type_identifier2()._d()) + if (TK_NONE == type_ids_data.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_1023996 = EK_BOTH; } @@ -218,68 +139,21 @@ void register_KeyedData1mb_type_identifier( PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_1023996, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_1023996)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_1023996")) + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_1023996", type_ids_data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_1023996 already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedData1mb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_1023996", type_ids_KeyedData1mb); - if (return_code_KeyedData1mb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_1023996: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1()._d() || TK_NONE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_KeyedData1mb.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedData1mb.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedData1mb.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_KeyedData1mb.type_identifier2()); - } - else + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -291,21 +165,11 @@ void register_KeyedData1mb_type_identifier( } CompleteStructType struct_type_KeyedData1mb = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedData1mb, header_KeyedData1mb, member_seq_KeyedData1mb); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedData1mb, type_name_KeyedData1mb.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedData1mb, type_name_KeyedData1mb.to_string(), type_ids_KeyedData1mb)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedData1mb already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedData1mb = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedData1mb", type_ids_KeyedData1mb); - if (return_code_KeyedData1mb != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedData1mb: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/KeyedData1mbTypeObjectSupport.hpp b/test/blackbox/types/KeyedData1mbTypeObjectSupport.hpp index 364df6ee5c5..cfc4990b2f2 100644 --- a/test/blackbox/types/KeyedData1mbTypeObjectSupport.hpp +++ b/test/blackbox/types/KeyedData1mbTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_KeyedData1mb_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_KeyedData1mb_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedData1mb_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/KeyedHelloWorldPubSubTypes.cxx b/test/blackbox/types/KeyedHelloWorldPubSubTypes.cxx index 30a96eb36c8..ff493273b66 100644 --- a/test/blackbox/types/KeyedHelloWorldPubSubTypes.cxx +++ b/test/blackbox/types/KeyedHelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool KeyedHelloWorldPubSubType::getKey( return true; } -void KeyedHelloWorldPubSubType::register_type_object_representation() const +void KeyedHelloWorldPubSubType::register_type_object_representation() { - register_KeyedHelloWorld_type_objects(); + register_KeyedHelloWorld_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/KeyedHelloWorldPubSubTypes.h b/test/blackbox/types/KeyedHelloWorldPubSubTypes.h index 72888c8dc18..97ed4d8bd09 100644 --- a/test/blackbox/types/KeyedHelloWorldPubSubTypes.h +++ b/test/blackbox/types/KeyedHelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class KeyedHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.cxx b/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.cxx index 3293fd01665..165ed981d88 100644 --- a/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.cxx +++ b/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_KeyedHelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_KeyedHelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedHelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedHelloWorld) { + + ReturnCode_t return_code_KeyedHelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedHelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedHelloWorld", type_ids_KeyedHelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedHelloWorld) { - StructTypeFlag struct_flags_KeyedHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedHelloWorld; - TypeIdentifierPair type_ids_KeyedHelloWorld; QualifiedTypeName type_name_KeyedHelloWorld = "KeyedHelloWorld"; eprosima::fastcdr::optional type_ann_builtin_KeyedHelloWorld; eprosima::fastcdr::optional ann_custom_KeyedHelloWorld; @@ -66,62 +59,26 @@ void register_KeyedHelloWorld_type_identifier( header_KeyedHelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedHelloWorld); CompleteStructMemberSeq member_seq_KeyedHelloWorld; { - return_code_KeyedHelloWorld = + TypeIdentifierPair type_ids_key; + ReturnCode_t return_code_key {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_KeyedHelloWorld); + "_uint16_t", type_ids_key); - if (return_code_KeyedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key; MemberId member_id_key = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_key_ec {false}; + CommonStructMember common_key {TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key, common_key_ec))}; + if (!common_key_ec) { - common_key = TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, type_ids_KeyedHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key = TypeObjectUtils::build_common_struct_member(member_id_key, member_flags_key, type_ids_KeyedHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key member TypeIdentifier inconsistent."); return; } MemberName name_key = "key"; @@ -145,62 +102,26 @@ void register_KeyedHelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedHelloWorld, member_key); } { - return_code_KeyedHelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_KeyedHelloWorld); + "_uint16_t", type_ids_index); - if (return_code_KeyedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_KeyedHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_KeyedHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -211,79 +132,34 @@ void register_KeyedHelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedHelloWorld, member_index); } { - return_code_KeyedHelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_KeyedHelloWorld); + "anonymous_string_128", type_ids_message); - if (return_code_KeyedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = static_cast(128); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_128")) + "anonymous_string_128", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_128 already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_128", type_ids_KeyedHelloWorld); - if (return_code_KeyedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_128: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000002; - if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_KeyedHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_KeyedHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -295,21 +171,11 @@ void register_KeyedHelloWorld_type_identifier( } CompleteStructType struct_type_KeyedHelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedHelloWorld, header_KeyedHelloWorld, member_seq_KeyedHelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedHelloWorld, type_name_KeyedHelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedHelloWorld, type_name_KeyedHelloWorld.to_string(), type_ids_KeyedHelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedHelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedHelloWorld", type_ids_KeyedHelloWorld); - if (return_code_KeyedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedHelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.hpp b/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.hpp index bd0cc0c2b0e..1b260651938 100644 --- a/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.hpp +++ b/test/blackbox/types/KeyedHelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_KeyedHelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_KeyedHelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedHelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/StringTestPubSubTypes.cxx b/test/blackbox/types/StringTestPubSubTypes.cxx index c4df624df9b..84c53c34e99 100644 --- a/test/blackbox/types/StringTestPubSubTypes.cxx +++ b/test/blackbox/types/StringTestPubSubTypes.cxx @@ -219,9 +219,9 @@ bool StringTestPubSubType::getKey( return true; } -void StringTestPubSubType::register_type_object_representation() const +void StringTestPubSubType::register_type_object_representation() { - register_StringTest_type_objects(); + register_StringTest_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/StringTestPubSubTypes.h b/test/blackbox/types/StringTestPubSubTypes.h index 2444a0ae7ba..d30d9d24b2c 100644 --- a/test/blackbox/types/StringTestPubSubTypes.h +++ b/test/blackbox/types/StringTestPubSubTypes.h @@ -89,7 +89,7 @@ class StringTestPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/StringTestTypeObjectSupport.cxx b/test/blackbox/types/StringTestTypeObjectSupport.cxx index 808c0d3ab2e..91ab915141b 100644 --- a/test/blackbox/types/StringTestTypeObjectSupport.cxx +++ b/test/blackbox/types/StringTestTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_StringTest_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_StringTest_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StringTest_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StringTest) { + + ReturnCode_t return_code_StringTest {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StringTest = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StringTest", type_ids_StringTest); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StringTest) { - StructTypeFlag struct_flags_StringTest = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StringTest = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StringTest; - TypeIdentifierPair type_ids_StringTest; QualifiedTypeName type_name_StringTest = "StringTest"; eprosima::fastcdr::optional type_ann_builtin_StringTest; eprosima::fastcdr::optional ann_custom_StringTest; @@ -66,79 +59,34 @@ void register_StringTest_type_identifier( header_StringTest = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StringTest); CompleteStructMemberSeq member_seq_StringTest; { - return_code_StringTest = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10000", type_ids_StringTest); + "anonymous_string_10000", type_ids_message); - if (return_code_StringTest != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { LBound bound = 10000; StringLTypeDefn string_ldefn = TypeObjectUtils::build_string_l_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_l_string_type_identifier(string_ldefn, - "anonymous_string_10000")) + "anonymous_string_10000", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_10000 already registered in TypeObjectRegistry for a different type."); } } - return_code_StringTest = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10000", type_ids_StringTest); - if (return_code_StringTest != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10000: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000000; - if (EK_COMPLETE == type_ids_StringTest.type_identifier1()._d() || TK_NONE == type_ids_StringTest.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StringTest.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StringTest.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StringTest.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StringTest.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StringTest.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StringTest.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringTest.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StringTest.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StringTest.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringTest.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_StringTest.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StringTest.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StringTest.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StringTest.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StringTest.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StringTest.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringTest.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StringTest.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StringTest.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringTest.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StringTest.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StringTest.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringTest.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_StringTest.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -150,21 +98,11 @@ void register_StringTest_type_identifier( } CompleteStructType struct_type_StringTest = TypeObjectUtils::build_complete_struct_type(struct_flags_StringTest, header_StringTest, member_seq_StringTest); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StringTest, type_name_StringTest.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StringTest, type_name_StringTest.to_string(), type_ids_StringTest)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StringTest already registered in TypeObjectRegistry for a different type."); } - return_code_StringTest = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StringTest", type_ids_StringTest); - if (return_code_StringTest != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StringTest: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/StringTestTypeObjectSupport.hpp b/test/blackbox/types/StringTestTypeObjectSupport.hpp index 3bf296b5a6d..bcae90e3f3f 100644 --- a/test/blackbox/types/StringTestTypeObjectSupport.hpp +++ b/test/blackbox/types/StringTestTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_StringTest_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_StringTest_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StringTest_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.cxx b/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.cxx index 7bef5c2ec97..03686291f77 100644 --- a/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.cxx +++ b/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.cxx @@ -38,15 +38,65 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_TestIncludeRegression3361_type_objects() +namespace TestModule { +void register_MACHINEID_type_identifier( + TypeIdentifierPair& type_ids_MACHINEID) { - static std::once_flag once_flag; - std::call_once(once_flag, []() + ReturnCode_t return_code_MACHINEID {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MACHINEID = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TestModule::MACHINEID", type_ids_MACHINEID); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MACHINEID) + { + AliasTypeFlag alias_flags_MACHINEID = 0; + QualifiedTypeName type_name_MACHINEID = "TestModule::MACHINEID"; + eprosima::fastcdr::optional type_ann_builtin_MACHINEID; + eprosima::fastcdr::optional ann_custom_MACHINEID; + CompleteTypeDetail detail_MACHINEID = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MACHINEID, ann_custom_MACHINEID, type_name_MACHINEID.to_string()); + CompleteAliasHeader header_MACHINEID = TypeObjectUtils::build_complete_alias_header(detail_MACHINEID); + AliasMemberFlag related_flags_MACHINEID = 0; + return_code_MACHINEID = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_MACHINEID); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MACHINEID) + { { - TypeIdentifier type_id; - }); + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_MACHINEID)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_MACHINEID_ec {false}; + CommonAliasBody common_MACHINEID {TypeObjectUtils::build_common_alias_body(related_flags_MACHINEID, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MACHINEID, common_MACHINEID_ec))}; + if (!common_MACHINEID_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "TestModule::MACHINEID related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_MACHINEID; + ann_custom_MACHINEID.reset(); + CompleteAliasBody body_MACHINEID = TypeObjectUtils::build_complete_alias_body(common_MACHINEID, + member_ann_builtin_MACHINEID, ann_custom_MACHINEID); + CompleteAliasType alias_type_MACHINEID = TypeObjectUtils::build_complete_alias_type(alias_flags_MACHINEID, + header_MACHINEID, body_MACHINEID); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_MACHINEID, + type_name_MACHINEID.to_string(), type_ids_MACHINEID)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TestModule::MACHINEID already registered in TypeObjectRegistry for a different type."); + } + } } -namespace TestModule { + } // namespace TestModule diff --git a/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.hpp b/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.hpp index 183d74b6da7..55e69fa3f92 100644 --- a/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.hpp +++ b/test/blackbox/types/TestIncludeRegression3361TypeObjectSupport.hpp @@ -35,14 +35,24 @@ #define eProsima_user_DllExport #endif // _WIN32 +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +namespace TestModule { /** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. + * @brief Register MACHINEID related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_TestIncludeRegression3361_type_objects(); +eProsima_user_DllExport void register_MACHINEID_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -namespace TestModule { } // namespace TestModule diff --git a/test/blackbox/types/TestRegression3361PubSubTypes.cxx b/test/blackbox/types/TestRegression3361PubSubTypes.cxx index 8673d746298..72d208b454e 100644 --- a/test/blackbox/types/TestRegression3361PubSubTypes.cxx +++ b/test/blackbox/types/TestRegression3361PubSubTypes.cxx @@ -219,9 +219,9 @@ bool TestRegression3361PubSubType::getKey( return true; } -void TestRegression3361PubSubType::register_type_object_representation() const +void TestRegression3361PubSubType::register_type_object_representation() { - register_TestRegression3361_type_objects(); + register_TestRegression3361_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/TestRegression3361PubSubTypes.h b/test/blackbox/types/TestRegression3361PubSubTypes.h index 4e8fb12c468..f5c5dd38622 100644 --- a/test/blackbox/types/TestRegression3361PubSubTypes.h +++ b/test/blackbox/types/TestRegression3361PubSubTypes.h @@ -90,7 +90,7 @@ class TestRegression3361PubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/TestRegression3361TypeObjectSupport.cxx b/test/blackbox/types/TestRegression3361TypeObjectSupport.cxx index 048eac679e9..bd24e32fdd3 100644 --- a/test/blackbox/types/TestRegression3361TypeObjectSupport.cxx +++ b/test/blackbox/types/TestRegression3361TypeObjectSupport.cxx @@ -39,26 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_TestRegression3361_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_TestRegression3361_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_TestRegression3361_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_TestRegression3361) { + + ReturnCode_t return_code_TestRegression3361 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_TestRegression3361 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "TestRegression3361", type_ids_TestRegression3361); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_TestRegression3361) { - StructTypeFlag struct_flags_TestRegression3361 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_TestRegression3361 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_TestRegression3361; - TypeIdentifierPair type_ids_TestRegression3361; QualifiedTypeName type_name_TestRegression3361 = "TestRegression3361"; eprosima::fastcdr::optional type_ann_builtin_TestRegression3361; eprosima::fastcdr::optional ann_custom_TestRegression3361; @@ -67,157 +60,24 @@ void register_TestRegression3361_type_identifier( header_TestRegression3361 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TestRegression3361); CompleteStructMemberSeq member_seq_TestRegression3361; { - return_code_TestRegression3361 = + TypeIdentifierPair type_ids_uuid; + ReturnCode_t return_code_uuid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uuid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "TestModule::MACHINEID", type_ids_TestRegression3361); + "TestModule::MACHINEID", type_ids_uuid); - if (return_code_TestRegression3361 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uuid) { - AliasTypeFlag alias_flags_MACHINEID = 0; - QualifiedTypeName type_name_MACHINEID = "TestModule::MACHINEID"; - eprosima::fastcdr::optional type_ann_builtin_MACHINEID; - eprosima::fastcdr::optional ann_custom_MACHINEID; - CompleteTypeDetail detail_MACHINEID = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MACHINEID, ann_custom_MACHINEID, type_name_MACHINEID.to_string()); - CompleteAliasHeader header_MACHINEID = TypeObjectUtils::build_complete_alias_header(detail_MACHINEID); - AliasMemberFlag related_flags_MACHINEID = 0; - return_code_TestRegression3361 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_TestRegression3361); - - if (return_code_TestRegression3361 != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_TestRegression3361 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_TestRegression3361); - if (return_code_TestRegression3361 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_MACHINEID; - if (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1()._d() || TK_NONE == type_ids_TestRegression3361.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_MACHINEID = TypeObjectUtils::build_common_alias_body(related_flags_MACHINEID, type_ids_TestRegression3361.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_MACHINEID = TypeObjectUtils::build_common_alias_body(related_flags_MACHINEID, type_ids_TestRegression3361.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TestModule::MACHINEID related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_MACHINEID; - ann_custom_MACHINEID.reset(); - CompleteAliasBody body_MACHINEID = TypeObjectUtils::build_complete_alias_body(common_MACHINEID, member_ann_builtin_MACHINEID, ann_custom_MACHINEID); - CompleteAliasType alias_type_MACHINEID = TypeObjectUtils::build_complete_alias_type(alias_flags_MACHINEID, header_MACHINEID, body_MACHINEID); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_MACHINEID, type_name_MACHINEID.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TestModule::MACHINEID already registered in TypeObjectRegistry for a different type."); - } - return_code_TestRegression3361 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "TestModule::MACHINEID", type_ids_TestRegression3361); - if (return_code_TestRegression3361 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TestModule::MACHINEID: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + TestModule::register_MACHINEID_type_identifier(type_ids_uuid); } - StructMemberFlag member_flags_uuid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uuid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uuid; MemberId member_id_uuid = 0x00000000; - if (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1()._d() || TK_NONE == type_ids_TestRegression3361.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TestRegression3361.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TestRegression3361.type_identifier1()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_uuid_ec {false}; + CommonStructMember common_uuid {TypeObjectUtils::build_common_struct_member(member_id_uuid, member_flags_uuid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uuid, common_uuid_ec))}; + if (!common_uuid_ec) { - common_uuid = TypeObjectUtils::build_common_struct_member(member_id_uuid, member_flags_uuid, type_ids_TestRegression3361.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_TestRegression3361.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_TestRegression3361.type_identifier2()._d() && - (EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_TestRegression3361.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uuid = TypeObjectUtils::build_common_struct_member(member_id_uuid, member_flags_uuid, type_ids_TestRegression3361.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uuid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uuid member TypeIdentifier inconsistent."); return; } MemberName name_uuid = "uuid"; @@ -229,21 +89,11 @@ void register_TestRegression3361_type_identifier( } CompleteStructType struct_type_TestRegression3361 = TypeObjectUtils::build_complete_struct_type(struct_flags_TestRegression3361, header_TestRegression3361, member_seq_TestRegression3361); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_TestRegression3361, type_name_TestRegression3361.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_TestRegression3361, type_name_TestRegression3361.to_string(), type_ids_TestRegression3361)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "TestRegression3361 already registered in TypeObjectRegistry for a different type."); } - return_code_TestRegression3361 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "TestRegression3361", type_ids_TestRegression3361); - if (return_code_TestRegression3361 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "TestRegression3361: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/TestRegression3361TypeObjectSupport.hpp b/test/blackbox/types/TestRegression3361TypeObjectSupport.hpp index 36d03cc8536..3106dadb2b7 100644 --- a/test/blackbox/types/TestRegression3361TypeObjectSupport.hpp +++ b/test/blackbox/types/TestRegression3361TypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_TestRegression3361_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_TestRegression3361_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_TestRegression3361_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx index b19574ae8f4..feb3fd6303e 100644 --- a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx +++ b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx @@ -219,9 +219,9 @@ bool UnboundedHelloWorldPubSubType::getKey( return true; } -void UnboundedHelloWorldPubSubType::register_type_object_representation() const +void UnboundedHelloWorldPubSubType::register_type_object_representation() { - register_UnboundedHelloWorld_type_objects(); + register_UnboundedHelloWorld_type_identifier(type_identifiers_); } diff --git a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h index f779152248b..c58268627ce 100644 --- a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h +++ b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h @@ -89,7 +89,7 @@ class UnboundedHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx index a0fa7de9b76..fc249aaad84 100644 --- a/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx +++ b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_UnboundedHelloWorld_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_UnboundedHelloWorld_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnboundedHelloWorld_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnboundedHelloWorld) { + + ReturnCode_t return_code_UnboundedHelloWorld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnboundedHelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnboundedHelloWorld", type_ids_UnboundedHelloWorld); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnboundedHelloWorld) { - StructTypeFlag struct_flags_UnboundedHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnboundedHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnboundedHelloWorld; - TypeIdentifierPair type_ids_UnboundedHelloWorld; QualifiedTypeName type_name_UnboundedHelloWorld = "UnboundedHelloWorld"; eprosima::fastcdr::optional type_ann_builtin_UnboundedHelloWorld; eprosima::fastcdr::optional ann_custom_UnboundedHelloWorld; @@ -66,62 +59,26 @@ void register_UnboundedHelloWorld_type_identifier( header_UnboundedHelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnboundedHelloWorld); CompleteStructMemberSeq member_seq_UnboundedHelloWorld; { - return_code_UnboundedHelloWorld = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_UnboundedHelloWorld); + "_uint16_t", type_ids_index); - if (return_code_UnboundedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_UnboundedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_UnboundedHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_UnboundedHelloWorld.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -132,79 +89,34 @@ void register_UnboundedHelloWorld_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_UnboundedHelloWorld, member_index); } { - return_code_UnboundedHelloWorld = + TypeIdentifierPair type_ids_message; + ReturnCode_t return_code_message {eprosima::fastdds::dds::RETCODE_OK}; + return_code_message = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_UnboundedHelloWorld); + "anonymous_string_unbounded", type_ids_message); - if (return_code_UnboundedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_message) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_message)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_UnboundedHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_UnboundedHelloWorld); - if (return_code_UnboundedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_message; MemberId member_id_message = 0x00000001; - if (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1()._d() || TK_NONE == type_ids_UnboundedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnboundedHelloWorld.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_UnboundedHelloWorld.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnboundedHelloWorld.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnboundedHelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_UnboundedHelloWorld.type_identifier2()); - } - else + bool common_message_ec {false}; + CommonStructMember common_message {TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_message, common_message_ec))}; + if (!common_message_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure message member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure message member TypeIdentifier inconsistent."); return; } MemberName name_message = "message"; @@ -216,21 +128,11 @@ void register_UnboundedHelloWorld_type_identifier( } CompleteStructType struct_type_UnboundedHelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_UnboundedHelloWorld, header_UnboundedHelloWorld, member_seq_UnboundedHelloWorld); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnboundedHelloWorld, type_name_UnboundedHelloWorld.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnboundedHelloWorld, type_name_UnboundedHelloWorld.to_string(), type_ids_UnboundedHelloWorld)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnboundedHelloWorld already registered in TypeObjectRegistry for a different type."); } - return_code_UnboundedHelloWorld = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnboundedHelloWorld", type_ids_UnboundedHelloWorld); - if (return_code_UnboundedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnboundedHelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp index 58a3e771a5f..a442dd68414 100644 --- a/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp +++ b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_UnboundedHelloWorld_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_UnboundedHelloWorld_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnboundedHelloWorld_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx index 4fb6eeb1156..4dc788af245 100644 --- a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx +++ b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx @@ -222,9 +222,9 @@ namespace eprosima { return true; } - void ConnectionPubSubType::register_type_object_representation() const + void ConnectionPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_Connection_type_identifier(type_identifiers_); } QosPolicyCount_sPubSubType::QosPolicyCount_sPubSubType() @@ -415,9 +415,9 @@ namespace eprosima { return true; } - void QosPolicyCount_sPubSubType::register_type_object_representation() const + void QosPolicyCount_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_QosPolicyCount_s_type_identifier(type_identifiers_); } BaseStatus_sPubSubType::BaseStatus_sPubSubType() @@ -608,9 +608,9 @@ namespace eprosima { return true; } - void BaseStatus_sPubSubType::register_type_object_representation() const + void BaseStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_BaseStatus_s_type_identifier(type_identifiers_); } @@ -802,9 +802,9 @@ namespace eprosima { return true; } - void IncompatibleQoSStatus_sPubSubType::register_type_object_representation() const + void IncompatibleQoSStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_IncompatibleQoSStatus_s_type_identifier(type_identifiers_); } LivelinessChangedStatus_sPubSubType::LivelinessChangedStatus_sPubSubType() @@ -995,9 +995,9 @@ namespace eprosima { return true; } - void LivelinessChangedStatus_sPubSubType::register_type_object_representation() const + void LivelinessChangedStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_LivelinessChangedStatus_s_type_identifier(type_identifiers_); } DeadlineMissedStatus_sPubSubType::DeadlineMissedStatus_sPubSubType() @@ -1188,9 +1188,9 @@ namespace eprosima { return true; } - void DeadlineMissedStatus_sPubSubType::register_type_object_representation() const + void DeadlineMissedStatus_sPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_DeadlineMissedStatus_s_type_identifier(type_identifiers_); } @@ -1388,9 +1388,9 @@ namespace eprosima { return true; } - void MonitorServiceStatusDataPubSubType::register_type_object_representation() const + void MonitorServiceStatusDataPubSubType::register_type_object_representation() { - register_monitorservice_types_type_objects(); + register_MonitorServiceStatusData_type_identifier(type_identifiers_); } } // namespace statistics diff --git a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h index cc0d28dffc7..c6d5c8faa2d 100644 --- a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h +++ b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h @@ -96,7 +96,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -187,7 +187,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -278,7 +278,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -370,7 +370,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -461,7 +461,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -552,7 +552,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -660,7 +660,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx index 02f0061a5bd..268b97a6439 100644 --- a/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx +++ b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx @@ -39,73 +39,79 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_monitorservice_types_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_WriterReaderData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_PhysicalData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Data_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Connection_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier(type_id); - - }); -} - namespace eprosima { namespace fastdds { namespace statistics { -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Connection_type_identifier( - TypeIdentifier& type_id) +void register_ConnectionMode_type_identifier( + TypeIdentifierPair& type_ids_ConnectionMode) +{ + ReturnCode_t return_code_ConnectionMode {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ConnectionMode = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::ConnectionMode", type_ids_ConnectionMode); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ConnectionMode) + { + EnumTypeFlag enum_flags_ConnectionMode = 0; + BitBound bit_bound_ConnectionMode = 32; + CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); + QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; + eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; + eprosima::fastcdr::optional ann_custom_ConnectionMode; + CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); + CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); + CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; + { + EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); + eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; + ann_custom_ConnectionMode.reset(); + MemberName name_DATA_SHARING = "DATA_SHARING"; + CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); + } + { + EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); + eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; + ann_custom_ConnectionMode.reset(); + MemberName name_INTRAPROCESS = "INTRAPROCESS"; + CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); + } + { + EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); + eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; + ann_custom_ConnectionMode.reset(); + MemberName name_TRANSPORT = "TRANSPORT"; + CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); + CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); + } + CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, + literal_seq_ConnectionMode); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string(), type_ids_ConnectionMode)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Connection_type_identifier( + TypeIdentifierPair& type_ids_Connection) { + + ReturnCode_t return_code_Connection {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Connection = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Connection", type_ids_Connection); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Connection) { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; eprosima::fastcdr::optional type_ann_builtin_Connection; eprosima::fastcdr::optional ann_custom_Connection; @@ -114,115 +120,24 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); CompleteStructMemberSeq member_seq_Connection; { - return_code_Connection = + TypeIdentifierPair type_ids_mode; + ReturnCode_t return_code_mode {eprosima::fastdds::dds::RETCODE_OK}; + return_code_mode = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); + "eprosima::fastdds::statistics::ConnectionMode", type_ids_mode); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_mode) { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_ConnectionMode_type_identifier(type_ids_mode); } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_mode; MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else + bool common_mode_ec {false}; + CommonStructMember common_mode {TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_mode, common_mode_ec))}; + if (!common_mode_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure mode member TypeIdentifier inconsistent."); return; } MemberName name_mode = "mode"; @@ -233,572 +148,24 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); } { - return_code_Connection = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -809,376 +176,31 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); } { - return_code_Connection = + TypeIdentifierPair type_ids_announced_locators; + ReturnCode_t return_code_announced_locators {eprosima::fastdds::dds::RETCODE_OK}; + return_code_announced_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); + "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_announced_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_announced_locators) { - return_code_Connection = + return_code_announced_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_announced_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_announced_locators) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_announced_locators); } - else + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_announced_locators, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) + if (TK_NONE == type_ids_announced_locators.type_identifier2()._d()) { equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; } @@ -1189,68 +211,21 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_announced_locators)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_announced_locators; MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else + bool common_announced_locators_ec {false}; + CommonStructMember common_announced_locators {TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_announced_locators, common_announced_locators_ec))}; + if (!common_announced_locators_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure announced_locators member TypeIdentifier inconsistent."); return; } MemberName name_announced_locators = "announced_locators"; @@ -1261,376 +236,31 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); } { - return_code_Connection = + TypeIdentifierPair type_ids_used_locators; + ReturnCode_t return_code_used_locators {eprosima::fastdds::dds::RETCODE_OK}; + return_code_used_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); + "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_used_locators); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_used_locators) { - return_code_Connection = + return_code_used_locators = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_used_locators); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_used_locators) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_used_locators); } - else + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_used_locators, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) + if (TK_NONE == type_ids_used_locators.type_identifier2()._d()) { equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; } @@ -1641,68 +271,21 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_used_locators)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_used_locators; MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else + bool common_used_locators_ec {false}; + CommonStructMember common_used_locators {TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_used_locators, common_used_locators_ec))}; + if (!common_used_locators_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure used_locators member TypeIdentifier inconsistent."); return; } MemberName name_used_locators = "used_locators"; @@ -1714,32 +297,26 @@ void register_eprosima_fastdds_statistics_Connection_type_identifier( } CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_ids_Connection)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( - TypeIdentifier& type_id) +void register_QosPolicyCount_s_type_identifier( + TypeIdentifierPair& type_ids_QosPolicyCount_s) { + + ReturnCode_t return_code_QosPolicyCount_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_QosPolicyCount_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCount_s) { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; @@ -1748,62 +325,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); CompleteStructMemberSeq member_seq_QosPolicyCount_s; { - return_code_QosPolicyCount_s = + TypeIdentifierPair type_ids_policy_id; + ReturnCode_t return_code_policy_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_policy_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); + "_uint32_t", type_ids_policy_id); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_policy_id) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_policy_id; MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_policy_id_ec {false}; + CommonStructMember common_policy_id {TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_policy_id, common_policy_id_ec))}; + if (!common_policy_id_ec) { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure policy_id member TypeIdentifier inconsistent."); return; } MemberName name_policy_id = "policy_id"; @@ -1814,62 +355,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); } { - return_code_QosPolicyCount_s = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); + "_uint32_t", type_ids_count); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -1881,32 +386,26 @@ void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( } CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_ids_QosPolicyCount_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_BaseStatus_s_type_identifier( + TypeIdentifierPair& type_ids_BaseStatus_s) { + + ReturnCode_t return_code_BaseStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BaseStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BaseStatus_s) { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; eprosima::fastcdr::optional ann_custom_BaseStatus_s; @@ -1915,62 +414,26 @@ void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); CompleteStructMemberSeq member_seq_BaseStatus_s; { - return_code_BaseStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -1982,32 +445,106 @@ void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( } CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_ids_BaseStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_BaseStatus_s = + } +} +void register_QosPolicyCountSeq_s_type_identifier( + TypeIdentifierPair& type_ids_QosPolicyCountSeq_s) +{ + ReturnCode_t return_code_QosPolicyCountSeq_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_QosPolicyCountSeq_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_QosPolicyCountSeq_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) + { + AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; + QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; + eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; + eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; + CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); + CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); + AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; + return_code_QosPolicyCountSeq_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) + "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_QosPolicyCountSeq_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + return_code_QosPolicyCountSeq_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCountSeq_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_QosPolicyCountSeq_s) + { + eprosima::fastdds::statistics::register_QosPolicyCount_s_type_identifier(type_ids_QosPolicyCountSeq_s); + } + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_QosPolicyCountSeq_s, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_QosPolicyCountSeq_s.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_QosPolicyCountSeq_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_QosPolicyCountSeq_s_ec {false}; + CommonAliasBody common_QosPolicyCountSeq_s {TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_QosPolicyCountSeq_s, common_QosPolicyCountSeq_s_ec))}; + if (!common_QosPolicyCountSeq_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); return; } + eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; + ann_custom_QosPolicyCountSeq_s.reset(); + CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, + member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); + CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, + header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, + type_name_QosPolicyCountSeq_s.to_string(), type_ids_QosPolicyCountSeq_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); + } } } + // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_IncompatibleQoSStatus_s_type_identifier( + TypeIdentifierPair& type_ids_IncompatibleQoSStatus_s) { + + ReturnCode_t return_code_IncompatibleQoSStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_IncompatibleQoSStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_IncompatibleQoSStatus_s) { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; @@ -2016,62 +553,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -2082,62 +583,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); } { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_last_policy_id; + ReturnCode_t return_code_last_policy_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_policy_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); + "_uint32_t", type_ids_last_policy_id); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_policy_id) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_policy_id; MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else + bool common_last_policy_id_ec {false}; + CommonStructMember common_last_policy_id {TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_policy_id, common_last_policy_id_ec))}; + if (!common_last_policy_id_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_policy_id member TypeIdentifier inconsistent."); return; } MemberName name_last_policy_id = "last_policy_id"; @@ -2148,379 +613,24 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); } { - return_code_IncompatibleQoSStatus_s = + TypeIdentifierPair type_ids_policies; + ReturnCode_t return_code_policies {eprosima::fastdds::dds::RETCODE_OK}; + return_code_policies = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); + "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_policies); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_policies) { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_QosPolicyCountSeq_s_type_identifier(type_ids_policies); } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_policies; MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_policies_ec {false}; + CommonStructMember common_policies {TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_policies, common_policies_ec))}; + if (!common_policies_ec) { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure policies member TypeIdentifier inconsistent."); return; } MemberName name_policies = "policies"; @@ -2532,32 +642,26 @@ void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifie } CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_ids_IncompatibleQoSStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_LivelinessChangedStatus_s_type_identifier( + TypeIdentifierPair& type_ids_LivelinessChangedStatus_s) { + + ReturnCode_t return_code_LivelinessChangedStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LivelinessChangedStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessChangedStatus_s) { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; @@ -2566,62 +670,26 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_alive_count; + ReturnCode_t return_code_alive_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alive_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); + "_uint32_t", type_ids_alive_count); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alive_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_alive_count; MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool common_alive_count_ec {false}; + CommonStructMember common_alive_count {TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alive_count, common_alive_count_ec))}; + if (!common_alive_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure alive_count member TypeIdentifier inconsistent."); return; } MemberName name_alive_count = "alive_count"; @@ -2632,63 +700,27 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); } { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_not_alive_count; + ReturnCode_t return_code_not_alive_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_not_alive_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); + "_uint32_t", type_ids_not_alive_count); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_not_alive_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_not_alive_count; MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_not_alive_count_ec {false}; + CommonStructMember common_not_alive_count {TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_not_alive_count, common_not_alive_count_ec))}; + if (!common_not_alive_count_ec) { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure not_alive_count member TypeIdentifier inconsistent."); + return; } MemberName name_not_alive_count = "not_alive_count"; eprosima::fastcdr::optional member_ann_builtin_not_alive_count; @@ -2698,69 +730,33 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); } { - return_code_LivelinessChangedStatus_s = + TypeIdentifierPair type_ids_last_publication_handle; + ReturnCode_t return_code_last_publication_handle {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_publication_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); + "anonymous_array_uint8_t_16", type_ids_last_publication_handle); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_publication_handle) { - return_code_LivelinessChangedStatus_s = + return_code_last_publication_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); + "_byte", type_ids_last_publication_handle); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_publication_handle) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_publication_handle, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) + if (TK_NONE == type_ids_last_publication_handle.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -2773,68 +769,21 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_last_publication_handle)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_publication_handle; MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else + bool common_last_publication_handle_ec {false}; + CommonStructMember common_last_publication_handle {TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_publication_handle, common_last_publication_handle_ec))}; + if (!common_last_publication_handle_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_publication_handle member TypeIdentifier inconsistent."); return; } MemberName name_last_publication_handle = "last_publication_handle"; @@ -2846,32 +795,26 @@ void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identif } CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_ids_LivelinessChangedStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier( - TypeIdentifier& type_id) +void register_DeadlineMissedStatus_s_type_identifier( + TypeIdentifierPair& type_ids_DeadlineMissedStatus_s) { + + ReturnCode_t return_code_DeadlineMissedStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DeadlineMissedStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DeadlineMissedStatus_s) { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; @@ -2880,62 +823,26 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; { - return_code_DeadlineMissedStatus_s = + TypeIdentifierPair type_ids_total_count; + ReturnCode_t return_code_total_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_total_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); + "_uint32_t", type_ids_total_count); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_total_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_total_count; MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_total_count_ec {false}; + CommonStructMember common_total_count {TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_total_count, common_total_count_ec))}; + if (!common_total_count_ec) { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure total_count member TypeIdentifier inconsistent."); return; } MemberName name_total_count = "total_count"; @@ -2946,69 +853,33 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); } { - return_code_DeadlineMissedStatus_s = + TypeIdentifierPair type_ids_last_instance_handle; + ReturnCode_t return_code_last_instance_handle {eprosima::fastdds::dds::RETCODE_OK}; + return_code_last_instance_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); + "anonymous_array_uint8_t_16", type_ids_last_instance_handle); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_instance_handle) { - return_code_DeadlineMissedStatus_s = + return_code_last_instance_handle = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); + "_byte", type_ids_last_instance_handle); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_last_instance_handle) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_instance_handle, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) + if (TK_NONE == type_ids_last_instance_handle.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -3021,68 +892,21 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_last_instance_handle)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_last_instance_handle; MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else + bool common_last_instance_handle_ec {false}; + CommonStructMember common_last_instance_handle {TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_last_instance_handle, common_last_instance_handle_ec))}; + if (!common_last_instance_handle_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure last_instance_handle member TypeIdentifier inconsistent."); return; } MemberName name_last_instance_handle = "last_instance_handle"; @@ -3094,40 +918,228 @@ void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier } CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_ids_DeadlineMissedStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); } - return_code_DeadlineMissedStatus_s = + } +} +void register_LivelinessLostStatus_s_type_identifier( + TypeIdentifierPair& type_ids_LivelinessLostStatus_s) +{ + ReturnCode_t return_code_LivelinessLostStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LivelinessLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_LivelinessLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessLostStatus_s) + { + AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; + QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; + eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; + CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); + CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); + AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; + return_code_LivelinessLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_LivelinessLostStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LivelinessLostStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_LivelinessLostStatus_s); + } + bool common_LivelinessLostStatus_s_ec {false}; + CommonAliasBody common_LivelinessLostStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_LivelinessLostStatus_s, common_LivelinessLostStatus_s_ec))}; + if (!common_LivelinessLostStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; + ann_custom_LivelinessLostStatus_s.reset(); + CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, + member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); + CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, + header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, + type_name_LivelinessLostStatus_s.to_string(), type_ids_LivelinessLostStatus_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_InconsistentTopicStatus_s_type_identifier( + TypeIdentifierPair& type_ids_InconsistentTopicStatus_s) +{ + ReturnCode_t return_code_InconsistentTopicStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InconsistentTopicStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_InconsistentTopicStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InconsistentTopicStatus_s) + { + AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; + QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; + eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; + CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); + CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); + AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; + return_code_InconsistentTopicStatus_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_InconsistentTopicStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InconsistentTopicStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_InconsistentTopicStatus_s); + } + bool common_InconsistentTopicStatus_s_ec {false}; + CommonAliasBody common_InconsistentTopicStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InconsistentTopicStatus_s, common_InconsistentTopicStatus_s_ec))}; + if (!common_InconsistentTopicStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; + ann_custom_InconsistentTopicStatus_s.reset(); + CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, + member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); + CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, + header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, + type_name_InconsistentTopicStatus_s.to_string(), type_ids_InconsistentTopicStatus_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_SampleLostStatus_s_type_identifier( + TypeIdentifierPair& type_ids_SampleLostStatus_s) +{ + ReturnCode_t return_code_SampleLostStatus_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_SampleLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleLostStatus_s) + { + AliasTypeFlag alias_flags_SampleLostStatus_s = 0; + QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; + eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; + eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; + CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); + CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); + AliasMemberFlag related_flags_SampleLostStatus_s = 0; + return_code_SampleLostStatus_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::BaseStatus_s", type_ids_SampleLostStatus_s); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleLostStatus_s) + { + eprosima::fastdds::statistics::register_BaseStatus_s_type_identifier(type_ids_SampleLostStatus_s); + } + bool common_SampleLostStatus_s_ec {false}; + CommonAliasBody common_SampleLostStatus_s {TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_SampleLostStatus_s, common_SampleLostStatus_s_ec))}; + if (!common_SampleLostStatus_s_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); return; } + eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; + ann_custom_SampleLostStatus_s.reset(); + CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, + member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); + CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, + header_SampleLostStatus_s, body_SampleLostStatus_s); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, + type_name_SampleLostStatus_s.to_string(), type_ids_SampleLostStatus_s)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); + } } } + namespace StatusKind { +void register_StatusKind_type_identifier( + TypeIdentifierPair& type_ids_StatusKind) +{ + ReturnCode_t return_code_StatusKind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StatusKind = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_StatusKind); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StatusKind) + { + AliasTypeFlag alias_flags_StatusKind = 0; + QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; + eprosima::fastcdr::optional type_ann_builtin_StatusKind; + eprosima::fastcdr::optional ann_custom_StatusKind; + CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); + CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); + AliasMemberFlag related_flags_StatusKind = 0; + return_code_StatusKind = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StatusKind); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StatusKind) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_StatusKind_ec {false}; + CommonAliasBody common_StatusKind {TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_StatusKind, common_StatusKind_ec))}; + if (!common_StatusKind_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_StatusKind; + ann_custom_StatusKind.reset(); + CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, + member_ann_builtin_StatusKind, ann_custom_StatusKind); + CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, + header_StatusKind, body_StatusKind); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, + type_name_StatusKind.to_string(), type_ids_StatusKind)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); + } + } +} + + } // namespace StatusKind // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( - TypeIdentifier& type_id) +void register_MonitorServiceData_type_identifier( + TypeIdentifierPair& type_ids_MonitorServiceData) { + ReturnCode_t return_code_MonitorServiceData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MonitorServiceData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - ReturnCode_t return_code_MonitorServiceData; - TypeIdentifierPair type_ids_MonitorServiceData; - UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_MonitorServiceData = "eprosima::fastdds::statistics::MonitorServiceData"; eprosima::fastcdr::optional type_ann_builtin_MonitorServiceData; eprosima::fastcdr::optional ann_custom_MonitorServiceData; CompleteTypeDetail detail_MonitorServiceData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData, type_name_MonitorServiceData.to_string()); CompleteUnionHeader header_MonitorServiceData = TypeObjectUtils::build_complete_union_header(detail_MonitorServiceData); - UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3135,88 +1147,7 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::StatusKind::register_StatusKind_type_identifier(type_ids_MonitorServiceData); } CommonDiscriminatorMember common_MonitorServiceData; if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) @@ -3231,7 +1162,6 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceData discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_MonitorServiceData.reset(); @@ -3244,61 +1174,23 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; @@ -3313,72 +1205,25 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_proxy; TypeObjectUtils::add_union_case_label(label_seq_entity_proxy, static_cast(StatusKind::PROXY)); - CommonUnionMember common_entity_proxy; MemberId member_id_entity_proxy = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier1(), - label_seq_entity_proxy); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier2(), - label_seq_entity_proxy); - } - else + bool common_entity_proxy_ec {false}; + CommonUnionMember common_entity_proxy {TypeObjectUtils::build_common_union_member(member_id_entity_proxy, + member_flags_entity_proxy, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_entity_proxy_ec), label_seq_entity_proxy)}; + if (!common_entity_proxy_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_proxy member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_proxy member TypeIdentifier inconsistent."); return; } MemberName name_entity_proxy = "entity_proxy"; @@ -3393,1688 +1238,21 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { return_code_MonitorServiceData = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Connection", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; - QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; - eprosima::fastcdr::optional type_ann_builtin_Connection; - eprosima::fastcdr::optional ann_custom_Connection; - CompleteTypeDetail detail_Connection = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Connection, ann_custom_Connection, type_name_Connection.to_string()); - CompleteStructHeader header_Connection; - header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); - CompleteStructMemberSeq member_seq_Connection; - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_mode; - MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_mode = "mode"; - eprosima::fastcdr::optional member_ann_builtin_mode; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_mode = TypeObjectUtils::build_complete_member_detail(name_mode, member_ann_builtin_mode, ann_custom_Connection); - CompleteStructMember member_mode = TypeObjectUtils::build_complete_struct_member(common_mode, detail_mode); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_Connection); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_announced_locators; - MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_announced_locators = "announced_locators"; - eprosima::fastcdr::optional member_ann_builtin_announced_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_announced_locators = TypeObjectUtils::build_complete_member_detail(name_announced_locators, member_ann_builtin_announced_locators, ann_custom_Connection); - CompleteStructMember member_announced_locators = TypeObjectUtils::build_complete_struct_member(common_announced_locators, detail_announced_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_used_locators; - MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_used_locators = "used_locators"; - eprosima::fastcdr::optional member_ann_builtin_used_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_used_locators = TypeObjectUtils::build_complete_member_detail(name_used_locators, member_ann_builtin_used_locators, ann_custom_Connection); - CompleteStructMember member_used_locators = TypeObjectUtils::build_complete_struct_member(common_used_locators, detail_used_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_used_locators); - } - CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_Connection; - type_ids_MonitorServiceData = type_ids_Connection; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); + eprosima::fastdds::statistics::register_Connection_type_identifier(type_ids_MonitorServiceData); } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded_ec) { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_COMPLETE; @@ -5089,72 +1267,25 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_connection_list; TypeObjectUtils::add_union_case_label(label_seq_connection_list, static_cast(StatusKind::CONNECTION_LIST)); - CommonUnionMember common_connection_list; MemberId member_id_connection_list = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier1(), - label_seq_connection_list); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier2(), - label_seq_connection_list); - } - else + bool common_connection_list_ec {false}; + CommonUnionMember common_connection_list {TypeObjectUtils::build_common_union_member(member_id_connection_list, + member_flags_connection_list, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_connection_list_ec), label_seq_connection_list)}; + if (!common_connection_list_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union connection_list member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union connection_list member TypeIdentifier inconsistent."); return; } MemberName name_connection_list = "connection_list"; @@ -5169,605 +1300,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; - QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; - eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; - CompleteTypeDetail detail_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_IncompatibleQoSStatus_s, ann_custom_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string()); - CompleteStructHeader header_IncompatibleQoSStatus_s; - header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); - CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_policy_id; - MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_policy_id = "last_policy_id"; - eprosima::fastcdr::optional member_ann_builtin_last_policy_id; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_last_policy_id = TypeObjectUtils::build_complete_member_detail(name_last_policy_id, member_ann_builtin_last_policy_id, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_last_policy_id = TypeObjectUtils::build_complete_struct_member(common_last_policy_id, detail_last_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policies; - MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policies = "policies"; - eprosima::fastcdr::optional member_ann_builtin_policies; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_policies = TypeObjectUtils::build_complete_member_detail(name_policies, member_ann_builtin_policies, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_policies = TypeObjectUtils::build_complete_struct_member(common_policies, detail_policies); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_policies); - } - CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_IncompatibleQoSStatus_s; - type_ids_MonitorServiceData = type_ids_IncompatibleQoSStatus_s; - } + eprosima::fastdds::statistics::register_IncompatibleQoSStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_incompatible_qos_status; TypeObjectUtils::add_union_case_label(label_seq_incompatible_qos_status, static_cast(StatusKind::INCOMPATIBLE_QOS)); - CommonUnionMember common_incompatible_qos_status; MemberId member_id_incompatible_qos_status = 0x00000003; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_incompatible_qos_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_incompatible_qos_status); - } - else + bool common_incompatible_qos_status_ec {false}; + CommonUnionMember common_incompatible_qos_status {TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, + member_flags_incompatible_qos_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_incompatible_qos_status_ec), label_seq_incompatible_qos_status)}; + if (!common_incompatible_qos_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union incompatible_qos_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union incompatible_qos_status member TypeIdentifier inconsistent."); return; } MemberName name_incompatible_qos_status = "incompatible_qos_status"; @@ -5782,234 +1330,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; - QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; - eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; - CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); - CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); - AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_InconsistentTopicStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; - ann_custom_InconsistentTopicStatus_s.reset(); - CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); - CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_InconsistentTopicStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_inconsistent_topic_status; TypeObjectUtils::add_union_case_label(label_seq_inconsistent_topic_status, static_cast(StatusKind::INCONSISTENT_TOPIC)); - CommonUnionMember common_inconsistent_topic_status; MemberId member_id_inconsistent_topic_status = 0x00000004; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_inconsistent_topic_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_inconsistent_topic_status); - } - else + bool common_inconsistent_topic_status_ec {false}; + CommonUnionMember common_inconsistent_topic_status {TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, + member_flags_inconsistent_topic_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_inconsistent_topic_status_ec), label_seq_inconsistent_topic_status)}; + if (!common_inconsistent_topic_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union inconsistent_topic_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union inconsistent_topic_status member TypeIdentifier inconsistent."); return; } MemberName name_inconsistent_topic_status = "inconsistent_topic_status"; @@ -6024,234 +1360,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; - QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; - CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); - CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); - AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_LivelinessLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; - ann_custom_LivelinessLostStatus_s.reset(); - CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); - CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_LivelinessLostStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_liveliness_lost_status; TypeObjectUtils::add_union_case_label(label_seq_liveliness_lost_status, static_cast(StatusKind::LIVELINESS_LOST)); - CommonUnionMember common_liveliness_lost_status; MemberId member_id_liveliness_lost_status = 0x00000005; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_liveliness_lost_status_ec {false}; + CommonUnionMember common_liveliness_lost_status {TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, + member_flags_liveliness_lost_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_liveliness_lost_status_ec), label_seq_liveliness_lost_status)}; + if (!common_liveliness_lost_status_ec) { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union liveliness_lost_status member TypeIdentifier inconsistent."); return; } MemberName name_liveliness_lost_status = "liveliness_lost_status"; @@ -6266,369 +1390,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; - QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; - CompleteTypeDetail detail_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessChangedStatus_s, ann_custom_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string()); - CompleteStructHeader header_LivelinessChangedStatus_s; - header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); - CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_alive_count; - MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_alive_count = "alive_count"; - eprosima::fastcdr::optional member_ann_builtin_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_alive_count = TypeObjectUtils::build_complete_member_detail(name_alive_count, member_ann_builtin_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_alive_count = TypeObjectUtils::build_complete_struct_member(common_alive_count, detail_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_not_alive_count; - MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_not_alive_count = "not_alive_count"; - eprosima::fastcdr::optional member_ann_builtin_not_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_not_alive_count = TypeObjectUtils::build_complete_member_detail(name_not_alive_count, member_ann_builtin_not_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_not_alive_count = TypeObjectUtils::build_complete_struct_member(common_not_alive_count, detail_not_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_publication_handle; - MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_publication_handle = "last_publication_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_publication_handle; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_last_publication_handle = TypeObjectUtils::build_complete_member_detail(name_last_publication_handle, member_ann_builtin_last_publication_handle, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_last_publication_handle = TypeObjectUtils::build_complete_struct_member(common_last_publication_handle, detail_last_publication_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_last_publication_handle); - } - CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_LivelinessChangedStatus_s; - type_ids_MonitorServiceData = type_ids_LivelinessChangedStatus_s; - } + eprosima::fastdds::statistics::register_LivelinessChangedStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_liveliness_changed_status; TypeObjectUtils::add_union_case_label(label_seq_liveliness_changed_status, static_cast(StatusKind::LIVELINESS_CHANGED)); - CommonUnionMember common_liveliness_changed_status; MemberId member_id_liveliness_changed_status = 0x00000006; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_liveliness_changed_status_ec {false}; + CommonUnionMember common_liveliness_changed_status {TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, + member_flags_liveliness_changed_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_liveliness_changed_status_ec), label_seq_liveliness_changed_status)}; + if (!common_liveliness_changed_status_ec) { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_changed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_changed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_changed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union liveliness_changed_status member TypeIdentifier inconsistent."); return; } MemberName name_liveliness_changed_status = "liveliness_changed_status"; @@ -6643,303 +1420,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; - QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; - eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; - CompleteTypeDetail detail_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DeadlineMissedStatus_s, ann_custom_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string()); - CompleteStructHeader header_DeadlineMissedStatus_s; - header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); - CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); - } - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_instance_handle; - MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_instance_handle = "last_instance_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_instance_handle; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_last_instance_handle = TypeObjectUtils::build_complete_member_detail(name_last_instance_handle, member_ann_builtin_last_instance_handle, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_last_instance_handle = TypeObjectUtils::build_complete_struct_member(common_last_instance_handle, detail_last_instance_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_last_instance_handle); - } - CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_DeadlineMissedStatus_s; - type_ids_MonitorServiceData = type_ids_DeadlineMissedStatus_s; - } + eprosima::fastdds::statistics::register_DeadlineMissedStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_deadline_missed_status; TypeObjectUtils::add_union_case_label(label_seq_deadline_missed_status, static_cast(StatusKind::DEADLINE_MISSED)); - CommonUnionMember common_deadline_missed_status; MemberId member_id_deadline_missed_status = 0x00000007; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_deadline_missed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_deadline_missed_status); - } - else + bool common_deadline_missed_status_ec {false}; + CommonUnionMember common_deadline_missed_status {TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, + member_flags_deadline_missed_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_deadline_missed_status_ec), label_seq_deadline_missed_status)}; + if (!common_deadline_missed_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union deadline_missed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union deadline_missed_status member TypeIdentifier inconsistent."); return; } MemberName name_deadline_missed_status = "deadline_missed_status"; @@ -6954,234 +1450,22 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { - AliasTypeFlag alias_flags_SampleLostStatus_s = 0; - QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; - eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; - CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); - CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); - AliasMemberFlag related_flags_SampleLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_SampleLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; - ann_custom_SampleLostStatus_s.reset(); - CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); - CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, header_SampleLostStatus_s, body_SampleLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::register_SampleLostStatus_s_type_identifier(type_ids_MonitorServiceData); } - UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_sample_lost_status; TypeObjectUtils::add_union_case_label(label_seq_sample_lost_status, static_cast(StatusKind::SAMPLE_LOST)); - CommonUnionMember common_sample_lost_status; MemberId member_id_sample_lost_status = 0x00000008; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_sample_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_sample_lost_status); - } - else + bool common_sample_lost_status_ec {false}; + CommonUnionMember common_sample_lost_status {TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, + member_flags_sample_lost_status, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_sample_lost_status_ec), label_seq_sample_lost_status)}; + if (!common_sample_lost_status_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union sample_lost_status member TypeIdentifier inconsistent."); return; } MemberName name_sample_lost_status = "sample_lost_status"; @@ -7196,62 +1480,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceData) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "statuses_size Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_statuses_size; TypeObjectUtils::add_union_case_label(label_seq_statuses_size, static_cast(StatusKind::STATUSES_SIZE)); - CommonUnionMember common_statuses_size; MemberId member_id_statuses_size = 0x00000009; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier1(), - label_seq_statuses_size); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_statuses_size_ec {false}; + CommonUnionMember common_statuses_size {TypeObjectUtils::build_common_union_member(member_id_statuses_size, + member_flags_statuses_size, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_MonitorServiceData, + common_statuses_size_ec), label_seq_statuses_size)}; + if (!common_statuses_size_ec) { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier2(), - label_seq_statuses_size); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union statuses_size member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union statuses_size member TypeIdentifier inconsistent."); return; } MemberName name_statuses_size = "statuses_size"; @@ -7264,32 +1510,26 @@ void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( CompleteUnionType union_type_MonitorServiceData = TypeObjectUtils::build_complete_union_type(union_flags_MonitorServiceData, header_MonitorServiceData, discriminator_MonitorServiceData, member_seq_MonitorServiceData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_ids_MonitorServiceData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceData already registered in TypeObjectRegistry for a different type."); } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier( - TypeIdentifier& type_id) +void register_MonitorServiceStatusData_type_identifier( + TypeIdentifierPair& type_ids_MonitorServiceStatusData) { + + ReturnCode_t return_code_MonitorServiceStatusData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MonitorServiceStatusData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::MonitorServiceStatusData", type_ids_MonitorServiceStatusData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MonitorServiceStatusData) { - StructTypeFlag struct_flags_MonitorServiceStatusData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MonitorServiceStatusData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MonitorServiceStatusData; - TypeIdentifierPair type_ids_MonitorServiceStatusData; QualifiedTypeName type_name_MonitorServiceStatusData = "eprosima::fastdds::statistics::MonitorServiceStatusData"; eprosima::fastcdr::optional type_ann_builtin_MonitorServiceStatusData; eprosima::fastcdr::optional ann_custom_MonitorServiceStatusData; @@ -7298,572 +1538,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi header_MonitorServiceStatusData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MonitorServiceStatusData); CompleteStructMemberSeq member_seq_MonitorServiceStatusData; { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_local_entity; + ReturnCode_t return_code_local_entity {eprosima::fastdds::dds::RETCODE_OK}; + return_code_local_entity = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_local_entity); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_local_entity) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceStatusData = return_code_GUID_s; - type_ids_MonitorServiceStatusData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_local_entity); } - StructMemberFlag member_flags_local_entity = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_local_entity = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_local_entity; MemberId member_id_local_entity = 0x00000000; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_entity = TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_local_entity_ec {false}; + CommonStructMember common_local_entity {TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_local_entity, common_local_entity_ec))}; + if (!common_local_entity_ec) { - common_local_entity = TypeObjectUtils::build_common_struct_member(member_id_local_entity, member_flags_local_entity, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_entity member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure local_entity member TypeIdentifier inconsistent."); return; } MemberName name_local_entity = "local_entity"; @@ -7887,140 +1579,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_local_entity); } { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_status_kind; + ReturnCode_t return_code_status_kind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_status_kind = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_status_kind); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_status_kind) { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceStatusData); - - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceStatusData); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + eprosima::fastdds::statistics::StatusKind::register_StatusKind_type_identifier(type_ids_status_kind); } - StructMemberFlag member_flags_status_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_status_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_status_kind; MemberId member_id_status_kind = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_status_kind_ec {false}; + CommonStructMember common_status_kind {TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_status_kind, common_status_kind_ec))}; + if (!common_status_kind_ec) { - common_status_kind = TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_status_kind = TypeObjectUtils::build_common_struct_member(member_id_status_kind, member_flags_status_kind, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure status_kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure status_kind member TypeIdentifier inconsistent."); return; } MemberName name_status_kind = "status_kind"; @@ -8044,4223 +1620,24 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_status_kind); } { - return_code_MonitorServiceStatusData = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceStatusData); + "eprosima::fastdds::statistics::MonitorServiceData", type_ids_value); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - ReturnCode_t return_code_MonitorServiceData; - TypeIdentifierPair type_ids_MonitorServiceData; - UnionTypeFlag union_flags_MonitorServiceData = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_MonitorServiceData = "eprosima::fastdds::statistics::MonitorServiceData"; - eprosima::fastcdr::optional type_ann_builtin_MonitorServiceData; - eprosima::fastcdr::optional ann_custom_MonitorServiceData; - CompleteTypeDetail detail_MonitorServiceData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData, type_name_MonitorServiceData.to_string()); - CompleteUnionHeader header_MonitorServiceData = TypeObjectUtils::build_complete_union_header(detail_MonitorServiceData); - UnionDiscriminatorFlag member_flags_MonitorServiceData = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_StatusKind = 0; - QualifiedTypeName type_name_StatusKind = "eprosima::fastdds::statistics::StatusKind::StatusKind"; - eprosima::fastcdr::optional type_ann_builtin_StatusKind; - eprosima::fastcdr::optional ann_custom_StatusKind; - CompleteTypeDetail detail_StatusKind = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StatusKind, ann_custom_StatusKind, type_name_StatusKind.to_string()); - CompleteAliasHeader header_StatusKind = TypeObjectUtils::build_complete_alias_header(detail_StatusKind); - AliasMemberFlag related_flags_StatusKind = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_StatusKind; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_StatusKind = TypeObjectUtils::build_common_alias_body(related_flags_StatusKind, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_StatusKind; - ann_custom_StatusKind.reset(); - CompleteAliasBody body_StatusKind = TypeObjectUtils::build_complete_alias_body(common_StatusKind, member_ann_builtin_StatusKind, ann_custom_StatusKind); - CompleteAliasType alias_type_StatusKind = TypeObjectUtils::build_complete_alias_type(alias_flags_StatusKind, header_StatusKind, body_StatusKind); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_StatusKind, type_name_StatusKind.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::StatusKind::StatusKind", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::StatusKind::StatusKind: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonDiscriminatorMember common_MonitorServiceData; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - common_MonitorServiceData = TypeObjectUtils::build_common_discriminator_member(member_flags_MonitorServiceData, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - common_MonitorServiceData = TypeObjectUtils::build_common_discriminator_member(member_flags_MonitorServiceData, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_MonitorServiceData.reset(); - ann_custom_MonitorServiceData.reset(); - CompleteDiscriminatorMember discriminator_MonitorServiceData = TypeObjectUtils::build_complete_discriminator_member(common_MonitorServiceData, - type_ann_builtin_MonitorServiceData, ann_custom_MonitorServiceData); - CompleteUnionMemberSeq member_seq_MonitorServiceData; - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_uint8_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_uint8_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_unbounded, element_flags_anonymous_sequence_uint8_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_entity_proxy = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_entity_proxy; - TypeObjectUtils::add_union_case_label(label_seq_entity_proxy, static_cast(StatusKind::PROXY)); - CommonUnionMember common_entity_proxy; - MemberId member_id_entity_proxy = 0x00000001; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier1(), - label_seq_entity_proxy); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_proxy = TypeObjectUtils::build_common_union_member(member_id_entity_proxy, member_flags_entity_proxy, type_ids_MonitorServiceData.type_identifier2(), - label_seq_entity_proxy); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_proxy member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entity_proxy = "entity_proxy"; - eprosima::fastcdr::optional member_ann_builtin_entity_proxy; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_entity_proxy = TypeObjectUtils::build_complete_member_detail(name_entity_proxy, member_ann_builtin_entity_proxy, ann_custom_MonitorServiceData); - CompleteUnionMember member_entity_proxy = TypeObjectUtils::build_complete_union_member(common_entity_proxy, detail_entity_proxy); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_entity_proxy); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Connection = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Connection; - TypeIdentifierPair type_ids_Connection; - QualifiedTypeName type_name_Connection = "eprosima::fastdds::statistics::Connection"; - eprosima::fastcdr::optional type_ann_builtin_Connection; - eprosima::fastcdr::optional ann_custom_Connection; - CompleteTypeDetail detail_Connection = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Connection, ann_custom_Connection, type_name_Connection.to_string()); - CompleteStructHeader header_Connection; - header_Connection = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Connection); - CompleteStructMemberSeq member_seq_Connection; - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_ConnectionMode = 0; - BitBound bit_bound_ConnectionMode = 32; - CommonEnumeratedHeader common_ConnectionMode = TypeObjectUtils::build_common_enumerated_header(bit_bound_ConnectionMode); - QualifiedTypeName type_name_ConnectionMode = "eprosima::fastdds::statistics::ConnectionMode"; - eprosima::fastcdr::optional type_ann_builtin_ConnectionMode; - eprosima::fastcdr::optional ann_custom_ConnectionMode; - CompleteTypeDetail detail_ConnectionMode = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ConnectionMode, ann_custom_ConnectionMode, type_name_ConnectionMode.to_string()); - CompleteEnumeratedHeader header_ConnectionMode = TypeObjectUtils::build_complete_enumerated_header(common_ConnectionMode, detail_ConnectionMode); - CompleteEnumeratedLiteralSeq literal_seq_ConnectionMode; - { - EnumeratedLiteralFlag flags_DATA_SHARING = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_DATA_SHARING = TypeObjectUtils::build_common_enumerated_literal(0, flags_DATA_SHARING); - eprosima::fastcdr::optional member_ann_builtin_DATA_SHARING; - ann_custom_ConnectionMode.reset(); - MemberName name_DATA_SHARING = "DATA_SHARING"; - CompleteMemberDetail detail_DATA_SHARING = TypeObjectUtils::build_complete_member_detail(name_DATA_SHARING, member_ann_builtin_DATA_SHARING, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_DATA_SHARING = TypeObjectUtils::build_complete_enumerated_literal(common_DATA_SHARING, detail_DATA_SHARING); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_DATA_SHARING); - } - { - EnumeratedLiteralFlag flags_INTRAPROCESS = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_INTRAPROCESS = TypeObjectUtils::build_common_enumerated_literal(1, flags_INTRAPROCESS); - eprosima::fastcdr::optional member_ann_builtin_INTRAPROCESS; - ann_custom_ConnectionMode.reset(); - MemberName name_INTRAPROCESS = "INTRAPROCESS"; - CompleteMemberDetail detail_INTRAPROCESS = TypeObjectUtils::build_complete_member_detail(name_INTRAPROCESS, member_ann_builtin_INTRAPROCESS, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_INTRAPROCESS = TypeObjectUtils::build_complete_enumerated_literal(common_INTRAPROCESS, detail_INTRAPROCESS); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_INTRAPROCESS); - } - { - EnumeratedLiteralFlag flags_TRANSPORT = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TRANSPORT = TypeObjectUtils::build_common_enumerated_literal(2, flags_TRANSPORT); - eprosima::fastcdr::optional member_ann_builtin_TRANSPORT; - ann_custom_ConnectionMode.reset(); - MemberName name_TRANSPORT = "TRANSPORT"; - CompleteMemberDetail detail_TRANSPORT = TypeObjectUtils::build_complete_member_detail(name_TRANSPORT, member_ann_builtin_TRANSPORT, ann_custom_ConnectionMode); - CompleteEnumeratedLiteral literal_TRANSPORT = TypeObjectUtils::build_complete_enumerated_literal(common_TRANSPORT, detail_TRANSPORT); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_ConnectionMode, literal_TRANSPORT); - } - CompleteEnumeratedType enumerated_type_ConnectionMode = TypeObjectUtils::build_complete_enumerated_type(enum_flags_ConnectionMode, header_ConnectionMode, - literal_seq_ConnectionMode); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_ConnectionMode, type_name_ConnectionMode.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::ConnectionMode", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::ConnectionMode: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_mode = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_mode; - MemberId member_id_mode = 0x00000000; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_mode = TypeObjectUtils::build_common_struct_member(member_id_mode, member_flags_mode, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure mode member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_mode = "mode"; - eprosima::fastcdr::optional member_ann_builtin_mode; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_mode = TypeObjectUtils::build_complete_member_detail(name_mode, member_ann_builtin_mode, ann_custom_Connection); - CompleteStructMember member_mode = TypeObjectUtils::build_complete_struct_member(common_mode, detail_mode); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_mode); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_GUID_s; - type_ids_Connection = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000001; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_Connection); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_guid); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_announced_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_announced_locators; - MemberId member_id_announced_locators = 0x00000002; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_announced_locators = TypeObjectUtils::build_common_struct_member(member_id_announced_locators, member_flags_announced_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure announced_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_announced_locators = "announced_locators"; - eprosima::fastcdr::optional member_ann_builtin_announced_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_announced_locators = TypeObjectUtils::build_complete_member_detail(name_announced_locators, member_ann_builtin_announced_locators, ann_custom_Connection); - CompleteStructMember member_announced_locators = TypeObjectUtils::build_complete_struct_member(common_announced_locators, detail_announced_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_announced_locators); - } - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Connection); - - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Connection = return_code_Locator_s; - type_ids_Connection = type_ids_Locator_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = new TypeIdentifier(type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Connection.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_used_locators = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_used_locators; - MemberId member_id_used_locators = 0x00000003; - if (EK_COMPLETE == type_ids_Connection.type_identifier1()._d() || TK_NONE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier1()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Connection.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Connection.type_identifier2()._d() && - EK_COMPLETE == type_ids_Connection.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Connection.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Connection.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_used_locators = TypeObjectUtils::build_common_struct_member(member_id_used_locators, member_flags_used_locators, type_ids_Connection.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure used_locators member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_used_locators = "used_locators"; - eprosima::fastcdr::optional member_ann_builtin_used_locators; - ann_custom_Connection.reset(); - CompleteMemberDetail detail_used_locators = TypeObjectUtils::build_complete_member_detail(name_used_locators, member_ann_builtin_used_locators, ann_custom_Connection); - CompleteStructMember member_used_locators = TypeObjectUtils::build_complete_struct_member(common_used_locators, detail_used_locators); - TypeObjectUtils::add_complete_struct_member(member_seq_Connection, member_used_locators); - } - CompleteStructType struct_type_Connection = TypeObjectUtils::build_complete_struct_type(struct_flags_Connection, header_Connection, member_seq_Connection); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Connection, type_name_Connection.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection already registered in TypeObjectRegistry for a different type."); - } - return_code_Connection = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Connection", type_ids_Connection); - if (return_code_Connection != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Connection: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_Connection; - type_ids_MonitorServiceData = type_ids_Connection; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = new TypeIdentifier(type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_connection_list = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_connection_list; - TypeObjectUtils::add_union_case_label(label_seq_connection_list, static_cast(StatusKind::CONNECTION_LIST)); - CommonUnionMember common_connection_list; - MemberId member_id_connection_list = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier1(), - label_seq_connection_list); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_connection_list = TypeObjectUtils::build_common_union_member(member_id_connection_list, member_flags_connection_list, type_ids_MonitorServiceData.type_identifier2(), - label_seq_connection_list); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union connection_list member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_connection_list = "connection_list"; - eprosima::fastcdr::optional member_ann_builtin_connection_list; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_connection_list = TypeObjectUtils::build_complete_member_detail(name_connection_list, member_ann_builtin_connection_list, ann_custom_MonitorServiceData); - CompleteUnionMember member_connection_list = TypeObjectUtils::build_complete_union_member(common_connection_list, detail_connection_list); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_connection_list); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_IncompatibleQoSStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_IncompatibleQoSStatus_s; - TypeIdentifierPair type_ids_IncompatibleQoSStatus_s; - QualifiedTypeName type_name_IncompatibleQoSStatus_s = "eprosima::fastdds::statistics::IncompatibleQoSStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_IncompatibleQoSStatus_s; - eprosima::fastcdr::optional ann_custom_IncompatibleQoSStatus_s; - CompleteTypeDetail detail_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_IncompatibleQoSStatus_s, ann_custom_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string()); - CompleteStructHeader header_IncompatibleQoSStatus_s; - header_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_IncompatibleQoSStatus_s); - CompleteStructMemberSeq member_seq_IncompatibleQoSStatus_s; - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_total_count); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "last_policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_last_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_policy_id; - MemberId member_id_last_policy_id = 0x00000001; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_policy_id = TypeObjectUtils::build_common_struct_member(member_id_last_policy_id, member_flags_last_policy_id, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_policy_id = "last_policy_id"; - eprosima::fastcdr::optional member_ann_builtin_last_policy_id; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_last_policy_id = TypeObjectUtils::build_complete_member_detail(name_last_policy_id, member_ann_builtin_last_policy_id, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_last_policy_id = TypeObjectUtils::build_complete_struct_member(common_last_policy_id, detail_last_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_last_policy_id); - } - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_QosPolicyCountSeq_s = 0; - QualifiedTypeName type_name_QosPolicyCountSeq_s = "eprosima::fastdds::statistics::QosPolicyCountSeq_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCountSeq_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCountSeq_s; - CompleteTypeDetail detail_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string()); - CompleteAliasHeader header_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_header(detail_QosPolicyCountSeq_s); - AliasMemberFlag related_flags_QosPolicyCountSeq_s = 0; - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_IncompatibleQoSStatus_s); - - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_QosPolicyCount_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_QosPolicyCount_s; - TypeIdentifierPair type_ids_QosPolicyCount_s; - QualifiedTypeName type_name_QosPolicyCount_s = "eprosima::fastdds::statistics::QosPolicyCount_s"; - eprosima::fastcdr::optional type_ann_builtin_QosPolicyCount_s; - eprosima::fastcdr::optional ann_custom_QosPolicyCount_s; - CompleteTypeDetail detail_QosPolicyCount_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_QosPolicyCount_s, ann_custom_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string()); - CompleteStructHeader header_QosPolicyCount_s; - header_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_QosPolicyCount_s); - CompleteStructMemberSeq member_seq_QosPolicyCount_s; - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "policy_id Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_policy_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policy_id; - MemberId member_id_policy_id = 0x00000000; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policy_id = TypeObjectUtils::build_common_struct_member(member_id_policy_id, member_flags_policy_id, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policy_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policy_id = "policy_id"; - eprosima::fastcdr::optional member_ann_builtin_policy_id; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_policy_id = TypeObjectUtils::build_complete_member_detail(name_policy_id, member_ann_builtin_policy_id, ann_custom_QosPolicyCount_s); - CompleteStructMember member_policy_id = TypeObjectUtils::build_complete_struct_member(common_policy_id, detail_policy_id); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_policy_id); - } - { - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_QosPolicyCount_s); - - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1()._d() || TK_NONE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_QosPolicyCount_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_QosPolicyCount_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_QosPolicyCount_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_QosPolicyCount_s.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_QosPolicyCount_s); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_QosPolicyCount_s, member_count); - } - CompleteStructType struct_type_QosPolicyCount_s = TypeObjectUtils::build_complete_struct_type(struct_flags_QosPolicyCount_s, header_QosPolicyCount_s, member_seq_QosPolicyCount_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_QosPolicyCount_s, type_name_QosPolicyCount_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s already registered in TypeObjectRegistry for a different type."); - } - return_code_QosPolicyCount_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCount_s", type_ids_QosPolicyCount_s); - if (return_code_QosPolicyCount_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCount_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_IncompatibleQoSStatus_s = return_code_QosPolicyCount_s; - type_ids_IncompatibleQoSStatus_s = type_ids_QosPolicyCount_s; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = new TypeIdentifier(type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, element_flags_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_QosPolicyCountSeq_s; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_QosPolicyCountSeq_s = TypeObjectUtils::build_common_alias_body(related_flags_QosPolicyCountSeq_s, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_QosPolicyCountSeq_s; - ann_custom_QosPolicyCountSeq_s.reset(); - CompleteAliasBody body_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_body(common_QosPolicyCountSeq_s, member_ann_builtin_QosPolicyCountSeq_s, ann_custom_QosPolicyCountSeq_s); - CompleteAliasType alias_type_QosPolicyCountSeq_s = TypeObjectUtils::build_complete_alias_type(alias_flags_QosPolicyCountSeq_s, header_QosPolicyCountSeq_s, body_QosPolicyCountSeq_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_QosPolicyCountSeq_s, type_name_QosPolicyCountSeq_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::QosPolicyCountSeq_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::QosPolicyCountSeq_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_policies = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_policies; - MemberId member_id_policies = 0x00000002; - if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() || TK_NONE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_IncompatibleQoSStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_IncompatibleQoSStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_policies = TypeObjectUtils::build_common_struct_member(member_id_policies, member_flags_policies, type_ids_IncompatibleQoSStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure policies member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_policies = "policies"; - eprosima::fastcdr::optional member_ann_builtin_policies; - ann_custom_IncompatibleQoSStatus_s.reset(); - CompleteMemberDetail detail_policies = TypeObjectUtils::build_complete_member_detail(name_policies, member_ann_builtin_policies, ann_custom_IncompatibleQoSStatus_s); - CompleteStructMember member_policies = TypeObjectUtils::build_complete_struct_member(common_policies, detail_policies); - TypeObjectUtils::add_complete_struct_member(member_seq_IncompatibleQoSStatus_s, member_policies); - } - CompleteStructType struct_type_IncompatibleQoSStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_IncompatibleQoSStatus_s, header_IncompatibleQoSStatus_s, member_seq_IncompatibleQoSStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_IncompatibleQoSStatus_s, type_name_IncompatibleQoSStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_IncompatibleQoSStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s", type_ids_IncompatibleQoSStatus_s); - if (return_code_IncompatibleQoSStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::IncompatibleQoSStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_IncompatibleQoSStatus_s; - type_ids_MonitorServiceData = type_ids_IncompatibleQoSStatus_s; - } - } - UnionMemberFlag member_flags_incompatible_qos_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_incompatible_qos_status; - TypeObjectUtils::add_union_case_label(label_seq_incompatible_qos_status, static_cast(StatusKind::INCOMPATIBLE_QOS)); - CommonUnionMember common_incompatible_qos_status; - MemberId member_id_incompatible_qos_status = 0x00000003; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_incompatible_qos_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_incompatible_qos_status = TypeObjectUtils::build_common_union_member(member_id_incompatible_qos_status, member_flags_incompatible_qos_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_incompatible_qos_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union incompatible_qos_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_incompatible_qos_status = "incompatible_qos_status"; - eprosima::fastcdr::optional member_ann_builtin_incompatible_qos_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_incompatible_qos_status = TypeObjectUtils::build_complete_member_detail(name_incompatible_qos_status, member_ann_builtin_incompatible_qos_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_incompatible_qos_status = TypeObjectUtils::build_complete_union_member(common_incompatible_qos_status, detail_incompatible_qos_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_incompatible_qos_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InconsistentTopicStatus_s = 0; - QualifiedTypeName type_name_InconsistentTopicStatus_s = "eprosima::fastdds::statistics::InconsistentTopicStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_InconsistentTopicStatus_s; - eprosima::fastcdr::optional ann_custom_InconsistentTopicStatus_s; - CompleteTypeDetail detail_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string()); - CompleteAliasHeader header_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_header(detail_InconsistentTopicStatus_s); - AliasMemberFlag related_flags_InconsistentTopicStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_InconsistentTopicStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InconsistentTopicStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_InconsistentTopicStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InconsistentTopicStatus_s; - ann_custom_InconsistentTopicStatus_s.reset(); - CompleteAliasBody body_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_body(common_InconsistentTopicStatus_s, member_ann_builtin_InconsistentTopicStatus_s, ann_custom_InconsistentTopicStatus_s); - CompleteAliasType alias_type_InconsistentTopicStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_InconsistentTopicStatus_s, header_InconsistentTopicStatus_s, body_InconsistentTopicStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InconsistentTopicStatus_s, type_name_InconsistentTopicStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::InconsistentTopicStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::InconsistentTopicStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_inconsistent_topic_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_inconsistent_topic_status; - TypeObjectUtils::add_union_case_label(label_seq_inconsistent_topic_status, static_cast(StatusKind::INCONSISTENT_TOPIC)); - CommonUnionMember common_inconsistent_topic_status; - MemberId member_id_inconsistent_topic_status = 0x00000004; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_inconsistent_topic_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inconsistent_topic_status = TypeObjectUtils::build_common_union_member(member_id_inconsistent_topic_status, member_flags_inconsistent_topic_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_inconsistent_topic_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union inconsistent_topic_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_inconsistent_topic_status = "inconsistent_topic_status"; - eprosima::fastcdr::optional member_ann_builtin_inconsistent_topic_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_inconsistent_topic_status = TypeObjectUtils::build_complete_member_detail(name_inconsistent_topic_status, member_ann_builtin_inconsistent_topic_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_inconsistent_topic_status = TypeObjectUtils::build_complete_union_member(common_inconsistent_topic_status, detail_inconsistent_topic_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_inconsistent_topic_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_LivelinessLostStatus_s = 0; - QualifiedTypeName type_name_LivelinessLostStatus_s = "eprosima::fastdds::statistics::LivelinessLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessLostStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessLostStatus_s; - CompleteTypeDetail detail_LivelinessLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string()); - CompleteAliasHeader header_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_LivelinessLostStatus_s); - AliasMemberFlag related_flags_LivelinessLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_LivelinessLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_LivelinessLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_LivelinessLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_LivelinessLostStatus_s; - ann_custom_LivelinessLostStatus_s.reset(); - CompleteAliasBody body_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_LivelinessLostStatus_s, member_ann_builtin_LivelinessLostStatus_s, ann_custom_LivelinessLostStatus_s); - CompleteAliasType alias_type_LivelinessLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_LivelinessLostStatus_s, header_LivelinessLostStatus_s, body_LivelinessLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_LivelinessLostStatus_s, type_name_LivelinessLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_liveliness_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_liveliness_lost_status; - TypeObjectUtils::add_union_case_label(label_seq_liveliness_lost_status, static_cast(StatusKind::LIVELINESS_LOST)); - CommonUnionMember common_liveliness_lost_status; - MemberId member_id_liveliness_lost_status = 0x00000005; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_lost_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_lost_status, member_flags_liveliness_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_liveliness_lost_status = "liveliness_lost_status"; - eprosima::fastcdr::optional member_ann_builtin_liveliness_lost_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_liveliness_lost_status = TypeObjectUtils::build_complete_member_detail(name_liveliness_lost_status, member_ann_builtin_liveliness_lost_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_liveliness_lost_status = TypeObjectUtils::build_complete_union_member(common_liveliness_lost_status, detail_liveliness_lost_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_liveliness_lost_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_LivelinessChangedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_LivelinessChangedStatus_s; - TypeIdentifierPair type_ids_LivelinessChangedStatus_s; - QualifiedTypeName type_name_LivelinessChangedStatus_s = "eprosima::fastdds::statistics::LivelinessChangedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_LivelinessChangedStatus_s; - eprosima::fastcdr::optional ann_custom_LivelinessChangedStatus_s; - CompleteTypeDetail detail_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_LivelinessChangedStatus_s, ann_custom_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string()); - CompleteStructHeader header_LivelinessChangedStatus_s; - header_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LivelinessChangedStatus_s); - CompleteStructMemberSeq member_seq_LivelinessChangedStatus_s; - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_alive_count; - MemberId member_id_alive_count = 0x00000000; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alive_count = TypeObjectUtils::build_common_struct_member(member_id_alive_count, member_flags_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_alive_count = "alive_count"; - eprosima::fastcdr::optional member_ann_builtin_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_alive_count = TypeObjectUtils::build_complete_member_detail(name_alive_count, member_ann_builtin_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_alive_count = TypeObjectUtils::build_complete_struct_member(common_alive_count, detail_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "not_alive_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_not_alive_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_not_alive_count; - MemberId member_id_not_alive_count = 0x00000001; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_not_alive_count = TypeObjectUtils::build_common_struct_member(member_id_not_alive_count, member_flags_not_alive_count, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure not_alive_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_not_alive_count = "not_alive_count"; - eprosima::fastcdr::optional member_ann_builtin_not_alive_count; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_not_alive_count = TypeObjectUtils::build_complete_member_detail(name_not_alive_count, member_ann_builtin_not_alive_count, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_not_alive_count = TypeObjectUtils::build_complete_struct_member(common_not_alive_count, detail_not_alive_count); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_not_alive_count); - } - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_LivelinessChangedStatus_s); - - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_publication_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_publication_handle; - MemberId member_id_last_publication_handle = 0x00000002; - if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LivelinessChangedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LivelinessChangedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_publication_handle = TypeObjectUtils::build_common_struct_member(member_id_last_publication_handle, member_flags_last_publication_handle, type_ids_LivelinessChangedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_publication_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_publication_handle = "last_publication_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_publication_handle; - ann_custom_LivelinessChangedStatus_s.reset(); - CompleteMemberDetail detail_last_publication_handle = TypeObjectUtils::build_complete_member_detail(name_last_publication_handle, member_ann_builtin_last_publication_handle, ann_custom_LivelinessChangedStatus_s); - CompleteStructMember member_last_publication_handle = TypeObjectUtils::build_complete_struct_member(common_last_publication_handle, detail_last_publication_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_LivelinessChangedStatus_s, member_last_publication_handle); - } - CompleteStructType struct_type_LivelinessChangedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_LivelinessChangedStatus_s, header_LivelinessChangedStatus_s, member_seq_LivelinessChangedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LivelinessChangedStatus_s, type_name_LivelinessChangedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_LivelinessChangedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::LivelinessChangedStatus_s", type_ids_LivelinessChangedStatus_s); - if (return_code_LivelinessChangedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::LivelinessChangedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_LivelinessChangedStatus_s; - type_ids_MonitorServiceData = type_ids_LivelinessChangedStatus_s; - } - } - UnionMemberFlag member_flags_liveliness_changed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_liveliness_changed_status; - TypeObjectUtils::add_union_case_label(label_seq_liveliness_changed_status, static_cast(StatusKind::LIVELINESS_CHANGED)); - CommonUnionMember common_liveliness_changed_status; - MemberId member_id_liveliness_changed_status = 0x00000006; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_liveliness_changed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_liveliness_changed_status = TypeObjectUtils::build_common_union_member(member_id_liveliness_changed_status, member_flags_liveliness_changed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_liveliness_changed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union liveliness_changed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_liveliness_changed_status = "liveliness_changed_status"; - eprosima::fastcdr::optional member_ann_builtin_liveliness_changed_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_liveliness_changed_status = TypeObjectUtils::build_complete_member_detail(name_liveliness_changed_status, member_ann_builtin_liveliness_changed_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_liveliness_changed_status = TypeObjectUtils::build_complete_union_member(common_liveliness_changed_status, detail_liveliness_changed_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_liveliness_changed_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_DeadlineMissedStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DeadlineMissedStatus_s; - TypeIdentifierPair type_ids_DeadlineMissedStatus_s; - QualifiedTypeName type_name_DeadlineMissedStatus_s = "eprosima::fastdds::statistics::DeadlineMissedStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_DeadlineMissedStatus_s; - eprosima::fastcdr::optional ann_custom_DeadlineMissedStatus_s; - CompleteTypeDetail detail_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DeadlineMissedStatus_s, ann_custom_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string()); - CompleteStructHeader header_DeadlineMissedStatus_s; - header_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DeadlineMissedStatus_s); - CompleteStructMemberSeq member_seq_DeadlineMissedStatus_s; - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_total_count); - } - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DeadlineMissedStatus_s); - - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_last_instance_handle = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_last_instance_handle; - MemberId member_id_last_instance_handle = 0x00000001; - if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() || TK_NONE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DeadlineMissedStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DeadlineMissedStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_last_instance_handle = TypeObjectUtils::build_common_struct_member(member_id_last_instance_handle, member_flags_last_instance_handle, type_ids_DeadlineMissedStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure last_instance_handle member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_last_instance_handle = "last_instance_handle"; - eprosima::fastcdr::optional member_ann_builtin_last_instance_handle; - ann_custom_DeadlineMissedStatus_s.reset(); - CompleteMemberDetail detail_last_instance_handle = TypeObjectUtils::build_complete_member_detail(name_last_instance_handle, member_ann_builtin_last_instance_handle, ann_custom_DeadlineMissedStatus_s); - CompleteStructMember member_last_instance_handle = TypeObjectUtils::build_complete_struct_member(common_last_instance_handle, detail_last_instance_handle); - TypeObjectUtils::add_complete_struct_member(member_seq_DeadlineMissedStatus_s, member_last_instance_handle); - } - CompleteStructType struct_type_DeadlineMissedStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_DeadlineMissedStatus_s, header_DeadlineMissedStatus_s, member_seq_DeadlineMissedStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DeadlineMissedStatus_s, type_name_DeadlineMissedStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_DeadlineMissedStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DeadlineMissedStatus_s", type_ids_DeadlineMissedStatus_s); - if (return_code_DeadlineMissedStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DeadlineMissedStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_DeadlineMissedStatus_s; - type_ids_MonitorServiceData = type_ids_DeadlineMissedStatus_s; - } - } - UnionMemberFlag member_flags_deadline_missed_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_deadline_missed_status; - TypeObjectUtils::add_union_case_label(label_seq_deadline_missed_status, static_cast(StatusKind::DEADLINE_MISSED)); - CommonUnionMember common_deadline_missed_status; - MemberId member_id_deadline_missed_status = 0x00000007; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_deadline_missed_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_deadline_missed_status = TypeObjectUtils::build_common_union_member(member_id_deadline_missed_status, member_flags_deadline_missed_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_deadline_missed_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union deadline_missed_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_deadline_missed_status = "deadline_missed_status"; - eprosima::fastcdr::optional member_ann_builtin_deadline_missed_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_deadline_missed_status = TypeObjectUtils::build_complete_member_detail(name_deadline_missed_status, member_ann_builtin_deadline_missed_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_deadline_missed_status = TypeObjectUtils::build_complete_union_member(common_deadline_missed_status, detail_deadline_missed_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_deadline_missed_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_SampleLostStatus_s = 0; - QualifiedTypeName type_name_SampleLostStatus_s = "eprosima::fastdds::statistics::SampleLostStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleLostStatus_s; - eprosima::fastcdr::optional ann_custom_SampleLostStatus_s; - CompleteTypeDetail detail_SampleLostStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string()); - CompleteAliasHeader header_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_header(detail_SampleLostStatus_s); - AliasMemberFlag related_flags_SampleLostStatus_s = 0; - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_BaseStatus_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_BaseStatus_s; - TypeIdentifierPair type_ids_BaseStatus_s; - QualifiedTypeName type_name_BaseStatus_s = "eprosima::fastdds::statistics::BaseStatus_s"; - eprosima::fastcdr::optional type_ann_builtin_BaseStatus_s; - eprosima::fastcdr::optional ann_custom_BaseStatus_s; - CompleteTypeDetail detail_BaseStatus_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BaseStatus_s, ann_custom_BaseStatus_s, type_name_BaseStatus_s.to_string()); - CompleteStructHeader header_BaseStatus_s; - header_BaseStatus_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BaseStatus_s); - CompleteStructMemberSeq member_seq_BaseStatus_s; - { - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_BaseStatus_s); - - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "total_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_total_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_total_count; - MemberId member_id_total_count = 0x00000000; - if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1()._d() || TK_NONE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BaseStatus_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BaseStatus_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_total_count = TypeObjectUtils::build_common_struct_member(member_id_total_count, member_flags_total_count, type_ids_BaseStatus_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure total_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_total_count = "total_count"; - eprosima::fastcdr::optional member_ann_builtin_total_count; - ann_custom_BaseStatus_s.reset(); - CompleteMemberDetail detail_total_count = TypeObjectUtils::build_complete_member_detail(name_total_count, member_ann_builtin_total_count, ann_custom_BaseStatus_s); - CompleteStructMember member_total_count = TypeObjectUtils::build_complete_struct_member(common_total_count, detail_total_count); - TypeObjectUtils::add_complete_struct_member(member_seq_BaseStatus_s, member_total_count); - } - CompleteStructType struct_type_BaseStatus_s = TypeObjectUtils::build_complete_struct_type(struct_flags_BaseStatus_s, header_BaseStatus_s, member_seq_BaseStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BaseStatus_s, type_name_BaseStatus_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_BaseStatus_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::BaseStatus_s", type_ids_BaseStatus_s); - if (return_code_BaseStatus_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::BaseStatus_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceData = return_code_BaseStatus_s; - type_ids_MonitorServiceData = type_ids_BaseStatus_s; - } - } - CommonAliasBody common_SampleLostStatus_s; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_SampleLostStatus_s = TypeObjectUtils::build_common_alias_body(related_flags_SampleLostStatus_s, type_ids_MonitorServiceData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_SampleLostStatus_s; - ann_custom_SampleLostStatus_s.reset(); - CompleteAliasBody body_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_body(common_SampleLostStatus_s, member_ann_builtin_SampleLostStatus_s, ann_custom_SampleLostStatus_s); - CompleteAliasType alias_type_SampleLostStatus_s = TypeObjectUtils::build_complete_alias_type(alias_flags_SampleLostStatus_s, header_SampleLostStatus_s, body_SampleLostStatus_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_SampleLostStatus_s, type_name_SampleLostStatus_s.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleLostStatus_s", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleLostStatus_s: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_sample_lost_status = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_sample_lost_status; - TypeObjectUtils::add_union_case_label(label_seq_sample_lost_status, static_cast(StatusKind::SAMPLE_LOST)); - CommonUnionMember common_sample_lost_status; - MemberId member_id_sample_lost_status = 0x00000008; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier1(), - label_seq_sample_lost_status); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_lost_status = TypeObjectUtils::build_common_union_member(member_id_sample_lost_status, member_flags_sample_lost_status, type_ids_MonitorServiceData.type_identifier2(), - label_seq_sample_lost_status); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_lost_status member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sample_lost_status = "sample_lost_status"; - eprosima::fastcdr::optional member_ann_builtin_sample_lost_status; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_sample_lost_status = TypeObjectUtils::build_complete_member_detail(name_sample_lost_status, member_ann_builtin_sample_lost_status, ann_custom_MonitorServiceData); - CompleteUnionMember member_sample_lost_status = TypeObjectUtils::build_complete_union_member(common_sample_lost_status, detail_sample_lost_status); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_sample_lost_status); - } - { - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MonitorServiceData); - - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "statuses_size Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_statuses_size = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_statuses_size; - TypeObjectUtils::add_union_case_label(label_seq_statuses_size, static_cast(StatusKind::STATUSES_SIZE)); - CommonUnionMember common_statuses_size; - MemberId member_id_statuses_size = 0x00000009; - if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier1(), - label_seq_statuses_size); - } - else if (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_statuses_size = TypeObjectUtils::build_common_union_member(member_id_statuses_size, member_flags_statuses_size, type_ids_MonitorServiceData.type_identifier2(), - label_seq_statuses_size); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union statuses_size member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_statuses_size = "statuses_size"; - eprosima::fastcdr::optional member_ann_builtin_statuses_size; - ann_custom_MonitorServiceData.reset(); - CompleteMemberDetail detail_statuses_size = TypeObjectUtils::build_complete_member_detail(name_statuses_size, member_ann_builtin_statuses_size, ann_custom_MonitorServiceData); - CompleteUnionMember member_statuses_size = TypeObjectUtils::build_complete_union_member(common_statuses_size, detail_statuses_size); - TypeObjectUtils::add_complete_union_member(member_seq_MonitorServiceData, member_statuses_size); - } - CompleteUnionType union_type_MonitorServiceData = TypeObjectUtils::build_complete_union_type(union_flags_MonitorServiceData, header_MonitorServiceData, discriminator_MonitorServiceData, - member_seq_MonitorServiceData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_MonitorServiceData, type_name_MonitorServiceData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData already registered in TypeObjectRegistry for a different type."); - } - return_code_MonitorServiceData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceData); - if (return_code_MonitorServiceData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceData: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MonitorServiceStatusData = return_code_MonitorServiceData; - type_ids_MonitorServiceStatusData = type_ids_MonitorServiceData; - } + eprosima::fastdds::statistics::register_MonitorServiceData_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000002; - if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1()._d() || TK_NONE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_MonitorServiceStatusData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MonitorServiceStatusData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MonitorServiceStatusData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_MonitorServiceStatusData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12272,21 +1649,11 @@ void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifi } CompleteStructType struct_type_MonitorServiceStatusData = TypeObjectUtils::build_complete_struct_type(struct_flags_MonitorServiceStatusData, header_MonitorServiceStatusData, member_seq_MonitorServiceStatusData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MonitorServiceStatusData, type_name_MonitorServiceStatusData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MonitorServiceStatusData, type_name_MonitorServiceStatusData.to_string(), type_ids_MonitorServiceStatusData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::MonitorServiceStatusData already registered in TypeObjectRegistry for a different type."); } - return_code_MonitorServiceStatusData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::MonitorServiceStatusData", type_ids_MonitorServiceStatusData); - if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::MonitorServiceStatusData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp index b1e4de055bd..703ef46f1c6 100644 --- a/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp +++ b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp @@ -36,18 +36,26 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_monitorservice_types_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace eprosima { namespace fastdds { namespace statistics { /** - * @brief Register eprosima_fastdds_statistics_Connection related TypeIdentifier. + * @brief Register ConnectionMode related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_ConnectionMode_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register Connection related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -56,11 +64,11 @@ namespace statistics { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Connection_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Connection_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_QosPolicyCount_s related TypeIdentifier. + * @brief Register QosPolicyCount_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -69,11 +77,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Connection_typ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_QosPolicyCount_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_BaseStatus_s related TypeIdentifier. + * @brief Register BaseStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -82,12 +90,52 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_QosPolicyCount * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_BaseStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register QosPolicyCountSeq_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_QosPolicyCountSeq_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + +/** + * @brief Register IncompatibleQoSStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_IncompatibleQoSStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register LivelinessChangedStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_LivelinessChangedStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_IncompatibleQoSStatus_s related TypeIdentifier. + * @brief Register DeadlineMissedStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -96,11 +144,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_BaseStatus_s_t * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_DeadlineMissedStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_LivelinessChangedStatus_s related TypeIdentifier. + * @brief Register LivelinessLostStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -109,11 +157,13 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_IncompatibleQo * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_LivelinessLostStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + /** - * @brief Register eprosima_fastdds_statistics_DeadlineMissedStatus_s related TypeIdentifier. + * @brief Register InconsistentTopicStatus_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -122,17 +172,55 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_LivelinessChan * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_InconsistentTopicStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +/** + * @brief Register SampleLostStatus_s related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_SampleLostStatus_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + namespace StatusKind { +/** + * @brief Register StatusKind related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_StatusKind_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + + + + + + + + + + } // namespace StatusKind /** - * @brief Register eprosima_fastdds_statistics_MonitorServiceData related TypeIdentifier. + * @brief Register MonitorServiceData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -141,11 +229,11 @@ namespace StatusKind { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_MonitorServiceData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_MonitorServiceStatusData related TypeIdentifier. + * @brief Register MonitorServiceStatusData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -154,8 +242,8 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorService * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_MonitorServiceStatusData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace statistics diff --git a/test/blackbox/types/statistics/typesPubSubTypes.cxx b/test/blackbox/types/statistics/typesPubSubTypes.cxx index 582e4152f52..fb048b99c9b 100644 --- a/test/blackbox/types/statistics/typesPubSubTypes.cxx +++ b/test/blackbox/types/statistics/typesPubSubTypes.cxx @@ -223,9 +223,9 @@ namespace eprosima { return true; } - void EntityId_sPubSubType::register_type_object_representation() const + void EntityId_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityId_s_type_identifier(type_identifiers_); } GuidPrefix_sPubSubType::GuidPrefix_sPubSubType() @@ -416,9 +416,9 @@ namespace eprosima { return true; } - void GuidPrefix_sPubSubType::register_type_object_representation() const + void GuidPrefix_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_GuidPrefix_s_type_identifier(type_identifiers_); } GUID_sPubSubType::GUID_sPubSubType() @@ -609,9 +609,9 @@ namespace eprosima { return true; } - void GUID_sPubSubType::register_type_object_representation() const + void GUID_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_GUID_s_type_identifier(type_identifiers_); } SequenceNumber_sPubSubType::SequenceNumber_sPubSubType() @@ -802,9 +802,9 @@ namespace eprosima { return true; } - void SequenceNumber_sPubSubType::register_type_object_representation() const + void SequenceNumber_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SequenceNumber_s_type_identifier(type_identifiers_); } SampleIdentity_sPubSubType::SampleIdentity_sPubSubType() @@ -995,9 +995,9 @@ namespace eprosima { return true; } - void SampleIdentity_sPubSubType::register_type_object_representation() const + void SampleIdentity_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SampleIdentity_s_type_identifier(type_identifiers_); } Locator_sPubSubType::Locator_sPubSubType() @@ -1188,9 +1188,9 @@ namespace eprosima { return true; } - void Locator_sPubSubType::register_type_object_representation() const + void Locator_sPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Locator_s_type_identifier(type_identifiers_); } } // namespace detail @@ -1383,9 +1383,9 @@ namespace eprosima { return true; } - void DiscoveryTimePubSubType::register_type_object_representation() const + void DiscoveryTimePubSubType::register_type_object_representation() { - register_types_type_objects(); + register_DiscoveryTime_type_identifier(type_identifiers_); } EntityCountPubSubType::EntityCountPubSubType() @@ -1576,9 +1576,9 @@ namespace eprosima { return true; } - void EntityCountPubSubType::register_type_object_representation() const + void EntityCountPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityCount_type_identifier(type_identifiers_); } SampleIdentityCountPubSubType::SampleIdentityCountPubSubType() @@ -1769,9 +1769,9 @@ namespace eprosima { return true; } - void SampleIdentityCountPubSubType::register_type_object_representation() const + void SampleIdentityCountPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_SampleIdentityCount_type_identifier(type_identifiers_); } Entity2LocatorTrafficPubSubType::Entity2LocatorTrafficPubSubType() @@ -1962,9 +1962,9 @@ namespace eprosima { return true; } - void Entity2LocatorTrafficPubSubType::register_type_object_representation() const + void Entity2LocatorTrafficPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Entity2LocatorTraffic_type_identifier(type_identifiers_); } WriterReaderDataPubSubType::WriterReaderDataPubSubType() @@ -2155,9 +2155,9 @@ namespace eprosima { return true; } - void WriterReaderDataPubSubType::register_type_object_representation() const + void WriterReaderDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_WriterReaderData_type_identifier(type_identifiers_); } Locator2LocatorDataPubSubType::Locator2LocatorDataPubSubType() @@ -2348,9 +2348,9 @@ namespace eprosima { return true; } - void Locator2LocatorDataPubSubType::register_type_object_representation() const + void Locator2LocatorDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_Locator2LocatorData_type_identifier(type_identifiers_); } EntityDataPubSubType::EntityDataPubSubType() @@ -2541,9 +2541,9 @@ namespace eprosima { return true; } - void EntityDataPubSubType::register_type_object_representation() const + void EntityDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_EntityData_type_identifier(type_identifiers_); } PhysicalDataPubSubType::PhysicalDataPubSubType() @@ -2734,9 +2734,9 @@ namespace eprosima { return true; } - void PhysicalDataPubSubType::register_type_object_representation() const + void PhysicalDataPubSubType::register_type_object_representation() { - register_types_type_objects(); + register_PhysicalData_type_identifier(type_identifiers_); } namespace EventKind { diff --git a/test/blackbox/types/statistics/typesPubSubTypes.h b/test/blackbox/types/statistics/typesPubSubTypes.h index a235ad9169c..653945fdddb 100644 --- a/test/blackbox/types/statistics/typesPubSubTypes.h +++ b/test/blackbox/types/statistics/typesPubSubTypes.h @@ -97,7 +97,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -188,7 +188,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -279,7 +279,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -370,7 +370,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -461,7 +461,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -552,7 +552,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -644,7 +644,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -735,7 +735,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -826,7 +826,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -917,7 +917,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1008,7 +1008,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1099,7 +1099,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1190,7 +1190,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1281,7 +1281,7 @@ namespace eprosima void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/blackbox/types/statistics/typesTypeObjectSupport.cxx b/test/blackbox/types/statistics/typesTypeObjectSupport.cxx index 8f7648a0d10..d13827cf3d7 100644 --- a/test/blackbox/types/statistics/typesTypeObjectSupport.cxx +++ b/test/blackbox/types/statistics/typesTypeObjectSupport.cxx @@ -38,58 +38,23 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_types_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier(type_id); - - eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_WriterReaderData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_PhysicalData_type_identifier(type_id); - - eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Data_type_identifier(type_id); - - }); -} - namespace eprosima { namespace fastdds { namespace statistics { namespace detail { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( - TypeIdentifier& type_id) +void register_EntityId_s_type_identifier( + TypeIdentifierPair& type_ids_EntityId_s) { + + ReturnCode_t return_code_EntityId_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityId_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityId_s) { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; eprosima::fastcdr::optional type_ann_builtin_EntityId_s; eprosima::fastcdr::optional ann_custom_EntityId_s; @@ -98,69 +63,33 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); CompleteStructMemberSeq member_seq_EntityId_s; { - return_code_EntityId_s = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); + "anonymous_array_uint8_t_4", type_ids_value); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_EntityId_s = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); + "_byte", type_ids_value); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_4_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_uint8_t_4_ec))}; + if (!element_identifier_anonymous_array_uint8_t_4_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; } @@ -173,68 +102,21 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); } } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -246,32 +128,26 @@ void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( } CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_ids_EntityId_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( - TypeIdentifier& type_id) +void register_GuidPrefix_s_type_identifier( + TypeIdentifierPair& type_ids_GuidPrefix_s) { + + ReturnCode_t return_code_GuidPrefix_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_GuidPrefix_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_GuidPrefix_s) { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; eprosima::fastcdr::optional ann_custom_GuidPrefix_s; @@ -280,69 +156,33 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); CompleteStructMemberSeq member_seq_GuidPrefix_s; { - return_code_GuidPrefix_s = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); + "anonymous_array_uint8_t_12", type_ids_value); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_GuidPrefix_s = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); + "_byte", type_ids_value); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_12_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_uint8_t_12_ec))}; + if (!element_identifier_anonymous_array_uint8_t_12_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; } @@ -355,68 +195,21 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); } } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -428,32 +221,26 @@ void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( } CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_ids_GuidPrefix_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( - TypeIdentifier& type_id) +void register_GUID_s_type_identifier( + TypeIdentifierPair& type_ids_GUID_s) { + + ReturnCode_t return_code_GUID_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_GUID_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_GUID_s) { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; eprosima::fastcdr::optional type_ann_builtin_GUID_s; eprosima::fastcdr::optional ann_custom_GUID_s; @@ -462,237 +249,24 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); CompleteStructMemberSeq member_seq_GUID_s; { - return_code_GUID_s = + TypeIdentifierPair type_ids_guidPrefix; + ReturnCode_t return_code_guidPrefix {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guidPrefix = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); + "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_guidPrefix); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guidPrefix) { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } + eprosima::fastdds::statistics::detail::register_GuidPrefix_s_type_identifier(type_ids_guidPrefix); } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_guidPrefix; MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else + bool common_guidPrefix_ec {false}; + CommonStructMember common_guidPrefix {TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guidPrefix, common_guidPrefix_ec))}; + if (!common_guidPrefix_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guidPrefix member TypeIdentifier inconsistent."); return; } MemberName name_guidPrefix = "guidPrefix"; @@ -703,237 +277,24 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); } { - return_code_GUID_s = + TypeIdentifierPair type_ids_entityId; + ReturnCode_t return_code_entityId {eprosima::fastdds::dds::RETCODE_OK}; + return_code_entityId = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); + "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_entityId); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_entityId) { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } + eprosima::fastdds::statistics::detail::register_EntityId_s_type_identifier(type_ids_entityId); } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_entityId; MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else + bool common_entityId_ec {false}; + CommonStructMember common_entityId {TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_entityId, common_entityId_ec))}; + if (!common_entityId_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure entityId member TypeIdentifier inconsistent."); return; } MemberName name_entityId = "entityId"; @@ -945,32 +306,26 @@ void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( } CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_ids_GUID_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier( - TypeIdentifier& type_id) +void register_SequenceNumber_s_type_identifier( + TypeIdentifierPair& type_ids_SequenceNumber_s) { + + ReturnCode_t return_code_SequenceNumber_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceNumber_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceNumber_s) { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; eprosima::fastcdr::optional ann_custom_SequenceNumber_s; @@ -979,62 +334,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); CompleteStructMemberSeq member_seq_SequenceNumber_s; { - return_code_SequenceNumber_s = + TypeIdentifierPair type_ids_high; + ReturnCode_t return_code_high {eprosima::fastdds::dds::RETCODE_OK}; + return_code_high = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); + "_int32_t", type_ids_high); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_high) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_high; MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_high_ec {false}; + CommonStructMember common_high {TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_high, common_high_ec))}; + if (!common_high_ec) { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure high member TypeIdentifier inconsistent."); return; } MemberName name_high = "high"; @@ -1045,62 +364,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); } { - return_code_SequenceNumber_s = + TypeIdentifierPair type_ids_low; + ReturnCode_t return_code_low {eprosima::fastdds::dds::RETCODE_OK}; + return_code_low = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); + "_uint32_t", type_ids_low); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_low) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_low; MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else + bool common_low_ec {false}; + CommonStructMember common_low {TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_low, common_low_ec))}; + if (!common_low_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure low member TypeIdentifier inconsistent."); return; } MemberName name_low = "low"; @@ -1112,32 +395,26 @@ void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifie } CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_ids_SequenceNumber_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier( - TypeIdentifier& type_id) +void register_SampleIdentity_s_type_identifier( + TypeIdentifierPair& type_ids_SampleIdentity_s) { + + ReturnCode_t return_code_SampleIdentity_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleIdentity_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleIdentity_s) { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; eprosima::fastcdr::optional ann_custom_SampleIdentity_s; @@ -1146,572 +423,24 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); CompleteStructMemberSeq member_seq_SampleIdentity_s; { - return_code_SampleIdentity_s = + TypeIdentifierPair type_ids_writer_guid; + ReturnCode_t return_code_writer_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_writer_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_writer_guid); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_writer_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_writer_guid); } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_writer_guid; MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else + bool common_writer_guid_ec {false}; + CommonStructMember common_writer_guid {TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_writer_guid, common_writer_guid_ec))}; + if (!common_writer_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure writer_guid member TypeIdentifier inconsistent."); return; } MemberName name_writer_guid = "writer_guid"; @@ -1722,222 +451,24 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); } { - return_code_SampleIdentity_s = + TypeIdentifierPair type_ids_sequence_number; + ReturnCode_t return_code_sequence_number {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_number = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); + "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_sequence_number); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_number) { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } + eprosima::fastdds::statistics::detail::register_SequenceNumber_s_type_identifier(type_ids_sequence_number); } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_sequence_number; MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else + bool common_sequence_number_ec {false}; + CommonStructMember common_sequence_number {TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sequence_number, common_sequence_number_ec))}; + if (!common_sequence_number_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sequence_number member TypeIdentifier inconsistent."); return; } MemberName name_sequence_number = "sequence_number"; @@ -1949,32 +480,26 @@ void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifie } CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_ids_SampleIdentity_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( - TypeIdentifier& type_id) +void register_Locator_s_type_identifier( + TypeIdentifierPair& type_ids_Locator_s) { + + ReturnCode_t return_code_Locator_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Locator_s = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Locator_s) { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; eprosima::fastcdr::optional type_ann_builtin_Locator_s; eprosima::fastcdr::optional ann_custom_Locator_s; @@ -1983,62 +508,26 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); CompleteStructMemberSeq member_seq_Locator_s; { - return_code_Locator_s = + TypeIdentifierPair type_ids_kind; + ReturnCode_t return_code_kind {eprosima::fastdds::dds::RETCODE_OK}; + return_code_kind = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); + "_int32_t", type_ids_kind); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_kind) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_kind; MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_kind_ec {false}; + CommonStructMember common_kind {TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_kind, common_kind_ec))}; + if (!common_kind_ec) { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure kind member TypeIdentifier inconsistent."); return; } MemberName name_kind = "kind"; @@ -2049,62 +538,26 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); } { - return_code_Locator_s = + TypeIdentifierPair type_ids_port; + ReturnCode_t return_code_port {eprosima::fastdds::dds::RETCODE_OK}; + return_code_port = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); + "_uint32_t", type_ids_port); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_port) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_port; MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else + bool common_port_ec {false}; + CommonStructMember common_port {TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_port, common_port_ec))}; + if (!common_port_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure port member TypeIdentifier inconsistent."); return; } MemberName name_port = "port"; @@ -2115,69 +568,33 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); } { - return_code_Locator_s = + TypeIdentifierPair type_ids_address; + ReturnCode_t return_code_address {eprosima::fastdds::dds::RETCODE_OK}; + return_code_address = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); + "anonymous_array_uint8_t_16", type_ids_address); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_address) { - return_code_Locator_s = + return_code_address = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); + "_byte", type_ids_address); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_address) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_uint8_t_16_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_address, element_identifier_anonymous_array_uint8_t_16_ec))}; + if (!element_identifier_anonymous_array_uint8_t_16_ec) { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) + if (TK_NONE == type_ids_address.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; } @@ -2190,68 +607,21 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16", type_ids_address)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); } } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_address; MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_address_ec {false}; + CommonStructMember common_address {TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_address, common_address_ec))}; + if (!common_address_ec) { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure address member TypeIdentifier inconsistent."); return; } MemberName name_address = "address"; @@ -2263,34 +633,28 @@ void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( } CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_ids_Locator_s)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace detail // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( - TypeIdentifier& type_id) +void register_DiscoveryTime_type_identifier( + TypeIdentifierPair& type_ids_DiscoveryTime) { + + ReturnCode_t return_code_DiscoveryTime {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DiscoveryTime = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DiscoveryTime) { - StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_DiscoveryTime; - TypeIdentifierPair type_ids_DiscoveryTime; QualifiedTypeName type_name_DiscoveryTime = "eprosima::fastdds::statistics::DiscoveryTime"; eprosima::fastcdr::optional type_ann_builtin_DiscoveryTime; eprosima::fastcdr::optional ann_custom_DiscoveryTime; @@ -2299,572 +663,24 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( header_DiscoveryTime = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DiscoveryTime); CompleteStructMemberSeq member_seq_DiscoveryTime; { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_local_participant_guid; + ReturnCode_t return_code_local_participant_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_local_participant_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_local_participant_guid); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_local_participant_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_local_participant_guid); } - StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_local_participant_guid; MemberId member_id_local_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_local_participant_guid_ec {false}; + CommonStructMember common_local_participant_guid {TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_local_participant_guid, common_local_participant_guid_ec))}; + if (!common_local_participant_guid_ec) { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure local_participant_guid member TypeIdentifier inconsistent."); return; } MemberName name_local_participant_guid = "local_participant_guid"; @@ -2888,573 +704,25 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_local_participant_guid); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_remote_entity_guid; + ReturnCode_t return_code_remote_entity_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_remote_entity_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_remote_entity_guid); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_remote_entity_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_remote_entity_guid); } - StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_remote_entity_guid; MemberId member_id_remote_entity_guid = 0x00000001; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_remote_entity_guid_ec {false}; + CommonStructMember common_remote_entity_guid {TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_remote_entity_guid, common_remote_entity_guid_ec))}; + if (!common_remote_entity_guid_ec) { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure remote_entity_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure remote_entity_guid member TypeIdentifier inconsistent."); + return; } MemberName name_remote_entity_guid = "remote_entity_guid"; eprosima::fastcdr::optional member_ann_builtin_remote_entity_guid; @@ -3477,62 +745,26 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_remote_entity_guid); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_time; + ReturnCode_t return_code_time {eprosima::fastdds::dds::RETCODE_OK}; + return_code_time = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_DiscoveryTime); + "_uint64_t", type_ids_time); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_time) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "time Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_time; MemberId member_id_time = 0x00000002; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_time_ec {false}; + CommonStructMember common_time {TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_time, common_time_ec))}; + if (!common_time_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure time member TypeIdentifier inconsistent."); return; } MemberName name_time = "time"; @@ -3543,79 +775,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_time); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_host; + ReturnCode_t return_code_host {eprosima::fastdds::dds::RETCODE_OK}; + return_code_host = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_host); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_host) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_host)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_host; MemberId member_id_host = 0x00000003; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_host_ec {false}; + CommonStructMember common_host {TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_host, common_host_ec))}; + if (!common_host_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure host member TypeIdentifier inconsistent."); return; } MemberName name_host = "host"; @@ -3626,79 +813,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_host); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_user; + ReturnCode_t return_code_user {eprosima::fastdds::dds::RETCODE_OK}; + return_code_user = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_user); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_user) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_user)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_user; MemberId member_id_user = 0x00000004; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_user_ec {false}; + CommonStructMember common_user {TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_user, common_user_ec))}; + if (!common_user_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure user member TypeIdentifier inconsistent."); return; } MemberName name_user = "user"; @@ -3709,79 +851,34 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_user); } { - return_code_DiscoveryTime = + TypeIdentifierPair type_ids_process; + ReturnCode_t return_code_process {eprosima::fastdds::dds::RETCODE_OK}; + return_code_process = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); + "anonymous_string_unbounded", type_ids_process); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_process) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_process)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_process; MemberId member_id_process = 0x00000005; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier2()); - } - else + bool common_process_ec {false}; + CommonStructMember common_process {TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_process, common_process_ec))}; + if (!common_process_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure process member TypeIdentifier inconsistent."); return; } MemberName name_process = "process"; @@ -3793,32 +890,26 @@ void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( } CompleteStructType struct_type_DiscoveryTime = TypeObjectUtils::build_complete_struct_type(struct_flags_DiscoveryTime, header_DiscoveryTime, member_seq_DiscoveryTime); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_ids_DiscoveryTime)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::DiscoveryTime already registered in TypeObjectRegistry for a different type."); } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_EntityCount_type_identifier( - TypeIdentifier& type_id) +void register_EntityCount_type_identifier( + TypeIdentifierPair& type_ids_EntityCount) { + + ReturnCode_t return_code_EntityCount {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityCount = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityCount) { - StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityCount; - TypeIdentifierPair type_ids_EntityCount; QualifiedTypeName type_name_EntityCount = "eprosima::fastdds::statistics::EntityCount"; eprosima::fastcdr::optional type_ann_builtin_EntityCount; eprosima::fastcdr::optional ann_custom_EntityCount; @@ -3827,572 +918,24 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( header_EntityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityCount); CompleteStructMemberSeq member_seq_EntityCount; { - return_code_EntityCount = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityCount); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityCount = return_code_GUID_s; - type_ids_EntityCount = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier2()); - } - else + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -4416,62 +959,26 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_guid); } { - return_code_EntityCount = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_EntityCount); + "_uint64_t", type_ids_count); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -4483,32 +990,26 @@ void register_eprosima_fastdds_statistics_EntityCount_type_identifier( } CompleteStructType struct_type_EntityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityCount, header_EntityCount, member_seq_EntityCount); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_ids_EntityCount)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::EntityCount already registered in TypeObjectRegistry for a different type."); } - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( - TypeIdentifier& type_id) +void register_SampleIdentityCount_type_identifier( + TypeIdentifierPair& type_ids_SampleIdentityCount) { + + ReturnCode_t return_code_SampleIdentityCount {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SampleIdentityCount = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SampleIdentityCount) { - StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SampleIdentityCount; - TypeIdentifierPair type_ids_SampleIdentityCount; QualifiedTypeName type_name_SampleIdentityCount = "eprosima::fastdds::statistics::SampleIdentityCount"; eprosima::fastcdr::optional type_ann_builtin_SampleIdentityCount; eprosima::fastcdr::optional ann_custom_SampleIdentityCount; @@ -4517,892 +1018,24 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( header_SampleIdentityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentityCount); CompleteStructMemberSeq member_seq_SampleIdentityCount; { - return_code_SampleIdentityCount = + TypeIdentifierPair type_ids_sample_id; + ReturnCode_t return_code_sample_id {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sample_id = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentityCount); + "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_sample_id); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sample_id) { - { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; - QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; - eprosima::fastcdr::optional ann_custom_SampleIdentity_s; - CompleteTypeDetail detail_SampleIdentity_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentity_s, ann_custom_SampleIdentity_s, type_name_SampleIdentity_s.to_string()); - CompleteStructHeader header_SampleIdentity_s; - header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); - CompleteStructMemberSeq member_seq_SampleIdentity_s; - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_SampleIdentity_s); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); - } - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } - } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_sequence_number; - MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sequence_number = "sequence_number"; - eprosima::fastcdr::optional member_ann_builtin_sequence_number; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_sequence_number = TypeObjectUtils::build_complete_member_detail(name_sequence_number, member_ann_builtin_sequence_number, ann_custom_SampleIdentity_s); - CompleteStructMember member_sequence_number = TypeObjectUtils::build_complete_struct_member(common_sequence_number, detail_sequence_number); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_sequence_number); - } - CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentityCount = return_code_SampleIdentity_s; - type_ids_SampleIdentityCount = type_ids_SampleIdentity_s; - } + eprosima::fastdds::statistics::detail::register_SampleIdentity_s_type_identifier(type_ids_sample_id); } - StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_sample_id; MemberId member_id_sample_id = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_sample_id_ec {false}; + CommonStructMember common_sample_id {TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sample_id, common_sample_id_ec))}; + if (!common_sample_id_ec) { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sample_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sample_id member TypeIdentifier inconsistent."); return; } MemberName name_sample_id = "sample_id"; @@ -5426,62 +1059,26 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_sample_id); } { - return_code_SampleIdentityCount = + TypeIdentifierPair type_ids_count; + ReturnCode_t return_code_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_SampleIdentityCount); + "_uint64_t", type_ids_count); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_count; MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier2()); - } - else + bool common_count_ec {false}; + CommonStructMember common_count {TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_count, common_count_ec))}; + if (!common_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure count member TypeIdentifier inconsistent."); return; } MemberName name_count = "count"; @@ -5493,32 +1090,26 @@ void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( } CompleteStructType struct_type_SampleIdentityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentityCount, header_SampleIdentityCount, member_seq_SampleIdentityCount); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_ids_SampleIdentityCount)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::SampleIdentityCount already registered in TypeObjectRegistry for a different type."); } - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( - TypeIdentifier& type_id) +void register_Entity2LocatorTraffic_type_identifier( + TypeIdentifierPair& type_ids_Entity2LocatorTraffic) { + + ReturnCode_t return_code_Entity2LocatorTraffic {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Entity2LocatorTraffic = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Entity2LocatorTraffic) { - StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Entity2LocatorTraffic; - TypeIdentifierPair type_ids_Entity2LocatorTraffic; QualifiedTypeName type_name_Entity2LocatorTraffic = "eprosima::fastdds::statistics::Entity2LocatorTraffic"; eprosima::fastcdr::optional type_ann_builtin_Entity2LocatorTraffic; eprosima::fastcdr::optional ann_custom_Entity2LocatorTraffic; @@ -5527,572 +1118,24 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( header_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Entity2LocatorTraffic); CompleteStructMemberSeq member_seq_Entity2LocatorTraffic; { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_src_guid; + ReturnCode_t return_code_src_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_src_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Entity2LocatorTraffic); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_src_guid); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_src_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_GUID_s; - type_ids_Entity2LocatorTraffic = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_src_guid); } - StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_src_guid; MemberId member_id_src_guid = 0x00000000; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_src_guid_ec {false}; + CommonStructMember common_src_guid {TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_src_guid, common_src_guid_ec))}; + if (!common_src_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure src_guid member TypeIdentifier inconsistent."); return; } MemberName name_src_guid = "src_guid"; @@ -6116,369 +1159,24 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_src_guid); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_dst_locator; + ReturnCode_t return_code_dst_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dst_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Entity2LocatorTraffic); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_dst_locator); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dst_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_Locator_s; - type_ids_Entity2LocatorTraffic = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_dst_locator); } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_dst_locator; MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_dst_locator_ec {false}; + CommonStructMember common_dst_locator {TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dst_locator, common_dst_locator_ec))}; + if (!common_dst_locator_ec) { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dst_locator member TypeIdentifier inconsistent."); return; } MemberName name_dst_locator = "dst_locator"; @@ -6502,62 +1200,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_dst_locator); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_packet_count; + ReturnCode_t return_code_packet_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_packet_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); + "_uint64_t", type_ids_packet_count); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_packet_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "packet_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_packet_count; MemberId member_id_packet_count = 0x00000002; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_packet_count_ec {false}; + CommonStructMember common_packet_count {TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_packet_count, common_packet_count_ec))}; + if (!common_packet_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure packet_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure packet_count member TypeIdentifier inconsistent."); return; } MemberName name_packet_count = "packet_count"; @@ -6568,62 +1230,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_packet_count); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_byte_count; + ReturnCode_t return_code_byte_count {eprosima::fastdds::dds::RETCODE_OK}; + return_code_byte_count = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); + "_uint64_t", type_ids_byte_count); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_byte_count) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "byte_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_byte_count; MemberId member_id_byte_count = 0x00000003; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_byte_count_ec {false}; + CommonStructMember common_byte_count {TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_byte_count, common_byte_count_ec))}; + if (!common_byte_count_ec) { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure byte_count member TypeIdentifier inconsistent."); return; } MemberName name_byte_count = "byte_count"; @@ -6634,62 +1260,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_count); } { - return_code_Entity2LocatorTraffic = + TypeIdentifierPair type_ids_byte_magnitude_order; + ReturnCode_t return_code_byte_magnitude_order {eprosima::fastdds::dds::RETCODE_OK}; + return_code_byte_magnitude_order = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Entity2LocatorTraffic); + "_int16_t", type_ids_byte_magnitude_order); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_byte_magnitude_order) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "byte_magnitude_order Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_byte_magnitude_order; MemberId member_id_byte_magnitude_order = 0x00000004; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else + bool common_byte_magnitude_order_ec {false}; + CommonStructMember common_byte_magnitude_order {TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_byte_magnitude_order, common_byte_magnitude_order_ec))}; + if (!common_byte_magnitude_order_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_magnitude_order member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure byte_magnitude_order member TypeIdentifier inconsistent."); return; } MemberName name_byte_magnitude_order = "byte_magnitude_order"; @@ -6701,32 +1291,26 @@ void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( } CompleteStructType struct_type_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_type(struct_flags_Entity2LocatorTraffic, header_Entity2LocatorTraffic, member_seq_Entity2LocatorTraffic); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_ids_Entity2LocatorTraffic)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Entity2LocatorTraffic already registered in TypeObjectRegistry for a different type."); } - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( - TypeIdentifier& type_id) +void register_WriterReaderData_type_identifier( + TypeIdentifierPair& type_ids_WriterReaderData) { + + ReturnCode_t return_code_WriterReaderData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_WriterReaderData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_WriterReaderData) { - StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_WriterReaderData; - TypeIdentifierPair type_ids_WriterReaderData; QualifiedTypeName type_name_WriterReaderData = "eprosima::fastdds::statistics::WriterReaderData"; eprosima::fastcdr::optional type_ann_builtin_WriterReaderData; eprosima::fastcdr::optional ann_custom_WriterReaderData; @@ -6735,572 +1319,24 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( header_WriterReaderData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WriterReaderData); CompleteStructMemberSeq member_seq_WriterReaderData; { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_writer_guid; + ReturnCode_t return_code_writer_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_writer_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_writer_guid); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_writer_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_writer_guid); } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_writer_guid; MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier2()); - } - else + bool common_writer_guid_ec {false}; + CommonStructMember common_writer_guid {TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_writer_guid, common_writer_guid_ec))}; + if (!common_writer_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure writer_guid member TypeIdentifier inconsistent."); return; } MemberName name_writer_guid = "writer_guid"; @@ -7324,572 +1360,24 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_writer_guid); } { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_reader_guid; + ReturnCode_t return_code_reader_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_reader_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_reader_guid); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_reader_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_reader_guid); } - StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_reader_guid; MemberId member_id_reader_guid = 0x00000001; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier2()); - } - else + bool common_reader_guid_ec {false}; + CommonStructMember common_reader_guid {TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_reader_guid, common_reader_guid_ec))}; + if (!common_reader_guid_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure reader_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure reader_guid member TypeIdentifier inconsistent."); return; } MemberName name_reader_guid = "reader_guid"; @@ -7913,62 +1401,26 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_reader_guid); } { - return_code_WriterReaderData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_WriterReaderData); + "_float", type_ids_data); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -7980,32 +1432,26 @@ void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( } CompleteStructType struct_type_WriterReaderData = TypeObjectUtils::build_complete_struct_type(struct_flags_WriterReaderData, header_WriterReaderData, member_seq_WriterReaderData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_ids_WriterReaderData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::WriterReaderData already registered in TypeObjectRegistry for a different type."); } - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( - TypeIdentifier& type_id) +void register_Locator2LocatorData_type_identifier( + TypeIdentifierPair& type_ids_Locator2LocatorData) { + + ReturnCode_t return_code_Locator2LocatorData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Locator2LocatorData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Locator2LocatorData) { - StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Locator2LocatorData; - TypeIdentifierPair type_ids_Locator2LocatorData; QualifiedTypeName type_name_Locator2LocatorData = "eprosima::fastdds::statistics::Locator2LocatorData"; eprosima::fastcdr::optional type_ann_builtin_Locator2LocatorData; eprosima::fastcdr::optional ann_custom_Locator2LocatorData; @@ -8014,369 +1460,24 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( header_Locator2LocatorData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator2LocatorData); CompleteStructMemberSeq member_seq_Locator2LocatorData; { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_src_locator; + ReturnCode_t return_code_src_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_src_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_src_locator); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_src_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_src_locator); } - StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_src_locator; MemberId member_id_src_locator = 0x00000000; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else + bool common_src_locator_ec {false}; + CommonStructMember common_src_locator {TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_src_locator, common_src_locator_ec))}; + if (!common_src_locator_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure src_locator member TypeIdentifier inconsistent."); return; } MemberName name_src_locator = "src_locator"; @@ -8400,369 +1501,24 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_src_locator); } { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_dst_locator; + ReturnCode_t return_code_dst_locator {eprosima::fastdds::dds::RETCODE_OK}; + return_code_dst_locator = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); + "eprosima::fastdds::statistics::detail::Locator_s", type_ids_dst_locator); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_dst_locator) { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } + eprosima::fastdds::statistics::detail::register_Locator_s_type_identifier(type_ids_dst_locator); } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_dst_locator; MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else + bool common_dst_locator_ec {false}; + CommonStructMember common_dst_locator {TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_dst_locator, common_dst_locator_ec))}; + if (!common_dst_locator_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure dst_locator member TypeIdentifier inconsistent."); return; } MemberName name_dst_locator = "dst_locator"; @@ -8786,62 +1542,26 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_dst_locator); } { - return_code_Locator2LocatorData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_Locator2LocatorData); + "_float", type_ids_data); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -8853,32 +1573,26 @@ void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( } CompleteStructType struct_type_Locator2LocatorData = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator2LocatorData, header_Locator2LocatorData, member_seq_Locator2LocatorData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_ids_Locator2LocatorData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Locator2LocatorData already registered in TypeObjectRegistry for a different type."); } - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_EntityData_type_identifier( - TypeIdentifier& type_id) +void register_EntityData_type_identifier( + TypeIdentifierPair& type_ids_EntityData) { + + ReturnCode_t return_code_EntityData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EntityData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EntityData) { - StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EntityData; - TypeIdentifierPair type_ids_EntityData; QualifiedTypeName type_name_EntityData = "eprosima::fastdds::statistics::EntityData"; eprosima::fastcdr::optional type_ann_builtin_EntityData; eprosima::fastcdr::optional ann_custom_EntityData; @@ -8887,572 +1601,24 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( header_EntityData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityData); CompleteStructMemberSeq member_seq_EntityData; { - return_code_EntityData = + TypeIdentifierPair type_ids_guid; + ReturnCode_t return_code_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_guid); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityData = return_code_GUID_s; - type_ids_EntityData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_guid); } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_guid; MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_guid_ec {false}; + CommonStructMember common_guid {TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_guid, common_guid_ec))}; + if (!common_guid_ec) { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure guid member TypeIdentifier inconsistent."); return; } MemberName name_guid = "guid"; @@ -9476,62 +1642,26 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_guid); } { - return_code_EntityData = + TypeIdentifierPair type_ids_data; + ReturnCode_t return_code_data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_EntityData); + "_float", type_ids_data); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_data) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_data; MemberId member_id_data = 0x00000001; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier2()); - } - else + bool common_data_ec {false}; + CommonStructMember common_data {TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_data, common_data_ec))}; + if (!common_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure data member TypeIdentifier inconsistent."); return; } MemberName name_data = "data"; @@ -9543,32 +1673,26 @@ void register_eprosima_fastdds_statistics_EntityData_type_identifier( } CompleteStructType struct_type_EntityData = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityData, header_EntityData, member_seq_EntityData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_ids_EntityData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::EntityData already registered in TypeObjectRegistry for a different type."); } - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( - TypeIdentifier& type_id) +void register_PhysicalData_type_identifier( + TypeIdentifierPair& type_ids_PhysicalData) { + + ReturnCode_t return_code_PhysicalData {eprosima::fastdds::dds::RETCODE_OK}; + return_code_PhysicalData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_PhysicalData) { - StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_PhysicalData; - TypeIdentifierPair type_ids_PhysicalData; QualifiedTypeName type_name_PhysicalData = "eprosima::fastdds::statistics::PhysicalData"; eprosima::fastcdr::optional type_ann_builtin_PhysicalData; eprosima::fastcdr::optional ann_custom_PhysicalData; @@ -9577,572 +1701,24 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( header_PhysicalData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_PhysicalData); CompleteStructMemberSeq member_seq_PhysicalData; { - return_code_PhysicalData = + TypeIdentifierPair type_ids_participant_guid; + ReturnCode_t return_code_participant_guid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_participant_guid = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_PhysicalData); + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_participant_guid); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_participant_guid) { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_PhysicalData = return_code_GUID_s; - type_ids_PhysicalData = type_ids_GUID_s; - } + eprosima::fastdds::statistics::detail::register_GUID_s_type_identifier(type_ids_participant_guid); } - StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_participant_guid; MemberId member_id_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_participant_guid_ec {false}; + CommonStructMember common_participant_guid {TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_participant_guid, common_participant_guid_ec))}; + if (!common_participant_guid_ec) { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure participant_guid member TypeIdentifier inconsistent."); return; } MemberName name_participant_guid = "participant_guid"; @@ -10166,79 +1742,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_participant_guid); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_host; + ReturnCode_t return_code_host {eprosima::fastdds::dds::RETCODE_OK}; + return_code_host = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_host); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_host) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_host)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_host; MemberId member_id_host = 0x00000001; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_host_ec {false}; + CommonStructMember common_host {TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_host, common_host_ec))}; + if (!common_host_ec) { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure host member TypeIdentifier inconsistent."); return; } MemberName name_host = "host"; @@ -10249,79 +1780,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_host); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_user; + ReturnCode_t return_code_user {eprosima::fastdds::dds::RETCODE_OK}; + return_code_user = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_user); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_user) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_user)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_user; MemberId member_id_user = 0x00000002; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_user_ec {false}; + CommonStructMember common_user {TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_user, common_user_ec))}; + if (!common_user_ec) { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure user member TypeIdentifier inconsistent."); return; } MemberName name_user = "user"; @@ -10332,79 +1818,34 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_user); } { - return_code_PhysicalData = + TypeIdentifierPair type_ids_process; + ReturnCode_t return_code_process {eprosima::fastdds::dds::RETCODE_OK}; + return_code_process = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); + "anonymous_string_unbounded", type_ids_process); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_process) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_process)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_process; MemberId member_id_process = 0x00000003; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_process_ec {false}; + CommonStructMember common_process {TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_process, common_process_ec))}; + if (!common_process_ec) { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure process member TypeIdentifier inconsistent."); return; } MemberName name_process = "process"; @@ -10416,40 +1857,33 @@ void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( } CompleteStructType struct_type_PhysicalData = TypeObjectUtils::build_complete_struct_type(struct_flags_PhysicalData, header_PhysicalData, member_seq_PhysicalData); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_ids_PhysicalData)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::PhysicalData already registered in TypeObjectRegistry for a different type."); } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } namespace EventKind { } // namespace EventKind // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_eprosima_fastdds_statistics_Data_type_identifier( - TypeIdentifier& type_id) +void register_Data_type_identifier( + TypeIdentifierPair& type_ids_Data) { + ReturnCode_t return_code_Data {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Data = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::Data", type_ids_Data); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - ReturnCode_t return_code_Data; - TypeIdentifierPair type_ids_Data; - UnionTypeFlag union_flags_Data = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Data = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Data = "eprosima::fastdds::statistics::Data"; eprosima::fastcdr::optional type_ann_builtin_Data; eprosima::fastcdr::optional ann_custom_Data; CompleteTypeDetail detail_Data = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Data, ann_custom_Data, type_name_Data.to_string()); CompleteUnionHeader header_Data = TypeObjectUtils::build_complete_union_header(detail_Data); - UnionDiscriminatorFlag member_flags_Data = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Data = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Data = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -10459,7 +1893,6 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Data; @@ -10475,7 +1908,6 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Data discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Data.reset(); @@ -10488,1334 +1920,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::WriterReaderData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_WriterReaderData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_WriterReaderData; - TypeIdentifierPair type_ids_WriterReaderData; - QualifiedTypeName type_name_WriterReaderData = "eprosima::fastdds::statistics::WriterReaderData"; - eprosima::fastcdr::optional type_ann_builtin_WriterReaderData; - eprosima::fastcdr::optional ann_custom_WriterReaderData; - CompleteTypeDetail detail_WriterReaderData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_WriterReaderData, ann_custom_WriterReaderData, type_name_WriterReaderData.to_string()); - CompleteStructHeader header_WriterReaderData; - header_WriterReaderData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WriterReaderData); - CompleteStructMemberSeq member_seq_WriterReaderData; - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_WriterReaderData.reset(); - AppliedAnnotationSeq tmp_ann_custom_writer_guid; - eprosima::fastcdr::optional unit_writer_guid; - eprosima::fastcdr::optional min_writer_guid; - eprosima::fastcdr::optional max_writer_guid; - eprosima::fastcdr::optional hash_id_writer_guid; - if (unit_writer_guid.has_value() || min_writer_guid.has_value() || max_writer_guid.has_value() || hash_id_writer_guid.has_value()) - { - member_ann_builtin_writer_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_writer_guid, min_writer_guid, max_writer_guid, hash_id_writer_guid); - } - if (!tmp_ann_custom_writer_guid.empty()) - { - ann_custom_WriterReaderData = tmp_ann_custom_writer_guid; - } - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_WriterReaderData); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_writer_guid); - } - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_WriterReaderData = return_code_GUID_s; - type_ids_WriterReaderData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_reader_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_reader_guid; - MemberId member_id_reader_guid = 0x00000001; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_reader_guid = TypeObjectUtils::build_common_struct_member(member_id_reader_guid, member_flags_reader_guid, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure reader_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_reader_guid = "reader_guid"; - eprosima::fastcdr::optional member_ann_builtin_reader_guid; - ann_custom_WriterReaderData.reset(); - AppliedAnnotationSeq tmp_ann_custom_reader_guid; - eprosima::fastcdr::optional unit_reader_guid; - eprosima::fastcdr::optional min_reader_guid; - eprosima::fastcdr::optional max_reader_guid; - eprosima::fastcdr::optional hash_id_reader_guid; - if (unit_reader_guid.has_value() || min_reader_guid.has_value() || max_reader_guid.has_value() || hash_id_reader_guid.has_value()) - { - member_ann_builtin_reader_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_reader_guid, min_reader_guid, max_reader_guid, hash_id_reader_guid); - } - if (!tmp_ann_custom_reader_guid.empty()) - { - ann_custom_WriterReaderData = tmp_ann_custom_reader_guid; - } - CompleteMemberDetail detail_reader_guid = TypeObjectUtils::build_complete_member_detail(name_reader_guid, member_ann_builtin_reader_guid, ann_custom_WriterReaderData); - CompleteStructMember member_reader_guid = TypeObjectUtils::build_complete_struct_member(common_reader_guid, detail_reader_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_reader_guid); - } - { - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_WriterReaderData); - - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1()._d() || TK_NONE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WriterReaderData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WriterReaderData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_WriterReaderData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_WriterReaderData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_WriterReaderData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_WriterReaderData, member_data); - } - CompleteStructType struct_type_WriterReaderData = TypeObjectUtils::build_complete_struct_type(struct_flags_WriterReaderData, header_WriterReaderData, member_seq_WriterReaderData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WriterReaderData, type_name_WriterReaderData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData already registered in TypeObjectRegistry for a different type."); - } - return_code_WriterReaderData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::WriterReaderData", type_ids_WriterReaderData); - if (return_code_WriterReaderData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::WriterReaderData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_WriterReaderData; - type_ids_Data = type_ids_WriterReaderData; - } + eprosima::fastdds::statistics::register_WriterReaderData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_writer_reader_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_writer_reader_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_writer_reader_data; TypeObjectUtils::add_union_case_label(label_seq_writer_reader_data, static_cast(EventKind::HISTORY2HISTORY_LATENCY)); - CommonUnionMember common_writer_reader_data; MemberId member_id_writer_reader_data = 0x00000001; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_reader_data = TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, member_flags_writer_reader_data, type_ids_Data.type_identifier1(), - label_seq_writer_reader_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_reader_data = TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, member_flags_writer_reader_data, type_ids_Data.type_identifier2(), - label_seq_writer_reader_data); - } - else + bool common_writer_reader_data_ec {false}; + CommonUnionMember common_writer_reader_data {TypeObjectUtils::build_common_union_member(member_id_writer_reader_data, + member_flags_writer_reader_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_writer_reader_data_ec), label_seq_writer_reader_data)}; + if (!common_writer_reader_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union writer_reader_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union writer_reader_data member TypeIdentifier inconsistent."); return; } MemberName name_writer_reader_data = "writer_reader_data"; @@ -11830,928 +1950,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_Locator2LocatorData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator2LocatorData; - TypeIdentifierPair type_ids_Locator2LocatorData; - QualifiedTypeName type_name_Locator2LocatorData = "eprosima::fastdds::statistics::Locator2LocatorData"; - eprosima::fastcdr::optional type_ann_builtin_Locator2LocatorData; - eprosima::fastcdr::optional ann_custom_Locator2LocatorData; - CompleteTypeDetail detail_Locator2LocatorData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator2LocatorData, ann_custom_Locator2LocatorData, type_name_Locator2LocatorData.to_string()); - CompleteStructHeader header_Locator2LocatorData; - header_Locator2LocatorData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator2LocatorData); - CompleteStructMemberSeq member_seq_Locator2LocatorData; - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_src_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_src_locator; - MemberId member_id_src_locator = 0x00000000; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_locator = TypeObjectUtils::build_common_struct_member(member_id_src_locator, member_flags_src_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_src_locator = "src_locator"; - eprosima::fastcdr::optional member_ann_builtin_src_locator; - ann_custom_Locator2LocatorData.reset(); - AppliedAnnotationSeq tmp_ann_custom_src_locator; - eprosima::fastcdr::optional unit_src_locator; - eprosima::fastcdr::optional min_src_locator; - eprosima::fastcdr::optional max_src_locator; - eprosima::fastcdr::optional hash_id_src_locator; - if (unit_src_locator.has_value() || min_src_locator.has_value() || max_src_locator.has_value() || hash_id_src_locator.has_value()) - { - member_ann_builtin_src_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_src_locator, min_src_locator, max_src_locator, hash_id_src_locator); - } - if (!tmp_ann_custom_src_locator.empty()) - { - ann_custom_Locator2LocatorData = tmp_ann_custom_src_locator; - } - CompleteMemberDetail detail_src_locator = TypeObjectUtils::build_complete_member_detail(name_src_locator, member_ann_builtin_src_locator, ann_custom_Locator2LocatorData); - CompleteStructMember member_src_locator = TypeObjectUtils::build_complete_struct_member(common_src_locator, detail_src_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_src_locator); - } - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Locator2LocatorData = return_code_Locator_s; - type_ids_Locator2LocatorData = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_dst_locator; - MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_dst_locator = "dst_locator"; - eprosima::fastcdr::optional member_ann_builtin_dst_locator; - ann_custom_Locator2LocatorData.reset(); - AppliedAnnotationSeq tmp_ann_custom_dst_locator; - eprosima::fastcdr::optional unit_dst_locator; - eprosima::fastcdr::optional min_dst_locator; - eprosima::fastcdr::optional max_dst_locator; - eprosima::fastcdr::optional hash_id_dst_locator; - if (unit_dst_locator.has_value() || min_dst_locator.has_value() || max_dst_locator.has_value() || hash_id_dst_locator.has_value()) - { - member_ann_builtin_dst_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_dst_locator, min_dst_locator, max_dst_locator, hash_id_dst_locator); - } - if (!tmp_ann_custom_dst_locator.empty()) - { - ann_custom_Locator2LocatorData = tmp_ann_custom_dst_locator; - } - CompleteMemberDetail detail_dst_locator = TypeObjectUtils::build_complete_member_detail(name_dst_locator, member_ann_builtin_dst_locator, ann_custom_Locator2LocatorData); - CompleteStructMember member_dst_locator = TypeObjectUtils::build_complete_struct_member(common_dst_locator, detail_dst_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_dst_locator); - } - { - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_Locator2LocatorData); - - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000002; - if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1()._d() || TK_NONE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator2LocatorData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator2LocatorData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_Locator2LocatorData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_Locator2LocatorData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_Locator2LocatorData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator2LocatorData, member_data); - } - CompleteStructType struct_type_Locator2LocatorData = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator2LocatorData, header_Locator2LocatorData, member_seq_Locator2LocatorData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator2LocatorData, type_name_Locator2LocatorData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator2LocatorData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Locator2LocatorData", type_ids_Locator2LocatorData); - if (return_code_Locator2LocatorData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Locator2LocatorData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_Locator2LocatorData; - type_ids_Data = type_ids_Locator2LocatorData; - } + eprosima::fastdds::statistics::register_Locator2LocatorData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_locator2locator_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_locator2locator_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_locator2locator_data; TypeObjectUtils::add_union_case_label(label_seq_locator2locator_data, static_cast(EventKind::NETWORK_LATENCY)); - CommonUnionMember common_locator2locator_data; MemberId member_id_locator2locator_data = 0x00000002; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_locator2locator_data = TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, member_flags_locator2locator_data, type_ids_Data.type_identifier1(), - label_seq_locator2locator_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_locator2locator_data = TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, member_flags_locator2locator_data, type_ids_Data.type_identifier2(), - label_seq_locator2locator_data); - } - else + bool common_locator2locator_data_ec {false}; + CommonUnionMember common_locator2locator_data {TypeObjectUtils::build_common_union_member(member_id_locator2locator_data, + member_flags_locator2locator_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_locator2locator_data_ec), label_seq_locator2locator_data)}; + if (!common_locator2locator_data_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union locator2locator_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union locator2locator_data member TypeIdentifier inconsistent."); return; } MemberName name_locator2locator_data = "locator2locator_data"; @@ -12766,746 +1980,23 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::EntityData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_EntityData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityData; - TypeIdentifierPair type_ids_EntityData; - QualifiedTypeName type_name_EntityData = "eprosima::fastdds::statistics::EntityData"; - eprosima::fastcdr::optional type_ann_builtin_EntityData; - eprosima::fastcdr::optional ann_custom_EntityData; - CompleteTypeDetail detail_EntityData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityData, ann_custom_EntityData, type_name_EntityData.to_string()); - CompleteStructHeader header_EntityData; - header_EntityData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityData); - CompleteStructMemberSeq member_seq_EntityData; - { - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityData); - - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityData = return_code_GUID_s; - type_ids_EntityData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_EntityData.reset(); - AppliedAnnotationSeq tmp_ann_custom_guid; - eprosima::fastcdr::optional unit_guid; - eprosima::fastcdr::optional min_guid; - eprosima::fastcdr::optional max_guid; - eprosima::fastcdr::optional hash_id_guid; - if (unit_guid.has_value() || min_guid.has_value() || max_guid.has_value() || hash_id_guid.has_value()) - { - member_ann_builtin_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_guid, min_guid, max_guid, hash_id_guid); - } - if (!tmp_ann_custom_guid.empty()) - { - ann_custom_EntityData = tmp_ann_custom_guid; - } - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_EntityData); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_guid); - } - { - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_EntityData); - - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "data Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_data = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_data; - MemberId member_id_data = 0x00000001; - if (EK_COMPLETE == type_ids_EntityData.type_identifier1()._d() || TK_NONE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityData.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_data = TypeObjectUtils::build_common_struct_member(member_id_data, member_flags_data, type_ids_EntityData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_data = "data"; - eprosima::fastcdr::optional member_ann_builtin_data; - ann_custom_EntityData.reset(); - CompleteMemberDetail detail_data = TypeObjectUtils::build_complete_member_detail(name_data, member_ann_builtin_data, ann_custom_EntityData); - CompleteStructMember member_data = TypeObjectUtils::build_complete_struct_member(common_data, detail_data); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityData, member_data); - } - CompleteStructType struct_type_EntityData = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityData, header_EntityData, member_seq_EntityData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityData, type_name_EntityData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityData", type_ids_EntityData); - if (return_code_EntityData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_EntityData; - type_ids_Data = type_ids_EntityData; - } + eprosima::fastdds::statistics::register_EntityData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_data; TypeObjectUtils::add_union_case_label(label_seq_entity_data, static_cast(EventKind::PUBLICATION_THROUGHPUT)); TypeObjectUtils::add_union_case_label(label_seq_entity_data, static_cast(EventKind::SUBSCRIPTION_THROUGHPUT)); - CommonUnionMember common_entity_data; MemberId member_id_entity_data = 0x00000003; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity_data_ec {false}; + CommonUnionMember common_entity_data {TypeObjectUtils::build_common_union_member(member_id_entity_data, + member_flags_entity_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity_data_ec), label_seq_entity_data)}; + if (!common_entity_data_ec) { - common_entity_data = TypeObjectUtils::build_common_union_member(member_id_entity_data, member_flags_entity_data, type_ids_Data.type_identifier1(), - label_seq_entity_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_data = TypeObjectUtils::build_common_union_member(member_id_entity_data, member_flags_entity_data, type_ids_Data.type_identifier2(), - label_seq_entity_data); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_data member TypeIdentifier inconsistent."); return; } MemberName name_entity_data = "entity_data"; @@ -13520,1264 +2011,23 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_Entity2LocatorTraffic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Entity2LocatorTraffic; - TypeIdentifierPair type_ids_Entity2LocatorTraffic; - QualifiedTypeName type_name_Entity2LocatorTraffic = "eprosima::fastdds::statistics::Entity2LocatorTraffic"; - eprosima::fastcdr::optional type_ann_builtin_Entity2LocatorTraffic; - eprosima::fastcdr::optional ann_custom_Entity2LocatorTraffic; - CompleteTypeDetail detail_Entity2LocatorTraffic = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Entity2LocatorTraffic, ann_custom_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string()); - CompleteStructHeader header_Entity2LocatorTraffic; - header_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Entity2LocatorTraffic); - CompleteStructMemberSeq member_seq_Entity2LocatorTraffic; - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_GUID_s; - type_ids_Entity2LocatorTraffic = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_src_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_src_guid; - MemberId member_id_src_guid = 0x00000000; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_src_guid = TypeObjectUtils::build_common_struct_member(member_id_src_guid, member_flags_src_guid, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure src_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_src_guid = "src_guid"; - eprosima::fastcdr::optional member_ann_builtin_src_guid; - ann_custom_Entity2LocatorTraffic.reset(); - AppliedAnnotationSeq tmp_ann_custom_src_guid; - eprosima::fastcdr::optional unit_src_guid; - eprosima::fastcdr::optional min_src_guid; - eprosima::fastcdr::optional max_src_guid; - eprosima::fastcdr::optional hash_id_src_guid; - if (unit_src_guid.has_value() || min_src_guid.has_value() || max_src_guid.has_value() || hash_id_src_guid.has_value()) - { - member_ann_builtin_src_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_src_guid, min_src_guid, max_src_guid, hash_id_src_guid); - } - if (!tmp_ann_custom_src_guid.empty()) - { - ann_custom_Entity2LocatorTraffic = tmp_ann_custom_src_guid; - } - CompleteMemberDetail detail_src_guid = TypeObjectUtils::build_complete_member_detail(name_src_guid, member_ann_builtin_src_guid, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_src_guid = TypeObjectUtils::build_complete_struct_member(common_src_guid, detail_src_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_src_guid); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_Locator_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_Locator_s; - TypeIdentifierPair type_ids_Locator_s; - QualifiedTypeName type_name_Locator_s = "eprosima::fastdds::statistics::detail::Locator_s"; - eprosima::fastcdr::optional type_ann_builtin_Locator_s; - eprosima::fastcdr::optional ann_custom_Locator_s; - CompleteTypeDetail detail_Locator_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Locator_s, ann_custom_Locator_s, type_name_Locator_s.to_string()); - CompleteStructHeader header_Locator_s; - header_Locator_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Locator_s); - CompleteStructMemberSeq member_seq_Locator_s; - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "kind Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_kind; - MemberId member_id_kind = 0x00000000; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_kind = TypeObjectUtils::build_common_struct_member(member_id_kind, member_flags_kind, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure kind member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_kind = "kind"; - eprosima::fastcdr::optional member_ann_builtin_kind; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_kind = TypeObjectUtils::build_complete_member_detail(name_kind, member_ann_builtin_kind, ann_custom_Locator_s); - CompleteStructMember member_kind = TypeObjectUtils::build_complete_struct_member(common_kind, detail_kind); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_kind); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "port Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_port = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_port; - MemberId member_id_port = 0x00000001; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_port = TypeObjectUtils::build_common_struct_member(member_id_port, member_flags_port, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure port member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_port = "port"; - eprosima::fastcdr::optional member_ann_builtin_port; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_port = TypeObjectUtils::build_complete_member_detail(name_port, member_ann_builtin_port, ann_custom_Locator_s); - CompleteStructMember member_port = TypeObjectUtils::build_complete_struct_member(common_port, detail_port); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_port); - } - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Locator_s); - - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_16 {nullptr}; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_16 = new TypeIdentifier(type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_16 = EK_COMPLETE; - if (TK_NONE == type_ids_Locator_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_16 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_16 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_16 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_16, element_flags_anonymous_array_uint8_t_16); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_16, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_16)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_16")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_16", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_16: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_address = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_address; - MemberId member_id_address = 0x00000002; - if (EK_COMPLETE == type_ids_Locator_s.type_identifier1()._d() || TK_NONE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Locator_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Locator_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_Locator_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Locator_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Locator_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_address = TypeObjectUtils::build_common_struct_member(member_id_address, member_flags_address, type_ids_Locator_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure address member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_address = "address"; - eprosima::fastcdr::optional member_ann_builtin_address; - ann_custom_Locator_s.reset(); - CompleteMemberDetail detail_address = TypeObjectUtils::build_complete_member_detail(name_address, member_ann_builtin_address, ann_custom_Locator_s); - CompleteStructMember member_address = TypeObjectUtils::build_complete_struct_member(common_address, detail_address); - TypeObjectUtils::add_complete_struct_member(member_seq_Locator_s, member_address); - } - CompleteStructType struct_type_Locator_s = TypeObjectUtils::build_complete_struct_type(struct_flags_Locator_s, header_Locator_s, member_seq_Locator_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Locator_s, type_name_Locator_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s already registered in TypeObjectRegistry for a different type."); - } - return_code_Locator_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::Locator_s", type_ids_Locator_s); - if (return_code_Locator_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::Locator_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Entity2LocatorTraffic = return_code_Locator_s; - type_ids_Entity2LocatorTraffic = type_ids_Locator_s; - } - } - StructMemberFlag member_flags_dst_locator = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_dst_locator; - MemberId member_id_dst_locator = 0x00000001; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_dst_locator = TypeObjectUtils::build_common_struct_member(member_id_dst_locator, member_flags_dst_locator, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure dst_locator member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_dst_locator = "dst_locator"; - eprosima::fastcdr::optional member_ann_builtin_dst_locator; - ann_custom_Entity2LocatorTraffic.reset(); - AppliedAnnotationSeq tmp_ann_custom_dst_locator; - eprosima::fastcdr::optional unit_dst_locator; - eprosima::fastcdr::optional min_dst_locator; - eprosima::fastcdr::optional max_dst_locator; - eprosima::fastcdr::optional hash_id_dst_locator; - if (unit_dst_locator.has_value() || min_dst_locator.has_value() || max_dst_locator.has_value() || hash_id_dst_locator.has_value()) - { - member_ann_builtin_dst_locator = TypeObjectUtils::build_applied_builtin_member_annotations(unit_dst_locator, min_dst_locator, max_dst_locator, hash_id_dst_locator); - } - if (!tmp_ann_custom_dst_locator.empty()) - { - ann_custom_Entity2LocatorTraffic = tmp_ann_custom_dst_locator; - } - CompleteMemberDetail detail_dst_locator = TypeObjectUtils::build_complete_member_detail(name_dst_locator, member_ann_builtin_dst_locator, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_dst_locator = TypeObjectUtils::build_complete_struct_member(common_dst_locator, detail_dst_locator); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_dst_locator); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "packet_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_packet_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_packet_count; - MemberId member_id_packet_count = 0x00000002; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_packet_count = TypeObjectUtils::build_common_struct_member(member_id_packet_count, member_flags_packet_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure packet_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_packet_count = "packet_count"; - eprosima::fastcdr::optional member_ann_builtin_packet_count; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_packet_count = TypeObjectUtils::build_complete_member_detail(name_packet_count, member_ann_builtin_packet_count, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_packet_count = TypeObjectUtils::build_complete_struct_member(common_packet_count, detail_packet_count); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_packet_count); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "byte_count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_byte_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_byte_count; - MemberId member_id_byte_count = 0x00000003; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_count = TypeObjectUtils::build_common_struct_member(member_id_byte_count, member_flags_byte_count, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_byte_count = "byte_count"; - eprosima::fastcdr::optional member_ann_builtin_byte_count; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_byte_count = TypeObjectUtils::build_complete_member_detail(name_byte_count, member_ann_builtin_byte_count, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_byte_count = TypeObjectUtils::build_complete_struct_member(common_byte_count, detail_byte_count); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_count); - } - { - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Entity2LocatorTraffic); - - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "byte_magnitude_order Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_byte_magnitude_order = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_byte_magnitude_order; - MemberId member_id_byte_magnitude_order = 0x00000004; - if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() || TK_NONE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Entity2LocatorTraffic.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Entity2LocatorTraffic.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_byte_magnitude_order = TypeObjectUtils::build_common_struct_member(member_id_byte_magnitude_order, member_flags_byte_magnitude_order, type_ids_Entity2LocatorTraffic.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure byte_magnitude_order member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_byte_magnitude_order = "byte_magnitude_order"; - eprosima::fastcdr::optional member_ann_builtin_byte_magnitude_order; - ann_custom_Entity2LocatorTraffic.reset(); - CompleteMemberDetail detail_byte_magnitude_order = TypeObjectUtils::build_complete_member_detail(name_byte_magnitude_order, member_ann_builtin_byte_magnitude_order, ann_custom_Entity2LocatorTraffic); - CompleteStructMember member_byte_magnitude_order = TypeObjectUtils::build_complete_struct_member(common_byte_magnitude_order, detail_byte_magnitude_order); - TypeObjectUtils::add_complete_struct_member(member_seq_Entity2LocatorTraffic, member_byte_magnitude_order); - } - CompleteStructType struct_type_Entity2LocatorTraffic = TypeObjectUtils::build_complete_struct_type(struct_flags_Entity2LocatorTraffic, header_Entity2LocatorTraffic, member_seq_Entity2LocatorTraffic); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Entity2LocatorTraffic, type_name_Entity2LocatorTraffic.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic already registered in TypeObjectRegistry for a different type."); - } - return_code_Entity2LocatorTraffic = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Entity2LocatorTraffic", type_ids_Entity2LocatorTraffic); - if (return_code_Entity2LocatorTraffic != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Entity2LocatorTraffic: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_Entity2LocatorTraffic; - type_ids_Data = type_ids_Entity2LocatorTraffic; - } + eprosima::fastdds::statistics::register_Entity2LocatorTraffic_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity2locator_traffic = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity2locator_traffic = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity2locator_traffic; TypeObjectUtils::add_union_case_label(label_seq_entity2locator_traffic, static_cast(EventKind::RTPS_SENT)); TypeObjectUtils::add_union_case_label(label_seq_entity2locator_traffic, static_cast(EventKind::RTPS_LOST)); - CommonUnionMember common_entity2locator_traffic; MemberId member_id_entity2locator_traffic = 0x00000004; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity2locator_traffic_ec {false}; + CommonUnionMember common_entity2locator_traffic {TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, + member_flags_entity2locator_traffic, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity2locator_traffic_ec), label_seq_entity2locator_traffic)}; + if (!common_entity2locator_traffic_ec) { - common_entity2locator_traffic = TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, member_flags_entity2locator_traffic, type_ids_Data.type_identifier1(), - label_seq_entity2locator_traffic); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity2locator_traffic = TypeObjectUtils::build_common_union_member(member_id_entity2locator_traffic, member_flags_entity2locator_traffic, type_ids_Data.type_identifier2(), - label_seq_entity2locator_traffic); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity2locator_traffic member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity2locator_traffic member TypeIdentifier inconsistent."); return; } MemberName name_entity2locator_traffic = "entity2locator_traffic"; @@ -14792,697 +2042,11 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::EntityCount", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_EntityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityCount; - TypeIdentifierPair type_ids_EntityCount; - QualifiedTypeName type_name_EntityCount = "eprosima::fastdds::statistics::EntityCount"; - eprosima::fastcdr::optional type_ann_builtin_EntityCount; - eprosima::fastcdr::optional ann_custom_EntityCount; - CompleteTypeDetail detail_EntityCount = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityCount, ann_custom_EntityCount, type_name_EntityCount.to_string()); - CompleteStructHeader header_EntityCount; - header_EntityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityCount); - CompleteStructMemberSeq member_seq_EntityCount; - { - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_EntityCount); - - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_EntityCount = return_code_GUID_s; - type_ids_EntityCount = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_guid; - MemberId member_id_guid = 0x00000000; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guid = TypeObjectUtils::build_common_struct_member(member_id_guid, member_flags_guid, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guid = "guid"; - eprosima::fastcdr::optional member_ann_builtin_guid; - ann_custom_EntityCount.reset(); - AppliedAnnotationSeq tmp_ann_custom_guid; - eprosima::fastcdr::optional unit_guid; - eprosima::fastcdr::optional min_guid; - eprosima::fastcdr::optional max_guid; - eprosima::fastcdr::optional hash_id_guid; - if (unit_guid.has_value() || min_guid.has_value() || max_guid.has_value() || hash_id_guid.has_value()) - { - member_ann_builtin_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_guid, min_guid, max_guid, hash_id_guid); - } - if (!tmp_ann_custom_guid.empty()) - { - ann_custom_EntityCount = tmp_ann_custom_guid; - } - CompleteMemberDetail detail_guid = TypeObjectUtils::build_complete_member_detail(name_guid, member_ann_builtin_guid, ann_custom_EntityCount); - CompleteStructMember member_guid = TypeObjectUtils::build_complete_struct_member(common_guid, detail_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_guid); - } - { - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_EntityCount); - - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_EntityCount.type_identifier1()._d() || TK_NONE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_EntityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_EntityCount.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_EntityCount); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityCount, member_count); - } - CompleteStructType struct_type_EntityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityCount, header_EntityCount, member_seq_EntityCount); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityCount, type_name_EntityCount.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::EntityCount", type_ids_EntityCount); - if (return_code_EntityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::EntityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_EntityCount; - type_ids_Data = type_ids_EntityCount; - } + eprosima::fastdds::statistics::register_EntityCount_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_entity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_entity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_entity_count; TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::RESENT_DATAS)); @@ -15493,51 +2057,14 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::DATA_COUNT)); TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::PDP_PACKETS)); TypeObjectUtils::add_union_case_label(label_seq_entity_count, static_cast(EventKind::EDP_PACKETS)); - CommonUnionMember common_entity_count; MemberId member_id_entity_count = 0x00000005; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_entity_count_ec {false}; + CommonUnionMember common_entity_count {TypeObjectUtils::build_common_union_member(member_id_entity_count, + member_flags_entity_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_entity_count_ec), label_seq_entity_count)}; + if (!common_entity_count_ec) { - common_entity_count = TypeObjectUtils::build_common_union_member(member_id_entity_count, member_flags_entity_count, type_ids_Data.type_identifier1(), - label_seq_entity_count); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entity_count = TypeObjectUtils::build_common_union_member(member_id_entity_count, member_flags_entity_count, type_ids_Data.type_identifier2(), - label_seq_entity_count); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union entity_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union entity_count member TypeIdentifier inconsistent."); return; } MemberName name_entity_count = "entity_count"; @@ -15552,1583 +2079,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::DiscoveryTime", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_DiscoveryTime = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DiscoveryTime; - TypeIdentifierPair type_ids_DiscoveryTime; - QualifiedTypeName type_name_DiscoveryTime = "eprosima::fastdds::statistics::DiscoveryTime"; - eprosima::fastcdr::optional type_ann_builtin_DiscoveryTime; - eprosima::fastcdr::optional ann_custom_DiscoveryTime; - CompleteTypeDetail detail_DiscoveryTime = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DiscoveryTime, ann_custom_DiscoveryTime, type_name_DiscoveryTime.to_string()); - CompleteStructHeader header_DiscoveryTime; - header_DiscoveryTime = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DiscoveryTime); - CompleteStructMemberSeq member_seq_DiscoveryTime; - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_local_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_local_participant_guid; - MemberId member_id_local_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_local_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_local_participant_guid, member_flags_local_participant_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure local_participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_local_participant_guid = "local_participant_guid"; - eprosima::fastcdr::optional member_ann_builtin_local_participant_guid; - ann_custom_DiscoveryTime.reset(); - AppliedAnnotationSeq tmp_ann_custom_local_participant_guid; - eprosima::fastcdr::optional unit_local_participant_guid; - eprosima::fastcdr::optional min_local_participant_guid; - eprosima::fastcdr::optional max_local_participant_guid; - eprosima::fastcdr::optional hash_id_local_participant_guid; - if (unit_local_participant_guid.has_value() || min_local_participant_guid.has_value() || max_local_participant_guid.has_value() || hash_id_local_participant_guid.has_value()) - { - member_ann_builtin_local_participant_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_local_participant_guid, min_local_participant_guid, max_local_participant_guid, hash_id_local_participant_guid); - } - if (!tmp_ann_custom_local_participant_guid.empty()) - { - ann_custom_DiscoveryTime = tmp_ann_custom_local_participant_guid; - } - CompleteMemberDetail detail_local_participant_guid = TypeObjectUtils::build_complete_member_detail(name_local_participant_guid, member_ann_builtin_local_participant_guid, ann_custom_DiscoveryTime); - CompleteStructMember member_local_participant_guid = TypeObjectUtils::build_complete_struct_member(common_local_participant_guid, detail_local_participant_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_local_participant_guid); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DiscoveryTime = return_code_GUID_s; - type_ids_DiscoveryTime = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_remote_entity_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_remote_entity_guid; - MemberId member_id_remote_entity_guid = 0x00000001; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_remote_entity_guid = TypeObjectUtils::build_common_struct_member(member_id_remote_entity_guid, member_flags_remote_entity_guid, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure remote_entity_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_remote_entity_guid = "remote_entity_guid"; - eprosima::fastcdr::optional member_ann_builtin_remote_entity_guid; - ann_custom_DiscoveryTime.reset(); - AppliedAnnotationSeq tmp_ann_custom_remote_entity_guid; - eprosima::fastcdr::optional unit_remote_entity_guid; - eprosima::fastcdr::optional min_remote_entity_guid; - eprosima::fastcdr::optional max_remote_entity_guid; - eprosima::fastcdr::optional hash_id_remote_entity_guid; - if (unit_remote_entity_guid.has_value() || min_remote_entity_guid.has_value() || max_remote_entity_guid.has_value() || hash_id_remote_entity_guid.has_value()) - { - member_ann_builtin_remote_entity_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_remote_entity_guid, min_remote_entity_guid, max_remote_entity_guid, hash_id_remote_entity_guid); - } - if (!tmp_ann_custom_remote_entity_guid.empty()) - { - ann_custom_DiscoveryTime = tmp_ann_custom_remote_entity_guid; - } - CompleteMemberDetail detail_remote_entity_guid = TypeObjectUtils::build_complete_member_detail(name_remote_entity_guid, member_ann_builtin_remote_entity_guid, ann_custom_DiscoveryTime); - CompleteStructMember member_remote_entity_guid = TypeObjectUtils::build_complete_struct_member(common_remote_entity_guid, detail_remote_entity_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_remote_entity_guid); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "time Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_time = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_time; - MemberId member_id_time = 0x00000002; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_time = TypeObjectUtils::build_common_struct_member(member_id_time, member_flags_time, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_time = "time"; - eprosima::fastcdr::optional member_ann_builtin_time; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_time = TypeObjectUtils::build_complete_member_detail(name_time, member_ann_builtin_time, ann_custom_DiscoveryTime); - CompleteStructMember member_time = TypeObjectUtils::build_complete_struct_member(common_time, detail_time); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_time); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_host; - MemberId member_id_host = 0x00000003; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_host = "host"; - eprosima::fastcdr::optional member_ann_builtin_host; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_host = TypeObjectUtils::build_complete_member_detail(name_host, member_ann_builtin_host, ann_custom_DiscoveryTime); - CompleteStructMember member_host = TypeObjectUtils::build_complete_struct_member(common_host, detail_host); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_host); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_user; - MemberId member_id_user = 0x00000004; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_user = "user"; - eprosima::fastcdr::optional member_ann_builtin_user; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_user = TypeObjectUtils::build_complete_member_detail(name_user, member_ann_builtin_user, ann_custom_DiscoveryTime); - CompleteStructMember member_user = TypeObjectUtils::build_complete_struct_member(common_user, detail_user); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_user); - } - { - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_process; - MemberId member_id_process = 0x00000005; - if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1()._d() || TK_NONE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DiscoveryTime.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DiscoveryTime.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_DiscoveryTime.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_process = "process"; - eprosima::fastcdr::optional member_ann_builtin_process; - ann_custom_DiscoveryTime.reset(); - CompleteMemberDetail detail_process = TypeObjectUtils::build_complete_member_detail(name_process, member_ann_builtin_process, ann_custom_DiscoveryTime); - CompleteStructMember member_process = TypeObjectUtils::build_complete_struct_member(common_process, detail_process); - TypeObjectUtils::add_complete_struct_member(member_seq_DiscoveryTime, member_process); - } - CompleteStructType struct_type_DiscoveryTime = TypeObjectUtils::build_complete_struct_type(struct_flags_DiscoveryTime, header_DiscoveryTime, member_seq_DiscoveryTime); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DiscoveryTime, type_name_DiscoveryTime.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime already registered in TypeObjectRegistry for a different type."); - } - return_code_DiscoveryTime = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::DiscoveryTime", type_ids_DiscoveryTime); - if (return_code_DiscoveryTime != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::DiscoveryTime: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_DiscoveryTime; - type_ids_Data = type_ids_DiscoveryTime; - } + eprosima::fastdds::statistics::register_DiscoveryTime_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_discovery_time = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_discovery_time = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_discovery_time; TypeObjectUtils::add_union_case_label(label_seq_discovery_time, static_cast(EventKind::DISCOVERED_ENTITY)); - CommonUnionMember common_discovery_time; MemberId member_id_discovery_time = 0x00000006; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_discovery_time = TypeObjectUtils::build_common_union_member(member_id_discovery_time, member_flags_discovery_time, type_ids_Data.type_identifier1(), - label_seq_discovery_time); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_discovery_time = TypeObjectUtils::build_common_union_member(member_id_discovery_time, member_flags_discovery_time, type_ids_Data.type_identifier2(), - label_seq_discovery_time); - } - else + bool common_discovery_time_ec {false}; + CommonUnionMember common_discovery_time {TypeObjectUtils::build_common_union_member(member_id_discovery_time, + member_flags_discovery_time, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_discovery_time_ec), label_seq_discovery_time)}; + if (!common_discovery_time_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discovery_time member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discovery_time member TypeIdentifier inconsistent."); return; } MemberName name_discovery_time = "discovery_time"; @@ -17143,1065 +2109,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_SampleIdentityCount = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentityCount; - TypeIdentifierPair type_ids_SampleIdentityCount; - QualifiedTypeName type_name_SampleIdentityCount = "eprosima::fastdds::statistics::SampleIdentityCount"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentityCount; - eprosima::fastcdr::optional ann_custom_SampleIdentityCount; - CompleteTypeDetail detail_SampleIdentityCount = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentityCount, ann_custom_SampleIdentityCount, type_name_SampleIdentityCount.to_string()); - CompleteStructHeader header_SampleIdentityCount; - header_SampleIdentityCount = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentityCount); - CompleteStructMemberSeq member_seq_SampleIdentityCount; - { - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentityCount); - - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SampleIdentity_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SampleIdentity_s; - TypeIdentifierPair type_ids_SampleIdentity_s; - QualifiedTypeName type_name_SampleIdentity_s = "eprosima::fastdds::statistics::detail::SampleIdentity_s"; - eprosima::fastcdr::optional type_ann_builtin_SampleIdentity_s; - eprosima::fastcdr::optional ann_custom_SampleIdentity_s; - CompleteTypeDetail detail_SampleIdentity_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SampleIdentity_s, ann_custom_SampleIdentity_s, type_name_SampleIdentity_s.to_string()); - CompleteStructHeader header_SampleIdentity_s; - header_SampleIdentity_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SampleIdentity_s); - CompleteStructMemberSeq member_seq_SampleIdentity_s; - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_GUID_s; - type_ids_SampleIdentity_s = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_writer_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_writer_guid; - MemberId member_id_writer_guid = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_writer_guid = TypeObjectUtils::build_common_struct_member(member_id_writer_guid, member_flags_writer_guid, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure writer_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_writer_guid = "writer_guid"; - eprosima::fastcdr::optional member_ann_builtin_writer_guid; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_writer_guid = TypeObjectUtils::build_complete_member_detail(name_writer_guid, member_ann_builtin_writer_guid, ann_custom_SampleIdentity_s); - CompleteStructMember member_writer_guid = TypeObjectUtils::build_complete_struct_member(common_writer_guid, detail_writer_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_writer_guid); - } - { - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SampleIdentity_s); - - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_SequenceNumber_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_SequenceNumber_s; - TypeIdentifierPair type_ids_SequenceNumber_s; - QualifiedTypeName type_name_SequenceNumber_s = "eprosima::fastdds::statistics::detail::SequenceNumber_s"; - eprosima::fastcdr::optional type_ann_builtin_SequenceNumber_s; - eprosima::fastcdr::optional ann_custom_SequenceNumber_s; - CompleteTypeDetail detail_SequenceNumber_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_SequenceNumber_s, ann_custom_SequenceNumber_s, type_name_SequenceNumber_s.to_string()); - CompleteStructHeader header_SequenceNumber_s; - header_SequenceNumber_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceNumber_s); - CompleteStructMemberSeq member_seq_SequenceNumber_s; - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "high Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_high = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_high; - MemberId member_id_high = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_high = TypeObjectUtils::build_common_struct_member(member_id_high, member_flags_high, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure high member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_high = "high"; - eprosima::fastcdr::optional member_ann_builtin_high; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_high = TypeObjectUtils::build_complete_member_detail(name_high, member_ann_builtin_high, ann_custom_SequenceNumber_s); - CompleteStructMember member_high = TypeObjectUtils::build_complete_struct_member(common_high, detail_high); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_high); - } - { - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceNumber_s); - - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "low Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_low = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_low; - MemberId member_id_low = 0x00000001; - if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1()._d() || TK_NONE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceNumber_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceNumber_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_low = TypeObjectUtils::build_common_struct_member(member_id_low, member_flags_low, type_ids_SequenceNumber_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure low member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_low = "low"; - eprosima::fastcdr::optional member_ann_builtin_low; - ann_custom_SequenceNumber_s.reset(); - CompleteMemberDetail detail_low = TypeObjectUtils::build_complete_member_detail(name_low, member_ann_builtin_low, ann_custom_SequenceNumber_s); - CompleteStructMember member_low = TypeObjectUtils::build_complete_struct_member(common_low, detail_low); - TypeObjectUtils::add_complete_struct_member(member_seq_SequenceNumber_s, member_low); - } - CompleteStructType struct_type_SequenceNumber_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceNumber_s, header_SequenceNumber_s, member_seq_SequenceNumber_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceNumber_s, type_name_SequenceNumber_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceNumber_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SequenceNumber_s", type_ids_SequenceNumber_s); - if (return_code_SequenceNumber_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SequenceNumber_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentity_s = return_code_SequenceNumber_s; - type_ids_SampleIdentity_s = type_ids_SequenceNumber_s; - } - } - StructMemberFlag member_flags_sequence_number = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_sequence_number; - MemberId member_id_sequence_number = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentity_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentity_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sequence_number = TypeObjectUtils::build_common_struct_member(member_id_sequence_number, member_flags_sequence_number, type_ids_SampleIdentity_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sequence_number member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sequence_number = "sequence_number"; - eprosima::fastcdr::optional member_ann_builtin_sequence_number; - ann_custom_SampleIdentity_s.reset(); - CompleteMemberDetail detail_sequence_number = TypeObjectUtils::build_complete_member_detail(name_sequence_number, member_ann_builtin_sequence_number, ann_custom_SampleIdentity_s); - CompleteStructMember member_sequence_number = TypeObjectUtils::build_complete_struct_member(common_sequence_number, detail_sequence_number); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentity_s, member_sequence_number); - } - CompleteStructType struct_type_SampleIdentity_s = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentity_s, header_SampleIdentity_s, member_seq_SampleIdentity_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentity_s, type_name_SampleIdentity_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentity_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::SampleIdentity_s", type_ids_SampleIdentity_s); - if (return_code_SampleIdentity_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::SampleIdentity_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SampleIdentityCount = return_code_SampleIdentity_s; - type_ids_SampleIdentityCount = type_ids_SampleIdentity_s; - } - } - StructMemberFlag member_flags_sample_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_sample_id; - MemberId member_id_sample_id = 0x00000000; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_id = TypeObjectUtils::build_common_struct_member(member_id_sample_id, member_flags_sample_id, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sample_id member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_sample_id = "sample_id"; - eprosima::fastcdr::optional member_ann_builtin_sample_id; - ann_custom_SampleIdentityCount.reset(); - AppliedAnnotationSeq tmp_ann_custom_sample_id; - eprosima::fastcdr::optional unit_sample_id; - eprosima::fastcdr::optional min_sample_id; - eprosima::fastcdr::optional max_sample_id; - eprosima::fastcdr::optional hash_id_sample_id; - if (unit_sample_id.has_value() || min_sample_id.has_value() || max_sample_id.has_value() || hash_id_sample_id.has_value()) - { - member_ann_builtin_sample_id = TypeObjectUtils::build_applied_builtin_member_annotations(unit_sample_id, min_sample_id, max_sample_id, hash_id_sample_id); - } - if (!tmp_ann_custom_sample_id.empty()) - { - ann_custom_SampleIdentityCount = tmp_ann_custom_sample_id; - } - CompleteMemberDetail detail_sample_id = TypeObjectUtils::build_complete_member_detail(name_sample_id, member_ann_builtin_sample_id, ann_custom_SampleIdentityCount); - CompleteStructMember member_sample_id = TypeObjectUtils::build_complete_struct_member(common_sample_id, detail_sample_id); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_sample_id); - } - { - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_SampleIdentityCount); - - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "count Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_count = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_count; - MemberId member_id_count = 0x00000001; - if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1()._d() || TK_NONE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SampleIdentityCount.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SampleIdentityCount.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_count = TypeObjectUtils::build_common_struct_member(member_id_count, member_flags_count, type_ids_SampleIdentityCount.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_count = "count"; - eprosima::fastcdr::optional member_ann_builtin_count; - ann_custom_SampleIdentityCount.reset(); - CompleteMemberDetail detail_count = TypeObjectUtils::build_complete_member_detail(name_count, member_ann_builtin_count, ann_custom_SampleIdentityCount); - CompleteStructMember member_count = TypeObjectUtils::build_complete_struct_member(common_count, detail_count); - TypeObjectUtils::add_complete_struct_member(member_seq_SampleIdentityCount, member_count); - } - CompleteStructType struct_type_SampleIdentityCount = TypeObjectUtils::build_complete_struct_type(struct_flags_SampleIdentityCount, header_SampleIdentityCount, member_seq_SampleIdentityCount); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SampleIdentityCount, type_name_SampleIdentityCount.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount already registered in TypeObjectRegistry for a different type."); - } - return_code_SampleIdentityCount = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::SampleIdentityCount", type_ids_SampleIdentityCount); - if (return_code_SampleIdentityCount != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::SampleIdentityCount: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_SampleIdentityCount; - type_ids_Data = type_ids_SampleIdentityCount; - } + eprosima::fastdds::statistics::register_SampleIdentityCount_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_sample_identity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_sample_identity_count = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_sample_identity_count; TypeObjectUtils::add_union_case_label(label_seq_sample_identity_count, static_cast(EventKind::SAMPLE_DATAS)); - CommonUnionMember common_sample_identity_count; MemberId member_id_sample_identity_count = 0x00000007; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sample_identity_count = TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, member_flags_sample_identity_count, type_ids_Data.type_identifier1(), - label_seq_sample_identity_count); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sample_identity_count = TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, member_flags_sample_identity_count, type_ids_Data.type_identifier2(), - label_seq_sample_identity_count); - } - else + bool common_sample_identity_count_ec {false}; + CommonUnionMember common_sample_identity_count {TypeObjectUtils::build_common_union_member(member_id_sample_identity_count, + member_flags_sample_identity_count, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_sample_identity_count_ec), label_seq_sample_identity_count)}; + if (!common_sample_identity_count_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union sample_identity_count member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union sample_identity_count member TypeIdentifier inconsistent."); return; } MemberName name_sample_identity_count = "sample_identity_count"; @@ -18216,928 +2139,22 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "eprosima::fastdds::statistics::PhysicalData", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Data) { - { - StructTypeFlag struct_flags_PhysicalData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_PhysicalData; - TypeIdentifierPair type_ids_PhysicalData; - QualifiedTypeName type_name_PhysicalData = "eprosima::fastdds::statistics::PhysicalData"; - eprosima::fastcdr::optional type_ann_builtin_PhysicalData; - eprosima::fastcdr::optional ann_custom_PhysicalData; - CompleteTypeDetail detail_PhysicalData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_PhysicalData, ann_custom_PhysicalData, type_name_PhysicalData.to_string()); - CompleteStructHeader header_PhysicalData; - header_PhysicalData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_PhysicalData); - CompleteStructMemberSeq member_seq_PhysicalData; - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GUID_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GUID_s; - TypeIdentifierPair type_ids_GUID_s; - QualifiedTypeName type_name_GUID_s = "eprosima::fastdds::statistics::detail::GUID_s"; - eprosima::fastcdr::optional type_ann_builtin_GUID_s; - eprosima::fastcdr::optional ann_custom_GUID_s; - CompleteTypeDetail detail_GUID_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GUID_s, ann_custom_GUID_s, type_name_GUID_s.to_string()); - CompleteStructHeader header_GUID_s; - header_GUID_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GUID_s); - CompleteStructMemberSeq member_seq_GUID_s; - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_GuidPrefix_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_GuidPrefix_s; - TypeIdentifierPair type_ids_GuidPrefix_s; - QualifiedTypeName type_name_GuidPrefix_s = "eprosima::fastdds::statistics::detail::GuidPrefix_s"; - eprosima::fastcdr::optional type_ann_builtin_GuidPrefix_s; - eprosima::fastcdr::optional ann_custom_GuidPrefix_s; - CompleteTypeDetail detail_GuidPrefix_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_GuidPrefix_s, ann_custom_GuidPrefix_s, type_name_GuidPrefix_s.to_string()); - CompleteStructHeader header_GuidPrefix_s; - header_GuidPrefix_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_GuidPrefix_s); - CompleteStructMemberSeq member_seq_GuidPrefix_s; - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_GuidPrefix_s); - - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_12 {nullptr}; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_12 = new TypeIdentifier(type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_12 = EK_COMPLETE; - if (TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_12 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_12 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_12 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_12, element_flags_anonymous_array_uint8_t_12); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_12, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_12)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_12")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_12", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_12: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1()._d() || TK_NONE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GuidPrefix_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GuidPrefix_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_GuidPrefix_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_GuidPrefix_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_GuidPrefix_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_GuidPrefix_s, member_value); - } - CompleteStructType struct_type_GuidPrefix_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GuidPrefix_s, header_GuidPrefix_s, member_seq_GuidPrefix_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GuidPrefix_s, type_name_GuidPrefix_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GuidPrefix_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GuidPrefix_s", type_ids_GuidPrefix_s); - if (return_code_GuidPrefix_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GuidPrefix_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_GuidPrefix_s; - type_ids_GUID_s = type_ids_GuidPrefix_s; - } - } - StructMemberFlag member_flags_guidPrefix = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_guidPrefix; - MemberId member_id_guidPrefix = 0x00000000; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_guidPrefix = TypeObjectUtils::build_common_struct_member(member_id_guidPrefix, member_flags_guidPrefix, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure guidPrefix member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_guidPrefix = "guidPrefix"; - eprosima::fastcdr::optional member_ann_builtin_guidPrefix; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_guidPrefix = TypeObjectUtils::build_complete_member_detail(name_guidPrefix, member_ann_builtin_guidPrefix, ann_custom_GUID_s); - CompleteStructMember member_guidPrefix = TypeObjectUtils::build_complete_struct_member(common_guidPrefix, detail_guidPrefix); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_guidPrefix); - } - { - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_GUID_s); - - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_EntityId_s = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_EntityId_s; - TypeIdentifierPair type_ids_EntityId_s; - QualifiedTypeName type_name_EntityId_s = "eprosima::fastdds::statistics::detail::EntityId_s"; - eprosima::fastcdr::optional type_ann_builtin_EntityId_s; - eprosima::fastcdr::optional ann_custom_EntityId_s; - CompleteTypeDetail detail_EntityId_s = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_EntityId_s, ann_custom_EntityId_s, type_name_EntityId_s.to_string()); - CompleteStructHeader header_EntityId_s; - header_EntityId_s = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EntityId_s); - CompleteStructMemberSeq member_seq_EntityId_s; - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_EntityId_s); - - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_4 {nullptr}; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_4 = new TypeIdentifier(type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_uint8_t_4 = EK_COMPLETE; - if (TK_NONE == type_ids_EntityId_s.type_identifier2()._d()) - { - equiv_kind_anonymous_array_uint8_t_4 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_uint8_t_4 = 0; - PlainCollectionHeader header_anonymous_array_uint8_t_4 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_4, element_flags_anonymous_array_uint8_t_4); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_4, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_4)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_4")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_4", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_4: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_value; - MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_EntityId_s.type_identifier1()._d() || TK_NONE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EntityId_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EntityId_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EntityId_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_EntityId_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_value = "value"; - eprosima::fastcdr::optional member_ann_builtin_value; - ann_custom_EntityId_s.reset(); - CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_EntityId_s); - CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); - TypeObjectUtils::add_complete_struct_member(member_seq_EntityId_s, member_value); - } - CompleteStructType struct_type_EntityId_s = TypeObjectUtils::build_complete_struct_type(struct_flags_EntityId_s, header_EntityId_s, member_seq_EntityId_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EntityId_s, type_name_EntityId_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s already registered in TypeObjectRegistry for a different type."); - } - return_code_EntityId_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::EntityId_s", type_ids_EntityId_s); - if (return_code_EntityId_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::EntityId_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_GUID_s = return_code_EntityId_s; - type_ids_GUID_s = type_ids_EntityId_s; - } - } - StructMemberFlag member_flags_entityId = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_entityId; - MemberId member_id_entityId = 0x00000001; - if (EK_COMPLETE == type_ids_GUID_s.type_identifier1()._d() || TK_NONE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier1()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier1()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_GUID_s.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_GUID_s.type_identifier2()._d() && - EK_COMPLETE == type_ids_GUID_s.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_GUID_s.type_identifier2()._d() && - (EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_GUID_s.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_entityId = TypeObjectUtils::build_common_struct_member(member_id_entityId, member_flags_entityId, type_ids_GUID_s.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure entityId member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_entityId = "entityId"; - eprosima::fastcdr::optional member_ann_builtin_entityId; - ann_custom_GUID_s.reset(); - CompleteMemberDetail detail_entityId = TypeObjectUtils::build_complete_member_detail(name_entityId, member_ann_builtin_entityId, ann_custom_GUID_s); - CompleteStructMember member_entityId = TypeObjectUtils::build_complete_struct_member(common_entityId, detail_entityId); - TypeObjectUtils::add_complete_struct_member(member_seq_GUID_s, member_entityId); - } - CompleteStructType struct_type_GUID_s = TypeObjectUtils::build_complete_struct_type(struct_flags_GUID_s, header_GUID_s, member_seq_GUID_s); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_GUID_s, type_name_GUID_s.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s already registered in TypeObjectRegistry for a different type."); - } - return_code_GUID_s = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::detail::GUID_s", type_ids_GUID_s); - if (return_code_GUID_s != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::detail::GUID_s: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_PhysicalData = return_code_GUID_s; - type_ids_PhysicalData = type_ids_GUID_s; - } - } - StructMemberFlag member_flags_participant_guid = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_participant_guid; - MemberId member_id_participant_guid = 0x00000000; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_participant_guid = TypeObjectUtils::build_common_struct_member(member_id_participant_guid, member_flags_participant_guid, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure participant_guid member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_participant_guid = "participant_guid"; - eprosima::fastcdr::optional member_ann_builtin_participant_guid; - ann_custom_PhysicalData.reset(); - AppliedAnnotationSeq tmp_ann_custom_participant_guid; - eprosima::fastcdr::optional unit_participant_guid; - eprosima::fastcdr::optional min_participant_guid; - eprosima::fastcdr::optional max_participant_guid; - eprosima::fastcdr::optional hash_id_participant_guid; - if (unit_participant_guid.has_value() || min_participant_guid.has_value() || max_participant_guid.has_value() || hash_id_participant_guid.has_value()) - { - member_ann_builtin_participant_guid = TypeObjectUtils::build_applied_builtin_member_annotations(unit_participant_guid, min_participant_guid, max_participant_guid, hash_id_participant_guid); - } - if (!tmp_ann_custom_participant_guid.empty()) - { - ann_custom_PhysicalData = tmp_ann_custom_participant_guid; - } - CompleteMemberDetail detail_participant_guid = TypeObjectUtils::build_complete_member_detail(name_participant_guid, member_ann_builtin_participant_guid, ann_custom_PhysicalData); - CompleteStructMember member_participant_guid = TypeObjectUtils::build_complete_struct_member(common_participant_guid, detail_participant_guid); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_participant_guid); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_host = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_host; - MemberId member_id_host = 0x00000001; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_host = TypeObjectUtils::build_common_struct_member(member_id_host, member_flags_host, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure host member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_host = "host"; - eprosima::fastcdr::optional member_ann_builtin_host; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_host = TypeObjectUtils::build_complete_member_detail(name_host, member_ann_builtin_host, ann_custom_PhysicalData); - CompleteStructMember member_host = TypeObjectUtils::build_complete_struct_member(common_host, detail_host); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_host); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_user = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_user; - MemberId member_id_user = 0x00000002; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_user = TypeObjectUtils::build_common_struct_member(member_id_user, member_flags_user, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure user member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_user = "user"; - eprosima::fastcdr::optional member_ann_builtin_user; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_user = TypeObjectUtils::build_complete_member_detail(name_user, member_ann_builtin_user, ann_custom_PhysicalData); - CompleteStructMember member_user = TypeObjectUtils::build_complete_struct_member(common_user, detail_user); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_user); - } - { - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_process = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_process; - MemberId member_id_process = 0x00000003; - if (EK_COMPLETE == type_ids_PhysicalData.type_identifier1()._d() || TK_NONE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier1()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_PhysicalData.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_PhysicalData.type_identifier2()._d() && - (EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_PhysicalData.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_process = TypeObjectUtils::build_common_struct_member(member_id_process, member_flags_process, type_ids_PhysicalData.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure process member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_process = "process"; - eprosima::fastcdr::optional member_ann_builtin_process; - ann_custom_PhysicalData.reset(); - CompleteMemberDetail detail_process = TypeObjectUtils::build_complete_member_detail(name_process, member_ann_builtin_process, ann_custom_PhysicalData); - CompleteStructMember member_process = TypeObjectUtils::build_complete_struct_member(common_process, detail_process); - TypeObjectUtils::add_complete_struct_member(member_seq_PhysicalData, member_process); - } - CompleteStructType struct_type_PhysicalData = TypeObjectUtils::build_complete_struct_type(struct_flags_PhysicalData, header_PhysicalData, member_seq_PhysicalData); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_PhysicalData, type_name_PhysicalData.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData already registered in TypeObjectRegistry for a different type."); - } - return_code_PhysicalData = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::PhysicalData", type_ids_PhysicalData); - if (return_code_PhysicalData != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::PhysicalData: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Data = return_code_PhysicalData; - type_ids_Data = type_ids_PhysicalData; - } + eprosima::fastdds::statistics::register_PhysicalData_type_identifier(type_ids_Data); } - UnionMemberFlag member_flags_physical_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_physical_data = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_physical_data; TypeObjectUtils::add_union_case_label(label_seq_physical_data, static_cast(EventKind::PHYSICAL_DATA)); - CommonUnionMember common_physical_data; MemberId member_id_physical_data = 0x00000008; - if (EK_COMPLETE == type_ids_Data.type_identifier1()._d() || TK_NONE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier1()._d() && - EK_COMPLETE == type_ids_Data.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_physical_data = TypeObjectUtils::build_common_union_member(member_id_physical_data, member_flags_physical_data, type_ids_Data.type_identifier1(), - label_seq_physical_data); - } - else if (EK_COMPLETE == type_ids_Data.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Data.type_identifier2()._d() && - EK_COMPLETE == type_ids_Data.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Data.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Data.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_physical_data_ec {false}; + CommonUnionMember common_physical_data {TypeObjectUtils::build_common_union_member(member_id_physical_data, + member_flags_physical_data, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Data, + common_physical_data_ec), label_seq_physical_data)}; + if (!common_physical_data_ec) { - common_physical_data = TypeObjectUtils::build_common_union_member(member_id_physical_data, member_flags_physical_data, type_ids_Data.type_identifier2(), - label_seq_physical_data); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union physical_data member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union physical_data member TypeIdentifier inconsistent."); return; } MemberName name_physical_data = "physical_data"; @@ -19150,21 +2167,11 @@ void register_eprosima_fastdds_statistics_Data_type_identifier( CompleteUnionType union_type_Data = TypeObjectUtils::build_complete_union_type(union_flags_Data, header_Data, discriminator_Data, member_seq_Data); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Data, type_name_Data.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Data, type_name_Data.to_string(), type_ids_Data)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "eprosima::fastdds::statistics::Data already registered in TypeObjectRegistry for a different type."); } - return_code_Data = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "eprosima::fastdds::statistics::Data", type_ids_Data); - if (return_code_Data != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "eprosima::fastdds::statistics::Data: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/blackbox/types/statistics/typesTypeObjectSupport.hpp b/test/blackbox/types/statistics/typesTypeObjectSupport.hpp index 7b3cc02ed16..eb9221d8af5 100644 --- a/test/blackbox/types/statistics/typesTypeObjectSupport.hpp +++ b/test/blackbox/types/statistics/typesTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_types_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace eprosima { @@ -47,7 +42,7 @@ namespace fastdds { namespace statistics { namespace detail { /** - * @brief Register eprosima_fastdds_statistics_detail_EntityId_s related TypeIdentifier. + * @brief Register EntityId_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -56,11 +51,11 @@ namespace detail { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityId_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_GuidPrefix_s related TypeIdentifier. + * @brief Register GuidPrefix_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -69,11 +64,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_EntityI * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_GuidPrefix_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_GUID_s related TypeIdentifier. + * @brief Register GUID_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -82,11 +77,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GuidPre * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_GUID_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_SequenceNumber_s related TypeIdentifier. + * @brief Register SequenceNumber_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -95,11 +90,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_GUID_s_ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SequenceNumber_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_SampleIdentity_s related TypeIdentifier. + * @brief Register SampleIdentity_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -108,11 +103,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Sequenc * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SampleIdentity_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_detail_Locator_s related TypeIdentifier. + * @brief Register Locator_s related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -121,13 +116,13 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_SampleI * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Locator_s_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace detail /** - * @brief Register eprosima_fastdds_statistics_DiscoveryTime related TypeIdentifier. + * @brief Register DiscoveryTime related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -136,11 +131,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_detail_Locator * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_DiscoveryTime_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_EntityCount related TypeIdentifier. + * @brief Register EntityCount related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -149,11 +144,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_DiscoveryTime_ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityCount_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityCount_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_SampleIdentityCount related TypeIdentifier. + * @brief Register SampleIdentityCount related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -162,11 +157,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityCount_ty * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_SampleIdentityCount_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_Entity2LocatorTraffic related TypeIdentifier. + * @brief Register Entity2LocatorTraffic related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -175,11 +170,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_SampleIdentity * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Entity2LocatorTraffic_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_WriterReaderData related TypeIdentifier. + * @brief Register WriterReaderData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -188,11 +183,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Entity2Locator * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_WriterReaderData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_WriterReaderData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_Locator2LocatorData related TypeIdentifier. + * @brief Register Locator2LocatorData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -201,11 +196,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_WriterReaderDa * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Locator2LocatorData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_EntityData related TypeIdentifier. + * @brief Register EntityData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -214,11 +209,11 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_Locator2Locato * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_EntityData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register eprosima_fastdds_statistics_PhysicalData related TypeIdentifier. + * @brief Register PhysicalData related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -227,14 +222,14 @@ eProsima_user_DllExport void register_eprosima_fastdds_statistics_EntityData_typ * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_PhysicalData_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_PhysicalData_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); namespace EventKind { } // namespace EventKind /** - * @brief Register eprosima_fastdds_statistics_Data related TypeIdentifier. + * @brief Register Data related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -243,8 +238,8 @@ namespace EventKind { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_eprosima_fastdds_statistics_Data_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Data_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace statistics diff --git a/test/dds-types-test/aliasesPubSubTypes.cxx b/test/dds-types-test/aliasesPubSubTypes.cxx index aaf848c01cb..67f27a86904 100644 --- a/test/dds-types-test/aliasesPubSubTypes.cxx +++ b/test/dds-types-test/aliasesPubSubTypes.cxx @@ -219,9 +219,9 @@ bool AliasInt16PubSubType::getKey( return true; } -void AliasInt16PubSubType::register_type_object_representation() const +void AliasInt16PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasInt16_type_identifier(type_identifiers_); } AliasUint16PubSubType::AliasUint16PubSubType() @@ -412,9 +412,9 @@ bool AliasUint16PubSubType::getKey( return true; } -void AliasUint16PubSubType::register_type_object_representation() const +void AliasUint16PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasUint16_type_identifier(type_identifiers_); } AliasInt32PubSubType::AliasInt32PubSubType() @@ -605,9 +605,9 @@ bool AliasInt32PubSubType::getKey( return true; } -void AliasInt32PubSubType::register_type_object_representation() const +void AliasInt32PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasInt32_type_identifier(type_identifiers_); } AliasUInt32PubSubType::AliasUInt32PubSubType() @@ -798,9 +798,9 @@ bool AliasUInt32PubSubType::getKey( return true; } -void AliasUInt32PubSubType::register_type_object_representation() const +void AliasUInt32PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasUInt32_type_identifier(type_identifiers_); } AliasInt64PubSubType::AliasInt64PubSubType() @@ -991,9 +991,9 @@ bool AliasInt64PubSubType::getKey( return true; } -void AliasInt64PubSubType::register_type_object_representation() const +void AliasInt64PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasInt64_type_identifier(type_identifiers_); } AliasUInt64PubSubType::AliasUInt64PubSubType() @@ -1184,9 +1184,9 @@ bool AliasUInt64PubSubType::getKey( return true; } -void AliasUInt64PubSubType::register_type_object_representation() const +void AliasUInt64PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasUInt64_type_identifier(type_identifiers_); } AliasFloat32PubSubType::AliasFloat32PubSubType() @@ -1377,9 +1377,9 @@ bool AliasFloat32PubSubType::getKey( return true; } -void AliasFloat32PubSubType::register_type_object_representation() const +void AliasFloat32PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasFloat32_type_identifier(type_identifiers_); } AliasFloat64PubSubType::AliasFloat64PubSubType() @@ -1570,9 +1570,9 @@ bool AliasFloat64PubSubType::getKey( return true; } -void AliasFloat64PubSubType::register_type_object_representation() const +void AliasFloat64PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasFloat64_type_identifier(type_identifiers_); } AliasFloat128PubSubType::AliasFloat128PubSubType() @@ -1763,9 +1763,9 @@ bool AliasFloat128PubSubType::getKey( return true; } -void AliasFloat128PubSubType::register_type_object_representation() const +void AliasFloat128PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasFloat128_type_identifier(type_identifiers_); } AliasBoolPubSubType::AliasBoolPubSubType() @@ -1956,9 +1956,9 @@ bool AliasBoolPubSubType::getKey( return true; } -void AliasBoolPubSubType::register_type_object_representation() const +void AliasBoolPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasBool_type_identifier(type_identifiers_); } AliasOctetPubSubType::AliasOctetPubSubType() @@ -2149,9 +2149,9 @@ bool AliasOctetPubSubType::getKey( return true; } -void AliasOctetPubSubType::register_type_object_representation() const +void AliasOctetPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasOctet_type_identifier(type_identifiers_); } AliasChar8PubSubType::AliasChar8PubSubType() @@ -2342,9 +2342,9 @@ bool AliasChar8PubSubType::getKey( return true; } -void AliasChar8PubSubType::register_type_object_representation() const +void AliasChar8PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasChar8_type_identifier(type_identifiers_); } AliasChar16PubSubType::AliasChar16PubSubType() @@ -2535,9 +2535,9 @@ bool AliasChar16PubSubType::getKey( return true; } -void AliasChar16PubSubType::register_type_object_representation() const +void AliasChar16PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasChar16_type_identifier(type_identifiers_); } AliasString8PubSubType::AliasString8PubSubType() @@ -2728,9 +2728,9 @@ bool AliasString8PubSubType::getKey( return true; } -void AliasString8PubSubType::register_type_object_representation() const +void AliasString8PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasString8_type_identifier(type_identifiers_); } AliasString16PubSubType::AliasString16PubSubType() @@ -2921,9 +2921,9 @@ bool AliasString16PubSubType::getKey( return true; } -void AliasString16PubSubType::register_type_object_representation() const +void AliasString16PubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasString16_type_identifier(type_identifiers_); } AliasEnumPubSubType::AliasEnumPubSubType() @@ -3114,9 +3114,9 @@ bool AliasEnumPubSubType::getKey( return true; } -void AliasEnumPubSubType::register_type_object_representation() const +void AliasEnumPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasEnum_type_identifier(type_identifiers_); } AliasBitmaskPubSubType::AliasBitmaskPubSubType() @@ -3307,9 +3307,9 @@ bool AliasBitmaskPubSubType::getKey( return true; } -void AliasBitmaskPubSubType::register_type_object_representation() const +void AliasBitmaskPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasBitmask_type_identifier(type_identifiers_); } AliasAliasPubSubType::AliasAliasPubSubType() @@ -3500,9 +3500,9 @@ bool AliasAliasPubSubType::getKey( return true; } -void AliasAliasPubSubType::register_type_object_representation() const +void AliasAliasPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasAlias_type_identifier(type_identifiers_); } AliasArrayPubSubType::AliasArrayPubSubType() @@ -3693,9 +3693,9 @@ bool AliasArrayPubSubType::getKey( return true; } -void AliasArrayPubSubType::register_type_object_representation() const +void AliasArrayPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasArray_type_identifier(type_identifiers_); } AliasMultiArrayPubSubType::AliasMultiArrayPubSubType() @@ -3886,9 +3886,9 @@ bool AliasMultiArrayPubSubType::getKey( return true; } -void AliasMultiArrayPubSubType::register_type_object_representation() const +void AliasMultiArrayPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasMultiArray_type_identifier(type_identifiers_); } AliasSequencePubSubType::AliasSequencePubSubType() @@ -4079,9 +4079,9 @@ bool AliasSequencePubSubType::getKey( return true; } -void AliasSequencePubSubType::register_type_object_representation() const +void AliasSequencePubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasSequence_type_identifier(type_identifiers_); } AliasMapPubSubType::AliasMapPubSubType() @@ -4272,9 +4272,9 @@ bool AliasMapPubSubType::getKey( return true; } -void AliasMapPubSubType::register_type_object_representation() const +void AliasMapPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasMap_type_identifier(type_identifiers_); } AliasUnionPubSubType::AliasUnionPubSubType() @@ -4465,9 +4465,9 @@ bool AliasUnionPubSubType::getKey( return true; } -void AliasUnionPubSubType::register_type_object_representation() const +void AliasUnionPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasUnion_type_identifier(type_identifiers_); } AliasStructPubSubType::AliasStructPubSubType() @@ -4658,9 +4658,9 @@ bool AliasStructPubSubType::getKey( return true; } -void AliasStructPubSubType::register_type_object_representation() const +void AliasStructPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasStruct_type_identifier(type_identifiers_); } AliasBitsetPubSubType::AliasBitsetPubSubType() @@ -4851,9 +4851,9 @@ bool AliasBitsetPubSubType::getKey( return true; } -void AliasBitsetPubSubType::register_type_object_representation() const +void AliasBitsetPubSubType::register_type_object_representation() { - register_aliases_type_objects(); + register_AliasBitset_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/aliasesPubSubTypes.h b/test/dds-types-test/aliasesPubSubTypes.h index 3e095712ccf..3d25dd8d5c3 100644 --- a/test/dds-types-test/aliasesPubSubTypes.h +++ b/test/dds-types-test/aliasesPubSubTypes.h @@ -115,7 +115,7 @@ class AliasInt16PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -206,7 +206,7 @@ class AliasUint16PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -297,7 +297,7 @@ class AliasInt32PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -388,7 +388,7 @@ class AliasUInt32PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -479,7 +479,7 @@ class AliasInt64PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -570,7 +570,7 @@ class AliasUInt64PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -661,7 +661,7 @@ class AliasFloat32PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -752,7 +752,7 @@ class AliasFloat64PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -843,7 +843,7 @@ class AliasFloat128PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -934,7 +934,7 @@ class AliasBoolPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1025,7 +1025,7 @@ class AliasOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1116,7 +1116,7 @@ class AliasChar8PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1207,7 +1207,7 @@ class AliasChar16PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1298,7 +1298,7 @@ class AliasString8PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1389,7 +1389,7 @@ class AliasString16PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1480,7 +1480,7 @@ class AliasEnumPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1571,7 +1571,7 @@ class AliasBitmaskPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1662,7 +1662,7 @@ class AliasAliasPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1753,7 +1753,7 @@ class AliasArrayPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1844,7 +1844,7 @@ class AliasMultiArrayPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1935,7 +1935,7 @@ class AliasSequencePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2026,7 +2026,7 @@ class AliasMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2117,7 +2117,7 @@ class AliasUnionPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2208,7 +2208,7 @@ class AliasStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2299,7 +2299,7 @@ class AliasBitsetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/aliasesTypeObjectSupport.cxx b/test/dds-types-test/aliasesTypeObjectSupport.cxx index 7df75b05488..01eac2c7169 100644 --- a/test/dds-types-test/aliasesTypeObjectSupport.cxx +++ b/test/dds-types-test/aliasesTypeObjectSupport.cxx @@ -39,80 +39,1434 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_aliases_type_objects() +void register_alias_int16_type_identifier( + TypeIdentifierPair& type_ids_alias_int16) { - static std::once_flag once_flag; - std::call_once(once_flag, []() + ReturnCode_t return_code_alias_int16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_int16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_int16", type_ids_alias_int16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int16) + { + AliasTypeFlag alias_flags_alias_int16 = 0; + QualifiedTypeName type_name_alias_int16 = "alias_int16"; + eprosima::fastcdr::optional type_ann_builtin_alias_int16; + eprosima::fastcdr::optional ann_custom_alias_int16; + CompleteTypeDetail detail_alias_int16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int16, ann_custom_alias_int16, type_name_alias_int16.to_string()); + CompleteAliasHeader header_alias_int16 = TypeObjectUtils::build_complete_alias_header(detail_alias_int16); + AliasMemberFlag related_flags_alias_int16 = 0; + return_code_alias_int16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_int16); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int16) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int16 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_int16_ec {false}; + CommonAliasBody common_alias_int16 {TypeObjectUtils::build_common_alias_body(related_flags_alias_int16, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_int16, common_alias_int16_ec))}; + if (!common_alias_int16_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_int16 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_int16; + ann_custom_alias_int16.reset(); + CompleteAliasBody body_alias_int16 = TypeObjectUtils::build_complete_alias_body(common_alias_int16, + member_ann_builtin_alias_int16, ann_custom_alias_int16); + CompleteAliasType alias_type_alias_int16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int16, + header_alias_int16, body_alias_int16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int16, + type_name_alias_int16.to_string(), type_ids_alias_int16)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int16 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_uint16_type_identifier( + TypeIdentifierPair& type_ids_alias_uint16) +{ + ReturnCode_t return_code_alias_uint16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_uint16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_uint16", type_ids_alias_uint16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint16) + { + AliasTypeFlag alias_flags_alias_uint16 = 0; + QualifiedTypeName type_name_alias_uint16 = "alias_uint16"; + eprosima::fastcdr::optional type_ann_builtin_alias_uint16; + eprosima::fastcdr::optional ann_custom_alias_uint16; + CompleteTypeDetail detail_alias_uint16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint16, ann_custom_alias_uint16, type_name_alias_uint16.to_string()); + CompleteAliasHeader header_alias_uint16 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint16); + AliasMemberFlag related_flags_alias_uint16 = 0; + return_code_alias_uint16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_alias_uint16); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint16) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint16 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_uint16_ec {false}; + CommonAliasBody common_alias_uint16 {TypeObjectUtils::build_common_alias_body(related_flags_alias_uint16, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_uint16, common_alias_uint16_ec))}; + if (!common_alias_uint16_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_uint16 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_uint16; + ann_custom_alias_uint16.reset(); + CompleteAliasBody body_alias_uint16 = TypeObjectUtils::build_complete_alias_body(common_alias_uint16, + member_ann_builtin_alias_uint16, ann_custom_alias_uint16); + CompleteAliasType alias_type_alias_uint16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint16, + header_alias_uint16, body_alias_uint16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint16, + type_name_alias_uint16.to_string(), type_ids_alias_uint16)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint16 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_int32_type_identifier( + TypeIdentifierPair& type_ids_alias_int32) +{ + ReturnCode_t return_code_alias_int32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_int32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_int32", type_ids_alias_int32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int32) + { + AliasTypeFlag alias_flags_alias_int32 = 0; + QualifiedTypeName type_name_alias_int32 = "alias_int32"; + eprosima::fastcdr::optional type_ann_builtin_alias_int32; + eprosima::fastcdr::optional ann_custom_alias_int32; + CompleteTypeDetail detail_alias_int32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int32, ann_custom_alias_int32, type_name_alias_int32.to_string()); + CompleteAliasHeader header_alias_int32 = TypeObjectUtils::build_complete_alias_header(detail_alias_int32); + AliasMemberFlag related_flags_alias_int32 = 0; + return_code_alias_int32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_alias_int32); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int32) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int32 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_int32_ec {false}; + CommonAliasBody common_alias_int32 {TypeObjectUtils::build_common_alias_body(related_flags_alias_int32, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_int32, common_alias_int32_ec))}; + if (!common_alias_int32_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_int32 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_int32; + ann_custom_alias_int32.reset(); + CompleteAliasBody body_alias_int32 = TypeObjectUtils::build_complete_alias_body(common_alias_int32, + member_ann_builtin_alias_int32, ann_custom_alias_int32); + CompleteAliasType alias_type_alias_int32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int32, + header_alias_int32, body_alias_int32); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int32, + type_name_alias_int32.to_string(), type_ids_alias_int32)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int32 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_uint32_type_identifier( + TypeIdentifierPair& type_ids_alias_uint32) +{ + ReturnCode_t return_code_alias_uint32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_uint32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_uint32", type_ids_alias_uint32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint32) + { + AliasTypeFlag alias_flags_alias_uint32 = 0; + QualifiedTypeName type_name_alias_uint32 = "alias_uint32"; + eprosima::fastcdr::optional type_ann_builtin_alias_uint32; + eprosima::fastcdr::optional ann_custom_alias_uint32; + CompleteTypeDetail detail_alias_uint32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint32, ann_custom_alias_uint32, type_name_alias_uint32.to_string()); + CompleteAliasHeader header_alias_uint32 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint32); + AliasMemberFlag related_flags_alias_uint32 = 0; + return_code_alias_uint32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_alias_uint32); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint32) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint32 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_uint32_ec {false}; + CommonAliasBody common_alias_uint32 {TypeObjectUtils::build_common_alias_body(related_flags_alias_uint32, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_uint32, common_alias_uint32_ec))}; + if (!common_alias_uint32_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_uint32 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_uint32; + ann_custom_alias_uint32.reset(); + CompleteAliasBody body_alias_uint32 = TypeObjectUtils::build_complete_alias_body(common_alias_uint32, + member_ann_builtin_alias_uint32, ann_custom_alias_uint32); + CompleteAliasType alias_type_alias_uint32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint32, + header_alias_uint32, body_alias_uint32); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint32, + type_name_alias_uint32.to_string(), type_ids_alias_uint32)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint32 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_int64_type_identifier( + TypeIdentifierPair& type_ids_alias_int64) +{ + ReturnCode_t return_code_alias_int64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_int64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_int64", type_ids_alias_int64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int64) + { + AliasTypeFlag alias_flags_alias_int64 = 0; + QualifiedTypeName type_name_alias_int64 = "alias_int64"; + eprosima::fastcdr::optional type_ann_builtin_alias_int64; + eprosima::fastcdr::optional ann_custom_alias_int64; + CompleteTypeDetail detail_alias_int64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int64, ann_custom_alias_int64, type_name_alias_int64.to_string()); + CompleteAliasHeader header_alias_int64 = TypeObjectUtils::build_complete_alias_header(detail_alias_int64); + AliasMemberFlag related_flags_alias_int64 = 0; + return_code_alias_int64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_alias_int64); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_int64) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int64 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_int64_ec {false}; + CommonAliasBody common_alias_int64 {TypeObjectUtils::build_common_alias_body(related_flags_alias_int64, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_int64, common_alias_int64_ec))}; + if (!common_alias_int64_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_int64 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_int64; + ann_custom_alias_int64.reset(); + CompleteAliasBody body_alias_int64 = TypeObjectUtils::build_complete_alias_body(common_alias_int64, + member_ann_builtin_alias_int64, ann_custom_alias_int64); + CompleteAliasType alias_type_alias_int64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int64, + header_alias_int64, body_alias_int64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int64, + type_name_alias_int64.to_string(), type_ids_alias_int64)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_int64 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_uint64_type_identifier( + TypeIdentifierPair& type_ids_alias_uint64) +{ + ReturnCode_t return_code_alias_uint64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_uint64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_uint64", type_ids_alias_uint64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint64) + { + AliasTypeFlag alias_flags_alias_uint64 = 0; + QualifiedTypeName type_name_alias_uint64 = "alias_uint64"; + eprosima::fastcdr::optional type_ann_builtin_alias_uint64; + eprosima::fastcdr::optional ann_custom_alias_uint64; + CompleteTypeDetail detail_alias_uint64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint64, ann_custom_alias_uint64, type_name_alias_uint64.to_string()); + CompleteAliasHeader header_alias_uint64 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint64); + AliasMemberFlag related_flags_alias_uint64 = 0; + return_code_alias_uint64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_alias_uint64); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_uint64) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint64 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_uint64_ec {false}; + CommonAliasBody common_alias_uint64 {TypeObjectUtils::build_common_alias_body(related_flags_alias_uint64, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_uint64, common_alias_uint64_ec))}; + if (!common_alias_uint64_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_uint64 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_uint64; + ann_custom_alias_uint64.reset(); + CompleteAliasBody body_alias_uint64 = TypeObjectUtils::build_complete_alias_body(common_alias_uint64, + member_ann_builtin_alias_uint64, ann_custom_alias_uint64); + CompleteAliasType alias_type_alias_uint64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint64, + header_alias_uint64, body_alias_uint64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint64, + type_name_alias_uint64.to_string(), type_ids_alias_uint64)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_uint64 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_float32_type_identifier( + TypeIdentifierPair& type_ids_alias_float32) +{ + ReturnCode_t return_code_alias_float32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_float32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_float32", type_ids_alias_float32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float32) + { + AliasTypeFlag alias_flags_alias_float32 = 0; + QualifiedTypeName type_name_alias_float32 = "alias_float32"; + eprosima::fastcdr::optional type_ann_builtin_alias_float32; + eprosima::fastcdr::optional ann_custom_alias_float32; + CompleteTypeDetail detail_alias_float32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float32, ann_custom_alias_float32, type_name_alias_float32.to_string()); + CompleteAliasHeader header_alias_float32 = TypeObjectUtils::build_complete_alias_header(detail_alias_float32); + AliasMemberFlag related_flags_alias_float32 = 0; + return_code_alias_float32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_alias_float32); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float32) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float32 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_float32_ec {false}; + CommonAliasBody common_alias_float32 {TypeObjectUtils::build_common_alias_body(related_flags_alias_float32, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_float32, common_alias_float32_ec))}; + if (!common_alias_float32_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_float32 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_float32; + ann_custom_alias_float32.reset(); + CompleteAliasBody body_alias_float32 = TypeObjectUtils::build_complete_alias_body(common_alias_float32, + member_ann_builtin_alias_float32, ann_custom_alias_float32); + CompleteAliasType alias_type_alias_float32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float32, + header_alias_float32, body_alias_float32); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float32, + type_name_alias_float32.to_string(), type_ids_alias_float32)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float32 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_float64_type_identifier( + TypeIdentifierPair& type_ids_alias_float64) +{ + ReturnCode_t return_code_alias_float64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_float64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_float64", type_ids_alias_float64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float64) + { + AliasTypeFlag alias_flags_alias_float64 = 0; + QualifiedTypeName type_name_alias_float64 = "alias_float64"; + eprosima::fastcdr::optional type_ann_builtin_alias_float64; + eprosima::fastcdr::optional ann_custom_alias_float64; + CompleteTypeDetail detail_alias_float64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float64, ann_custom_alias_float64, type_name_alias_float64.to_string()); + CompleteAliasHeader header_alias_float64 = TypeObjectUtils::build_complete_alias_header(detail_alias_float64); + AliasMemberFlag related_flags_alias_float64 = 0; + return_code_alias_float64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_alias_float64); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float64) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float64 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_float64_ec {false}; + CommonAliasBody common_alias_float64 {TypeObjectUtils::build_common_alias_body(related_flags_alias_float64, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_float64, common_alias_float64_ec))}; + if (!common_alias_float64_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_float64 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_float64; + ann_custom_alias_float64.reset(); + CompleteAliasBody body_alias_float64 = TypeObjectUtils::build_complete_alias_body(common_alias_float64, + member_ann_builtin_alias_float64, ann_custom_alias_float64); + CompleteAliasType alias_type_alias_float64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float64, + header_alias_float64, body_alias_float64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float64, + type_name_alias_float64.to_string(), type_ids_alias_float64)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float64 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_float128_type_identifier( + TypeIdentifierPair& type_ids_alias_float128) +{ + ReturnCode_t return_code_alias_float128 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_float128 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_float128", type_ids_alias_float128); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float128) + { + AliasTypeFlag alias_flags_alias_float128 = 0; + QualifiedTypeName type_name_alias_float128 = "alias_float128"; + eprosima::fastcdr::optional type_ann_builtin_alias_float128; + eprosima::fastcdr::optional ann_custom_alias_float128; + CompleteTypeDetail detail_alias_float128 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float128, ann_custom_alias_float128, type_name_alias_float128.to_string()); + CompleteAliasHeader header_alias_float128 = TypeObjectUtils::build_complete_alias_header(detail_alias_float128); + AliasMemberFlag related_flags_alias_float128 = 0; + return_code_alias_float128 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_longdouble", type_ids_alias_float128); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_float128) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float128 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_float128_ec {false}; + CommonAliasBody common_alias_float128 {TypeObjectUtils::build_common_alias_body(related_flags_alias_float128, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_float128, common_alias_float128_ec))}; + if (!common_alias_float128_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_float128 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_float128; + ann_custom_alias_float128.reset(); + CompleteAliasBody body_alias_float128 = TypeObjectUtils::build_complete_alias_body(common_alias_float128, + member_ann_builtin_alias_float128, ann_custom_alias_float128); + CompleteAliasType alias_type_alias_float128 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float128, + header_alias_float128, body_alias_float128); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float128, + type_name_alias_float128.to_string(), type_ids_alias_float128)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_float128 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_bool_type_identifier( + TypeIdentifierPair& type_ids_alias_bool) +{ + ReturnCode_t return_code_alias_bool {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_bool = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_bool", type_ids_alias_bool); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bool) + { + AliasTypeFlag alias_flags_alias_bool = 0; + QualifiedTypeName type_name_alias_bool = "alias_bool"; + eprosima::fastcdr::optional type_ann_builtin_alias_bool; + eprosima::fastcdr::optional ann_custom_alias_bool; + CompleteTypeDetail detail_alias_bool = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bool, ann_custom_alias_bool, type_name_alias_bool.to_string()); + CompleteAliasHeader header_alias_bool = TypeObjectUtils::build_complete_alias_header(detail_alias_bool); + AliasMemberFlag related_flags_alias_bool = 0; + return_code_alias_bool = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_alias_bool); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bool) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_bool related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_bool_ec {false}; + CommonAliasBody common_alias_bool {TypeObjectUtils::build_common_alias_body(related_flags_alias_bool, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_bool, common_alias_bool_ec))}; + if (!common_alias_bool_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_bool related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_bool; + ann_custom_alias_bool.reset(); + CompleteAliasBody body_alias_bool = TypeObjectUtils::build_complete_alias_body(common_alias_bool, + member_ann_builtin_alias_bool, ann_custom_alias_bool); + CompleteAliasType alias_type_alias_bool = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bool, + header_alias_bool, body_alias_bool); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bool, + type_name_alias_bool.to_string(), type_ids_alias_bool)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_bool already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_octet_type_identifier( + TypeIdentifierPair& type_ids_alias_octet) +{ + ReturnCode_t return_code_alias_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_octet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_octet", type_ids_alias_octet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_octet) + { + AliasTypeFlag alias_flags_alias_octet = 0; + QualifiedTypeName type_name_alias_octet = "alias_octet"; + eprosima::fastcdr::optional type_ann_builtin_alias_octet; + eprosima::fastcdr::optional ann_custom_alias_octet; + CompleteTypeDetail detail_alias_octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_octet, ann_custom_alias_octet, type_name_alias_octet.to_string()); + CompleteAliasHeader header_alias_octet = TypeObjectUtils::build_complete_alias_header(detail_alias_octet); + AliasMemberFlag related_flags_alias_octet = 0; + return_code_alias_octet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_alias_octet); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_octet) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_octet related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_octet_ec {false}; + CommonAliasBody common_alias_octet {TypeObjectUtils::build_common_alias_body(related_flags_alias_octet, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_octet, common_alias_octet_ec))}; + if (!common_alias_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_octet related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_octet; + ann_custom_alias_octet.reset(); + CompleteAliasBody body_alias_octet = TypeObjectUtils::build_complete_alias_body(common_alias_octet, + member_ann_builtin_alias_octet, ann_custom_alias_octet); + CompleteAliasType alias_type_alias_octet = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_octet, + header_alias_octet, body_alias_octet); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_octet, + type_name_alias_octet.to_string(), type_ids_alias_octet)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_octet already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_char8_type_identifier( + TypeIdentifierPair& type_ids_alias_char8) +{ + ReturnCode_t return_code_alias_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_char8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_char8", type_ids_alias_char8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_char8) + { + AliasTypeFlag alias_flags_alias_char8 = 0; + QualifiedTypeName type_name_alias_char8 = "alias_char8"; + eprosima::fastcdr::optional type_ann_builtin_alias_char8; + eprosima::fastcdr::optional ann_custom_alias_char8; + CompleteTypeDetail detail_alias_char8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_char8, ann_custom_alias_char8, type_name_alias_char8.to_string()); + CompleteAliasHeader header_alias_char8 = TypeObjectUtils::build_complete_alias_header(detail_alias_char8); + AliasMemberFlag related_flags_alias_char8 = 0; + return_code_alias_char8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_alias_char8); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_char8) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_char8 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_char8_ec {false}; + CommonAliasBody common_alias_char8 {TypeObjectUtils::build_common_alias_body(related_flags_alias_char8, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_char8, common_alias_char8_ec))}; + if (!common_alias_char8_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_char8 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_char8; + ann_custom_alias_char8.reset(); + CompleteAliasBody body_alias_char8 = TypeObjectUtils::build_complete_alias_body(common_alias_char8, + member_ann_builtin_alias_char8, ann_custom_alias_char8); + CompleteAliasType alias_type_alias_char8 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_char8, + header_alias_char8, body_alias_char8); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_char8, + type_name_alias_char8.to_string(), type_ids_alias_char8)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_char8 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_char16_type_identifier( + TypeIdentifierPair& type_ids_alias_char16) +{ + ReturnCode_t return_code_alias_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_char16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_char16", type_ids_alias_char16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_char16) + { + AliasTypeFlag alias_flags_alias_char16 = 0; + QualifiedTypeName type_name_alias_char16 = "alias_char16"; + eprosima::fastcdr::optional type_ann_builtin_alias_char16; + eprosima::fastcdr::optional ann_custom_alias_char16; + CompleteTypeDetail detail_alias_char16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_char16, ann_custom_alias_char16, type_name_alias_char16.to_string()); + CompleteAliasHeader header_alias_char16 = TypeObjectUtils::build_complete_alias_header(detail_alias_char16); + AliasMemberFlag related_flags_alias_char16 = 0; + return_code_alias_char16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_wchar_t", type_ids_alias_char16); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_char16) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_char16 related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_char16_ec {false}; + CommonAliasBody common_alias_char16 {TypeObjectUtils::build_common_alias_body(related_flags_alias_char16, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_char16, common_alias_char16_ec))}; + if (!common_alias_char16_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_char16 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_char16; + ann_custom_alias_char16.reset(); + CompleteAliasBody body_alias_char16 = TypeObjectUtils::build_complete_alias_body(common_alias_char16, + member_ann_builtin_alias_char16, ann_custom_alias_char16); + CompleteAliasType alias_type_alias_char16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_char16, + header_alias_char16, body_alias_char16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_char16, + type_name_alias_char16.to_string(), type_ids_alias_char16)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_char16 already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_string8_type_identifier( + TypeIdentifierPair& type_ids_alias_string8) +{ + ReturnCode_t return_code_alias_string8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_string8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_string8", type_ids_alias_string8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_string8) + { + AliasTypeFlag alias_flags_alias_string8 = 0; + QualifiedTypeName type_name_alias_string8 = "alias_string8"; + eprosima::fastcdr::optional type_ann_builtin_alias_string8; + eprosima::fastcdr::optional ann_custom_alias_string8; + CompleteTypeDetail detail_alias_string8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_string8, ann_custom_alias_string8, type_name_alias_string8.to_string()); + CompleteAliasHeader header_alias_string8 = TypeObjectUtils::build_complete_alias_header(detail_alias_string8); + AliasMemberFlag related_flags_alias_string8 = 0; + return_code_alias_string8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_alias_string8); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_string8) + { { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_alias_string8)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_string8_ec {false}; + CommonAliasBody common_alias_string8 {TypeObjectUtils::build_common_alias_body(related_flags_alias_string8, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_string8, common_alias_string8_ec))}; + if (!common_alias_string8_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_string8 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_string8; + ann_custom_alias_string8.reset(); + CompleteAliasBody body_alias_string8 = TypeObjectUtils::build_complete_alias_body(common_alias_string8, + member_ann_builtin_alias_string8, ann_custom_alias_string8); + CompleteAliasType alias_type_alias_string8 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_string8, + header_alias_string8, body_alias_string8); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_string8, + type_name_alias_string8.to_string(), type_ids_alias_string8)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_string8 already registered in TypeObjectRegistry for a different type."); + } + } +} - register_InnerEmptyStructureHelper_type_identifier(type_id); +void register_alias_string16_type_identifier( + TypeIdentifierPair& type_ids_alias_string16) +{ + ReturnCode_t return_code_alias_string16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_string16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_string16", type_ids_alias_string16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_string16) + { + AliasTypeFlag alias_flags_alias_string16 = 0; + QualifiedTypeName type_name_alias_string16 = "alias_string16"; + eprosima::fastcdr::optional type_ann_builtin_alias_string16; + eprosima::fastcdr::optional ann_custom_alias_string16; + CompleteTypeDetail detail_alias_string16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_string16, ann_custom_alias_string16, type_name_alias_string16.to_string()); + CompleteAliasHeader header_alias_string16 = TypeObjectUtils::build_complete_alias_header(detail_alias_string16); + AliasMemberFlag related_flags_alias_string16 = 0; + return_code_alias_string16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_wstring_unbounded", type_ids_alias_string16); - register_InnerUnionHelper_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_string16) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_wstring_unbounded", type_ids_alias_string16, true)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_string16_ec {false}; + CommonAliasBody common_alias_string16 {TypeObjectUtils::build_common_alias_body(related_flags_alias_string16, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_string16, common_alias_string16_ec))}; + if (!common_alias_string16_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_string16 related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_string16; + ann_custom_alias_string16.reset(); + CompleteAliasBody body_alias_string16 = TypeObjectUtils::build_complete_alias_body(common_alias_string16, + member_ann_builtin_alias_string16, ann_custom_alias_string16); + CompleteAliasType alias_type_alias_string16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_string16, + header_alias_string16, body_alias_string16); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_string16, + type_name_alias_string16.to_string(), type_ids_alias_string16)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_string16 already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasInt16_type_identifier(type_id); +void register_alias_enum_type_identifier( + TypeIdentifierPair& type_ids_alias_enum) +{ + ReturnCode_t return_code_alias_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_enum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_enum", type_ids_alias_enum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_enum) + { + AliasTypeFlag alias_flags_alias_enum = 0; + QualifiedTypeName type_name_alias_enum = "alias_enum"; + eprosima::fastcdr::optional type_ann_builtin_alias_enum; + eprosima::fastcdr::optional ann_custom_alias_enum; + CompleteTypeDetail detail_alias_enum = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_enum, ann_custom_alias_enum, type_name_alias_enum.to_string()); + CompleteAliasHeader header_alias_enum = TypeObjectUtils::build_complete_alias_header(detail_alias_enum); + AliasMemberFlag related_flags_alias_enum = 0; + return_code_alias_enum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerEnumHelper", type_ids_alias_enum); - register_AliasUint16_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_enum) + { + ::register_InnerEnumHelper_type_identifier(type_ids_alias_enum); + } + bool common_alias_enum_ec {false}; + CommonAliasBody common_alias_enum {TypeObjectUtils::build_common_alias_body(related_flags_alias_enum, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_enum, common_alias_enum_ec))}; + if (!common_alias_enum_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_enum related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_enum; + ann_custom_alias_enum.reset(); + CompleteAliasBody body_alias_enum = TypeObjectUtils::build_complete_alias_body(common_alias_enum, + member_ann_builtin_alias_enum, ann_custom_alias_enum); + CompleteAliasType alias_type_alias_enum = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_enum, + header_alias_enum, body_alias_enum); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_enum, + type_name_alias_enum.to_string(), type_ids_alias_enum)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_enum already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasInt32_type_identifier(type_id); +void register_alias_bitmask_type_identifier( + TypeIdentifierPair& type_ids_alias_bitmask) +{ + ReturnCode_t return_code_alias_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_bitmask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_bitmask", type_ids_alias_bitmask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bitmask) + { + AliasTypeFlag alias_flags_alias_bitmask = 0; + QualifiedTypeName type_name_alias_bitmask = "alias_bitmask"; + eprosima::fastcdr::optional type_ann_builtin_alias_bitmask; + eprosima::fastcdr::optional ann_custom_alias_bitmask; + CompleteTypeDetail detail_alias_bitmask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bitmask, ann_custom_alias_bitmask, type_name_alias_bitmask.to_string()); + CompleteAliasHeader header_alias_bitmask = TypeObjectUtils::build_complete_alias_header(detail_alias_bitmask); + AliasMemberFlag related_flags_alias_bitmask = 0; + return_code_alias_bitmask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitMaskHelper", type_ids_alias_bitmask); - register_AliasUInt32_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bitmask) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_alias_bitmask); + } + bool common_alias_bitmask_ec {false}; + CommonAliasBody common_alias_bitmask {TypeObjectUtils::build_common_alias_body(related_flags_alias_bitmask, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_bitmask, common_alias_bitmask_ec))}; + if (!common_alias_bitmask_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_bitmask related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_bitmask; + ann_custom_alias_bitmask.reset(); + CompleteAliasBody body_alias_bitmask = TypeObjectUtils::build_complete_alias_body(common_alias_bitmask, + member_ann_builtin_alias_bitmask, ann_custom_alias_bitmask); + CompleteAliasType alias_type_alias_bitmask = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bitmask, + header_alias_bitmask, body_alias_bitmask); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bitmask, + type_name_alias_bitmask.to_string(), type_ids_alias_bitmask)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_bitmask already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasInt64_type_identifier(type_id); +void register_alias_alias_type_identifier( + TypeIdentifierPair& type_ids_alias_alias) +{ + ReturnCode_t return_code_alias_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_alias", type_ids_alias_alias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_alias) + { + AliasTypeFlag alias_flags_alias_alias = 0; + QualifiedTypeName type_name_alias_alias = "alias_alias"; + eprosima::fastcdr::optional type_ann_builtin_alias_alias; + eprosima::fastcdr::optional ann_custom_alias_alias; + CompleteTypeDetail detail_alias_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_alias, ann_custom_alias_alias, type_name_alias_alias.to_string()); + CompleteAliasHeader header_alias_alias = TypeObjectUtils::build_complete_alias_header(detail_alias_alias); + AliasMemberFlag related_flags_alias_alias = 0; + return_code_alias_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerAliasHelper", type_ids_alias_alias); - register_AliasUInt64_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_alias) + { + ::register_InnerAliasHelper_type_identifier(type_ids_alias_alias); + } + bool common_alias_alias_ec {false}; + CommonAliasBody common_alias_alias {TypeObjectUtils::build_common_alias_body(related_flags_alias_alias, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_alias, common_alias_alias_ec))}; + if (!common_alias_alias_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_alias related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_alias; + ann_custom_alias_alias.reset(); + CompleteAliasBody body_alias_alias = TypeObjectUtils::build_complete_alias_body(common_alias_alias, + member_ann_builtin_alias_alias, ann_custom_alias_alias); + CompleteAliasType alias_type_alias_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_alias, + header_alias_alias, body_alias_alias); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_alias, + type_name_alias_alias.to_string(), type_ids_alias_alias)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_alias already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasFloat32_type_identifier(type_id); +void register_alias_array_type_identifier( + TypeIdentifierPair& type_ids_alias_array) +{ + ReturnCode_t return_code_alias_array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_array = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_array", type_ids_alias_array); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_array) + { + AliasTypeFlag alias_flags_alias_array = 0; + QualifiedTypeName type_name_alias_array = "alias_array"; + eprosima::fastcdr::optional type_ann_builtin_alias_array; + eprosima::fastcdr::optional ann_custom_alias_array; + CompleteTypeDetail detail_alias_array = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_array, ann_custom_alias_array, type_name_alias_array.to_string()); + CompleteAliasHeader header_alias_array = TypeObjectUtils::build_complete_alias_header(detail_alias_array); + AliasMemberFlag related_flags_alias_array = 0; + return_code_alias_array = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_2", type_ids_alias_array); - register_AliasFloat64_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_array) + { + return_code_alias_array = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_array); - register_AliasFloat128_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_array) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_array_int16_t_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_array, element_identifier_anonymous_array_int16_t_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_2_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; + if (TK_NONE == type_ids_alias_array.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - register_AliasBool_type_identifier(type_id); + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2", type_ids_alias_array)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_array_ec {false}; + CommonAliasBody common_alias_array {TypeObjectUtils::build_common_alias_body(related_flags_alias_array, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_array, common_alias_array_ec))}; + if (!common_alias_array_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_array related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_array; + ann_custom_alias_array.reset(); + CompleteAliasBody body_alias_array = TypeObjectUtils::build_complete_alias_body(common_alias_array, + member_ann_builtin_alias_array, ann_custom_alias_array); + CompleteAliasType alias_type_alias_array = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_array, + header_alias_array, body_alias_array); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_array, + type_name_alias_array.to_string(), type_ids_alias_array)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_array already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasOctet_type_identifier(type_id); +void register_alias_multiarray_type_identifier( + TypeIdentifierPair& type_ids_alias_multiarray) +{ + ReturnCode_t return_code_alias_multiarray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_multiarray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_multiarray", type_ids_alias_multiarray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_multiarray) + { + AliasTypeFlag alias_flags_alias_multiarray = 0; + QualifiedTypeName type_name_alias_multiarray = "alias_multiarray"; + eprosima::fastcdr::optional type_ann_builtin_alias_multiarray; + eprosima::fastcdr::optional ann_custom_alias_multiarray; + CompleteTypeDetail detail_alias_multiarray = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_multiarray, ann_custom_alias_multiarray, type_name_alias_multiarray.to_string()); + CompleteAliasHeader header_alias_multiarray = TypeObjectUtils::build_complete_alias_header(detail_alias_multiarray); + AliasMemberFlag related_flags_alias_multiarray = 0; + return_code_alias_multiarray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_2_2", type_ids_alias_multiarray); - register_AliasChar8_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_multiarray) + { + return_code_alias_multiarray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_multiarray); - register_AliasChar16_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_multiarray) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_array_int16_t_2_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_multiarray, element_identifier_anonymous_array_int16_t_2_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_2_2_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_2_2 = EK_COMPLETE; + if (TK_NONE == type_ids_alias_multiarray.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_2_2 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_2_2 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_2_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2_2, element_flags_anonymous_array_int16_t_2_2); + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - register_AliasString8_type_identifier(type_id); + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - register_AliasString16_type_identifier(type_id); + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2_2, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2_2)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2_2", type_ids_alias_multiarray)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_2_2 already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_multiarray_ec {false}; + CommonAliasBody common_alias_multiarray {TypeObjectUtils::build_common_alias_body(related_flags_alias_multiarray, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_multiarray, common_alias_multiarray_ec))}; + if (!common_alias_multiarray_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_multiarray related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_multiarray; + ann_custom_alias_multiarray.reset(); + CompleteAliasBody body_alias_multiarray = TypeObjectUtils::build_complete_alias_body(common_alias_multiarray, + member_ann_builtin_alias_multiarray, ann_custom_alias_multiarray); + CompleteAliasType alias_type_alias_multiarray = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_multiarray, + header_alias_multiarray, body_alias_multiarray); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_multiarray, + type_name_alias_multiarray.to_string(), type_ids_alias_multiarray)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_multiarray already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasEnum_type_identifier(type_id); +void register_alias_sequence_type_identifier( + TypeIdentifierPair& type_ids_alias_sequence) +{ + ReturnCode_t return_code_alias_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_sequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_sequence", type_ids_alias_sequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_sequence) + { + AliasTypeFlag alias_flags_alias_sequence = 0; + QualifiedTypeName type_name_alias_sequence = "alias_sequence"; + eprosima::fastcdr::optional type_ann_builtin_alias_sequence; + eprosima::fastcdr::optional ann_custom_alias_sequence; + CompleteTypeDetail detail_alias_sequence = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_sequence, ann_custom_alias_sequence, type_name_alias_sequence.to_string()); + CompleteAliasHeader header_alias_sequence = TypeObjectUtils::build_complete_alias_header(detail_alias_sequence); + AliasMemberFlag related_flags_alias_sequence = 0; + return_code_alias_sequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_alias_sequence); - register_AliasBitmask_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_sequence) + { + return_code_alias_sequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_sequence); - register_AliasAlias_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_sequence) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_sequence, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_alias_sequence.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_alias_sequence)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_sequence_ec {false}; + CommonAliasBody common_alias_sequence {TypeObjectUtils::build_common_alias_body(related_flags_alias_sequence, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_sequence, common_alias_sequence_ec))}; + if (!common_alias_sequence_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_sequence related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_sequence; + ann_custom_alias_sequence.reset(); + CompleteAliasBody body_alias_sequence = TypeObjectUtils::build_complete_alias_body(common_alias_sequence, + member_ann_builtin_alias_sequence, ann_custom_alias_sequence); + CompleteAliasType alias_type_alias_sequence = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_sequence, + header_alias_sequence, body_alias_sequence); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_sequence, + type_name_alias_sequence.to_string(), type_ids_alias_sequence)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_sequence already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasArray_type_identifier(type_id); +void register_alias_map_type_identifier( + TypeIdentifierPair& type_ids_alias_map) +{ + ReturnCode_t return_code_alias_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_map = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_map", type_ids_alias_map); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_map) + { + AliasTypeFlag alias_flags_alias_map = 0; + QualifiedTypeName type_name_alias_map = "alias_map"; + eprosima::fastcdr::optional type_ann_builtin_alias_map; + eprosima::fastcdr::optional ann_custom_alias_map; + CompleteTypeDetail detail_alias_map = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_map, ann_custom_alias_map, type_name_alias_map.to_string()); + CompleteAliasHeader header_alias_map = TypeObjectUtils::build_complete_alias_header(detail_alias_map); + AliasMemberFlag related_flags_alias_map = 0; + return_code_alias_map = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_int16_t_int16_t_unbounded", type_ids_alias_map); - register_AliasMultiArray_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_map) + { + return_code_alias_map = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_map); - register_AliasSequence_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_map) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Map element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_map, element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int16_t_int16_t_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_alias_map = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_map); - register_AliasMap_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_map) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Map key TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_map, key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int16_t_int16_t_unbounded inconsistent key TypeIdentifier."); + return; + } + EquivalenceKind equiv_kind_anonymous_map_int16_t_int16_t_unbounded = EK_BOTH; + if ((EK_COMPLETE == key_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d()) || + (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_sdefn().header().equiv_kind())) || + (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_ldefn().header().equiv_kind()))) + { + equiv_kind_anonymous_map_int16_t_int16_t_unbounded = EK_COMPLETE; + } + CollectionElementFlag element_flags_anonymous_map_int16_t_int16_t_unbounded = 0; + CollectionElementFlag key_flags_anonymous_map_int16_t_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_map_int16_t_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int16_t_int16_t_unbounded, element_flags_anonymous_map_int16_t_int16_t_unbounded); + { + SBound bound = 0; + PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int16_t_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_int16_t_unbounded), key_flags_anonymous_map_int16_t_int16_t_unbounded, + eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int16_t_unbounded", type_ids_alias_map)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int16_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_alias_map_ec {false}; + CommonAliasBody common_alias_map {TypeObjectUtils::build_common_alias_body(related_flags_alias_map, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_map, common_alias_map_ec))}; + if (!common_alias_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_map related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_map; + ann_custom_alias_map.reset(); + CompleteAliasBody body_alias_map = TypeObjectUtils::build_complete_alias_body(common_alias_map, + member_ann_builtin_alias_map, ann_custom_alias_map); + CompleteAliasType alias_type_alias_map = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_map, + header_alias_map, body_alias_map); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_map, + type_name_alias_map.to_string(), type_ids_alias_map)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_map already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_alias_union_type_identifier( + TypeIdentifierPair& type_ids_alias_union) +{ + ReturnCode_t return_code_alias_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_union = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_union", type_ids_alias_union); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_union) + { + AliasTypeFlag alias_flags_alias_union = 0; + QualifiedTypeName type_name_alias_union = "alias_union"; + eprosima::fastcdr::optional type_ann_builtin_alias_union; + eprosima::fastcdr::optional ann_custom_alias_union; + CompleteTypeDetail detail_alias_union = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_union, ann_custom_alias_union, type_name_alias_union.to_string()); + CompleteAliasHeader header_alias_union = TypeObjectUtils::build_complete_alias_header(detail_alias_union); + AliasMemberFlag related_flags_alias_union = 0; + return_code_alias_union = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerUnionHelper", type_ids_alias_union); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_union) + { + ::register_InnerUnionHelper_type_identifier(type_ids_alias_union); + } + bool common_alias_union_ec {false}; + CommonAliasBody common_alias_union {TypeObjectUtils::build_common_alias_body(related_flags_alias_union, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_union, common_alias_union_ec))}; + if (!common_alias_union_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_union related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_union; + ann_custom_alias_union.reset(); + CompleteAliasBody body_alias_union = TypeObjectUtils::build_complete_alias_body(common_alias_union, + member_ann_builtin_alias_union, ann_custom_alias_union); + CompleteAliasType alias_type_alias_union = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_union, + header_alias_union, body_alias_union); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_union, + type_name_alias_union.to_string(), type_ids_alias_union)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_union already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasUnion_type_identifier(type_id); +void register_alias_structure_type_identifier( + TypeIdentifierPair& type_ids_alias_structure) +{ + ReturnCode_t return_code_alias_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_structure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_structure", type_ids_alias_structure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_structure) + { + AliasTypeFlag alias_flags_alias_structure = 0; + QualifiedTypeName type_name_alias_structure = "alias_structure"; + eprosima::fastcdr::optional type_ann_builtin_alias_structure; + eprosima::fastcdr::optional ann_custom_alias_structure; + CompleteTypeDetail detail_alias_structure = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_structure, ann_custom_alias_structure, type_name_alias_structure.to_string()); + CompleteAliasHeader header_alias_structure = TypeObjectUtils::build_complete_alias_header(detail_alias_structure); + AliasMemberFlag related_flags_alias_structure = 0; + return_code_alias_structure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelper", type_ids_alias_structure); - register_AliasStruct_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_structure) + { + ::register_InnerStructureHelper_type_identifier(type_ids_alias_structure); + } + bool common_alias_structure_ec {false}; + CommonAliasBody common_alias_structure {TypeObjectUtils::build_common_alias_body(related_flags_alias_structure, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_structure, common_alias_structure_ec))}; + if (!common_alias_structure_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_structure related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_structure; + ann_custom_alias_structure.reset(); + CompleteAliasBody body_alias_structure = TypeObjectUtils::build_complete_alias_body(common_alias_structure, + member_ann_builtin_alias_structure, ann_custom_alias_structure); + CompleteAliasType alias_type_alias_structure = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_structure, + header_alias_structure, body_alias_structure); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_structure, + type_name_alias_structure.to_string(), type_ids_alias_structure)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_structure already registered in TypeObjectRegistry for a different type."); + } + } +} - register_AliasBitset_type_identifier(type_id); +void register_alias_bitset_type_identifier( + TypeIdentifierPair& type_ids_alias_bitset) +{ + ReturnCode_t return_code_alias_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_bitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_bitset", type_ids_alias_bitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bitset) + { + AliasTypeFlag alias_flags_alias_bitset = 0; + QualifiedTypeName type_name_alias_bitset = "alias_bitset"; + eprosima::fastcdr::optional type_ann_builtin_alias_bitset; + eprosima::fastcdr::optional ann_custom_alias_bitset; + CompleteTypeDetail detail_alias_bitset = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bitset, ann_custom_alias_bitset, type_name_alias_bitset.to_string()); + CompleteAliasHeader header_alias_bitset = TypeObjectUtils::build_complete_alias_header(detail_alias_bitset); + AliasMemberFlag related_flags_alias_bitset = 0; + return_code_alias_bitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelper", type_ids_alias_bitset); - }); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_bitset) + { + ::register_InnerBitsetHelper_type_identifier(type_ids_alias_bitset); + } + bool common_alias_bitset_ec {false}; + CommonAliasBody common_alias_bitset {TypeObjectUtils::build_common_alias_body(related_flags_alias_bitset, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_bitset, common_alias_bitset_ec))}; + if (!common_alias_bitset_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_bitset related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_bitset; + ann_custom_alias_bitset.reset(); + CompleteAliasBody body_alias_bitset = TypeObjectUtils::build_complete_alias_body(common_alias_bitset, + member_ann_builtin_alias_bitset, ann_custom_alias_bitset); + CompleteAliasType alias_type_alias_bitset = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bitset, + header_alias_bitset, body_alias_bitset); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bitset, + type_name_alias_bitset.to_string(), type_ids_alias_bitset)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_bitset already registered in TypeObjectRegistry for a different type."); + } + } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasInt16_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasInt16) { + + ReturnCode_t return_code_AliasInt16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasInt16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasInt16", type_ids_AliasInt16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasInt16) { - StructTypeFlag struct_flags_AliasInt16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasInt16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasInt16; - TypeIdentifierPair type_ids_AliasInt16; QualifiedTypeName type_name_AliasInt16 = "AliasInt16"; eprosima::fastcdr::optional type_ann_builtin_AliasInt16; eprosima::fastcdr::optional ann_custom_AliasInt16; @@ -121,140 +1475,24 @@ void register_AliasInt16_type_identifier( header_AliasInt16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasInt16); CompleteStructMemberSeq member_seq_AliasInt16; { - return_code_AliasInt16 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int16", type_ids_AliasInt16); + "alias_int16", type_ids_value); - if (return_code_AliasInt16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_int16 = 0; - QualifiedTypeName type_name_alias_int16 = "alias_int16"; - eprosima::fastcdr::optional type_ann_builtin_alias_int16; - eprosima::fastcdr::optional ann_custom_alias_int16; - CompleteTypeDetail detail_alias_int16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int16, ann_custom_alias_int16, type_name_alias_int16.to_string()); - CompleteAliasHeader header_alias_int16 = TypeObjectUtils::build_complete_alias_header(detail_alias_int16); - AliasMemberFlag related_flags_alias_int16 = 0; - return_code_AliasInt16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasInt16); - - if (return_code_AliasInt16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int16 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_int16; - if (EK_COMPLETE == type_ids_AliasInt16.type_identifier1()._d() || TK_NONE == type_ids_AliasInt16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_int16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int16, type_ids_AliasInt16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_int16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int16, type_ids_AliasInt16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int16 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_int16; - ann_custom_alias_int16.reset(); - CompleteAliasBody body_alias_int16 = TypeObjectUtils::build_complete_alias_body(common_alias_int16, member_ann_builtin_alias_int16, ann_custom_alias_int16); - CompleteAliasType alias_type_alias_int16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int16, header_alias_int16, body_alias_int16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int16, type_name_alias_int16.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int16 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasInt16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int16", type_ids_AliasInt16); - if (return_code_AliasInt16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int16: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_int16_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasInt16.type_identifier1()._d() || TK_NONE == type_ids_AliasInt16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt16.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -266,32 +1504,26 @@ void register_AliasInt16_type_identifier( } CompleteStructType struct_type_AliasInt16 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasInt16, header_AliasInt16, member_seq_AliasInt16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt16, type_name_AliasInt16.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt16, type_name_AliasInt16.to_string(), type_ids_AliasInt16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasInt16 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasInt16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasInt16", type_ids_AliasInt16); - if (return_code_AliasInt16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasInt16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasUint16_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasUint16) { + + ReturnCode_t return_code_AliasUint16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasUint16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasUint16", type_ids_AliasUint16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasUint16) { - StructTypeFlag struct_flags_AliasUint16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasUint16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasUint16; - TypeIdentifierPair type_ids_AliasUint16; QualifiedTypeName type_name_AliasUint16 = "AliasUint16"; eprosima::fastcdr::optional type_ann_builtin_AliasUint16; eprosima::fastcdr::optional ann_custom_AliasUint16; @@ -300,140 +1532,24 @@ void register_AliasUint16_type_identifier( header_AliasUint16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasUint16); CompleteStructMemberSeq member_seq_AliasUint16; { - return_code_AliasUint16 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint16", type_ids_AliasUint16); + "alias_uint16", type_ids_value); - if (return_code_AliasUint16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_uint16 = 0; - QualifiedTypeName type_name_alias_uint16 = "alias_uint16"; - eprosima::fastcdr::optional type_ann_builtin_alias_uint16; - eprosima::fastcdr::optional ann_custom_alias_uint16; - CompleteTypeDetail detail_alias_uint16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint16, ann_custom_alias_uint16, type_name_alias_uint16.to_string()); - CompleteAliasHeader header_alias_uint16 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint16); - AliasMemberFlag related_flags_alias_uint16 = 0; - return_code_AliasUint16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_AliasUint16); - - if (return_code_AliasUint16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint16 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_uint16; - if (EK_COMPLETE == type_ids_AliasUint16.type_identifier1()._d() || TK_NONE == type_ids_AliasUint16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint16, type_ids_AliasUint16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUint16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint16, type_ids_AliasUint16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint16 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_uint16; - ann_custom_alias_uint16.reset(); - CompleteAliasBody body_alias_uint16 = TypeObjectUtils::build_complete_alias_body(common_alias_uint16, member_ann_builtin_alias_uint16, ann_custom_alias_uint16); - CompleteAliasType alias_type_alias_uint16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint16, header_alias_uint16, body_alias_uint16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint16, type_name_alias_uint16.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint16 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasUint16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint16", type_ids_AliasUint16); - if (return_code_AliasUint16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint16: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_uint16_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasUint16.type_identifier1()._d() || TK_NONE == type_ids_AliasUint16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUint16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUint16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUint16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUint16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUint16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUint16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUint16.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUint16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -445,32 +1561,26 @@ void register_AliasUint16_type_identifier( } CompleteStructType struct_type_AliasUint16 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasUint16, header_AliasUint16, member_seq_AliasUint16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUint16, type_name_AliasUint16.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUint16, type_name_AliasUint16.to_string(), type_ids_AliasUint16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasUint16 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasUint16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasUint16", type_ids_AliasUint16); - if (return_code_AliasUint16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasUint16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasInt32_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasInt32) { + + ReturnCode_t return_code_AliasInt32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasInt32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasInt32", type_ids_AliasInt32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasInt32) { - StructTypeFlag struct_flags_AliasInt32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasInt32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasInt32; - TypeIdentifierPair type_ids_AliasInt32; QualifiedTypeName type_name_AliasInt32 = "AliasInt32"; eprosima::fastcdr::optional type_ann_builtin_AliasInt32; eprosima::fastcdr::optional ann_custom_AliasInt32; @@ -479,140 +1589,24 @@ void register_AliasInt32_type_identifier( header_AliasInt32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasInt32); CompleteStructMemberSeq member_seq_AliasInt32; { - return_code_AliasInt32 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int32", type_ids_AliasInt32); + "alias_int32", type_ids_value); - if (return_code_AliasInt32 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_int32 = 0; - QualifiedTypeName type_name_alias_int32 = "alias_int32"; - eprosima::fastcdr::optional type_ann_builtin_alias_int32; - eprosima::fastcdr::optional ann_custom_alias_int32; - CompleteTypeDetail detail_alias_int32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int32, ann_custom_alias_int32, type_name_alias_int32.to_string()); - CompleteAliasHeader header_alias_int32 = TypeObjectUtils::build_complete_alias_header(detail_alias_int32); - AliasMemberFlag related_flags_alias_int32 = 0; - return_code_AliasInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AliasInt32); - - if (return_code_AliasInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int32 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_int32; - if (EK_COMPLETE == type_ids_AliasInt32.type_identifier1()._d() || TK_NONE == type_ids_AliasInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_int32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int32, type_ids_AliasInt32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_int32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int32, type_ids_AliasInt32.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int32 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_int32; - ann_custom_alias_int32.reset(); - CompleteAliasBody body_alias_int32 = TypeObjectUtils::build_complete_alias_body(common_alias_int32, member_ann_builtin_alias_int32, ann_custom_alias_int32); - CompleteAliasType alias_type_alias_int32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int32, header_alias_int32, body_alias_int32); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int32, type_name_alias_int32.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int32 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int32", type_ids_AliasInt32); - if (return_code_AliasInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int32: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_int32_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasInt32.type_identifier1()._d() || TK_NONE == type_ids_AliasInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt32.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -624,32 +1618,26 @@ void register_AliasInt32_type_identifier( } CompleteStructType struct_type_AliasInt32 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasInt32, header_AliasInt32, member_seq_AliasInt32); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt32, type_name_AliasInt32.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt32, type_name_AliasInt32.to_string(), type_ids_AliasInt32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasInt32 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasInt32", type_ids_AliasInt32); - if (return_code_AliasInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasInt32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasUInt32_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasUInt32) { + + ReturnCode_t return_code_AliasUInt32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasUInt32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasUInt32", type_ids_AliasUInt32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasUInt32) { - StructTypeFlag struct_flags_AliasUInt32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasUInt32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasUInt32; - TypeIdentifierPair type_ids_AliasUInt32; QualifiedTypeName type_name_AliasUInt32 = "AliasUInt32"; eprosima::fastcdr::optional type_ann_builtin_AliasUInt32; eprosima::fastcdr::optional ann_custom_AliasUInt32; @@ -658,140 +1646,24 @@ void register_AliasUInt32_type_identifier( header_AliasUInt32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasUInt32); CompleteStructMemberSeq member_seq_AliasUInt32; { - return_code_AliasUInt32 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint32", type_ids_AliasUInt32); + "alias_uint32", type_ids_value); - if (return_code_AliasUInt32 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_uint32 = 0; - QualifiedTypeName type_name_alias_uint32 = "alias_uint32"; - eprosima::fastcdr::optional type_ann_builtin_alias_uint32; - eprosima::fastcdr::optional ann_custom_alias_uint32; - CompleteTypeDetail detail_alias_uint32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint32, ann_custom_alias_uint32, type_name_alias_uint32.to_string()); - CompleteAliasHeader header_alias_uint32 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint32); - AliasMemberFlag related_flags_alias_uint32 = 0; - return_code_AliasUInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_AliasUInt32); - - if (return_code_AliasUInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint32 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_uint32; - if (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1()._d() || TK_NONE == type_ids_AliasUInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint32, type_ids_AliasUInt32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint32, type_ids_AliasUInt32.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint32 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_uint32; - ann_custom_alias_uint32.reset(); - CompleteAliasBody body_alias_uint32 = TypeObjectUtils::build_complete_alias_body(common_alias_uint32, member_ann_builtin_alias_uint32, ann_custom_alias_uint32); - CompleteAliasType alias_type_alias_uint32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint32, header_alias_uint32, body_alias_uint32); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint32, type_name_alias_uint32.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint32 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasUInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint32", type_ids_AliasUInt32); - if (return_code_AliasUInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint32: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_uint32_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1()._d() || TK_NONE == type_ids_AliasUInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUInt32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUInt32.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -803,32 +1675,26 @@ void register_AliasUInt32_type_identifier( } CompleteStructType struct_type_AliasUInt32 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasUInt32, header_AliasUInt32, member_seq_AliasUInt32); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUInt32, type_name_AliasUInt32.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUInt32, type_name_AliasUInt32.to_string(), type_ids_AliasUInt32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasUInt32 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasUInt32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasUInt32", type_ids_AliasUInt32); - if (return_code_AliasUInt32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasUInt32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasInt64_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasInt64) { + + ReturnCode_t return_code_AliasInt64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasInt64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasInt64", type_ids_AliasInt64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasInt64) { - StructTypeFlag struct_flags_AliasInt64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasInt64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasInt64; - TypeIdentifierPair type_ids_AliasInt64; QualifiedTypeName type_name_AliasInt64 = "AliasInt64"; eprosima::fastcdr::optional type_ann_builtin_AliasInt64; eprosima::fastcdr::optional ann_custom_AliasInt64; @@ -837,140 +1703,24 @@ void register_AliasInt64_type_identifier( header_AliasInt64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasInt64); CompleteStructMemberSeq member_seq_AliasInt64; { - return_code_AliasInt64 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int64", type_ids_AliasInt64); + "alias_int64", type_ids_value); - if (return_code_AliasInt64 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_int64 = 0; - QualifiedTypeName type_name_alias_int64 = "alias_int64"; - eprosima::fastcdr::optional type_ann_builtin_alias_int64; - eprosima::fastcdr::optional ann_custom_alias_int64; - CompleteTypeDetail detail_alias_int64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_int64, ann_custom_alias_int64, type_name_alias_int64.to_string()); - CompleteAliasHeader header_alias_int64 = TypeObjectUtils::build_complete_alias_header(detail_alias_int64); - AliasMemberFlag related_flags_alias_int64 = 0; - return_code_AliasInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AliasInt64); - - if (return_code_AliasInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int64 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_int64; - if (EK_COMPLETE == type_ids_AliasInt64.type_identifier1()._d() || TK_NONE == type_ids_AliasInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_int64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int64, type_ids_AliasInt64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_int64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_int64, type_ids_AliasInt64.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int64 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_int64; - ann_custom_alias_int64.reset(); - CompleteAliasBody body_alias_int64 = TypeObjectUtils::build_complete_alias_body(common_alias_int64, member_ann_builtin_alias_int64, ann_custom_alias_int64); - CompleteAliasType alias_type_alias_int64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_int64, header_alias_int64, body_alias_int64); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_int64, type_name_alias_int64.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int64 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_int64", type_ids_AliasInt64); - if (return_code_AliasInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_int64: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_int64_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasInt64.type_identifier1()._d() || TK_NONE == type_ids_AliasInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasInt64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasInt64.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -982,32 +1732,26 @@ void register_AliasInt64_type_identifier( } CompleteStructType struct_type_AliasInt64 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasInt64, header_AliasInt64, member_seq_AliasInt64); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt64, type_name_AliasInt64.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasInt64, type_name_AliasInt64.to_string(), type_ids_AliasInt64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasInt64 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasInt64", type_ids_AliasInt64); - if (return_code_AliasInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasInt64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasUInt64_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasUInt64) { + + ReturnCode_t return_code_AliasUInt64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasUInt64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasUInt64", type_ids_AliasUInt64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasUInt64) { - StructTypeFlag struct_flags_AliasUInt64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasUInt64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasUInt64; - TypeIdentifierPair type_ids_AliasUInt64; QualifiedTypeName type_name_AliasUInt64 = "AliasUInt64"; eprosima::fastcdr::optional type_ann_builtin_AliasUInt64; eprosima::fastcdr::optional ann_custom_AliasUInt64; @@ -1016,140 +1760,24 @@ void register_AliasUInt64_type_identifier( header_AliasUInt64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasUInt64); CompleteStructMemberSeq member_seq_AliasUInt64; { - return_code_AliasUInt64 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint64", type_ids_AliasUInt64); + "alias_uint64", type_ids_value); - if (return_code_AliasUInt64 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_uint64 = 0; - QualifiedTypeName type_name_alias_uint64 = "alias_uint64"; - eprosima::fastcdr::optional type_ann_builtin_alias_uint64; - eprosima::fastcdr::optional ann_custom_alias_uint64; - CompleteTypeDetail detail_alias_uint64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_uint64, ann_custom_alias_uint64, type_name_alias_uint64.to_string()); - CompleteAliasHeader header_alias_uint64 = TypeObjectUtils::build_complete_alias_header(detail_alias_uint64); - AliasMemberFlag related_flags_alias_uint64 = 0; - return_code_AliasUInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_AliasUInt64); - - if (return_code_AliasUInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint64 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_uint64; - if (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1()._d() || TK_NONE == type_ids_AliasUInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint64, type_ids_AliasUInt64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_uint64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_uint64, type_ids_AliasUInt64.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint64 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_uint64; - ann_custom_alias_uint64.reset(); - CompleteAliasBody body_alias_uint64 = TypeObjectUtils::build_complete_alias_body(common_alias_uint64, member_ann_builtin_alias_uint64, ann_custom_alias_uint64); - CompleteAliasType alias_type_alias_uint64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_uint64, header_alias_uint64, body_alias_uint64); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_uint64, type_name_alias_uint64.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint64 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasUInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_uint64", type_ids_AliasUInt64); - if (return_code_AliasUInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_uint64: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_uint64_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1()._d() || TK_NONE == type_ids_AliasUInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUInt64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUInt64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUInt64.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUInt64.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1161,32 +1789,26 @@ void register_AliasUInt64_type_identifier( } CompleteStructType struct_type_AliasUInt64 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasUInt64, header_AliasUInt64, member_seq_AliasUInt64); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUInt64, type_name_AliasUInt64.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUInt64, type_name_AliasUInt64.to_string(), type_ids_AliasUInt64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasUInt64 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasUInt64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasUInt64", type_ids_AliasUInt64); - if (return_code_AliasUInt64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasUInt64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasFloat32_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasFloat32) { + + ReturnCode_t return_code_AliasFloat32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasFloat32 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasFloat32", type_ids_AliasFloat32); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasFloat32) { - StructTypeFlag struct_flags_AliasFloat32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasFloat32 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasFloat32; - TypeIdentifierPair type_ids_AliasFloat32; QualifiedTypeName type_name_AliasFloat32 = "AliasFloat32"; eprosima::fastcdr::optional type_ann_builtin_AliasFloat32; eprosima::fastcdr::optional ann_custom_AliasFloat32; @@ -1195,140 +1817,24 @@ void register_AliasFloat32_type_identifier( header_AliasFloat32 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasFloat32); CompleteStructMemberSeq member_seq_AliasFloat32; { - return_code_AliasFloat32 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float32", type_ids_AliasFloat32); + "alias_float32", type_ids_value); - if (return_code_AliasFloat32 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_float32 = 0; - QualifiedTypeName type_name_alias_float32 = "alias_float32"; - eprosima::fastcdr::optional type_ann_builtin_alias_float32; - eprosima::fastcdr::optional ann_custom_alias_float32; - CompleteTypeDetail detail_alias_float32 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float32, ann_custom_alias_float32, type_name_alias_float32.to_string()); - CompleteAliasHeader header_alias_float32 = TypeObjectUtils::build_complete_alias_header(detail_alias_float32); - AliasMemberFlag related_flags_alias_float32 = 0; - return_code_AliasFloat32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_AliasFloat32); - - if (return_code_AliasFloat32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float32 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_float32; - if (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_float32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float32, type_ids_AliasFloat32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_float32 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float32, type_ids_AliasFloat32.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float32 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_float32; - ann_custom_alias_float32.reset(); - CompleteAliasBody body_alias_float32 = TypeObjectUtils::build_complete_alias_body(common_alias_float32, member_ann_builtin_alias_float32, ann_custom_alias_float32); - CompleteAliasType alias_type_alias_float32 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float32, header_alias_float32, body_alias_float32); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float32, type_name_alias_float32.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float32 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasFloat32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float32", type_ids_AliasFloat32); - if (return_code_AliasFloat32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float32: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_float32_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat32.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat32.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat32.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat32.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat32.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1340,32 +1846,26 @@ void register_AliasFloat32_type_identifier( } CompleteStructType struct_type_AliasFloat32 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasFloat32, header_AliasFloat32, member_seq_AliasFloat32); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat32, type_name_AliasFloat32.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat32, type_name_AliasFloat32.to_string(), type_ids_AliasFloat32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasFloat32 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasFloat32 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasFloat32", type_ids_AliasFloat32); - if (return_code_AliasFloat32 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasFloat32: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasFloat64_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasFloat64) { + + ReturnCode_t return_code_AliasFloat64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasFloat64 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasFloat64", type_ids_AliasFloat64); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasFloat64) { - StructTypeFlag struct_flags_AliasFloat64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasFloat64 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasFloat64; - TypeIdentifierPair type_ids_AliasFloat64; QualifiedTypeName type_name_AliasFloat64 = "AliasFloat64"; eprosima::fastcdr::optional type_ann_builtin_AliasFloat64; eprosima::fastcdr::optional ann_custom_AliasFloat64; @@ -1374,140 +1874,24 @@ void register_AliasFloat64_type_identifier( header_AliasFloat64 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasFloat64); CompleteStructMemberSeq member_seq_AliasFloat64; { - return_code_AliasFloat64 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float64", type_ids_AliasFloat64); + "alias_float64", type_ids_value); - if (return_code_AliasFloat64 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_float64 = 0; - QualifiedTypeName type_name_alias_float64 = "alias_float64"; - eprosima::fastcdr::optional type_ann_builtin_alias_float64; - eprosima::fastcdr::optional ann_custom_alias_float64; - CompleteTypeDetail detail_alias_float64 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float64, ann_custom_alias_float64, type_name_alias_float64.to_string()); - CompleteAliasHeader header_alias_float64 = TypeObjectUtils::build_complete_alias_header(detail_alias_float64); - AliasMemberFlag related_flags_alias_float64 = 0; - return_code_AliasFloat64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_AliasFloat64); - - if (return_code_AliasFloat64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float64 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_float64; - if (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_float64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float64, type_ids_AliasFloat64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_float64 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float64, type_ids_AliasFloat64.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float64 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_float64; - ann_custom_alias_float64.reset(); - CompleteAliasBody body_alias_float64 = TypeObjectUtils::build_complete_alias_body(common_alias_float64, member_ann_builtin_alias_float64, ann_custom_alias_float64); - CompleteAliasType alias_type_alias_float64 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float64, header_alias_float64, body_alias_float64); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float64, type_name_alias_float64.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float64 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasFloat64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float64", type_ids_AliasFloat64); - if (return_code_AliasFloat64 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float64: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_float64_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat64.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat64.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat64.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat64.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat64.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1517,34 +1901,28 @@ void register_AliasFloat64_type_identifier( CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); TypeObjectUtils::add_complete_struct_member(member_seq_AliasFloat64, member_value); } - CompleteStructType struct_type_AliasFloat64 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasFloat64, header_AliasFloat64, member_seq_AliasFloat64); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat64, type_name_AliasFloat64.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasFloat64 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasFloat64 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasFloat64", type_ids_AliasFloat64); - if (return_code_AliasFloat64 != eprosima::fastdds::dds::RETCODE_OK) + CompleteStructType struct_type_AliasFloat64 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasFloat64, header_AliasFloat64, member_seq_AliasFloat64); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat64, type_name_AliasFloat64.to_string(), type_ids_AliasFloat64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasFloat64: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "AliasFloat64 already registered in TypeObjectRegistry for a different type."); } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasFloat128_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasFloat128) { + + ReturnCode_t return_code_AliasFloat128 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasFloat128 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasFloat128", type_ids_AliasFloat128); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasFloat128) { - StructTypeFlag struct_flags_AliasFloat128 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasFloat128 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasFloat128; - TypeIdentifierPair type_ids_AliasFloat128; QualifiedTypeName type_name_AliasFloat128 = "AliasFloat128"; eprosima::fastcdr::optional type_ann_builtin_AliasFloat128; eprosima::fastcdr::optional ann_custom_AliasFloat128; @@ -1553,140 +1931,24 @@ void register_AliasFloat128_type_identifier( header_AliasFloat128 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasFloat128); CompleteStructMemberSeq member_seq_AliasFloat128; { - return_code_AliasFloat128 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float128", type_ids_AliasFloat128); + "alias_float128", type_ids_value); - if (return_code_AliasFloat128 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_float128 = 0; - QualifiedTypeName type_name_alias_float128 = "alias_float128"; - eprosima::fastcdr::optional type_ann_builtin_alias_float128; - eprosima::fastcdr::optional ann_custom_alias_float128; - CompleteTypeDetail detail_alias_float128 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_float128, ann_custom_alias_float128, type_name_alias_float128.to_string()); - CompleteAliasHeader header_alias_float128 = TypeObjectUtils::build_complete_alias_header(detail_alias_float128); - AliasMemberFlag related_flags_alias_float128 = 0; - return_code_AliasFloat128 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_AliasFloat128); - - if (return_code_AliasFloat128 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float128 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_float128; - if (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat128.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_float128 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float128, type_ids_AliasFloat128.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_float128 = TypeObjectUtils::build_common_alias_body(related_flags_alias_float128, type_ids_AliasFloat128.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float128 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_float128; - ann_custom_alias_float128.reset(); - CompleteAliasBody body_alias_float128 = TypeObjectUtils::build_complete_alias_body(common_alias_float128, member_ann_builtin_alias_float128, ann_custom_alias_float128); - CompleteAliasType alias_type_alias_float128 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_float128, header_alias_float128, body_alias_float128); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_float128, type_name_alias_float128.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float128 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasFloat128 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_float128", type_ids_AliasFloat128); - if (return_code_AliasFloat128 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_float128: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_float128_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1()._d() || TK_NONE == type_ids_AliasFloat128.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat128.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat128.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat128.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasFloat128.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasFloat128.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasFloat128.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasFloat128.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1698,32 +1960,26 @@ void register_AliasFloat128_type_identifier( } CompleteStructType struct_type_AliasFloat128 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasFloat128, header_AliasFloat128, member_seq_AliasFloat128); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat128, type_name_AliasFloat128.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasFloat128, type_name_AliasFloat128.to_string(), type_ids_AliasFloat128)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasFloat128 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasFloat128 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasFloat128", type_ids_AliasFloat128); - if (return_code_AliasFloat128 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasFloat128: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasBool_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasBool) { + + ReturnCode_t return_code_AliasBool {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasBool = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasBool", type_ids_AliasBool); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasBool) { - StructTypeFlag struct_flags_AliasBool = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasBool = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasBool; - TypeIdentifierPair type_ids_AliasBool; QualifiedTypeName type_name_AliasBool = "AliasBool"; eprosima::fastcdr::optional type_ann_builtin_AliasBool; eprosima::fastcdr::optional ann_custom_AliasBool; @@ -1732,140 +1988,24 @@ void register_AliasBool_type_identifier( header_AliasBool = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasBool); CompleteStructMemberSeq member_seq_AliasBool; { - return_code_AliasBool = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bool", type_ids_AliasBool); + "alias_bool", type_ids_value); - if (return_code_AliasBool != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_bool = 0; - QualifiedTypeName type_name_alias_bool = "alias_bool"; - eprosima::fastcdr::optional type_ann_builtin_alias_bool; - eprosima::fastcdr::optional ann_custom_alias_bool; - CompleteTypeDetail detail_alias_bool = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bool, ann_custom_alias_bool, type_name_alias_bool.to_string()); - CompleteAliasHeader header_alias_bool = TypeObjectUtils::build_complete_alias_header(detail_alias_bool); - AliasMemberFlag related_flags_alias_bool = 0; - return_code_AliasBool = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_AliasBool); - - if (return_code_AliasBool != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bool related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_bool; - if (EK_COMPLETE == type_ids_AliasBool.type_identifier1()._d() || TK_NONE == type_ids_AliasBool.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBool.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBool.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_bool = TypeObjectUtils::build_common_alias_body(related_flags_alias_bool, type_ids_AliasBool.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBool.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBool.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBool.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_bool = TypeObjectUtils::build_common_alias_body(related_flags_alias_bool, type_ids_AliasBool.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bool related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_bool; - ann_custom_alias_bool.reset(); - CompleteAliasBody body_alias_bool = TypeObjectUtils::build_complete_alias_body(common_alias_bool, member_ann_builtin_alias_bool, ann_custom_alias_bool); - CompleteAliasType alias_type_alias_bool = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bool, header_alias_bool, body_alias_bool); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bool, type_name_alias_bool.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bool already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasBool = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bool", type_ids_AliasBool); - if (return_code_AliasBool != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bool: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_bool_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasBool.type_identifier1()._d() || TK_NONE == type_ids_AliasBool.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBool.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBool.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBool.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBool.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBool.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBool.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBool.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBool.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBool.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBool.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBool.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1877,32 +2017,26 @@ void register_AliasBool_type_identifier( } CompleteStructType struct_type_AliasBool = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasBool, header_AliasBool, member_seq_AliasBool); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBool, type_name_AliasBool.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBool, type_name_AliasBool.to_string(), type_ids_AliasBool)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasBool already registered in TypeObjectRegistry for a different type."); } - return_code_AliasBool = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasBool", type_ids_AliasBool); - if (return_code_AliasBool != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasBool: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasOctet) { + + ReturnCode_t return_code_AliasOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasOctet", type_ids_AliasOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasOctet) { - StructTypeFlag struct_flags_AliasOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasOctet; - TypeIdentifierPair type_ids_AliasOctet; QualifiedTypeName type_name_AliasOctet = "AliasOctet"; eprosima::fastcdr::optional type_ann_builtin_AliasOctet; eprosima::fastcdr::optional ann_custom_AliasOctet; @@ -1911,140 +2045,24 @@ void register_AliasOctet_type_identifier( header_AliasOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasOctet); CompleteStructMemberSeq member_seq_AliasOctet; { - return_code_AliasOctet = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_octet", type_ids_AliasOctet); + "alias_octet", type_ids_value); - if (return_code_AliasOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_octet = 0; - QualifiedTypeName type_name_alias_octet = "alias_octet"; - eprosima::fastcdr::optional type_ann_builtin_alias_octet; - eprosima::fastcdr::optional ann_custom_alias_octet; - CompleteTypeDetail detail_alias_octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_octet, ann_custom_alias_octet, type_name_alias_octet.to_string()); - CompleteAliasHeader header_alias_octet = TypeObjectUtils::build_complete_alias_header(detail_alias_octet); - AliasMemberFlag related_flags_alias_octet = 0; - return_code_AliasOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AliasOctet); - - if (return_code_AliasOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_octet related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_octet; - if (EK_COMPLETE == type_ids_AliasOctet.type_identifier1()._d() || TK_NONE == type_ids_AliasOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_octet = TypeObjectUtils::build_common_alias_body(related_flags_alias_octet, type_ids_AliasOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_octet = TypeObjectUtils::build_common_alias_body(related_flags_alias_octet, type_ids_AliasOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_octet related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_octet; - ann_custom_alias_octet.reset(); - CompleteAliasBody body_alias_octet = TypeObjectUtils::build_complete_alias_body(common_alias_octet, member_ann_builtin_alias_octet, ann_custom_alias_octet); - CompleteAliasType alias_type_alias_octet = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_octet, header_alias_octet, body_alias_octet); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_octet, type_name_alias_octet.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_octet already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_octet", type_ids_AliasOctet); - if (return_code_AliasOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_octet: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_octet_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasOctet.type_identifier1()._d() || TK_NONE == type_ids_AliasOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasOctet.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2056,32 +2074,26 @@ void register_AliasOctet_type_identifier( } CompleteStructType struct_type_AliasOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasOctet, header_AliasOctet, member_seq_AliasOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasOctet, type_name_AliasOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasOctet, type_name_AliasOctet.to_string(), type_ids_AliasOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasOctet already registered in TypeObjectRegistry for a different type."); } - return_code_AliasOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasOctet", type_ids_AliasOctet); - if (return_code_AliasOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasChar8_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasChar8) { + + ReturnCode_t return_code_AliasChar8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasChar8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasChar8", type_ids_AliasChar8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasChar8) { - StructTypeFlag struct_flags_AliasChar8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasChar8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasChar8; - TypeIdentifierPair type_ids_AliasChar8; QualifiedTypeName type_name_AliasChar8 = "AliasChar8"; eprosima::fastcdr::optional type_ann_builtin_AliasChar8; eprosima::fastcdr::optional ann_custom_AliasChar8; @@ -2090,140 +2102,24 @@ void register_AliasChar8_type_identifier( header_AliasChar8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasChar8); CompleteStructMemberSeq member_seq_AliasChar8; { - return_code_AliasChar8 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_char8", type_ids_AliasChar8); + "alias_char8", type_ids_value); - if (return_code_AliasChar8 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_char8 = 0; - QualifiedTypeName type_name_alias_char8 = "alias_char8"; - eprosima::fastcdr::optional type_ann_builtin_alias_char8; - eprosima::fastcdr::optional ann_custom_alias_char8; - CompleteTypeDetail detail_alias_char8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_char8, ann_custom_alias_char8, type_name_alias_char8.to_string()); - CompleteAliasHeader header_alias_char8 = TypeObjectUtils::build_complete_alias_header(detail_alias_char8); - AliasMemberFlag related_flags_alias_char8 = 0; - return_code_AliasChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AliasChar8); - - if (return_code_AliasChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char8 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_char8; - if (EK_COMPLETE == type_ids_AliasChar8.type_identifier1()._d() || TK_NONE == type_ids_AliasChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_char8 = TypeObjectUtils::build_common_alias_body(related_flags_alias_char8, type_ids_AliasChar8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_char8 = TypeObjectUtils::build_common_alias_body(related_flags_alias_char8, type_ids_AliasChar8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char8 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_char8; - ann_custom_alias_char8.reset(); - CompleteAliasBody body_alias_char8 = TypeObjectUtils::build_complete_alias_body(common_alias_char8, member_ann_builtin_alias_char8, ann_custom_alias_char8); - CompleteAliasType alias_type_alias_char8 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_char8, header_alias_char8, body_alias_char8); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_char8, type_name_alias_char8.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char8 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_char8", type_ids_AliasChar8); - if (return_code_AliasChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char8: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_char8_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasChar8.type_identifier1()._d() || TK_NONE == type_ids_AliasChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasChar8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar8.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasChar8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2235,32 +2131,26 @@ void register_AliasChar8_type_identifier( } CompleteStructType struct_type_AliasChar8 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasChar8, header_AliasChar8, member_seq_AliasChar8); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasChar8, type_name_AliasChar8.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasChar8, type_name_AliasChar8.to_string(), type_ids_AliasChar8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasChar8 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasChar8", type_ids_AliasChar8); - if (return_code_AliasChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasChar8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasChar16_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasChar16) { + + ReturnCode_t return_code_AliasChar16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasChar16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasChar16", type_ids_AliasChar16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasChar16) { - StructTypeFlag struct_flags_AliasChar16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasChar16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasChar16; - TypeIdentifierPair type_ids_AliasChar16; QualifiedTypeName type_name_AliasChar16 = "AliasChar16"; eprosima::fastcdr::optional type_ann_builtin_AliasChar16; eprosima::fastcdr::optional ann_custom_AliasChar16; @@ -2269,140 +2159,24 @@ void register_AliasChar16_type_identifier( header_AliasChar16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasChar16); CompleteStructMemberSeq member_seq_AliasChar16; { - return_code_AliasChar16 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_char16", type_ids_AliasChar16); + "alias_char16", type_ids_value); - if (return_code_AliasChar16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_char16 = 0; - QualifiedTypeName type_name_alias_char16 = "alias_char16"; - eprosima::fastcdr::optional type_ann_builtin_alias_char16; - eprosima::fastcdr::optional ann_custom_alias_char16; - CompleteTypeDetail detail_alias_char16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_char16, ann_custom_alias_char16, type_name_alias_char16.to_string()); - CompleteAliasHeader header_alias_char16 = TypeObjectUtils::build_complete_alias_header(detail_alias_char16); - AliasMemberFlag related_flags_alias_char16 = 0; - return_code_AliasChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_AliasChar16); - - if (return_code_AliasChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char16 related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_char16; - if (EK_COMPLETE == type_ids_AliasChar16.type_identifier1()._d() || TK_NONE == type_ids_AliasChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_char16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_char16, type_ids_AliasChar16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_char16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_char16, type_ids_AliasChar16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char16 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_char16; - ann_custom_alias_char16.reset(); - CompleteAliasBody body_alias_char16 = TypeObjectUtils::build_complete_alias_body(common_alias_char16, member_ann_builtin_alias_char16, ann_custom_alias_char16); - CompleteAliasType alias_type_alias_char16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_char16, header_alias_char16, body_alias_char16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_char16, type_name_alias_char16.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char16 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_char16", type_ids_AliasChar16); - if (return_code_AliasChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_char16: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_char16_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasChar16.type_identifier1()._d() || TK_NONE == type_ids_AliasChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasChar16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasChar16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasChar16.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2414,32 +2188,26 @@ void register_AliasChar16_type_identifier( } CompleteStructType struct_type_AliasChar16 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasChar16, header_AliasChar16, member_seq_AliasChar16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasChar16, type_name_AliasChar16.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasChar16, type_name_AliasChar16.to_string(), type_ids_AliasChar16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasChar16 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasChar16", type_ids_AliasChar16); - if (return_code_AliasChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasChar16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasString8_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasString8) { + + ReturnCode_t return_code_AliasString8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasString8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasString8", type_ids_AliasString8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasString8) { - StructTypeFlag struct_flags_AliasString8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasString8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasString8; - TypeIdentifierPair type_ids_AliasString8; QualifiedTypeName type_name_AliasString8 = "AliasString8"; eprosima::fastcdr::optional type_ann_builtin_AliasString8; eprosima::fastcdr::optional ann_custom_AliasString8; @@ -2448,157 +2216,24 @@ void register_AliasString8_type_identifier( header_AliasString8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasString8); CompleteStructMemberSeq member_seq_AliasString8; { - return_code_AliasString8 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_string8", type_ids_AliasString8); + "alias_string8", type_ids_value); - if (return_code_AliasString8 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_string8 = 0; - QualifiedTypeName type_name_alias_string8 = "alias_string8"; - eprosima::fastcdr::optional type_ann_builtin_alias_string8; - eprosima::fastcdr::optional ann_custom_alias_string8; - CompleteTypeDetail detail_alias_string8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_string8, ann_custom_alias_string8, type_name_alias_string8.to_string()); - CompleteAliasHeader header_alias_string8 = TypeObjectUtils::build_complete_alias_header(detail_alias_string8); - AliasMemberFlag related_flags_alias_string8 = 0; - return_code_AliasString8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AliasString8); - - if (return_code_AliasString8 != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasString8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AliasString8); - if (return_code_AliasString8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_string8; - if (EK_COMPLETE == type_ids_AliasString8.type_identifier1()._d() || TK_NONE == type_ids_AliasString8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_string8 = TypeObjectUtils::build_common_alias_body(related_flags_alias_string8, type_ids_AliasString8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasString8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_string8 = TypeObjectUtils::build_common_alias_body(related_flags_alias_string8, type_ids_AliasString8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string8 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_string8; - ann_custom_alias_string8.reset(); - CompleteAliasBody body_alias_string8 = TypeObjectUtils::build_complete_alias_body(common_alias_string8, member_ann_builtin_alias_string8, ann_custom_alias_string8); - CompleteAliasType alias_type_alias_string8 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_string8, header_alias_string8, body_alias_string8); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_string8, type_name_alias_string8.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string8 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasString8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_string8", type_ids_AliasString8); - if (return_code_AliasString8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string8: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_string8_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasString8.type_identifier1()._d() || TK_NONE == type_ids_AliasString8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString8.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasString8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasString8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString8.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasString8.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2610,32 +2245,26 @@ void register_AliasString8_type_identifier( } CompleteStructType struct_type_AliasString8 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasString8, header_AliasString8, member_seq_AliasString8); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasString8, type_name_AliasString8.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasString8, type_name_AliasString8.to_string(), type_ids_AliasString8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasString8 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasString8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasString8", type_ids_AliasString8); - if (return_code_AliasString8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasString8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasString16_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasString16) { + + ReturnCode_t return_code_AliasString16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasString16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasString16", type_ids_AliasString16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasString16) { - StructTypeFlag struct_flags_AliasString16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasString16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasString16; - TypeIdentifierPair type_ids_AliasString16; QualifiedTypeName type_name_AliasString16 = "AliasString16"; eprosima::fastcdr::optional type_ann_builtin_AliasString16; eprosima::fastcdr::optional ann_custom_AliasString16; @@ -2644,157 +2273,24 @@ void register_AliasString16_type_identifier( header_AliasString16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasString16); CompleteStructMemberSeq member_seq_AliasString16; { - return_code_AliasString16 = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_string16", type_ids_AliasString16); + "alias_string16", type_ids_value); - if (return_code_AliasString16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_string16 = 0; - QualifiedTypeName type_name_alias_string16 = "alias_string16"; - eprosima::fastcdr::optional type_ann_builtin_alias_string16; - eprosima::fastcdr::optional ann_custom_alias_string16; - CompleteTypeDetail detail_alias_string16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_string16, ann_custom_alias_string16, type_name_alias_string16.to_string()); - CompleteAliasHeader header_alias_string16 = TypeObjectUtils::build_complete_alias_header(detail_alias_string16); - AliasMemberFlag related_flags_alias_string16 = 0; - return_code_AliasString16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_AliasString16); - - if (return_code_AliasString16 != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasString16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_AliasString16); - if (return_code_AliasString16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_string16; - if (EK_COMPLETE == type_ids_AliasString16.type_identifier1()._d() || TK_NONE == type_ids_AliasString16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_string16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_string16, type_ids_AliasString16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasString16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_string16 = TypeObjectUtils::build_common_alias_body(related_flags_alias_string16, type_ids_AliasString16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string16 related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_string16; - ann_custom_alias_string16.reset(); - CompleteAliasBody body_alias_string16 = TypeObjectUtils::build_complete_alias_body(common_alias_string16, member_ann_builtin_alias_string16, ann_custom_alias_string16); - CompleteAliasType alias_type_alias_string16 = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_string16, header_alias_string16, body_alias_string16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_string16, type_name_alias_string16.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string16 already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasString16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_string16", type_ids_AliasString16); - if (return_code_AliasString16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_string16: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_string16_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasString16.type_identifier1()._d() || TK_NONE == type_ids_AliasString16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString16.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasString16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasString16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasString16.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasString16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasString16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasString16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasString16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasString16.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2806,32 +2302,26 @@ void register_AliasString16_type_identifier( } CompleteStructType struct_type_AliasString16 = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasString16, header_AliasString16, member_seq_AliasString16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasString16, type_name_AliasString16.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasString16, type_name_AliasString16.to_string(), type_ids_AliasString16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasString16 already registered in TypeObjectRegistry for a different type."); } - return_code_AliasString16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasString16", type_ids_AliasString16); - if (return_code_AliasString16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasString16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasEnum) { + + ReturnCode_t return_code_AliasEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasEnum", type_ids_AliasEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasEnum) { - StructTypeFlag struct_flags_AliasEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasEnum; - TypeIdentifierPair type_ids_AliasEnum; QualifiedTypeName type_name_AliasEnum = "AliasEnum"; eprosima::fastcdr::optional type_ann_builtin_AliasEnum; eprosima::fastcdr::optional ann_custom_AliasEnum; @@ -2840,193 +2330,24 @@ void register_AliasEnum_type_identifier( header_AliasEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasEnum); CompleteStructMemberSeq member_seq_AliasEnum; { - return_code_AliasEnum = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_enum", type_ids_AliasEnum); + "alias_enum", type_ids_value); - if (return_code_AliasEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_enum = 0; - QualifiedTypeName type_name_alias_enum = "alias_enum"; - eprosima::fastcdr::optional type_ann_builtin_alias_enum; - eprosima::fastcdr::optional ann_custom_alias_enum; - CompleteTypeDetail detail_alias_enum = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_enum, ann_custom_alias_enum, type_name_alias_enum.to_string()); - CompleteAliasHeader header_alias_enum = TypeObjectUtils::build_complete_alias_header(detail_alias_enum); - AliasMemberFlag related_flags_alias_enum = 0; - return_code_AliasEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_AliasEnum); - - if (return_code_AliasEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_AliasEnum); - if (return_code_AliasEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_enum; - if (EK_COMPLETE == type_ids_AliasEnum.type_identifier1()._d() || TK_NONE == type_ids_AliasEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_enum = TypeObjectUtils::build_common_alias_body(related_flags_alias_enum, type_ids_AliasEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_enum = TypeObjectUtils::build_common_alias_body(related_flags_alias_enum, type_ids_AliasEnum.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_enum related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_enum; - ann_custom_alias_enum.reset(); - CompleteAliasBody body_alias_enum = TypeObjectUtils::build_complete_alias_body(common_alias_enum, member_ann_builtin_alias_enum, ann_custom_alias_enum); - CompleteAliasType alias_type_alias_enum = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_enum, header_alias_enum, body_alias_enum); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_enum, type_name_alias_enum.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_enum already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_enum", type_ids_AliasEnum); - if (return_code_AliasEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_enum: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_enum_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasEnum.type_identifier1()._d() || TK_NONE == type_ids_AliasEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasEnum.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3038,260 +2359,52 @@ void register_AliasEnum_type_identifier( } CompleteStructType struct_type_AliasEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasEnum, header_AliasEnum, member_seq_AliasEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasEnum, type_name_AliasEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasEnum, type_name_AliasEnum.to_string(), type_ids_AliasEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasEnum already registered in TypeObjectRegistry for a different type."); } - return_code_AliasEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasEnum", type_ids_AliasEnum); - if (return_code_AliasEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasBitmask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasBitmask) { + + ReturnCode_t return_code_AliasBitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasBitmask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasBitmask", type_ids_AliasBitmask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasBitmask) { - StructTypeFlag struct_flags_AliasBitmask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasBitmask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasBitmask; - TypeIdentifierPair type_ids_AliasBitmask; QualifiedTypeName type_name_AliasBitmask = "AliasBitmask"; eprosima::fastcdr::optional type_ann_builtin_AliasBitmask; eprosima::fastcdr::optional ann_custom_AliasBitmask; CompleteTypeDetail detail_AliasBitmask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AliasBitmask, ann_custom_AliasBitmask, type_name_AliasBitmask.to_string()); CompleteStructHeader header_AliasBitmask; header_AliasBitmask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasBitmask); - CompleteStructMemberSeq member_seq_AliasBitmask; - { - return_code_AliasBitmask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bitmask", type_ids_AliasBitmask); - - if (return_code_AliasBitmask != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_alias_bitmask = 0; - QualifiedTypeName type_name_alias_bitmask = "alias_bitmask"; - eprosima::fastcdr::optional type_ann_builtin_alias_bitmask; - eprosima::fastcdr::optional ann_custom_alias_bitmask; - CompleteTypeDetail detail_alias_bitmask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bitmask, ann_custom_alias_bitmask, type_name_alias_bitmask.to_string()); - CompleteAliasHeader header_alias_bitmask = TypeObjectUtils::build_complete_alias_header(detail_alias_bitmask); - AliasMemberFlag related_flags_alias_bitmask = 0; - return_code_AliasBitmask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_AliasBitmask); - - if (return_code_AliasBitmask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasBitmask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_AliasBitmask); - if (return_code_AliasBitmask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_bitmask; - if (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1()._d() || TK_NONE == type_ids_AliasBitmask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_bitmask = TypeObjectUtils::build_common_alias_body(related_flags_alias_bitmask, type_ids_AliasBitmask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_bitmask = TypeObjectUtils::build_common_alias_body(related_flags_alias_bitmask, type_ids_AliasBitmask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitmask related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_bitmask; - ann_custom_alias_bitmask.reset(); - CompleteAliasBody body_alias_bitmask = TypeObjectUtils::build_complete_alias_body(common_alias_bitmask, member_ann_builtin_alias_bitmask, ann_custom_alias_bitmask); - CompleteAliasType alias_type_alias_bitmask = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bitmask, header_alias_bitmask, body_alias_bitmask); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bitmask, type_name_alias_bitmask.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitmask already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasBitmask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bitmask", type_ids_AliasBitmask); - if (return_code_AliasBitmask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitmask: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + CompleteStructMemberSeq member_seq_AliasBitmask; + { + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_bitmask", type_ids_value); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) + { + ::register_alias_bitmask_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1()._d() || TK_NONE == type_ids_AliasBitmask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitmask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitmask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBitmask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitmask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitmask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitmask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBitmask.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3303,32 +2416,26 @@ void register_AliasBitmask_type_identifier( } CompleteStructType struct_type_AliasBitmask = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasBitmask, header_AliasBitmask, member_seq_AliasBitmask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBitmask, type_name_AliasBitmask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBitmask, type_name_AliasBitmask.to_string(), type_ids_AliasBitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasBitmask already registered in TypeObjectRegistry for a different type."); } - return_code_AliasBitmask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasBitmask", type_ids_AliasBitmask); - if (return_code_AliasBitmask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasBitmask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasAlias) { + + ReturnCode_t return_code_AliasAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasAlias", type_ids_AliasAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasAlias) { - StructTypeFlag struct_flags_AliasAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasAlias; - TypeIdentifierPair type_ids_AliasAlias; QualifiedTypeName type_name_AliasAlias = "AliasAlias"; eprosima::fastcdr::optional type_ann_builtin_AliasAlias; eprosima::fastcdr::optional ann_custom_AliasAlias; @@ -3337,218 +2444,24 @@ void register_AliasAlias_type_identifier( header_AliasAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasAlias); CompleteStructMemberSeq member_seq_AliasAlias; { - return_code_AliasAlias = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_alias", type_ids_AliasAlias); + "alias_alias", type_ids_value); - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_alias = 0; - QualifiedTypeName type_name_alias_alias = "alias_alias"; - eprosima::fastcdr::optional type_ann_builtin_alias_alias; - eprosima::fastcdr::optional ann_custom_alias_alias; - CompleteTypeDetail detail_alias_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_alias, ann_custom_alias_alias, type_name_alias_alias.to_string()); - CompleteAliasHeader header_alias_alias = TypeObjectUtils::build_complete_alias_header(detail_alias_alias); - AliasMemberFlag related_flags_alias_alias = 0; - return_code_AliasAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_AliasAlias); - - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_AliasAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AliasAlias); - - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_AliasAlias.type_identifier1()._d() || TK_NONE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_AliasAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_AliasAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_AliasAlias); - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_alias; - if (EK_COMPLETE == type_ids_AliasAlias.type_identifier1()._d() || TK_NONE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_alias = TypeObjectUtils::build_common_alias_body(related_flags_alias_alias, type_ids_AliasAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_alias = TypeObjectUtils::build_common_alias_body(related_flags_alias_alias, type_ids_AliasAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_alias related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_alias; - ann_custom_alias_alias.reset(); - CompleteAliasBody body_alias_alias = TypeObjectUtils::build_complete_alias_body(common_alias_alias, member_ann_builtin_alias_alias, ann_custom_alias_alias); - CompleteAliasType alias_type_alias_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_alias, header_alias_alias, body_alias_alias); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_alias, type_name_alias_alias.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_alias already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_alias", type_ids_AliasAlias); - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_alias: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_alias_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasAlias.type_identifier1()._d() || TK_NONE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3560,32 +2473,26 @@ void register_AliasAlias_type_identifier( } CompleteStructType struct_type_AliasAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasAlias, header_AliasAlias, member_seq_AliasAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasAlias, type_name_AliasAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasAlias, type_name_AliasAlias.to_string(), type_ids_AliasAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasAlias already registered in TypeObjectRegistry for a different type."); } - return_code_AliasAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasAlias", type_ids_AliasAlias); - if (return_code_AliasAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasArray) { + + ReturnCode_t return_code_AliasArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasArray", type_ids_AliasArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasArray) { - StructTypeFlag struct_flags_AliasArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasArray; - TypeIdentifierPair type_ids_AliasArray; QualifiedTypeName type_name_AliasArray = "AliasArray"; eprosima::fastcdr::optional type_ann_builtin_AliasArray; eprosima::fastcdr::optional ann_custom_AliasArray; @@ -3594,221 +2501,24 @@ void register_AliasArray_type_identifier( header_AliasArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasArray); CompleteStructMemberSeq member_seq_AliasArray; { - return_code_AliasArray = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_array", type_ids_AliasArray); + "alias_array", type_ids_value); - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_array = 0; - QualifiedTypeName type_name_alias_array = "alias_array"; - eprosima::fastcdr::optional type_ann_builtin_alias_array; - eprosima::fastcdr::optional ann_custom_alias_array; - CompleteTypeDetail detail_alias_array = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_array, ann_custom_alias_array, type_name_alias_array.to_string()); - CompleteAliasHeader header_alias_array = TypeObjectUtils::build_complete_alias_header(detail_alias_array); - AliasMemberFlag related_flags_alias_array = 0; - return_code_AliasArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_AliasArray); - - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_AliasArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasArray); - - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_AliasArray.type_identifier1()._d() || TK_NONE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_AliasArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_AliasArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_AliasArray.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_AliasArray); - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_array; - if (EK_COMPLETE == type_ids_AliasArray.type_identifier1()._d() || TK_NONE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_array = TypeObjectUtils::build_common_alias_body(related_flags_alias_array, type_ids_AliasArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_array = TypeObjectUtils::build_common_alias_body(related_flags_alias_array, type_ids_AliasArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_array related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_array; - ann_custom_alias_array.reset(); - CompleteAliasBody body_alias_array = TypeObjectUtils::build_complete_alias_body(common_alias_array, member_ann_builtin_alias_array, ann_custom_alias_array); - CompleteAliasType alias_type_alias_array = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_array, header_alias_array, body_alias_array); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_array, type_name_alias_array.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_array already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_array", type_ids_AliasArray); - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_array: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_array_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasArray.type_identifier1()._d() || TK_NONE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3820,32 +2530,26 @@ void register_AliasArray_type_identifier( } CompleteStructType struct_type_AliasArray = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasArray, header_AliasArray, member_seq_AliasArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasArray, type_name_AliasArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasArray, type_name_AliasArray.to_string(), type_ids_AliasArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasArray already registered in TypeObjectRegistry for a different type."); } - return_code_AliasArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasArray", type_ids_AliasArray); - if (return_code_AliasArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasMultiArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasMultiArray) { + + ReturnCode_t return_code_AliasMultiArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasMultiArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasMultiArray", type_ids_AliasMultiArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasMultiArray) { - StructTypeFlag struct_flags_AliasMultiArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasMultiArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasMultiArray; - TypeIdentifierPair type_ids_AliasMultiArray; QualifiedTypeName type_name_AliasMultiArray = "AliasMultiArray"; eprosima::fastcdr::optional type_ann_builtin_AliasMultiArray; eprosima::fastcdr::optional ann_custom_AliasMultiArray; @@ -3854,223 +2558,24 @@ void register_AliasMultiArray_type_identifier( header_AliasMultiArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasMultiArray); CompleteStructMemberSeq member_seq_AliasMultiArray; { - return_code_AliasMultiArray = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_multiarray", type_ids_AliasMultiArray); + "alias_multiarray", type_ids_value); - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_multiarray = 0; - QualifiedTypeName type_name_alias_multiarray = "alias_multiarray"; - eprosima::fastcdr::optional type_ann_builtin_alias_multiarray; - eprosima::fastcdr::optional ann_custom_alias_multiarray; - CompleteTypeDetail detail_alias_multiarray = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_multiarray, ann_custom_alias_multiarray, type_name_alias_multiarray.to_string()); - CompleteAliasHeader header_alias_multiarray = TypeObjectUtils::build_complete_alias_header(detail_alias_multiarray); - AliasMemberFlag related_flags_alias_multiarray = 0; - return_code_AliasMultiArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2_2", type_ids_AliasMultiArray); - - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_AliasMultiArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasMultiArray); - - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2_2 {nullptr}; - if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1()._d() || TK_NONE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2_2 = new TypeIdentifier(type_ids_AliasMultiArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2_2 = new TypeIdentifier(type_ids_AliasMultiArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2_2 = EK_COMPLETE; - if (TK_NONE == type_ids_AliasMultiArray.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2_2, element_flags_anonymous_array_int16_t_2_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasMultiArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2_2", type_ids_AliasMultiArray); - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_multiarray; - if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1()._d() || TK_NONE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_multiarray = TypeObjectUtils::build_common_alias_body(related_flags_alias_multiarray, type_ids_AliasMultiArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_multiarray = TypeObjectUtils::build_common_alias_body(related_flags_alias_multiarray, type_ids_AliasMultiArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_multiarray related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_multiarray; - ann_custom_alias_multiarray.reset(); - CompleteAliasBody body_alias_multiarray = TypeObjectUtils::build_complete_alias_body(common_alias_multiarray, member_ann_builtin_alias_multiarray, ann_custom_alias_multiarray); - CompleteAliasType alias_type_alias_multiarray = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_multiarray, header_alias_multiarray, body_alias_multiarray); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_multiarray, type_name_alias_multiarray.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_multiarray already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasMultiArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_multiarray", type_ids_AliasMultiArray); - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_multiarray: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_multiarray_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1()._d() || TK_NONE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasMultiArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMultiArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMultiArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasMultiArray.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4082,32 +2587,26 @@ void register_AliasMultiArray_type_identifier( } CompleteStructType struct_type_AliasMultiArray = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasMultiArray, header_AliasMultiArray, member_seq_AliasMultiArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasMultiArray, type_name_AliasMultiArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasMultiArray, type_name_AliasMultiArray.to_string(), type_ids_AliasMultiArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasMultiArray already registered in TypeObjectRegistry for a different type."); } - return_code_AliasMultiArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasMultiArray", type_ids_AliasMultiArray); - if (return_code_AliasMultiArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasMultiArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasSequence) { + + ReturnCode_t return_code_AliasSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasSequence", type_ids_AliasSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasSequence) { - StructTypeFlag struct_flags_AliasSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasSequence; - TypeIdentifierPair type_ids_AliasSequence; QualifiedTypeName type_name_AliasSequence = "AliasSequence"; eprosima::fastcdr::optional type_ann_builtin_AliasSequence; eprosima::fastcdr::optional ann_custom_AliasSequence; @@ -4116,219 +2615,24 @@ void register_AliasSequence_type_identifier( header_AliasSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasSequence); CompleteStructMemberSeq member_seq_AliasSequence; { - return_code_AliasSequence = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_sequence", type_ids_AliasSequence); + "alias_sequence", type_ids_value); - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_sequence = 0; - QualifiedTypeName type_name_alias_sequence = "alias_sequence"; - eprosima::fastcdr::optional type_ann_builtin_alias_sequence; - eprosima::fastcdr::optional ann_custom_alias_sequence; - CompleteTypeDetail detail_alias_sequence = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_sequence, ann_custom_alias_sequence, type_name_alias_sequence.to_string()); - CompleteAliasHeader header_alias_sequence = TypeObjectUtils::build_complete_alias_header(detail_alias_sequence); - AliasMemberFlag related_flags_alias_sequence = 0; - return_code_AliasSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_AliasSequence); - - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_AliasSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasSequence); - - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_AliasSequence.type_identifier1()._d() || TK_NONE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_AliasSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_AliasSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_AliasSequence.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_AliasSequence); - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_sequence; - if (EK_COMPLETE == type_ids_AliasSequence.type_identifier1()._d() || TK_NONE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_sequence = TypeObjectUtils::build_common_alias_body(related_flags_alias_sequence, type_ids_AliasSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_sequence = TypeObjectUtils::build_common_alias_body(related_flags_alias_sequence, type_ids_AliasSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_sequence related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_sequence; - ann_custom_alias_sequence.reset(); - CompleteAliasBody body_alias_sequence = TypeObjectUtils::build_complete_alias_body(common_alias_sequence, member_ann_builtin_alias_sequence, ann_custom_alias_sequence); - CompleteAliasType alias_type_alias_sequence = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_sequence, header_alias_sequence, body_alias_sequence); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_sequence, type_name_alias_sequence.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_sequence already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_sequence", type_ids_AliasSequence); - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_sequence: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_sequence_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasSequence.type_identifier1()._d() || TK_NONE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasSequence.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4340,32 +2644,26 @@ void register_AliasSequence_type_identifier( } CompleteStructType struct_type_AliasSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasSequence, header_AliasSequence, member_seq_AliasSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasSequence, type_name_AliasSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasSequence, type_name_AliasSequence.to_string(), type_ids_AliasSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasSequence already registered in TypeObjectRegistry for a different type."); } - return_code_AliasSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasSequence", type_ids_AliasSequence); - if (return_code_AliasSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasMap) { + + ReturnCode_t return_code_AliasMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasMap", type_ids_AliasMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasMap) { - StructTypeFlag struct_flags_AliasMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasMap; - TypeIdentifierPair type_ids_AliasMap; QualifiedTypeName type_name_AliasMap = "AliasMap"; eprosima::fastcdr::optional type_ann_builtin_AliasMap; eprosima::fastcdr::optional ann_custom_AliasMap; @@ -4374,282 +2672,24 @@ void register_AliasMap_type_identifier( header_AliasMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasMap); CompleteStructMemberSeq member_seq_AliasMap; { - return_code_AliasMap = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_map", type_ids_AliasMap); + "alias_map", type_ids_value); - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_map = 0; - QualifiedTypeName type_name_alias_map = "alias_map"; - eprosima::fastcdr::optional type_ann_builtin_alias_map; - eprosima::fastcdr::optional ann_custom_alias_map; - CompleteTypeDetail detail_alias_map = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_map, ann_custom_alias_map, type_name_alias_map.to_string()); - CompleteAliasHeader header_alias_map = TypeObjectUtils::build_complete_alias_header(detail_alias_map); - AliasMemberFlag related_flags_alias_map = 0; - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int16_t_unbounded", type_ids_AliasMap); - - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasMap); - - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_AliasMap.type_identifier1()._d() || TK_NONE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_AliasMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_AliasMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AliasMap); - - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_AliasMap.type_identifier1()._d() || TK_NONE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_AliasMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_AliasMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int16_t_int16_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int16_t_int16_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int16_t_int16_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int16_t_int16_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int16_t_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int16_t_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int16_t_int16_t_unbounded, element_flags_anonymous_map_int16_t_int16_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int16_t_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_int16_t_unbounded), key_flags_anonymous_map_int16_t_int16_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int16_t_unbounded", type_ids_AliasMap); - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_map; - if (EK_COMPLETE == type_ids_AliasMap.type_identifier1()._d() || TK_NONE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_map = TypeObjectUtils::build_common_alias_body(related_flags_alias_map, type_ids_AliasMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_map = TypeObjectUtils::build_common_alias_body(related_flags_alias_map, type_ids_AliasMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_map related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_map; - ann_custom_alias_map.reset(); - CompleteAliasBody body_alias_map = TypeObjectUtils::build_complete_alias_body(common_alias_map, member_ann_builtin_alias_map, ann_custom_alias_map); - CompleteAliasType alias_type_alias_map = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_map, header_alias_map, body_alias_map); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_map, type_name_alias_map.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_map already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_map", type_ids_AliasMap); - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_map: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_map_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasMap.type_identifier1()._d() || TK_NONE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasMap.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4661,32 +2701,26 @@ void register_AliasMap_type_identifier( } CompleteStructType struct_type_AliasMap = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasMap, header_AliasMap, member_seq_AliasMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasMap, type_name_AliasMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasMap, type_name_AliasMap.to_string(), type_ids_AliasMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasMap already registered in TypeObjectRegistry for a different type."); } - return_code_AliasMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasMap", type_ids_AliasMap); - if (return_code_AliasMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasUnion) { + + ReturnCode_t return_code_AliasUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasUnion", type_ids_AliasUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasUnion) { - StructTypeFlag struct_flags_AliasUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasUnion; - TypeIdentifierPair type_ids_AliasUnion; QualifiedTypeName type_name_AliasUnion = "AliasUnion"; eprosima::fastcdr::optional type_ann_builtin_AliasUnion; eprosima::fastcdr::optional ann_custom_AliasUnion; @@ -4695,417 +2729,24 @@ void register_AliasUnion_type_identifier( header_AliasUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasUnion); CompleteStructMemberSeq member_seq_AliasUnion; { - return_code_AliasUnion = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_union", type_ids_AliasUnion); + "alias_union", type_ids_value); - if (return_code_AliasUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_union = 0; - QualifiedTypeName type_name_alias_union = "alias_union"; - eprosima::fastcdr::optional type_ann_builtin_alias_union; - eprosima::fastcdr::optional ann_custom_alias_union; - CompleteTypeDetail detail_alias_union = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_union, ann_custom_alias_union, type_name_alias_union.to_string()); - CompleteAliasHeader header_alias_union = TypeObjectUtils::build_complete_alias_header(detail_alias_union); - AliasMemberFlag related_flags_alias_union = 0; - return_code_AliasUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_AliasUnion); - - if (return_code_AliasUnion != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AliasUnion = return_code_InnerUnionHelper; - type_ids_AliasUnion = type_ids_InnerUnionHelper; - } - } - CommonAliasBody common_alias_union; - if (EK_COMPLETE == type_ids_AliasUnion.type_identifier1()._d() || TK_NONE == type_ids_AliasUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_union = TypeObjectUtils::build_common_alias_body(related_flags_alias_union, type_ids_AliasUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_union = TypeObjectUtils::build_common_alias_body(related_flags_alias_union, type_ids_AliasUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_union related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_union; - ann_custom_alias_union.reset(); - CompleteAliasBody body_alias_union = TypeObjectUtils::build_complete_alias_body(common_alias_union, member_ann_builtin_alias_union, ann_custom_alias_union); - CompleteAliasType alias_type_alias_union = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_union, header_alias_union, body_alias_union); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_union, type_name_alias_union.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_union already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_union", type_ids_AliasUnion); - if (return_code_AliasUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_union: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_union_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasUnion.type_identifier1()._d() || TK_NONE == type_ids_AliasUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasUnion.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5117,32 +2758,26 @@ void register_AliasUnion_type_identifier( } CompleteStructType struct_type_AliasUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasUnion, header_AliasUnion, member_seq_AliasUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUnion, type_name_AliasUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasUnion, type_name_AliasUnion.to_string(), type_ids_AliasUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasUnion already registered in TypeObjectRegistry for a different type."); } - return_code_AliasUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasUnion", type_ids_AliasUnion); - if (return_code_AliasUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasStruct) { + + ReturnCode_t return_code_AliasStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasStruct", type_ids_AliasStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasStruct) { - StructTypeFlag struct_flags_AliasStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasStruct; - TypeIdentifierPair type_ids_AliasStruct; QualifiedTypeName type_name_AliasStruct = "AliasStruct"; eprosima::fastcdr::optional type_ann_builtin_AliasStruct; eprosima::fastcdr::optional ann_custom_AliasStruct; @@ -5151,307 +2786,24 @@ void register_AliasStruct_type_identifier( header_AliasStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasStruct); CompleteStructMemberSeq member_seq_AliasStruct; { - return_code_AliasStruct = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_structure", type_ids_AliasStruct); + "alias_structure", type_ids_value); - if (return_code_AliasStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_structure = 0; - QualifiedTypeName type_name_alias_structure = "alias_structure"; - eprosima::fastcdr::optional type_ann_builtin_alias_structure; - eprosima::fastcdr::optional ann_custom_alias_structure; - CompleteTypeDetail detail_alias_structure = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_structure, ann_custom_alias_structure, type_name_alias_structure.to_string()); - CompleteAliasHeader header_alias_structure = TypeObjectUtils::build_complete_alias_header(detail_alias_structure); - AliasMemberFlag related_flags_alias_structure = 0; - return_code_AliasStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_AliasStruct); - - if (return_code_AliasStruct != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AliasStruct = return_code_InnerStructureHelper; - type_ids_AliasStruct = type_ids_InnerStructureHelper; - } - } - CommonAliasBody common_alias_structure; - if (EK_COMPLETE == type_ids_AliasStruct.type_identifier1()._d() || TK_NONE == type_ids_AliasStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_structure = TypeObjectUtils::build_common_alias_body(related_flags_alias_structure, type_ids_AliasStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_structure = TypeObjectUtils::build_common_alias_body(related_flags_alias_structure, type_ids_AliasStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_structure related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_structure; - ann_custom_alias_structure.reset(); - CompleteAliasBody body_alias_structure = TypeObjectUtils::build_complete_alias_body(common_alias_structure, member_ann_builtin_alias_structure, ann_custom_alias_structure); - CompleteAliasType alias_type_alias_structure = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_structure, header_alias_structure, body_alias_structure); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_structure, type_name_alias_structure.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_structure already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_structure", type_ids_AliasStruct); - if (return_code_AliasStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_structure: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_structure_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasStruct.type_identifier1()._d() || TK_NONE == type_ids_AliasStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5463,32 +2815,26 @@ void register_AliasStruct_type_identifier( } CompleteStructType struct_type_AliasStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasStruct, header_AliasStruct, member_seq_AliasStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasStruct, type_name_AliasStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasStruct, type_name_AliasStruct.to_string(), type_ids_AliasStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AliasStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasStruct", type_ids_AliasStruct); - if (return_code_AliasStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AliasBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AliasBitset) { + + ReturnCode_t return_code_AliasBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AliasBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AliasBitset", type_ids_AliasBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AliasBitset) { - StructTypeFlag struct_flags_AliasBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AliasBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AliasBitset; - TypeIdentifierPair type_ids_AliasBitset; QualifiedTypeName type_name_AliasBitset = "AliasBitset"; eprosima::fastcdr::optional type_ann_builtin_AliasBitset; eprosima::fastcdr::optional ann_custom_AliasBitset; @@ -5497,212 +2843,24 @@ void register_AliasBitset_type_identifier( header_AliasBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AliasBitset); CompleteStructMemberSeq member_seq_AliasBitset; { - return_code_AliasBitset = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bitset", type_ids_AliasBitset); + "alias_bitset", type_ids_value); - if (return_code_AliasBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - AliasTypeFlag alias_flags_alias_bitset = 0; - QualifiedTypeName type_name_alias_bitset = "alias_bitset"; - eprosima::fastcdr::optional type_ann_builtin_alias_bitset; - eprosima::fastcdr::optional ann_custom_alias_bitset; - CompleteTypeDetail detail_alias_bitset = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_bitset, ann_custom_alias_bitset, type_name_alias_bitset.to_string()); - CompleteAliasHeader header_alias_bitset = TypeObjectUtils::build_complete_alias_header(detail_alias_bitset); - AliasMemberFlag related_flags_alias_bitset = 0; - return_code_AliasBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_AliasBitset); - - if (return_code_AliasBitset != eprosima::fastdds::dds::RETCODE_OK) - { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_AliasBitset); - if (return_code_AliasBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_alias_bitset; - if (EK_COMPLETE == type_ids_AliasBitset.type_identifier1()._d() || TK_NONE == type_ids_AliasBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_bitset = TypeObjectUtils::build_common_alias_body(related_flags_alias_bitset, type_ids_AliasBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_bitset = TypeObjectUtils::build_common_alias_body(related_flags_alias_bitset, type_ids_AliasBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitset related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_bitset; - ann_custom_alias_bitset.reset(); - CompleteAliasBody body_alias_bitset = TypeObjectUtils::build_complete_alias_body(common_alias_bitset, member_ann_builtin_alias_bitset, ann_custom_alias_bitset); - CompleteAliasType alias_type_alias_bitset = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_bitset, header_alias_bitset, body_alias_bitset); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_bitset, type_name_alias_bitset.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitset already registered in TypeObjectRegistry for a different type."); - } - return_code_AliasBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_bitset", type_ids_AliasBitset); - if (return_code_AliasBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_bitset: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_bitset_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_AliasBitset.type_identifier1()._d() || TK_NONE == type_ids_AliasBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AliasBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AliasBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AliasBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AliasBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_AliasBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5714,21 +2872,11 @@ void register_AliasBitset_type_identifier( } CompleteStructType struct_type_AliasBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_AliasBitset, header_AliasBitset, member_seq_AliasBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBitset, type_name_AliasBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AliasBitset, type_name_AliasBitset.to_string(), type_ids_AliasBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AliasBitset already registered in TypeObjectRegistry for a different type."); } - return_code_AliasBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AliasBitset", type_ids_AliasBitset); - if (return_code_AliasBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AliasBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/aliasesTypeObjectSupport.hpp b/test/dds-types-test/aliasesTypeObjectSupport.hpp index 2bf5af4b67f..c9e0d120c85 100644 --- a/test/dds-types-test/aliasesTypeObjectSupport.hpp +++ b/test/dds-types-test/aliasesTypeObjectSupport.hpp @@ -36,12 +36,357 @@ #define eProsima_user_DllExport #endif // _WIN32 +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + /** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. + * @brief Register alias_int16 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_aliases_type_objects(); +eProsima_user_DllExport void register_alias_int16_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_uint16 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_uint16_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_int32 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_int32_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_uint32 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_uint32_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_int64 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_int64_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_uint64 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_uint64_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_float32 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_float32_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_float64 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_float64_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_float128 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_float128_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_bool related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_bool_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_octet related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_octet_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_char8 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_char8_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_char16 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_char16_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_string8 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_string8_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_string16 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_string16_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_enum related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_enum_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_bitmask related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_bitmask_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_alias related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_alias_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_array related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_array_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_multiarray related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_multiarray_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_sequence related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_sequence_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_map related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_map_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_union related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_union_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_structure related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_structure_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register alias_bitset related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_bitset_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** * @brief Register AliasInt16 related TypeIdentifier. @@ -54,7 +399,7 @@ eProsima_user_DllExport void register_aliases_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasInt16_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasUint16 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +411,7 @@ eProsima_user_DllExport void register_AliasInt16_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasUint16_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasInt32 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +423,7 @@ eProsima_user_DllExport void register_AliasUint16_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasInt32_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasUInt32 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +435,7 @@ eProsima_user_DllExport void register_AliasInt32_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasUInt32_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasInt64 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +447,7 @@ eProsima_user_DllExport void register_AliasUInt32_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasInt64_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasUInt64 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +459,7 @@ eProsima_user_DllExport void register_AliasInt64_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasUInt64_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasFloat32 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +471,7 @@ eProsima_user_DllExport void register_AliasUInt64_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasFloat32_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasFloat64 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +483,7 @@ eProsima_user_DllExport void register_AliasFloat32_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasFloat64_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasFloat128 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +495,7 @@ eProsima_user_DllExport void register_AliasFloat64_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasFloat128_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasBool related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +507,7 @@ eProsima_user_DllExport void register_AliasFloat128_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasBool_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +519,7 @@ eProsima_user_DllExport void register_AliasBool_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasChar8 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +531,7 @@ eProsima_user_DllExport void register_AliasOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasChar8_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasChar16 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +543,7 @@ eProsima_user_DllExport void register_AliasChar8_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasChar16_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasString8 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +555,7 @@ eProsima_user_DllExport void register_AliasChar16_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasString8_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasString16 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +567,7 @@ eProsima_user_DllExport void register_AliasString8_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasString16_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +579,7 @@ eProsima_user_DllExport void register_AliasString16_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasBitmask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +591,7 @@ eProsima_user_DllExport void register_AliasEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasBitmask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +603,7 @@ eProsima_user_DllExport void register_AliasBitmask_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +615,7 @@ eProsima_user_DllExport void register_AliasAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasMultiArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +627,7 @@ eProsima_user_DllExport void register_AliasArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasMultiArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +639,7 @@ eProsima_user_DllExport void register_AliasMultiArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +651,7 @@ eProsima_user_DllExport void register_AliasSequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +663,7 @@ eProsima_user_DllExport void register_AliasMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +675,7 @@ eProsima_user_DllExport void register_AliasUnion_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AliasBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +687,7 @@ eProsima_user_DllExport void register_AliasStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AliasBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/annotationsPubSubTypes.cxx b/test/dds-types-test/annotationsPubSubTypes.cxx index cdfefd06a9e..7879d666a5a 100644 --- a/test/dds-types-test/annotationsPubSubTypes.cxx +++ b/test/dds-types-test/annotationsPubSubTypes.cxx @@ -219,9 +219,9 @@ bool AnnotatedStructPubSubType::getKey( return true; } -void AnnotatedStructPubSubType::register_type_object_representation() const +void AnnotatedStructPubSubType::register_type_object_representation() { - register_annotations_type_objects(); + register_AnnotatedStruct_type_identifier(type_identifiers_); } EmptyAnnotatedStructPubSubType::EmptyAnnotatedStructPubSubType() @@ -412,9 +412,9 @@ bool EmptyAnnotatedStructPubSubType::getKey( return true; } -void EmptyAnnotatedStructPubSubType::register_type_object_representation() const +void EmptyAnnotatedStructPubSubType::register_type_object_representation() { - register_annotations_type_objects(); + register_EmptyAnnotatedStruct_type_identifier(type_identifiers_); } @@ -606,9 +606,9 @@ bool BasicAnnotationsStructPubSubType::getKey( return true; } -void BasicAnnotationsStructPubSubType::register_type_object_representation() const +void BasicAnnotationsStructPubSubType::register_type_object_representation() { - register_annotations_type_objects(); + register_BasicAnnotationsStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/annotationsPubSubTypes.h b/test/dds-types-test/annotationsPubSubTypes.h index 95b39cd26fd..dcf09c3dd6a 100644 --- a/test/dds-types-test/annotationsPubSubTypes.h +++ b/test/dds-types-test/annotationsPubSubTypes.h @@ -90,7 +90,7 @@ class AnnotatedStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class EmptyAnnotatedStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -273,7 +273,7 @@ class BasicAnnotationsStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/annotationsTypeObjectSupport.cxx b/test/dds-types-test/annotationsTypeObjectSupport.cxx index 862547a0080..544cc0a3df0 100644 --- a/test/dds-types-test/annotationsTypeObjectSupport.cxx +++ b/test/dds-types-test/annotationsTypeObjectSupport.cxx @@ -39,123 +39,16 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_annotations_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_AnnotationTest_type_identifier(type_id); - - register_EmptyAnnotationTest_type_identifier(type_id); - - register_AnnotatedStruct_type_identifier(type_id); - - register_EmptyAnnotatedStruct_type_identifier(type_id); - - register_BasicAnnotationsTest_type_identifier(type_id); - - register_BasicAnnotationsStruct_type_identifier(type_id); - - }); -} - -void register_AnnotationTest_type_identifier( - TypeIdentifier& type_id) -{ - AnnotationTypeFlag annotation_flag_AnnotationTest = 0; - QualifiedTypeName annotation_name_AnnotationTest = "AnnotationTest"; - CompleteAnnotationHeader header_AnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_AnnotationTest); - CompleteAnnotationParameterSeq member_seq_AnnotationTest; - { - ReturnCode_t return_code_var_short; - TypeIdentifierPair type_ids_var_short; - AnnotationParameterFlag member_flags_var_short = 0; - return_code_var_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_var_short); - - if (return_code_var_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_short; - if (EK_COMPLETE == type_ids_var_short.type_identifier1()._d() || TK_NONE == type_ids_var_short.type_identifier2()._d()) - { - common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_short.type_identifier2()._d()) - { - common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - AnnotationParameterValue param_value_var_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_short, name_var_short, param_value_var_short); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_short); - } - { - ReturnCode_t return_code_var_char16; - TypeIdentifierPair type_ids_var_char16; - AnnotationParameterFlag member_flags_var_char16 = 0; - return_code_var_char16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_var_char16); - if (return_code_var_char16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char16 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_char16; - if (EK_COMPLETE == type_ids_var_char16.type_identifier1()._d() || TK_NONE == type_ids_var_char16.type_identifier2()._d()) - { - common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_char16.type_identifier2()._d()) - { - common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char16 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char16 = "var_char16"; - AnnotationParameterValue param_value_var_char16 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_char16 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char16, name_var_char16, param_value_var_char16); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char16); - } +namespace AnnotationTest { + void register_InnerEnumHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerEnumHelper) { - ReturnCode_t return_code_enum_value; - TypeIdentifierPair type_ids_enum_value; - AnnotationParameterFlag member_flags_enum_value = 0; - return_code_enum_value = + ReturnCode_t return_code_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerEnumHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_value); - - if (return_code_enum_value != eprosima::fastdds::dds::RETCODE_OK) + "AnnotationTest::InnerEnumHelper", type_ids_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerEnumHelper) { EnumTypeFlag enum_flags_InnerEnumHelper = 0; BitBound bit_bound_InnerEnumHelper = 32; @@ -189,164 +82,22 @@ void register_AnnotationTest_type_identifier( CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, literal_seq_InnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string(), type_ids_InnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AnnotationTest::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_enum_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_value); - if (return_code_enum_value != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_enum_value; - if (EK_COMPLETE == type_ids_enum_value.type_identifier1()._d() || TK_NONE == type_ids_enum_value.type_identifier2()._d()) - { - common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_enum_value.type_identifier2()._d()) - { - common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "enum_value annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; } - MemberName name_enum_value = "enum_value"; - AnnotationParameterValue param_value_enum_value = TypeObjectUtils::build_annotation_parameter_value_enum(0); - - CompleteAnnotationParameter param_enum_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_value, name_enum_value, param_value_enum_value); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_value); } - { - ReturnCode_t return_code_var_long; - TypeIdentifierPair type_ids_var_long; - AnnotationParameterFlag member_flags_var_long = 0; - return_code_var_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_var_long); - if (return_code_var_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_long annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_long; - if (EK_COMPLETE == type_ids_var_long.type_identifier1()._d() || TK_NONE == type_ids_var_long.type_identifier2()._d()) - { - common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_long.type_identifier2()._d()) - { - common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_long annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_long = "var_long"; - AnnotationParameterValue param_value_var_long = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_long = TypeObjectUtils::build_complete_annotation_parameter(common_var_long, name_var_long, param_value_var_long); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_long); - } + void register_Inner_alias_bounded_string_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_bounded_string_helper) { - ReturnCode_t return_code_var_char8; - TypeIdentifierPair type_ids_var_char8; - AnnotationParameterFlag member_flags_var_char8 = 0; - return_code_var_char8 = + ReturnCode_t return_code_Inner_alias_bounded_string_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_var_char8); - - if (return_code_var_char8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char8 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_char8; - if (EK_COMPLETE == type_ids_var_char8.type_identifier1()._d() || TK_NONE == type_ids_var_char8.type_identifier2()._d()) - { - common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_char8.type_identifier2()._d()) - { - common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char8 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char8 = "var_char8"; - AnnotationParameterValue param_value_var_char8 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_char8 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char8, name_var_char8, param_value_var_char8); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char8); - } - { - ReturnCode_t return_code_var_ulonglong; - TypeIdentifierPair type_ids_var_ulonglong; - AnnotationParameterFlag member_flags_var_ulonglong = 0; - return_code_var_ulonglong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_var_ulonglong); - - if (return_code_var_ulonglong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulonglong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_ulonglong; - if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier1()._d() || TK_NONE == type_ids_var_ulonglong.type_identifier2()._d()) - { - common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier2()._d()) - { - common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulonglong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulonglong = "var_ulonglong"; - AnnotationParameterValue param_value_var_ulonglong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_ulonglong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulonglong, name_var_ulonglong, param_value_var_ulonglong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulonglong); - } - { - ReturnCode_t return_code_var_string_10; - TypeIdentifierPair type_ids_var_string_10; - AnnotationParameterFlag member_flags_var_string_10 = 0; - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_string_10); - - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) + "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_Inner_alias_bounded_string_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_string_helper) { AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "AnnotationTest::Inner_alias_bounded_string_helper"; @@ -355,871 +106,795 @@ void register_AnnotationTest_type_identifier( CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_var_string_10 = + return_code_Inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_string_10); + "anonymous_string_1", type_ids_Inner_alias_bounded_string_helper); - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_string_helper) { { SBound bound = static_cast(1); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_1")) + "anonymous_string_1", type_ids_Inner_alias_bounded_string_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_string_10); - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_var_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_string_10.type_identifier2()); } - else + bool common_Inner_alias_bounded_string_helper_ec {false}; + CommonAliasBody common_Inner_alias_bounded_string_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_bounded_string_helper, common_Inner_alias_bounded_string_helper_ec))}; + if (!common_Inner_alias_bounded_string_helper_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AnnotationTest::Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); return; } eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); + CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, + member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); + CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, + header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, + type_name_Inner_alias_bounded_string_helper.to_string(), type_ids_Inner_alias_bounded_string_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AnnotationTest::Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); } - return_code_var_string_10 = + } + } + + + + +} // namespace AnnotationTest + +void register_AnnotationTest_type_identifier( + TypeIdentifierPair& type_ids_AnnotationTest) +{ + ReturnCode_t return_code_AnnotationTest {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AnnotationTest = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AnnotationTest", type_ids_AnnotationTest); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AnnotationTest) + { + AnnotationTypeFlag annotation_flag_AnnotationTest = 0; + QualifiedTypeName annotation_name_AnnotationTest = "AnnotationTest"; + CompleteAnnotationHeader header_AnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_AnnotationTest); + CompleteAnnotationParameterSeq member_seq_AnnotationTest; + { + ReturnCode_t return_code_var_short; + TypeIdentifierPair type_ids_var_short; + AnnotationParameterFlag member_flags_var_short = 0; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_string_10); - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) + "_int16_t", type_ids_var_short); + + if (return_code_var_short != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "var_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); return; } + CommonAnnotationParameter common_var_short; + if (EK_COMPLETE == type_ids_var_short.type_identifier1()._d() || TK_NONE == type_ids_var_short.type_identifier2()._d()) + { + common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_short.type_identifier2()._d()) + { + common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_short annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_short = "var_short"; + AnnotationParameterValue param_value_var_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + + CompleteAnnotationParameter param_var_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_short, name_var_short, param_value_var_short); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_short); } - CommonAnnotationParameter common_var_string_10; - if (EK_COMPLETE == type_ids_var_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_string_10.type_identifier2()._d()) - { - common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string_10.type_identifier2()._d()) - { - common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier2()); - } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_string_10 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_string_10 = "var_string_10"; - AnnotationParameterValue param_value_var_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); - + ReturnCode_t return_code_var_char16; + TypeIdentifierPair type_ids_var_char16; + AnnotationParameterFlag member_flags_var_char16 = 0; + return_code_var_char16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_wchar_t", type_ids_var_char16); - CompleteAnnotationParameter param_var_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_string_10, name_var_string_10, param_value_var_string_10); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string_10); - } - { - ReturnCode_t return_code_var_boolean; - TypeIdentifierPair type_ids_var_boolean; - AnnotationParameterFlag member_flags_var_boolean = 0; - return_code_var_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_var_boolean); + if (return_code_var_char16 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_char16 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_char16; + if (EK_COMPLETE == type_ids_var_char16.type_identifier1()._d() || TK_NONE == type_ids_var_char16.type_identifier2()._d()) + { + common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_char16.type_identifier2()._d()) + { + common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_char16 annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_char16 = "var_char16"; + AnnotationParameterValue param_value_var_char16 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - if (return_code_var_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_boolean annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_boolean; - if (EK_COMPLETE == type_ids_var_boolean.type_identifier1()._d() || TK_NONE == type_ids_var_boolean.type_identifier2()._d()) - { - common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier1()); + CompleteAnnotationParameter param_var_char16 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char16, name_var_char16, param_value_var_char16); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char16); } - else if (EK_COMPLETE == type_ids_var_boolean.type_identifier2()._d()) { - common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_boolean annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_boolean = "var_boolean"; - AnnotationParameterValue param_value_var_boolean = TypeObjectUtils::build_annotation_parameter_value(static_cast(false)); - - CompleteAnnotationParameter param_var_boolean = TypeObjectUtils::build_complete_annotation_parameter(common_var_boolean, name_var_boolean, param_value_var_boolean); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_boolean); - } - { - ReturnCode_t return_code_var_wstring; - TypeIdentifierPair type_ids_var_wstring; - AnnotationParameterFlag member_flags_var_wstring = 0; - return_code_var_wstring = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_var_wstring); + ReturnCode_t return_code_enum_value; + TypeIdentifierPair type_ids_enum_value; + AnnotationParameterFlag member_flags_enum_value = 0; + return_code_enum_value = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AnnotationTest::InnerEnumHelper", type_ids_enum_value); - if (return_code_var_wstring != eprosima::fastdds::dds::RETCODE_OK) - { + if (return_code_enum_value != eprosima::fastdds::dds::RETCODE_OK) { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } + AnnotationTest::register_InnerEnumHelper_type_identifier(type_ids_enum_value); } - return_code_var_wstring = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_var_wstring); - if (return_code_var_wstring != eprosima::fastdds::dds::RETCODE_OK) + CommonAnnotationParameter common_enum_value; + if (EK_COMPLETE == type_ids_enum_value.type_identifier1()._d() || TK_NONE == type_ids_enum_value.type_identifier2()._d()) + { + common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_enum_value.type_identifier2()._d()) + { + common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "enum_value annotation parameter TypeIdentifier inconsistent."); return; } + MemberName name_enum_value = "enum_value"; + AnnotationParameterValue param_value_enum_value = TypeObjectUtils::build_annotation_parameter_value_enum(0); + + CompleteAnnotationParameter param_enum_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_value, name_enum_value, param_value_enum_value); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_value); } - CommonAnnotationParameter common_var_wstring; - if (EK_COMPLETE == type_ids_var_wstring.type_identifier1()._d() || TK_NONE == type_ids_var_wstring.type_identifier2()._d()) - { - common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring.type_identifier2()._d()) - { - common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier2()); - } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_wstring annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_wstring = "var_wstring"; - AnnotationParameterValue param_value_var_wstring = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); + ReturnCode_t return_code_var_long; + TypeIdentifierPair type_ids_var_long; + AnnotationParameterFlag member_flags_var_long = 0; + return_code_var_long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_var_long); - CompleteAnnotationParameter param_var_wstring = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring, name_var_wstring, param_value_var_wstring); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring); - } - { - ReturnCode_t return_code_var_float; - TypeIdentifierPair type_ids_var_float; - AnnotationParameterFlag member_flags_var_float = 0; - return_code_var_float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_var_float); + if (return_code_var_long != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_long annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_long; + if (EK_COMPLETE == type_ids_var_long.type_identifier1()._d() || TK_NONE == type_ids_var_long.type_identifier2()._d()) + { + common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_long.type_identifier2()._d()) + { + common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_long annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_long = "var_long"; + AnnotationParameterValue param_value_var_long = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - if (return_code_var_float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_float annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_float; - if (EK_COMPLETE == type_ids_var_float.type_identifier1()._d() || TK_NONE == type_ids_var_float.type_identifier2()._d()) - { - common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_float.type_identifier2()._d()) - { - common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier2()); + CompleteAnnotationParameter param_var_long = TypeObjectUtils::build_complete_annotation_parameter(common_var_long, name_var_long, param_value_var_long); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_long); } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_float annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_float = "var_float"; - AnnotationParameterValue param_value_var_float = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); + ReturnCode_t return_code_var_char8; + TypeIdentifierPair type_ids_var_char8; + AnnotationParameterFlag member_flags_var_char8 = 0; + return_code_var_char8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_var_char8); - CompleteAnnotationParameter param_var_float = TypeObjectUtils::build_complete_annotation_parameter(common_var_float, name_var_float, param_value_var_float); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_float); - } - { - ReturnCode_t return_code_var_ushort; - TypeIdentifierPair type_ids_var_ushort; - AnnotationParameterFlag member_flags_var_ushort = 0; - return_code_var_ushort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_var_ushort); + if (return_code_var_char8 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_char8 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_char8; + if (EK_COMPLETE == type_ids_var_char8.type_identifier1()._d() || TK_NONE == type_ids_var_char8.type_identifier2()._d()) + { + common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_char8.type_identifier2()._d()) + { + common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_char8 annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_char8 = "var_char8"; + AnnotationParameterValue param_value_var_char8 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - if (return_code_var_ushort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ushort annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + CompleteAnnotationParameter param_var_char8 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char8, name_var_char8, param_value_var_char8); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char8); } - CommonAnnotationParameter common_var_ushort; - if (EK_COMPLETE == type_ids_var_ushort.type_identifier1()._d() || TK_NONE == type_ids_var_ushort.type_identifier2()._d()) { - common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier1()); + ReturnCode_t return_code_var_ulonglong; + TypeIdentifierPair type_ids_var_ulonglong; + AnnotationParameterFlag member_flags_var_ulonglong = 0; + return_code_var_ulonglong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_var_ulonglong); + + if (return_code_var_ulonglong != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_ulonglong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_ulonglong; + if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier1()._d() || TK_NONE == type_ids_var_ulonglong.type_identifier2()._d()) + { + common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier2()._d()) + { + common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_ulonglong annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_ulonglong = "var_ulonglong"; + AnnotationParameterValue param_value_var_ulonglong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + + CompleteAnnotationParameter param_var_ulonglong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulonglong, name_var_ulonglong, param_value_var_ulonglong); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulonglong); } - else if (EK_COMPLETE == type_ids_var_ushort.type_identifier2()._d()) { - common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier2()); + ReturnCode_t return_code_var_string_10; + TypeIdentifierPair type_ids_var_string_10; + AnnotationParameterFlag member_flags_var_string_10 = 0; + return_code_var_string_10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_string_10); + + if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) + { + AnnotationTest::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_string_10); + } + CommonAnnotationParameter common_var_string_10; + if (EK_COMPLETE == type_ids_var_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_string_10.type_identifier2()._d()) + { + common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_string_10.type_identifier2()._d()) + { + common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_string_10 annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_string_10 = "var_string_10"; + AnnotationParameterValue param_value_var_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); + + + CompleteAnnotationParameter param_var_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_string_10, name_var_string_10, param_value_var_string_10); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string_10); } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ushort annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ushort = "var_ushort"; - AnnotationParameterValue param_value_var_ushort = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + ReturnCode_t return_code_var_boolean; + TypeIdentifierPair type_ids_var_boolean; + AnnotationParameterFlag member_flags_var_boolean = 0; + return_code_var_boolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_var_boolean); - CompleteAnnotationParameter param_var_ushort = TypeObjectUtils::build_complete_annotation_parameter(common_var_ushort, name_var_ushort, param_value_var_ushort); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ushort); - } - { - ReturnCode_t return_code_var_default_string_10; - TypeIdentifierPair type_ids_var_default_string_10; - AnnotationParameterFlag member_flags_var_default_string_10 = 0; - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_default_string_10); + if (return_code_var_boolean != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_boolean annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_boolean; + if (EK_COMPLETE == type_ids_var_boolean.type_identifier1()._d() || TK_NONE == type_ids_var_boolean.type_identifier2()._d()) + { + common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_boolean.type_identifier2()._d()) + { + common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_boolean annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_boolean = "var_boolean"; + AnnotationParameterValue param_value_var_boolean = TypeObjectUtils::build_annotation_parameter_value(static_cast(false)); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) + CompleteAnnotationParameter param_var_boolean = TypeObjectUtils::build_complete_annotation_parameter(common_var_boolean, name_var_boolean, param_value_var_boolean); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_boolean); + } { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "AnnotationTest::Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_var_default_string_10 = + ReturnCode_t return_code_var_wstring; + TypeIdentifierPair type_ids_var_wstring; + AnnotationParameterFlag member_flags_var_wstring = 0; + return_code_var_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_default_string_10); + "anonymous_wstring_unbounded", type_ids_var_wstring); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_var_wstring != eprosima::fastdds::dds::RETCODE_OK) { { - SBound bound = static_cast(1); + SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_1")) + "anonymous_wstring_unbounded", type_ids_var_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1 already registered in TypeObjectRegistry for a different type."); + "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_default_string_10); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_default_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_default_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_default_string_10.type_identifier2()); + CommonAnnotationParameter common_var_wstring; + if (EK_COMPLETE == type_ids_var_wstring.type_identifier1()._d() || TK_NONE == type_ids_var_wstring.type_identifier2()._d()) + { + common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_wstring.type_identifier2()._d()) + { + common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier2()); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + "var_wstring annotation parameter TypeIdentifier inconsistent."); return; } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) + MemberName name_var_wstring = "var_wstring"; + AnnotationParameterValue param_value_var_wstring = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); + + CompleteAnnotationParameter param_var_wstring = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring, name_var_wstring, param_value_var_wstring); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring); + } + { + ReturnCode_t return_code_var_float; + TypeIdentifierPair type_ids_var_float; + AnnotationParameterFlag member_flags_var_float = 0; + return_code_var_float = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_var_float); + + if (return_code_var_float != eprosima::fastdds::dds::RETCODE_OK) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); + "var_float annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; } - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_default_string_10); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) + CommonAnnotationParameter common_var_float; + if (EK_COMPLETE == type_ids_var_float.type_identifier1()._d() || TK_NONE == type_ids_var_float.type_identifier2()._d()) + { + common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_float.type_identifier2()._d()) + { + common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "var_float annotation parameter TypeIdentifier inconsistent."); return; } - } - CommonAnnotationParameter common_var_default_string_10; - if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_default_string_10.type_identifier2()._d()) - { - common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2()._d()) - { - common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_default_string_10 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_default_string_10 = "var_default_string_10"; - AnnotationParameterValue param_value_var_default_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("Hello")); + MemberName name_var_float = "var_float"; + AnnotationParameterValue param_value_var_float = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); - - CompleteAnnotationParameter param_var_default_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_default_string_10, name_var_default_string_10, param_value_var_default_string_10); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_default_string_10); - } - { - ReturnCode_t return_code_var_wstring_alias; - TypeIdentifierPair type_ids_var_wstring_alias; - AnnotationParameterFlag member_flags_var_wstring_alias = 0; - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_var_wstring_alias); - - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) + CompleteAnnotationParameter param_var_float = TypeObjectUtils::build_complete_annotation_parameter(common_var_float, name_var_float, param_value_var_float); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_float); + } { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_var_wstring_alias = + ReturnCode_t return_code_var_ushort; + TypeIdentifierPair type_ids_var_ushort; + AnnotationParameterFlag member_flags_var_ushort = 0; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_var_wstring_alias); + "_uint16_t", type_ids_var_ushort); - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) + if (return_code_var_ushort != eprosima::fastdds::dds::RETCODE_OK) { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_var_wstring_alias); - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_ushort annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_ushort; + if (EK_COMPLETE == type_ids_var_ushort.type_identifier1()._d() || TK_NONE == type_ids_var_ushort.type_identifier2()._d()) + { + common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier1()); } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1()._d() || TK_NONE == type_ids_var_wstring_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_var_wstring_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_var_wstring_alias.type_identifier2()); + else if (EK_COMPLETE == type_ids_var_ushort.type_identifier2()._d()) + { + common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier2()); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + "var_ushort annotation parameter TypeIdentifier inconsistent."); return; } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) + MemberName name_var_ushort = "var_ushort"; + AnnotationParameterValue param_value_var_ushort = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + + CompleteAnnotationParameter param_var_ushort = TypeObjectUtils::build_complete_annotation_parameter(common_var_ushort, name_var_ushort, param_value_var_ushort); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ushort); + } + { + ReturnCode_t return_code_var_default_string_10; + TypeIdentifierPair type_ids_var_default_string_10; + AnnotationParameterFlag member_flags_var_default_string_10 = 0; + return_code_var_default_string_10 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_default_string_10); + + if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) + { + AnnotationTest::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_default_string_10); + } + CommonAnnotationParameter common_var_default_string_10; + if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_default_string_10.type_identifier2()._d()) + { + common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2()._d()) + { + common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); + "var_default_string_10 annotation parameter TypeIdentifier inconsistent."); + return; } + MemberName name_var_default_string_10 = "var_default_string_10"; + AnnotationParameterValue param_value_var_default_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("Hello")); + + + CompleteAnnotationParameter param_var_default_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_default_string_10, name_var_default_string_10, param_value_var_default_string_10); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_default_string_10); + } + { + ReturnCode_t return_code_var_wstring_alias; + TypeIdentifierPair type_ids_var_wstring_alias; + AnnotationParameterFlag member_flags_var_wstring_alias = 0; return_code_var_wstring_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_bounded_wstring_helper", type_ids_var_wstring_alias); + if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_wstring_alias); + } + CommonAnnotationParameter common_var_wstring_alias; + if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1()._d() || TK_NONE == type_ids_var_wstring_alias.type_identifier2()._d()) + { + common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2()._d()) + { + common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "var_wstring_alias annotation parameter TypeIdentifier inconsistent."); return; } - } - CommonAnnotationParameter common_var_wstring_alias; - if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1()._d() || TK_NONE == type_ids_var_wstring_alias.type_identifier2()._d()) - { - common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2()._d()) - { - common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_wstring_alias annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_wstring_alias = "var_wstring_alias"; - AnnotationParameterValue param_value_var_wstring_alias = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); - + MemberName name_var_wstring_alias = "var_wstring_alias"; + AnnotationParameterValue param_value_var_wstring_alias = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); - CompleteAnnotationParameter param_var_wstring_alias = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring_alias, name_var_wstring_alias, param_value_var_wstring_alias); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring_alias); - } - { - ReturnCode_t return_code_var_longlong; - TypeIdentifierPair type_ids_var_longlong; - AnnotationParameterFlag member_flags_var_longlong = 0; - return_code_var_longlong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_var_longlong); - if (return_code_var_longlong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longlong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_longlong; - if (EK_COMPLETE == type_ids_var_longlong.type_identifier1()._d() || TK_NONE == type_ids_var_longlong.type_identifier2()._d()) - { - common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier1()); + CompleteAnnotationParameter param_var_wstring_alias = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring_alias, name_var_wstring_alias, param_value_var_wstring_alias); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring_alias); } - else if (EK_COMPLETE == type_ids_var_longlong.type_identifier2()._d()) { - common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longlong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_longlong = "var_longlong"; - AnnotationParameterValue param_value_var_longlong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + ReturnCode_t return_code_var_longlong; + TypeIdentifierPair type_ids_var_longlong; + AnnotationParameterFlag member_flags_var_longlong = 0; + return_code_var_longlong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_var_longlong); - CompleteAnnotationParameter param_var_longlong = TypeObjectUtils::build_complete_annotation_parameter(common_var_longlong, name_var_longlong, param_value_var_longlong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_longlong); - } - { - ReturnCode_t return_code_var_ulong; - TypeIdentifierPair type_ids_var_ulong; - AnnotationParameterFlag member_flags_var_ulong = 0; - return_code_var_ulong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_var_ulong); + if (return_code_var_longlong != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_longlong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_longlong; + if (EK_COMPLETE == type_ids_var_longlong.type_identifier1()._d() || TK_NONE == type_ids_var_longlong.type_identifier2()._d()) + { + common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_longlong.type_identifier2()._d()) + { + common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_longlong annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_longlong = "var_longlong"; + AnnotationParameterValue param_value_var_longlong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - if (return_code_var_ulong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + CompleteAnnotationParameter param_var_longlong = TypeObjectUtils::build_complete_annotation_parameter(common_var_longlong, name_var_longlong, param_value_var_longlong); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_longlong); } - CommonAnnotationParameter common_var_ulong; - if (EK_COMPLETE == type_ids_var_ulong.type_identifier1()._d() || TK_NONE == type_ids_var_ulong.type_identifier2()._d()) { - common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_ulong.type_identifier2()._d()) - { - common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulong = "var_ulong"; - AnnotationParameterValue param_value_var_ulong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_ulong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulong, name_var_ulong, param_value_var_ulong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulong); - } - { - ReturnCode_t return_code_var_string; - TypeIdentifierPair type_ids_var_string; - AnnotationParameterFlag member_flags_var_string = 0; - return_code_var_string = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_var_string); + ReturnCode_t return_code_var_ulong; + TypeIdentifierPair type_ids_var_ulong; + AnnotationParameterFlag member_flags_var_ulong = 0; + return_code_var_ulong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_var_ulong); - if (return_code_var_string != eprosima::fastdds::dds::RETCODE_OK) - { + if (return_code_var_ulong != eprosima::fastdds::dds::RETCODE_OK) { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_ulong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_ulong; + if (EK_COMPLETE == type_ids_var_ulong.type_identifier1()._d() || TK_NONE == type_ids_var_ulong.type_identifier2()._d()) + { + common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_ulong.type_identifier2()._d()) + { + common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_ulong annotation parameter TypeIdentifier inconsistent."); + return; } + MemberName name_var_ulong = "var_ulong"; + AnnotationParameterValue param_value_var_ulong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + + CompleteAnnotationParameter param_var_ulong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulong, name_var_ulong, param_value_var_ulong); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulong); + } + { + ReturnCode_t return_code_var_string; + TypeIdentifierPair type_ids_var_string; + AnnotationParameterFlag member_flags_var_string = 0; return_code_var_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_string_unbounded", type_ids_var_string); + if (return_code_var_string != eprosima::fastdds::dds::RETCODE_OK) + { + { + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_var_string)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + CommonAnnotationParameter common_var_string; + if (EK_COMPLETE == type_ids_var_string.type_identifier1()._d() || TK_NONE == type_ids_var_string.type_identifier2()._d()) + { + common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_string.type_identifier2()._d()) + { + common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "var_string annotation parameter TypeIdentifier inconsistent."); return; } - } - CommonAnnotationParameter common_var_string; - if (EK_COMPLETE == type_ids_var_string.type_identifier1()._d() || TK_NONE == type_ids_var_string.type_identifier2()._d()) - { - common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string.type_identifier2()._d()) - { - common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_string annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_string = "var_string"; - AnnotationParameterValue param_value_var_string = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); + MemberName name_var_string = "var_string"; + AnnotationParameterValue param_value_var_string = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); - CompleteAnnotationParameter param_var_string = TypeObjectUtils::build_complete_annotation_parameter(common_var_string, name_var_string, param_value_var_string); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string); - } - { - ReturnCode_t return_code_var_double; - TypeIdentifierPair type_ids_var_double; - AnnotationParameterFlag member_flags_var_double = 0; - return_code_var_double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_var_double); - - if (return_code_var_double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_double annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_double; - if (EK_COMPLETE == type_ids_var_double.type_identifier1()._d() || TK_NONE == type_ids_var_double.type_identifier2()._d()) - { - common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier1()); + CompleteAnnotationParameter param_var_string = TypeObjectUtils::build_complete_annotation_parameter(common_var_string, name_var_string, param_value_var_string); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string); } - else if (EK_COMPLETE == type_ids_var_double.type_identifier2()._d()) { - common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_double annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_double = "var_double"; - AnnotationParameterValue param_value_var_double = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); - - CompleteAnnotationParameter param_var_double = TypeObjectUtils::build_complete_annotation_parameter(common_var_double, name_var_double, param_value_var_double); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_double); - } - { - ReturnCode_t return_code_enum_default_value; - TypeIdentifierPair type_ids_enum_default_value; - AnnotationParameterFlag member_flags_enum_default_value = 0; - return_code_enum_default_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_default_value); + ReturnCode_t return_code_var_double; + TypeIdentifierPair type_ids_var_double; + AnnotationParameterFlag member_flags_var_double = 0; + return_code_var_double = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_var_double); - if (return_code_enum_default_value != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "AnnotationTest::InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; + if (return_code_var_double != eprosima::fastdds::dds::RETCODE_OK) { - EnumeratedLiteralFlag flags_ONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ONE = TypeObjectUtils::build_common_enumerated_literal(0, flags_ONE); - eprosima::fastcdr::optional member_ann_builtin_ONE; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ONE = "ONE"; - CompleteMemberDetail detail_ONE = TypeObjectUtils::build_complete_member_detail(name_ONE, member_ann_builtin_ONE, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ONE = TypeObjectUtils::build_complete_enumerated_literal(common_ONE, detail_ONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ONE); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_double annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; } + CommonAnnotationParameter common_var_double; + if (EK_COMPLETE == type_ids_var_double.type_identifier1()._d() || TK_NONE == type_ids_var_double.type_identifier2()._d()) { - EnumeratedLiteralFlag flags_TWO = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TWO = TypeObjectUtils::build_common_enumerated_literal(1, flags_TWO); - eprosima::fastcdr::optional member_ann_builtin_TWO; - ann_custom_InnerEnumHelper.reset(); - MemberName name_TWO = "TWO"; - CompleteMemberDetail detail_TWO = TypeObjectUtils::build_complete_member_detail(name_TWO, member_ann_builtin_TWO, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_TWO = TypeObjectUtils::build_complete_enumerated_literal(common_TWO, detail_TWO); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_TWO); + common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier1()); } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) + else if (EK_COMPLETE == type_ids_var_double.type_identifier2()._d()) + { + common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); + "var_double annotation parameter TypeIdentifier inconsistent."); + return; } + MemberName name_var_double = "var_double"; + AnnotationParameterValue param_value_var_double = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); + + CompleteAnnotationParameter param_var_double = TypeObjectUtils::build_complete_annotation_parameter(common_var_double, name_var_double, param_value_var_double); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_double); + } + { + ReturnCode_t return_code_enum_default_value; + TypeIdentifierPair type_ids_enum_default_value; + AnnotationParameterFlag member_flags_enum_default_value = 0; return_code_enum_default_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AnnotationTest::InnerEnumHelper", type_ids_enum_default_value); + if (return_code_enum_default_value != eprosima::fastdds::dds::RETCODE_OK) + { + AnnotationTest::register_InnerEnumHelper_type_identifier(type_ids_enum_default_value); + } + CommonAnnotationParameter common_enum_default_value; + if (EK_COMPLETE == type_ids_enum_default_value.type_identifier1()._d() || TK_NONE == type_ids_enum_default_value.type_identifier2()._d()) + { + common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_enum_default_value.type_identifier2()._d()) + { + common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier2()); + } + else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "enum_default_value annotation parameter TypeIdentifier inconsistent."); return; } + MemberName name_enum_default_value = "enum_default_value"; + AnnotationParameterValue param_value_enum_default_value = TypeObjectUtils::build_annotation_parameter_value_enum(1); + + CompleteAnnotationParameter param_enum_default_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_default_value, name_enum_default_value, param_value_enum_default_value); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_default_value); } - CommonAnnotationParameter common_enum_default_value; - if (EK_COMPLETE == type_ids_enum_default_value.type_identifier1()._d() || TK_NONE == type_ids_enum_default_value.type_identifier2()._d()) - { - common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_enum_default_value.type_identifier2()._d()) - { - common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier2()); - } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "enum_default_value annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_default_value = "enum_default_value"; - AnnotationParameterValue param_value_enum_default_value = TypeObjectUtils::build_annotation_parameter_value_enum(1); + ReturnCode_t return_code_var_octet; + TypeIdentifierPair type_ids_var_octet; + AnnotationParameterFlag member_flags_var_octet = 0; + return_code_var_octet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_var_octet); - CompleteAnnotationParameter param_enum_default_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_default_value, name_enum_default_value, param_value_enum_default_value); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_default_value); - } - { - ReturnCode_t return_code_var_octet; - TypeIdentifierPair type_ids_var_octet; - AnnotationParameterFlag member_flags_var_octet = 0; - return_code_var_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_var_octet); + if (return_code_var_octet != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_octet annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_octet; + if (EK_COMPLETE == type_ids_var_octet.type_identifier1()._d() || TK_NONE == type_ids_var_octet.type_identifier2()._d()) + { + common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_octet.type_identifier2()._d()) + { + common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_octet annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_octet = "var_octet"; + AnnotationParameterValue param_value_var_octet = TypeObjectUtils::build_annotation_parameter_value_byte(0); - if (return_code_var_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_octet annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_octet; - if (EK_COMPLETE == type_ids_var_octet.type_identifier1()._d() || TK_NONE == type_ids_var_octet.type_identifier2()._d()) - { - common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_octet.type_identifier2()._d()) - { - common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier2()); + CompleteAnnotationParameter param_var_octet = TypeObjectUtils::build_complete_annotation_parameter(common_var_octet, name_var_octet, param_value_var_octet); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_octet); } - else + CompleteAnnotationType annotation_type_AnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_AnnotationTest, header_AnnotationTest, + member_seq_AnnotationTest); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_AnnotationTest, + annotation_name_AnnotationTest.to_string(), type_ids_AnnotationTest)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_octet annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + "AnnotationTest already registered in TypeObjectRegistry for a different type."); } - MemberName name_var_octet = "var_octet"; - AnnotationParameterValue param_value_var_octet = TypeObjectUtils::build_annotation_parameter_value_byte(0); - - CompleteAnnotationParameter param_var_octet = TypeObjectUtils::build_complete_annotation_parameter(common_var_octet, name_var_octet, param_value_var_octet); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_octet); - } - CompleteAnnotationType annotation_type_AnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_AnnotationTest, header_AnnotationTest, - member_seq_AnnotationTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_AnnotationTest, annotation_name_AnnotationTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest already registered in TypeObjectRegistry for a different type."); } - } + +namespace EmptyAnnotationTest { + + + +} // namespace EmptyAnnotationTest + void register_EmptyAnnotationTest_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_EmptyAnnotationTest) { - AnnotationTypeFlag annotation_flag_EmptyAnnotationTest = 0; - QualifiedTypeName annotation_name_EmptyAnnotationTest = "EmptyAnnotationTest"; - CompleteAnnotationHeader header_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_EmptyAnnotationTest); - CompleteAnnotationParameterSeq member_seq_EmptyAnnotationTest; - CompleteAnnotationType annotation_type_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_EmptyAnnotationTest, header_EmptyAnnotationTest, - member_seq_EmptyAnnotationTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_EmptyAnnotationTest, annotation_name_EmptyAnnotationTest.to_string(), type_id)) + ReturnCode_t return_code_EmptyAnnotationTest {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EmptyAnnotationTest = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "EmptyAnnotationTest", type_ids_EmptyAnnotationTest); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EmptyAnnotationTest) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "EmptyAnnotationTest already registered in TypeObjectRegistry for a different type."); + AnnotationTypeFlag annotation_flag_EmptyAnnotationTest = 0; + QualifiedTypeName annotation_name_EmptyAnnotationTest = "EmptyAnnotationTest"; + CompleteAnnotationHeader header_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_EmptyAnnotationTest); + CompleteAnnotationParameterSeq member_seq_EmptyAnnotationTest; + CompleteAnnotationType annotation_type_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_EmptyAnnotationTest, header_EmptyAnnotationTest, + member_seq_EmptyAnnotationTest); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_EmptyAnnotationTest, + annotation_name_EmptyAnnotationTest.to_string(), type_ids_EmptyAnnotationTest)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "EmptyAnnotationTest already registered in TypeObjectRegistry for a different type."); + } } - } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AnnotatedStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AnnotatedStruct) { + + ReturnCode_t return_code_AnnotatedStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AnnotatedStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AnnotatedStruct", type_ids_AnnotatedStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AnnotatedStruct) { - StructTypeFlag struct_flags_AnnotatedStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AnnotatedStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AnnotatedStruct; - TypeIdentifierPair type_ids_AnnotatedStruct; QualifiedTypeName type_name_AnnotatedStruct = "AnnotatedStruct"; eprosima::fastcdr::optional type_ann_builtin_AnnotatedStruct; eprosima::fastcdr::optional ann_custom_AnnotatedStruct; @@ -1404,1163 +1079,33 @@ void register_AnnotatedStruct_type_identifier( { AppliedAnnotation applied_annotation_AnnotatedStruct; - return_code_AnnotatedStruct = + ReturnCode_t return_code_AnnotationTest {eprosima::fastdds::dds::RETCODE_OK}; + TypeIdentifierPair type_ids_AnnotationTest; + return_code_AnnotationTest = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest", type_ids_AnnotatedStruct); - if (return_code_AnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) + "AnnotationTest", type_ids_AnnotationTest); + if (return_code_AnnotationTest != eprosima::fastdds::dds::RETCODE_OK) { - AnnotationTypeFlag annotation_flag_AnnotationTest = 0; - QualifiedTypeName annotation_name_AnnotationTest = "AnnotationTest"; - CompleteAnnotationHeader header_AnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_AnnotationTest); - CompleteAnnotationParameterSeq member_seq_AnnotationTest; - { - ReturnCode_t return_code_var_short; - TypeIdentifierPair type_ids_var_short; - AnnotationParameterFlag member_flags_var_short = 0; - return_code_var_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_var_short); - - if (return_code_var_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_short; - if (EK_COMPLETE == type_ids_var_short.type_identifier1()._d() || TK_NONE == type_ids_var_short.type_identifier2()._d()) - { - common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_short.type_identifier2()._d()) - { - common_var_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_short, type_ids_var_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - AnnotationParameterValue param_value_var_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_short, name_var_short, param_value_var_short); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_short); - } - { - ReturnCode_t return_code_var_char16; - TypeIdentifierPair type_ids_var_char16; - AnnotationParameterFlag member_flags_var_char16 = 0; - return_code_var_char16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_var_char16); - - if (return_code_var_char16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char16 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_char16; - if (EK_COMPLETE == type_ids_var_char16.type_identifier1()._d() || TK_NONE == type_ids_var_char16.type_identifier2()._d()) - { - common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_char16.type_identifier2()._d()) - { - common_var_char16 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char16, type_ids_var_char16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char16 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char16 = "var_char16"; - AnnotationParameterValue param_value_var_char16 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_char16 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char16, name_var_char16, param_value_var_char16); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char16); - } - { - ReturnCode_t return_code_enum_value; - TypeIdentifierPair type_ids_enum_value; - AnnotationParameterFlag member_flags_enum_value = 0; - return_code_enum_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_value); - - if (return_code_enum_value != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "AnnotationTest::InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ONE = TypeObjectUtils::build_common_enumerated_literal(0, flags_ONE); - eprosima::fastcdr::optional member_ann_builtin_ONE; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ONE = "ONE"; - CompleteMemberDetail detail_ONE = TypeObjectUtils::build_complete_member_detail(name_ONE, member_ann_builtin_ONE, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ONE = TypeObjectUtils::build_complete_enumerated_literal(common_ONE, detail_ONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ONE); - } - { - EnumeratedLiteralFlag flags_TWO = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TWO = TypeObjectUtils::build_common_enumerated_literal(1, flags_TWO); - eprosima::fastcdr::optional member_ann_builtin_TWO; - ann_custom_InnerEnumHelper.reset(); - MemberName name_TWO = "TWO"; - CompleteMemberDetail detail_TWO = TypeObjectUtils::build_complete_member_detail(name_TWO, member_ann_builtin_TWO, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_TWO = TypeObjectUtils::build_complete_enumerated_literal(common_TWO, detail_TWO); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_TWO); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_enum_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_value); - if (return_code_enum_value != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_enum_value; - if (EK_COMPLETE == type_ids_enum_value.type_identifier1()._d() || TK_NONE == type_ids_enum_value.type_identifier2()._d()) - { - common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_enum_value.type_identifier2()._d()) - { - common_enum_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_value, type_ids_enum_value.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "enum_value annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_value = "enum_value"; - AnnotationParameterValue param_value_enum_value = TypeObjectUtils::build_annotation_parameter_value_enum(0); - - CompleteAnnotationParameter param_enum_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_value, name_enum_value, param_value_enum_value); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_value); - } - { - ReturnCode_t return_code_var_long; - TypeIdentifierPair type_ids_var_long; - AnnotationParameterFlag member_flags_var_long = 0; - return_code_var_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_var_long); - - if (return_code_var_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_long annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_long; - if (EK_COMPLETE == type_ids_var_long.type_identifier1()._d() || TK_NONE == type_ids_var_long.type_identifier2()._d()) - { - common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_long.type_identifier2()._d()) - { - common_var_long = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_long, type_ids_var_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_long annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_long = "var_long"; - AnnotationParameterValue param_value_var_long = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_long = TypeObjectUtils::build_complete_annotation_parameter(common_var_long, name_var_long, param_value_var_long); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_long); - } - { - ReturnCode_t return_code_var_char8; - TypeIdentifierPair type_ids_var_char8; - AnnotationParameterFlag member_flags_var_char8 = 0; - return_code_var_char8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_var_char8); - - if (return_code_var_char8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char8 annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_char8; - if (EK_COMPLETE == type_ids_var_char8.type_identifier1()._d() || TK_NONE == type_ids_var_char8.type_identifier2()._d()) - { - common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_char8.type_identifier2()._d()) - { - common_var_char8 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_char8, type_ids_var_char8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char8 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char8 = "var_char8"; - AnnotationParameterValue param_value_var_char8 = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_char8 = TypeObjectUtils::build_complete_annotation_parameter(common_var_char8, name_var_char8, param_value_var_char8); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_char8); - } - { - ReturnCode_t return_code_var_ulonglong; - TypeIdentifierPair type_ids_var_ulonglong; - AnnotationParameterFlag member_flags_var_ulonglong = 0; - return_code_var_ulonglong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_var_ulonglong); - - if (return_code_var_ulonglong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulonglong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_ulonglong; - if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier1()._d() || TK_NONE == type_ids_var_ulonglong.type_identifier2()._d()) - { - common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_ulonglong.type_identifier2()._d()) - { - common_var_ulonglong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulonglong, type_ids_var_ulonglong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulonglong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulonglong = "var_ulonglong"; - AnnotationParameterValue param_value_var_ulonglong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_ulonglong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulonglong, name_var_ulonglong, param_value_var_ulonglong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulonglong); - } - { - ReturnCode_t return_code_var_string_10; - TypeIdentifierPair type_ids_var_string_10; - AnnotationParameterFlag member_flags_var_string_10 = 0; - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_string_10); - - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "AnnotationTest::Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_string_10); - - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(1); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_1")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_string_10); - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_var_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_string_10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_string_10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_string_10.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_var_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_string_10); - if (return_code_var_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_var_string_10; - if (EK_COMPLETE == type_ids_var_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_string_10.type_identifier2()._d()) - { - common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string_10.type_identifier2()._d()) - { - common_var_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string_10, type_ids_var_string_10.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_string_10 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_string_10 = "var_string_10"; - AnnotationParameterValue param_value_var_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); - - - CompleteAnnotationParameter param_var_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_string_10, name_var_string_10, param_value_var_string_10); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string_10); - } - { - ReturnCode_t return_code_var_boolean; - TypeIdentifierPair type_ids_var_boolean; - AnnotationParameterFlag member_flags_var_boolean = 0; - return_code_var_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_var_boolean); - - if (return_code_var_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_boolean annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_boolean; - if (EK_COMPLETE == type_ids_var_boolean.type_identifier1()._d() || TK_NONE == type_ids_var_boolean.type_identifier2()._d()) - { - common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_boolean.type_identifier2()._d()) - { - common_var_boolean = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_boolean, type_ids_var_boolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_boolean annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_boolean = "var_boolean"; - AnnotationParameterValue param_value_var_boolean = TypeObjectUtils::build_annotation_parameter_value(static_cast(false)); - - CompleteAnnotationParameter param_var_boolean = TypeObjectUtils::build_complete_annotation_parameter(common_var_boolean, name_var_boolean, param_value_var_boolean); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_boolean); - } - { - ReturnCode_t return_code_var_wstring; - TypeIdentifierPair type_ids_var_wstring; - AnnotationParameterFlag member_flags_var_wstring = 0; - return_code_var_wstring = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_var_wstring); - - if (return_code_var_wstring != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_wstring = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_var_wstring); - if (return_code_var_wstring != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_var_wstring; - if (EK_COMPLETE == type_ids_var_wstring.type_identifier1()._d() || TK_NONE == type_ids_var_wstring.type_identifier2()._d()) - { - common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring.type_identifier2()._d()) - { - common_var_wstring = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring, type_ids_var_wstring.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_wstring annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_wstring = "var_wstring"; - AnnotationParameterValue param_value_var_wstring = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); - - CompleteAnnotationParameter param_var_wstring = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring, name_var_wstring, param_value_var_wstring); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring); - } - { - ReturnCode_t return_code_var_float; - TypeIdentifierPair type_ids_var_float; - AnnotationParameterFlag member_flags_var_float = 0; - return_code_var_float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_var_float); - - if (return_code_var_float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_float annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_float; - if (EK_COMPLETE == type_ids_var_float.type_identifier1()._d() || TK_NONE == type_ids_var_float.type_identifier2()._d()) - { - common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_float.type_identifier2()._d()) - { - common_var_float = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_float, type_ids_var_float.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_float annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_float = "var_float"; - AnnotationParameterValue param_value_var_float = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); - - CompleteAnnotationParameter param_var_float = TypeObjectUtils::build_complete_annotation_parameter(common_var_float, name_var_float, param_value_var_float); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_float); - } - { - ReturnCode_t return_code_var_ushort; - TypeIdentifierPair type_ids_var_ushort; - AnnotationParameterFlag member_flags_var_ushort = 0; - return_code_var_ushort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_var_ushort); - - if (return_code_var_ushort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ushort annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_ushort; - if (EK_COMPLETE == type_ids_var_ushort.type_identifier1()._d() || TK_NONE == type_ids_var_ushort.type_identifier2()._d()) - { - common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_ushort.type_identifier2()._d()) - { - common_var_ushort = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ushort, type_ids_var_ushort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ushort annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ushort = "var_ushort"; - AnnotationParameterValue param_value_var_ushort = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_ushort = TypeObjectUtils::build_complete_annotation_parameter(common_var_ushort, name_var_ushort, param_value_var_ushort); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ushort); - } - { - ReturnCode_t return_code_var_default_string_10; - TypeIdentifierPair type_ids_var_default_string_10; - AnnotationParameterFlag member_flags_var_default_string_10 = 0; - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_default_string_10); - - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "AnnotationTest::Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_default_string_10); - - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(1); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_1")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_var_default_string_10); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_default_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_default_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_default_string_10.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_default_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_default_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_default_string_10.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_default_string_10.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_var_default_string_10.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_var_default_string_10 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::Inner_alias_bounded_string_helper", type_ids_var_default_string_10); - if (return_code_var_default_string_10 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_var_default_string_10; - if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier1()._d() || TK_NONE == type_ids_var_default_string_10.type_identifier2()._d()) - { - common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_default_string_10.type_identifier2()._d()) - { - common_var_default_string_10 = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_default_string_10, type_ids_var_default_string_10.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_default_string_10 annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_default_string_10 = "var_default_string_10"; - AnnotationParameterValue param_value_var_default_string_10 = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("Hello")); - - - CompleteAnnotationParameter param_var_default_string_10 = TypeObjectUtils::build_complete_annotation_parameter(common_var_default_string_10, name_var_default_string_10, param_value_var_default_string_10); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_default_string_10); - } - { - ReturnCode_t return_code_var_wstring_alias; - TypeIdentifierPair type_ids_var_wstring_alias; - AnnotationParameterFlag member_flags_var_wstring_alias = 0; - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_var_wstring_alias); - - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_var_wstring_alias); - - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_var_wstring_alias); - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1()._d() || TK_NONE == type_ids_var_wstring_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_wstring_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_wstring_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_var_wstring_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_var_wstring_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_var_wstring_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_var_wstring_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_var_wstring_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_var_wstring_alias); - if (return_code_var_wstring_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_var_wstring_alias; - if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier1()._d() || TK_NONE == type_ids_var_wstring_alias.type_identifier2()._d()) - { - common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_wstring_alias.type_identifier2()._d()) - { - common_var_wstring_alias = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_wstring_alias, type_ids_var_wstring_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_wstring_alias annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_wstring_alias = "var_wstring_alias"; - AnnotationParameterValue param_value_var_wstring_alias = TypeObjectUtils::build_annotation_parameter_value(static_cast(L"")); - - - CompleteAnnotationParameter param_var_wstring_alias = TypeObjectUtils::build_complete_annotation_parameter(common_var_wstring_alias, name_var_wstring_alias, param_value_var_wstring_alias); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_wstring_alias); - } - { - ReturnCode_t return_code_var_longlong; - TypeIdentifierPair type_ids_var_longlong; - AnnotationParameterFlag member_flags_var_longlong = 0; - return_code_var_longlong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_var_longlong); - - if (return_code_var_longlong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longlong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_longlong; - if (EK_COMPLETE == type_ids_var_longlong.type_identifier1()._d() || TK_NONE == type_ids_var_longlong.type_identifier2()._d()) - { - common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_longlong.type_identifier2()._d()) - { - common_var_longlong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_longlong, type_ids_var_longlong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longlong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_longlong = "var_longlong"; - AnnotationParameterValue param_value_var_longlong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_longlong = TypeObjectUtils::build_complete_annotation_parameter(common_var_longlong, name_var_longlong, param_value_var_longlong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_longlong); - } - { - ReturnCode_t return_code_var_ulong; - TypeIdentifierPair type_ids_var_ulong; - AnnotationParameterFlag member_flags_var_ulong = 0; - return_code_var_ulong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_var_ulong); - - if (return_code_var_ulong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulong annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_ulong; - if (EK_COMPLETE == type_ids_var_ulong.type_identifier1()._d() || TK_NONE == type_ids_var_ulong.type_identifier2()._d()) - { - common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_ulong.type_identifier2()._d()) - { - common_var_ulong = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_ulong, type_ids_var_ulong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulong annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulong = "var_ulong"; - AnnotationParameterValue param_value_var_ulong = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_ulong = TypeObjectUtils::build_complete_annotation_parameter(common_var_ulong, name_var_ulong, param_value_var_ulong); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_ulong); - } - { - ReturnCode_t return_code_var_string; - TypeIdentifierPair type_ids_var_string; - AnnotationParameterFlag member_flags_var_string = 0; - return_code_var_string = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_var_string); - - if (return_code_var_string != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_var_string = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_var_string); - if (return_code_var_string != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_var_string; - if (EK_COMPLETE == type_ids_var_string.type_identifier1()._d() || TK_NONE == type_ids_var_string.type_identifier2()._d()) - { - common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_string.type_identifier2()._d()) - { - common_var_string = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_string, type_ids_var_string.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_string annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_string = "var_string"; - AnnotationParameterValue param_value_var_string = TypeObjectUtils::build_annotation_parameter_value(eprosima::fastcdr::fixed_string<128>("")); - - CompleteAnnotationParameter param_var_string = TypeObjectUtils::build_complete_annotation_parameter(common_var_string, name_var_string, param_value_var_string); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_string); - } - { - ReturnCode_t return_code_var_double; - TypeIdentifierPair type_ids_var_double; - AnnotationParameterFlag member_flags_var_double = 0; - return_code_var_double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_var_double); - - if (return_code_var_double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_double annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_double; - if (EK_COMPLETE == type_ids_var_double.type_identifier1()._d() || TK_NONE == type_ids_var_double.type_identifier2()._d()) - { - common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_double.type_identifier2()._d()) - { - common_var_double = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_double, type_ids_var_double.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_double annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_double = "var_double"; - AnnotationParameterValue param_value_var_double = TypeObjectUtils::build_annotation_parameter_value(static_cast(0.0)); - - CompleteAnnotationParameter param_var_double = TypeObjectUtils::build_complete_annotation_parameter(common_var_double, name_var_double, param_value_var_double); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_double); - } - { - ReturnCode_t return_code_enum_default_value; - TypeIdentifierPair type_ids_enum_default_value; - AnnotationParameterFlag member_flags_enum_default_value = 0; - return_code_enum_default_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_default_value); - - if (return_code_enum_default_value != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "AnnotationTest::InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ONE = TypeObjectUtils::build_common_enumerated_literal(0, flags_ONE); - eprosima::fastcdr::optional member_ann_builtin_ONE; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ONE = "ONE"; - CompleteMemberDetail detail_ONE = TypeObjectUtils::build_complete_member_detail(name_ONE, member_ann_builtin_ONE, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ONE = TypeObjectUtils::build_complete_enumerated_literal(common_ONE, detail_ONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ONE); - } - { - EnumeratedLiteralFlag flags_TWO = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_TWO = TypeObjectUtils::build_common_enumerated_literal(1, flags_TWO); - eprosima::fastcdr::optional member_ann_builtin_TWO; - ann_custom_InnerEnumHelper.reset(); - MemberName name_TWO = "TWO"; - CompleteMemberDetail detail_TWO = TypeObjectUtils::build_complete_member_detail(name_TWO, member_ann_builtin_TWO, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_TWO = TypeObjectUtils::build_complete_enumerated_literal(common_TWO, detail_TWO); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_TWO); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_enum_default_value = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest::InnerEnumHelper", type_ids_enum_default_value); - if (return_code_enum_default_value != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest::InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAnnotationParameter common_enum_default_value; - if (EK_COMPLETE == type_ids_enum_default_value.type_identifier1()._d() || TK_NONE == type_ids_enum_default_value.type_identifier2()._d()) - { - common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_enum_default_value.type_identifier2()._d()) - { - common_enum_default_value = TypeObjectUtils::build_common_annotation_parameter(member_flags_enum_default_value, type_ids_enum_default_value.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "enum_default_value annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_default_value = "enum_default_value"; - AnnotationParameterValue param_value_enum_default_value = TypeObjectUtils::build_annotation_parameter_value_enum(1); - - CompleteAnnotationParameter param_enum_default_value = TypeObjectUtils::build_complete_annotation_parameter(common_enum_default_value, name_enum_default_value, param_value_enum_default_value); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_enum_default_value); - } - { - ReturnCode_t return_code_var_octet; - TypeIdentifierPair type_ids_var_octet; - AnnotationParameterFlag member_flags_var_octet = 0; - return_code_var_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_var_octet); - - if (return_code_var_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_octet annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_octet; - if (EK_COMPLETE == type_ids_var_octet.type_identifier1()._d() || TK_NONE == type_ids_var_octet.type_identifier2()._d()) - { - common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_octet.type_identifier2()._d()) - { - common_var_octet = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_octet, type_ids_var_octet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_octet annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_octet = "var_octet"; - AnnotationParameterValue param_value_var_octet = TypeObjectUtils::build_annotation_parameter_value_byte(0); - - CompleteAnnotationParameter param_var_octet = TypeObjectUtils::build_complete_annotation_parameter(common_var_octet, name_var_octet, param_value_var_octet); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_AnnotationTest, param_var_octet); - } - CompleteAnnotationType annotation_type_AnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_AnnotationTest, header_AnnotationTest, - member_seq_AnnotationTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_AnnotationTest, annotation_name_AnnotationTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest already registered in TypeObjectRegistry for a different type."); - } - return_code_AnnotatedStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotationTest", type_ids_AnnotatedStruct); - if (return_code_AnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotationTest: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - + ::register_AnnotationTest_type_identifier(type_ids_AnnotationTest); } if (!tmp_applied_annotation_parameter_seq_AnnotatedStruct.empty()) { applied_annotation_parameter_seq_AnnotatedStruct = tmp_applied_annotation_parameter_seq_AnnotatedStruct; } - if (EK_COMPLETE == type_ids_AnnotatedStruct.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_AnnotationTest.type_identifier1()._d()) { - applied_annotation_AnnotatedStruct = TypeObjectUtils::build_applied_annotation(type_ids_AnnotatedStruct.type_identifier1(), applied_annotation_parameter_seq_AnnotatedStruct); + applied_annotation_AnnotatedStruct = + TypeObjectUtils::build_applied_annotation(type_ids_AnnotationTest.type_identifier1(), applied_annotation_parameter_seq_AnnotatedStruct); } - else if (EK_COMPLETE == type_ids_AnnotatedStruct.type_identifier2()._d()) + else if (EK_COMPLETE == type_ids_AnnotationTest.type_identifier2()._d()) { - applied_annotation_AnnotatedStruct = TypeObjectUtils::build_applied_annotation(type_ids_AnnotatedStruct.type_identifier2(), applied_annotation_parameter_seq_AnnotatedStruct); + applied_annotation_AnnotatedStruct = + TypeObjectUtils::build_applied_annotation(type_ids_AnnotationTest.type_identifier2(), applied_annotation_parameter_seq_AnnotatedStruct); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AnnotatedStruct Structure: Given Annotation TypeIdentifier is inconsistent."); - type_id = TypeIdentifier(); return; } TypeObjectUtils::add_applied_annotation(tmp_ann_custom_AnnotatedStruct, applied_annotation_AnnotatedStruct); @@ -2578,32 +1123,26 @@ void register_AnnotatedStruct_type_identifier( CompleteStructMemberSeq member_seq_AnnotatedStruct; CompleteStructType struct_type_AnnotatedStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AnnotatedStruct, header_AnnotatedStruct, member_seq_AnnotatedStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AnnotatedStruct, type_name_AnnotatedStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AnnotatedStruct, type_name_AnnotatedStruct.to_string(), type_ids_AnnotatedStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AnnotatedStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AnnotatedStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AnnotatedStruct", type_ids_AnnotatedStruct); - if (return_code_AnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AnnotatedStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_EmptyAnnotatedStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_EmptyAnnotatedStruct) { + + ReturnCode_t return_code_EmptyAnnotatedStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EmptyAnnotatedStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "EmptyAnnotatedStruct", type_ids_EmptyAnnotatedStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EmptyAnnotatedStruct) { - StructTypeFlag struct_flags_EmptyAnnotatedStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EmptyAnnotatedStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EmptyAnnotatedStruct; - TypeIdentifierPair type_ids_EmptyAnnotatedStruct; QualifiedTypeName type_name_EmptyAnnotatedStruct = "EmptyAnnotatedStruct"; eprosima::fastcdr::optional type_ann_builtin_EmptyAnnotatedStruct; eprosima::fastcdr::optional ann_custom_EmptyAnnotatedStruct; @@ -2614,52 +1153,33 @@ void register_EmptyAnnotatedStruct_type_identifier( AppliedAnnotationParameterSeq tmp_applied_annotation_parameter_seq_EmptyAnnotatedStruct; { AppliedAnnotation applied_annotation_EmptyAnnotatedStruct; - return_code_EmptyAnnotatedStruct = + ReturnCode_t return_code_EmptyAnnotationTest {eprosima::fastdds::dds::RETCODE_OK}; + TypeIdentifierPair type_ids_EmptyAnnotationTest; + return_code_EmptyAnnotationTest = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "EmptyAnnotationTest", type_ids_EmptyAnnotatedStruct); - if (return_code_EmptyAnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) + "EmptyAnnotationTest", type_ids_EmptyAnnotationTest); + if (return_code_EmptyAnnotationTest != eprosima::fastdds::dds::RETCODE_OK) { - AnnotationTypeFlag annotation_flag_EmptyAnnotationTest = 0; - QualifiedTypeName annotation_name_EmptyAnnotationTest = "EmptyAnnotationTest"; - CompleteAnnotationHeader header_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_EmptyAnnotationTest); - CompleteAnnotationParameterSeq member_seq_EmptyAnnotationTest; - CompleteAnnotationType annotation_type_EmptyAnnotationTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_EmptyAnnotationTest, header_EmptyAnnotationTest, - member_seq_EmptyAnnotationTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_EmptyAnnotationTest, annotation_name_EmptyAnnotationTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "EmptyAnnotationTest already registered in TypeObjectRegistry for a different type."); - } - return_code_EmptyAnnotatedStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "EmptyAnnotationTest", type_ids_EmptyAnnotatedStruct); - if (return_code_EmptyAnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "EmptyAnnotationTest: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - + ::register_EmptyAnnotationTest_type_identifier(type_ids_EmptyAnnotationTest); } if (!tmp_applied_annotation_parameter_seq_EmptyAnnotatedStruct.empty()) { applied_annotation_parameter_seq_EmptyAnnotatedStruct = tmp_applied_annotation_parameter_seq_EmptyAnnotatedStruct; } - if (EK_COMPLETE == type_ids_EmptyAnnotatedStruct.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_EmptyAnnotationTest.type_identifier1()._d()) { - applied_annotation_EmptyAnnotatedStruct = TypeObjectUtils::build_applied_annotation(type_ids_EmptyAnnotatedStruct.type_identifier1(), applied_annotation_parameter_seq_EmptyAnnotatedStruct); + applied_annotation_EmptyAnnotatedStruct = + TypeObjectUtils::build_applied_annotation(type_ids_EmptyAnnotationTest.type_identifier1(), applied_annotation_parameter_seq_EmptyAnnotatedStruct); } - else if (EK_COMPLETE == type_ids_EmptyAnnotatedStruct.type_identifier2()._d()) + else if (EK_COMPLETE == type_ids_EmptyAnnotationTest.type_identifier2()._d()) { - applied_annotation_EmptyAnnotatedStruct = TypeObjectUtils::build_applied_annotation(type_ids_EmptyAnnotatedStruct.type_identifier2(), applied_annotation_parameter_seq_EmptyAnnotatedStruct); + applied_annotation_EmptyAnnotatedStruct = + TypeObjectUtils::build_applied_annotation(type_ids_EmptyAnnotationTest.type_identifier2(), applied_annotation_parameter_seq_EmptyAnnotatedStruct); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "EmptyAnnotatedStruct Structure: Given Annotation TypeIdentifier is inconsistent."); - type_id = TypeIdentifier(); return; } TypeObjectUtils::add_applied_annotation(tmp_ann_custom_EmptyAnnotatedStruct, applied_annotation_EmptyAnnotatedStruct); @@ -2677,86 +1197,92 @@ void register_EmptyAnnotatedStruct_type_identifier( CompleteStructMemberSeq member_seq_EmptyAnnotatedStruct; CompleteStructType struct_type_EmptyAnnotatedStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_EmptyAnnotatedStruct, header_EmptyAnnotatedStruct, member_seq_EmptyAnnotatedStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EmptyAnnotatedStruct, type_name_EmptyAnnotatedStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EmptyAnnotatedStruct, type_name_EmptyAnnotatedStruct.to_string(), type_ids_EmptyAnnotatedStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "EmptyAnnotatedStruct already registered in TypeObjectRegistry for a different type."); } - return_code_EmptyAnnotatedStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "EmptyAnnotatedStruct", type_ids_EmptyAnnotatedStruct); - if (return_code_EmptyAnnotatedStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "EmptyAnnotatedStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } + +namespace BasicAnnotationsTest { + + + +} // namespace BasicAnnotationsTest + void register_BasicAnnotationsTest_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BasicAnnotationsTest) { - AnnotationTypeFlag annotation_flag_BasicAnnotationsTest = 0; - QualifiedTypeName annotation_name_BasicAnnotationsTest = "BasicAnnotationsTest"; - CompleteAnnotationHeader header_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_BasicAnnotationsTest); - CompleteAnnotationParameterSeq member_seq_BasicAnnotationsTest; + ReturnCode_t return_code_BasicAnnotationsTest {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BasicAnnotationsTest = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BasicAnnotationsTest", type_ids_BasicAnnotationsTest); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BasicAnnotationsTest) { - ReturnCode_t return_code_var_basic_short; - TypeIdentifierPair type_ids_var_basic_short; - AnnotationParameterFlag member_flags_var_basic_short = 0; - return_code_var_basic_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_var_basic_short); + AnnotationTypeFlag annotation_flag_BasicAnnotationsTest = 0; + QualifiedTypeName annotation_name_BasicAnnotationsTest = "BasicAnnotationsTest"; + CompleteAnnotationHeader header_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_BasicAnnotationsTest); + CompleteAnnotationParameterSeq member_seq_BasicAnnotationsTest; + { + ReturnCode_t return_code_var_basic_short; + TypeIdentifierPair type_ids_var_basic_short; + AnnotationParameterFlag member_flags_var_basic_short = 0; + return_code_var_basic_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_var_basic_short); - if (return_code_var_basic_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_basic_short; - if (EK_COMPLETE == type_ids_var_basic_short.type_identifier1()._d() || TK_NONE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier2()); + if (return_code_var_basic_short != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_basic_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + CommonAnnotationParameter common_var_basic_short; + if (EK_COMPLETE == type_ids_var_basic_short.type_identifier1()._d() || TK_NONE == type_ids_var_basic_short.type_identifier2()._d()) + { + common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_var_basic_short.type_identifier2()._d()) + { + common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "var_basic_short annotation parameter TypeIdentifier inconsistent."); + return; + } + MemberName name_var_basic_short = "var_basic_short"; + AnnotationParameterValue param_value_var_basic_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); + + CompleteAnnotationParameter param_var_basic_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_basic_short, name_var_basic_short, param_value_var_basic_short); + TypeObjectUtils::add_complete_annotation_parameter(member_seq_BasicAnnotationsTest, param_var_basic_short); } - else + CompleteAnnotationType annotation_type_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_BasicAnnotationsTest, header_BasicAnnotationsTest, + member_seq_BasicAnnotationsTest); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_BasicAnnotationsTest, + annotation_name_BasicAnnotationsTest.to_string(), type_ids_BasicAnnotationsTest)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + "BasicAnnotationsTest already registered in TypeObjectRegistry for a different type."); } - MemberName name_var_basic_short = "var_basic_short"; - AnnotationParameterValue param_value_var_basic_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_basic_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_basic_short, name_var_basic_short, param_value_var_basic_short); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_BasicAnnotationsTest, param_var_basic_short); } - CompleteAnnotationType annotation_type_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_BasicAnnotationsTest, header_BasicAnnotationsTest, - member_seq_BasicAnnotationsTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_BasicAnnotationsTest, annotation_name_BasicAnnotationsTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsTest already registered in TypeObjectRegistry for a different type."); - } - } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BasicAnnotationsStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BasicAnnotationsStruct) { + + ReturnCode_t return_code_BasicAnnotationsStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BasicAnnotationsStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BasicAnnotationsStruct", type_ids_BasicAnnotationsStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BasicAnnotationsStruct) { - StructTypeFlag struct_flags_BasicAnnotationsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BasicAnnotationsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BasicAnnotationsStruct; - TypeIdentifierPair type_ids_BasicAnnotationsStruct; QualifiedTypeName type_name_BasicAnnotationsStruct = "BasicAnnotationsStruct"; eprosima::fastcdr::optional type_ann_builtin_BasicAnnotationsStruct; eprosima::fastcdr::optional ann_custom_BasicAnnotationsStruct; @@ -2776,89 +1302,33 @@ void register_BasicAnnotationsStruct_type_identifier( { AppliedAnnotation applied_annotation_BasicAnnotationsStruct; - return_code_BasicAnnotationsStruct = + ReturnCode_t return_code_BasicAnnotationsTest {eprosima::fastdds::dds::RETCODE_OK}; + TypeIdentifierPair type_ids_BasicAnnotationsTest; + return_code_BasicAnnotationsTest = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicAnnotationsTest", type_ids_BasicAnnotationsStruct); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) + "BasicAnnotationsTest", type_ids_BasicAnnotationsTest); + if (return_code_BasicAnnotationsTest != eprosima::fastdds::dds::RETCODE_OK) { - AnnotationTypeFlag annotation_flag_BasicAnnotationsTest = 0; - QualifiedTypeName annotation_name_BasicAnnotationsTest = "BasicAnnotationsTest"; - CompleteAnnotationHeader header_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_BasicAnnotationsTest); - CompleteAnnotationParameterSeq member_seq_BasicAnnotationsTest; - { - ReturnCode_t return_code_var_basic_short; - TypeIdentifierPair type_ids_var_basic_short; - AnnotationParameterFlag member_flags_var_basic_short = 0; - return_code_var_basic_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_var_basic_short); - - if (return_code_var_basic_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_basic_short; - if (EK_COMPLETE == type_ids_var_basic_short.type_identifier1()._d() || TK_NONE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_basic_short = "var_basic_short"; - AnnotationParameterValue param_value_var_basic_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_basic_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_basic_short, name_var_basic_short, param_value_var_basic_short); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_BasicAnnotationsTest, param_var_basic_short); - } - CompleteAnnotationType annotation_type_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_BasicAnnotationsTest, header_BasicAnnotationsTest, - member_seq_BasicAnnotationsTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_BasicAnnotationsTest, annotation_name_BasicAnnotationsTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsTest already registered in TypeObjectRegistry for a different type."); - } - return_code_BasicAnnotationsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicAnnotationsTest", type_ids_BasicAnnotationsStruct); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsTest: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - + ::register_BasicAnnotationsTest_type_identifier(type_ids_BasicAnnotationsTest); } if (!tmp_applied_annotation_parameter_seq_BasicAnnotationsStruct.empty()) { applied_annotation_parameter_seq_BasicAnnotationsStruct = tmp_applied_annotation_parameter_seq_BasicAnnotationsStruct; } - if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_BasicAnnotationsTest.type_identifier1()._d()) { - applied_annotation_BasicAnnotationsStruct = TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsStruct.type_identifier1(), applied_annotation_parameter_seq_BasicAnnotationsStruct); + applied_annotation_BasicAnnotationsStruct = + TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsTest.type_identifier1(), applied_annotation_parameter_seq_BasicAnnotationsStruct); } - else if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2()._d()) + else if (EK_COMPLETE == type_ids_BasicAnnotationsTest.type_identifier2()._d()) { - applied_annotation_BasicAnnotationsStruct = TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsStruct.type_identifier2(), applied_annotation_parameter_seq_BasicAnnotationsStruct); + applied_annotation_BasicAnnotationsStruct = + TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsTest.type_identifier2(), applied_annotation_parameter_seq_BasicAnnotationsStruct); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BasicAnnotationsStruct Structure: Given Annotation TypeIdentifier is inconsistent."); - type_id = TypeIdentifier(); return; } TypeObjectUtils::add_applied_annotation(tmp_ann_custom_BasicAnnotationsStruct, applied_annotation_BasicAnnotationsStruct); @@ -2875,62 +1345,26 @@ void register_BasicAnnotationsStruct_type_identifier( header_BasicAnnotationsStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BasicAnnotationsStruct); CompleteStructMemberSeq member_seq_BasicAnnotationsStruct; { - return_code_BasicAnnotationsStruct = + TypeIdentifierPair type_ids_basic_annotations_member; + ReturnCode_t return_code_basic_annotations_member {eprosima::fastdds::dds::RETCODE_OK}; + return_code_basic_annotations_member = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_BasicAnnotationsStruct); + "_int16_t", type_ids_basic_annotations_member); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_basic_annotations_member) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "basic_annotations_member Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_basic_annotations_member = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_basic_annotations_member = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_basic_annotations_member; MemberId member_id_basic_annotations_member = 0x00000000; - if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1()._d() || TK_NONE == type_ids_BasicAnnotationsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicAnnotationsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_basic_annotations_member = TypeObjectUtils::build_common_struct_member(member_id_basic_annotations_member, member_flags_basic_annotations_member, type_ids_BasicAnnotationsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BasicAnnotationsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_basic_annotations_member = TypeObjectUtils::build_common_struct_member(member_id_basic_annotations_member, member_flags_basic_annotations_member, type_ids_BasicAnnotationsStruct.type_identifier2()); - } - else + bool common_basic_annotations_member_ec {false}; + CommonStructMember common_basic_annotations_member {TypeObjectUtils::build_common_struct_member(member_id_basic_annotations_member, member_flags_basic_annotations_member, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_basic_annotations_member, common_basic_annotations_member_ec))}; + if (!common_basic_annotations_member_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure basic_annotations_member member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure basic_annotations_member member TypeIdentifier inconsistent."); return; } MemberName name_basic_annotations_member = "basic_annotations_member"; @@ -2955,89 +1389,33 @@ void register_BasicAnnotationsStruct_type_identifier( { AppliedAnnotation applied_annotation_basic_annotations_member; - return_code_BasicAnnotationsStruct = + ReturnCode_t return_code_BasicAnnotationsTest {eprosima::fastdds::dds::RETCODE_OK}; + TypeIdentifierPair type_ids_BasicAnnotationsTest; + return_code_BasicAnnotationsTest = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicAnnotationsTest", type_ids_BasicAnnotationsStruct); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) + "BasicAnnotationsTest", type_ids_BasicAnnotationsTest); + if (return_code_BasicAnnotationsTest != eprosima::fastdds::dds::RETCODE_OK) { - AnnotationTypeFlag annotation_flag_BasicAnnotationsTest = 0; - QualifiedTypeName annotation_name_BasicAnnotationsTest = "BasicAnnotationsTest"; - CompleteAnnotationHeader header_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_header(annotation_name_BasicAnnotationsTest); - CompleteAnnotationParameterSeq member_seq_BasicAnnotationsTest; - { - ReturnCode_t return_code_var_basic_short; - TypeIdentifierPair type_ids_var_basic_short; - AnnotationParameterFlag member_flags_var_basic_short = 0; - return_code_var_basic_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_var_basic_short); - - if (return_code_var_basic_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAnnotationParameter common_var_basic_short; - if (EK_COMPLETE == type_ids_var_basic_short.type_identifier1()._d() || TK_NONE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_var_basic_short.type_identifier2()._d()) - { - common_var_basic_short = TypeObjectUtils::build_common_annotation_parameter(member_flags_var_basic_short, type_ids_var_basic_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_basic_short annotation parameter TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_basic_short = "var_basic_short"; - AnnotationParameterValue param_value_var_basic_short = TypeObjectUtils::build_annotation_parameter_value(static_cast(0)); - - CompleteAnnotationParameter param_var_basic_short = TypeObjectUtils::build_complete_annotation_parameter(common_var_basic_short, name_var_basic_short, param_value_var_basic_short); - TypeObjectUtils::add_complete_annotation_parameter(member_seq_BasicAnnotationsTest, param_var_basic_short); - } - CompleteAnnotationType annotation_type_BasicAnnotationsTest = TypeObjectUtils::build_complete_annotation_type(annotation_flag_BasicAnnotationsTest, header_BasicAnnotationsTest, - member_seq_BasicAnnotationsTest); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_annotation_type_object(annotation_type_BasicAnnotationsTest, annotation_name_BasicAnnotationsTest.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsTest already registered in TypeObjectRegistry for a different type."); - } - return_code_BasicAnnotationsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicAnnotationsTest", type_ids_BasicAnnotationsStruct); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsTest: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - + ::register_BasicAnnotationsTest_type_identifier(type_ids_BasicAnnotationsTest); } if (!tmp_applied_annotation_parameter_seq_basic_annotations_member.empty()) { applied_annotation_parameter_seq_basic_annotations_member = tmp_applied_annotation_parameter_seq_basic_annotations_member; } - if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_BasicAnnotationsTest.type_identifier1()._d()) { - applied_annotation_basic_annotations_member = TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsStruct.type_identifier1(), applied_annotation_parameter_seq_basic_annotations_member); + applied_annotation_basic_annotations_member = + TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsTest.type_identifier1(), applied_annotation_parameter_seq_basic_annotations_member); } - else if (EK_COMPLETE == type_ids_BasicAnnotationsStruct.type_identifier2()._d()) + else if (EK_COMPLETE == type_ids_BasicAnnotationsTest.type_identifier2()._d()) { - applied_annotation_basic_annotations_member = TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsStruct.type_identifier2(), applied_annotation_parameter_seq_basic_annotations_member); + applied_annotation_basic_annotations_member = + TypeObjectUtils::build_applied_annotation(type_ids_BasicAnnotationsTest.type_identifier2(), applied_annotation_parameter_seq_basic_annotations_member); } else { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BasicAnnotationsStruct basic_annotations_member member: Given Annotation TypeIdentifier is inconsistent."); - type_id = TypeIdentifier(); return; } TypeObjectUtils::add_applied_annotation(tmp_ann_custom_basic_annotations_member, applied_annotation_basic_annotations_member); @@ -3058,21 +1436,11 @@ void register_BasicAnnotationsStruct_type_identifier( } CompleteStructType struct_type_BasicAnnotationsStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BasicAnnotationsStruct, header_BasicAnnotationsStruct, member_seq_BasicAnnotationsStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BasicAnnotationsStruct, type_name_BasicAnnotationsStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BasicAnnotationsStruct, type_name_BasicAnnotationsStruct.to_string(), type_ids_BasicAnnotationsStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BasicAnnotationsStruct already registered in TypeObjectRegistry for a different type."); } - return_code_BasicAnnotationsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BasicAnnotationsStruct", type_ids_BasicAnnotationsStruct); - if (return_code_BasicAnnotationsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BasicAnnotationsStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/annotationsTypeObjectSupport.hpp b/test/dds-types-test/annotationsTypeObjectSupport.hpp index 79e0f0ea73f..026043575d1 100644 --- a/test/dds-types-test/annotationsTypeObjectSupport.hpp +++ b/test/dds-types-test/annotationsTypeObjectSupport.hpp @@ -36,13 +36,43 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_annotations_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +namespace AnnotationTest { + /** + * @brief Register InnerEnumHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ + eProsima_user_DllExport void register_InnerEnumHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + /** + * @brief Register Inner_alias_bounded_string_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ + eProsima_user_DllExport void register_Inner_alias_bounded_string_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + + + +} // namespace AnnotationTest + /** * @brief Register AnnotationTest related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -54,7 +84,14 @@ eProsima_user_DllExport void register_annotations_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AnnotationTest_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +namespace EmptyAnnotationTest { + + + +} // namespace EmptyAnnotationTest + /** * @brief Register EmptyAnnotationTest related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +103,7 @@ eProsima_user_DllExport void register_AnnotationTest_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_EmptyAnnotationTest_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AnnotatedStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +115,7 @@ eProsima_user_DllExport void register_EmptyAnnotationTest_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AnnotatedStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register EmptyAnnotatedStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +127,14 @@ eProsima_user_DllExport void register_AnnotatedStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_EmptyAnnotatedStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + +namespace BasicAnnotationsTest { + + + +} // namespace BasicAnnotationsTest + /** * @brief Register BasicAnnotationsTest related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +146,7 @@ eProsima_user_DllExport void register_EmptyAnnotatedStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BasicAnnotationsTest_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BasicAnnotationsStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +158,7 @@ eProsima_user_DllExport void register_BasicAnnotationsTest_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BasicAnnotationsStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/appendablePubSubTypes.cxx b/test/dds-types-test/appendablePubSubTypes.cxx index 81ccf1ef391..fce8a5bb834 100644 --- a/test/dds-types-test/appendablePubSubTypes.cxx +++ b/test/dds-types-test/appendablePubSubTypes.cxx @@ -219,9 +219,9 @@ bool AppendableShortStructPubSubType::getKey( return true; } -void AppendableShortStructPubSubType::register_type_object_representation() const +void AppendableShortStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableShortStruct_type_identifier(type_identifiers_); } AppendableUShortStructPubSubType::AppendableUShortStructPubSubType() @@ -412,9 +412,9 @@ bool AppendableUShortStructPubSubType::getKey( return true; } -void AppendableUShortStructPubSubType::register_type_object_representation() const +void AppendableUShortStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableUShortStruct_type_identifier(type_identifiers_); } AppendableLongStructPubSubType::AppendableLongStructPubSubType() @@ -605,9 +605,9 @@ bool AppendableLongStructPubSubType::getKey( return true; } -void AppendableLongStructPubSubType::register_type_object_representation() const +void AppendableLongStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableLongStruct_type_identifier(type_identifiers_); } AppendableULongStructPubSubType::AppendableULongStructPubSubType() @@ -798,9 +798,9 @@ bool AppendableULongStructPubSubType::getKey( return true; } -void AppendableULongStructPubSubType::register_type_object_representation() const +void AppendableULongStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableULongStruct_type_identifier(type_identifiers_); } AppendableLongLongStructPubSubType::AppendableLongLongStructPubSubType() @@ -991,9 +991,9 @@ bool AppendableLongLongStructPubSubType::getKey( return true; } -void AppendableLongLongStructPubSubType::register_type_object_representation() const +void AppendableLongLongStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableLongLongStruct_type_identifier(type_identifiers_); } AppendableULongLongStructPubSubType::AppendableULongLongStructPubSubType() @@ -1184,9 +1184,9 @@ bool AppendableULongLongStructPubSubType::getKey( return true; } -void AppendableULongLongStructPubSubType::register_type_object_representation() const +void AppendableULongLongStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableULongLongStruct_type_identifier(type_identifiers_); } AppendableFloatStructPubSubType::AppendableFloatStructPubSubType() @@ -1377,9 +1377,9 @@ bool AppendableFloatStructPubSubType::getKey( return true; } -void AppendableFloatStructPubSubType::register_type_object_representation() const +void AppendableFloatStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableFloatStruct_type_identifier(type_identifiers_); } AppendableDoubleStructPubSubType::AppendableDoubleStructPubSubType() @@ -1570,9 +1570,9 @@ bool AppendableDoubleStructPubSubType::getKey( return true; } -void AppendableDoubleStructPubSubType::register_type_object_representation() const +void AppendableDoubleStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableDoubleStruct_type_identifier(type_identifiers_); } AppendableLongDoubleStructPubSubType::AppendableLongDoubleStructPubSubType() @@ -1763,9 +1763,9 @@ bool AppendableLongDoubleStructPubSubType::getKey( return true; } -void AppendableLongDoubleStructPubSubType::register_type_object_representation() const +void AppendableLongDoubleStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableLongDoubleStruct_type_identifier(type_identifiers_); } AppendableBooleanStructPubSubType::AppendableBooleanStructPubSubType() @@ -1956,9 +1956,9 @@ bool AppendableBooleanStructPubSubType::getKey( return true; } -void AppendableBooleanStructPubSubType::register_type_object_representation() const +void AppendableBooleanStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableBooleanStruct_type_identifier(type_identifiers_); } AppendableOctetStructPubSubType::AppendableOctetStructPubSubType() @@ -2149,9 +2149,9 @@ bool AppendableOctetStructPubSubType::getKey( return true; } -void AppendableOctetStructPubSubType::register_type_object_representation() const +void AppendableOctetStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableOctetStruct_type_identifier(type_identifiers_); } AppendableCharStructPubSubType::AppendableCharStructPubSubType() @@ -2342,9 +2342,9 @@ bool AppendableCharStructPubSubType::getKey( return true; } -void AppendableCharStructPubSubType::register_type_object_representation() const +void AppendableCharStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableCharStruct_type_identifier(type_identifiers_); } AppendableWCharStructPubSubType::AppendableWCharStructPubSubType() @@ -2535,9 +2535,9 @@ bool AppendableWCharStructPubSubType::getKey( return true; } -void AppendableWCharStructPubSubType::register_type_object_representation() const +void AppendableWCharStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableWCharStruct_type_identifier(type_identifiers_); } AppendableUnionStructPubSubType::AppendableUnionStructPubSubType() @@ -2728,9 +2728,9 @@ bool AppendableUnionStructPubSubType::getKey( return true; } -void AppendableUnionStructPubSubType::register_type_object_representation() const +void AppendableUnionStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableUnionStruct_type_identifier(type_identifiers_); } AppendableEmptyStructPubSubType::AppendableEmptyStructPubSubType() @@ -2921,9 +2921,9 @@ bool AppendableEmptyStructPubSubType::getKey( return true; } -void AppendableEmptyStructPubSubType::register_type_object_representation() const +void AppendableEmptyStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableEmptyStruct_type_identifier(type_identifiers_); } AppendableEmptyInheritanceStructPubSubType::AppendableEmptyInheritanceStructPubSubType() @@ -3114,9 +3114,9 @@ bool AppendableEmptyInheritanceStructPubSubType::getKey( return true; } -void AppendableEmptyInheritanceStructPubSubType::register_type_object_representation() const +void AppendableEmptyInheritanceStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableEmptyInheritanceStruct_type_identifier(type_identifiers_); } AppendableInheritanceStructPubSubType::AppendableInheritanceStructPubSubType() @@ -3307,9 +3307,9 @@ bool AppendableInheritanceStructPubSubType::getKey( return true; } -void AppendableInheritanceStructPubSubType::register_type_object_representation() const +void AppendableInheritanceStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableInheritanceStruct_type_identifier(type_identifiers_); } AppendableInheritanceEmptyStructPubSubType::AppendableInheritanceEmptyStructPubSubType() @@ -3500,9 +3500,9 @@ bool AppendableInheritanceEmptyStructPubSubType::getKey( return true; } -void AppendableInheritanceEmptyStructPubSubType::register_type_object_representation() const +void AppendableInheritanceEmptyStructPubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableInheritanceEmptyStruct_type_identifier(type_identifiers_); } AppendableExtensibilityInheritancePubSubType::AppendableExtensibilityInheritancePubSubType() @@ -3693,9 +3693,9 @@ bool AppendableExtensibilityInheritancePubSubType::getKey( return true; } -void AppendableExtensibilityInheritancePubSubType::register_type_object_representation() const +void AppendableExtensibilityInheritancePubSubType::register_type_object_representation() { - register_appendable_type_objects(); + register_AppendableExtensibilityInheritance_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/appendablePubSubTypes.h b/test/dds-types-test/appendablePubSubTypes.h index e528046342e..5fde4a63691 100644 --- a/test/dds-types-test/appendablePubSubTypes.h +++ b/test/dds-types-test/appendablePubSubTypes.h @@ -90,7 +90,7 @@ class AppendableShortStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class AppendableUShortStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class AppendableLongStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class AppendableULongStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class AppendableLongLongStructPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class AppendableULongLongStructPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class AppendableFloatStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class AppendableDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class AppendableLongDoubleStructPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class AppendableBooleanStructPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class AppendableOctetStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class AppendableCharStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class AppendableWCharStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class AppendableUnionStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class AppendableEmptyStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class AppendableEmptyInheritanceStructPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class AppendableInheritanceStructPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class AppendableInheritanceEmptyStructPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class AppendableExtensibilityInheritancePubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/appendableTypeObjectSupport.cxx b/test/dds-types-test/appendableTypeObjectSupport.cxx index 8bcaec791d9..97604849805 100644 --- a/test/dds-types-test/appendableTypeObjectSupport.cxx +++ b/test/dds-types-test/appendableTypeObjectSupport.cxx @@ -39,68 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_appendable_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_AppendableShortStruct_type_identifier(type_id); - - register_AppendableUShortStruct_type_identifier(type_id); - - register_AppendableLongStruct_type_identifier(type_id); - - register_AppendableULongStruct_type_identifier(type_id); - - register_AppendableLongLongStruct_type_identifier(type_id); - - register_AppendableULongLongStruct_type_identifier(type_id); - - register_AppendableFloatStruct_type_identifier(type_id); - - register_AppendableDoubleStruct_type_identifier(type_id); - - register_AppendableLongDoubleStruct_type_identifier(type_id); - - register_AppendableBooleanStruct_type_identifier(type_id); - - register_AppendableOctetStruct_type_identifier(type_id); - - register_AppendableCharStruct_type_identifier(type_id); - - register_AppendableWCharStruct_type_identifier(type_id); - - register_AppendableUnionStruct_type_identifier(type_id); - - register_AppendableEmptyStruct_type_identifier(type_id); - - register_AppendableEmptyInheritanceStruct_type_identifier(type_id); - - register_AppendableInheritanceStruct_type_identifier(type_id); - - register_AppendableInheritanceEmptyStruct_type_identifier(type_id); - - register_AppendableExtensibilityInheritance_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableShortStruct) { + + ReturnCode_t return_code_AppendableShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableShortStruct", type_ids_AppendableShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableShortStruct) { StructTypeFlag struct_flags_AppendableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableShortStruct; - TypeIdentifierPair type_ids_AppendableShortStruct; QualifiedTypeName type_name_AppendableShortStruct = "AppendableShortStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableShortStruct; eprosima::fastcdr::optional ann_custom_AppendableShortStruct; @@ -116,62 +67,26 @@ void register_AppendableShortStruct_type_identifier( header_AppendableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableShortStruct); CompleteStructMemberSeq member_seq_AppendableShortStruct; { - return_code_AppendableShortStruct = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AppendableShortStruct); + "_int16_t", type_ids_var_short); - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -183,32 +98,26 @@ void register_AppendableShortStruct_type_identifier( } CompleteStructType struct_type_AppendableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableShortStruct, header_AppendableShortStruct, member_seq_AppendableShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableShortStruct, type_name_AppendableShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableShortStruct, type_name_AppendableShortStruct.to_string(), type_ids_AppendableShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableShortStruct", type_ids_AppendableShortStruct); - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableUShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableUShortStruct) { + + ReturnCode_t return_code_AppendableUShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableUShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableUShortStruct", type_ids_AppendableUShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableUShortStruct) { StructTypeFlag struct_flags_AppendableUShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableUShortStruct; - TypeIdentifierPair type_ids_AppendableUShortStruct; QualifiedTypeName type_name_AppendableUShortStruct = "AppendableUShortStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableUShortStruct; eprosima::fastcdr::optional ann_custom_AppendableUShortStruct; @@ -224,62 +133,26 @@ void register_AppendableUShortStruct_type_identifier( header_AppendableUShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableUShortStruct); CompleteStructMemberSeq member_seq_AppendableUShortStruct; { - return_code_AppendableUShortStruct = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_AppendableUShortStruct); + "_uint16_t", type_ids_var_ushort); - if (return_code_AppendableUShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_AppendableUShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_AppendableUShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -291,32 +164,26 @@ void register_AppendableUShortStruct_type_identifier( } CompleteStructType struct_type_AppendableUShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableUShortStruct, header_AppendableUShortStruct, member_seq_AppendableUShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableUShortStruct, type_name_AppendableUShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableUShortStruct, type_name_AppendableUShortStruct.to_string(), type_ids_AppendableUShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableUShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableUShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableUShortStruct", type_ids_AppendableUShortStruct); - if (return_code_AppendableUShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableUShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableLongStruct) { + + ReturnCode_t return_code_AppendableLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableLongStruct", type_ids_AppendableLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableLongStruct) { StructTypeFlag struct_flags_AppendableLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableLongStruct; - TypeIdentifierPair type_ids_AppendableLongStruct; QualifiedTypeName type_name_AppendableLongStruct = "AppendableLongStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableLongStruct; eprosima::fastcdr::optional ann_custom_AppendableLongStruct; @@ -332,62 +199,26 @@ void register_AppendableLongStruct_type_identifier( header_AppendableLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableLongStruct); CompleteStructMemberSeq member_seq_AppendableLongStruct; { - return_code_AppendableLongStruct = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AppendableLongStruct); + "_int32_t", type_ids_var_long); - if (return_code_AppendableLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_AppendableLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_AppendableLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -399,32 +230,26 @@ void register_AppendableLongStruct_type_identifier( } CompleteStructType struct_type_AppendableLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableLongStruct, header_AppendableLongStruct, member_seq_AppendableLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongStruct, type_name_AppendableLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongStruct, type_name_AppendableLongStruct.to_string(), type_ids_AppendableLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableLongStruct", type_ids_AppendableLongStruct); - if (return_code_AppendableLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableULongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableULongStruct) { + + ReturnCode_t return_code_AppendableULongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableULongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableULongStruct", type_ids_AppendableULongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableULongStruct) { StructTypeFlag struct_flags_AppendableULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableULongStruct; - TypeIdentifierPair type_ids_AppendableULongStruct; QualifiedTypeName type_name_AppendableULongStruct = "AppendableULongStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableULongStruct; eprosima::fastcdr::optional ann_custom_AppendableULongStruct; @@ -440,62 +265,26 @@ void register_AppendableULongStruct_type_identifier( header_AppendableULongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableULongStruct); CompleteStructMemberSeq member_seq_AppendableULongStruct; { - return_code_AppendableULongStruct = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_AppendableULongStruct); + "_uint32_t", type_ids_var_ulong); - if (return_code_AppendableULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_AppendableULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_AppendableULongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -507,32 +296,26 @@ void register_AppendableULongStruct_type_identifier( } CompleteStructType struct_type_AppendableULongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableULongStruct, header_AppendableULongStruct, member_seq_AppendableULongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableULongStruct, type_name_AppendableULongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableULongStruct, type_name_AppendableULongStruct.to_string(), type_ids_AppendableULongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableULongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableULongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableULongStruct", type_ids_AppendableULongStruct); - if (return_code_AppendableULongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableULongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableLongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableLongLongStruct) { + + ReturnCode_t return_code_AppendableLongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableLongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableLongLongStruct", type_ids_AppendableLongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableLongLongStruct) { StructTypeFlag struct_flags_AppendableLongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableLongLongStruct; - TypeIdentifierPair type_ids_AppendableLongLongStruct; QualifiedTypeName type_name_AppendableLongLongStruct = "AppendableLongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableLongLongStruct; eprosima::fastcdr::optional ann_custom_AppendableLongLongStruct; @@ -548,62 +331,26 @@ void register_AppendableLongLongStruct_type_identifier( header_AppendableLongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableLongLongStruct); CompleteStructMemberSeq member_seq_AppendableLongLongStruct; { - return_code_AppendableLongLongStruct = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AppendableLongLongStruct); + "_int64_t", type_ids_var_longlong); - if (return_code_AppendableLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_AppendableLongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_AppendableLongLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -615,32 +362,26 @@ void register_AppendableLongLongStruct_type_identifier( } CompleteStructType struct_type_AppendableLongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableLongLongStruct, header_AppendableLongLongStruct, member_seq_AppendableLongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongLongStruct, type_name_AppendableLongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongLongStruct, type_name_AppendableLongLongStruct.to_string(), type_ids_AppendableLongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableLongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableLongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableLongLongStruct", type_ids_AppendableLongLongStruct); - if (return_code_AppendableLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableLongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableULongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableULongLongStruct) { + + ReturnCode_t return_code_AppendableULongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableULongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableULongLongStruct", type_ids_AppendableULongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableULongLongStruct) { StructTypeFlag struct_flags_AppendableULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableULongLongStruct; - TypeIdentifierPair type_ids_AppendableULongLongStruct; QualifiedTypeName type_name_AppendableULongLongStruct = "AppendableULongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableULongLongStruct; eprosima::fastcdr::optional ann_custom_AppendableULongLongStruct; @@ -656,62 +397,26 @@ void register_AppendableULongLongStruct_type_identifier( header_AppendableULongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableULongLongStruct); CompleteStructMemberSeq member_seq_AppendableULongLongStruct; { - return_code_AppendableULongLongStruct = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_AppendableULongLongStruct); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_AppendableULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_AppendableULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_AppendableULongLongStruct.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -723,32 +428,26 @@ void register_AppendableULongLongStruct_type_identifier( } CompleteStructType struct_type_AppendableULongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableULongLongStruct, header_AppendableULongLongStruct, member_seq_AppendableULongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableULongLongStruct, type_name_AppendableULongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableULongLongStruct, type_name_AppendableULongLongStruct.to_string(), type_ids_AppendableULongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableULongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableULongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableULongLongStruct", type_ids_AppendableULongLongStruct); - if (return_code_AppendableULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableULongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableFloatStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableFloatStruct) { + + ReturnCode_t return_code_AppendableFloatStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableFloatStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableFloatStruct", type_ids_AppendableFloatStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableFloatStruct) { StructTypeFlag struct_flags_AppendableFloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableFloatStruct; - TypeIdentifierPair type_ids_AppendableFloatStruct; QualifiedTypeName type_name_AppendableFloatStruct = "AppendableFloatStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableFloatStruct; eprosima::fastcdr::optional ann_custom_AppendableFloatStruct; @@ -764,62 +463,26 @@ void register_AppendableFloatStruct_type_identifier( header_AppendableFloatStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableFloatStruct); CompleteStructMemberSeq member_seq_AppendableFloatStruct; { - return_code_AppendableFloatStruct = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_AppendableFloatStruct); + "_float", type_ids_var_float); - if (return_code_AppendableFloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_AppendableFloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableFloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_AppendableFloatStruct.type_identifier2()); - } - else + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -831,32 +494,26 @@ void register_AppendableFloatStruct_type_identifier( } CompleteStructType struct_type_AppendableFloatStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableFloatStruct, header_AppendableFloatStruct, member_seq_AppendableFloatStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableFloatStruct, type_name_AppendableFloatStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableFloatStruct, type_name_AppendableFloatStruct.to_string(), type_ids_AppendableFloatStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableFloatStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableFloatStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableFloatStruct", type_ids_AppendableFloatStruct); - if (return_code_AppendableFloatStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableFloatStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableDoubleStruct) { + + ReturnCode_t return_code_AppendableDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableDoubleStruct", type_ids_AppendableDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableDoubleStruct) { StructTypeFlag struct_flags_AppendableDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableDoubleStruct; - TypeIdentifierPair type_ids_AppendableDoubleStruct; QualifiedTypeName type_name_AppendableDoubleStruct = "AppendableDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableDoubleStruct; eprosima::fastcdr::optional ann_custom_AppendableDoubleStruct; @@ -872,62 +529,26 @@ void register_AppendableDoubleStruct_type_identifier( header_AppendableDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableDoubleStruct); CompleteStructMemberSeq member_seq_AppendableDoubleStruct; { - return_code_AppendableDoubleStruct = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_AppendableDoubleStruct); + "_double", type_ids_var_double); - if (return_code_AppendableDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_AppendableDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_AppendableDoubleStruct.type_identifier2()); - } - else + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -939,32 +560,26 @@ void register_AppendableDoubleStruct_type_identifier( } CompleteStructType struct_type_AppendableDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableDoubleStruct, header_AppendableDoubleStruct, member_seq_AppendableDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableDoubleStruct, type_name_AppendableDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableDoubleStruct, type_name_AppendableDoubleStruct.to_string(), type_ids_AppendableDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableDoubleStruct", type_ids_AppendableDoubleStruct); - if (return_code_AppendableDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableLongDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableLongDoubleStruct) { + + ReturnCode_t return_code_AppendableLongDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableLongDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableLongDoubleStruct", type_ids_AppendableLongDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableLongDoubleStruct) { StructTypeFlag struct_flags_AppendableLongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableLongDoubleStruct; - TypeIdentifierPair type_ids_AppendableLongDoubleStruct; QualifiedTypeName type_name_AppendableLongDoubleStruct = "AppendableLongDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableLongDoubleStruct; eprosima::fastcdr::optional ann_custom_AppendableLongDoubleStruct; @@ -980,62 +595,26 @@ void register_AppendableLongDoubleStruct_type_identifier( header_AppendableLongDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableLongDoubleStruct); CompleteStructMemberSeq member_seq_AppendableLongDoubleStruct; { - return_code_AppendableLongDoubleStruct = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_AppendableLongDoubleStruct); + "_longdouble", type_ids_var_longdouble); - if (return_code_AppendableLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_AppendableLongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableLongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_AppendableLongDoubleStruct.type_identifier2()); - } - else + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -1047,32 +626,26 @@ void register_AppendableLongDoubleStruct_type_identifier( } CompleteStructType struct_type_AppendableLongDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableLongDoubleStruct, header_AppendableLongDoubleStruct, member_seq_AppendableLongDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongDoubleStruct, type_name_AppendableLongDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableLongDoubleStruct, type_name_AppendableLongDoubleStruct.to_string(), type_ids_AppendableLongDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableLongDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableLongDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableLongDoubleStruct", type_ids_AppendableLongDoubleStruct); - if (return_code_AppendableLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableLongDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableBooleanStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableBooleanStruct) { + + ReturnCode_t return_code_AppendableBooleanStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableBooleanStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableBooleanStruct", type_ids_AppendableBooleanStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableBooleanStruct) { StructTypeFlag struct_flags_AppendableBooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableBooleanStruct; - TypeIdentifierPair type_ids_AppendableBooleanStruct; QualifiedTypeName type_name_AppendableBooleanStruct = "AppendableBooleanStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableBooleanStruct; eprosima::fastcdr::optional ann_custom_AppendableBooleanStruct; @@ -1088,62 +661,26 @@ void register_AppendableBooleanStruct_type_identifier( header_AppendableBooleanStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableBooleanStruct); CompleteStructMemberSeq member_seq_AppendableBooleanStruct; { - return_code_AppendableBooleanStruct = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_AppendableBooleanStruct); + "_bool", type_ids_var_boolean); - if (return_code_AppendableBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_AppendableBooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableBooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_AppendableBooleanStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1155,32 +692,26 @@ void register_AppendableBooleanStruct_type_identifier( } CompleteStructType struct_type_AppendableBooleanStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableBooleanStruct, header_AppendableBooleanStruct, member_seq_AppendableBooleanStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableBooleanStruct, type_name_AppendableBooleanStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableBooleanStruct, type_name_AppendableBooleanStruct.to_string(), type_ids_AppendableBooleanStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableBooleanStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableBooleanStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableBooleanStruct", type_ids_AppendableBooleanStruct); - if (return_code_AppendableBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableBooleanStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableOctetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableOctetStruct) { + + ReturnCode_t return_code_AppendableOctetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableOctetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableOctetStruct", type_ids_AppendableOctetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableOctetStruct) { StructTypeFlag struct_flags_AppendableOctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableOctetStruct; - TypeIdentifierPair type_ids_AppendableOctetStruct; QualifiedTypeName type_name_AppendableOctetStruct = "AppendableOctetStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableOctetStruct; eprosima::fastcdr::optional ann_custom_AppendableOctetStruct; @@ -1196,62 +727,26 @@ void register_AppendableOctetStruct_type_identifier( header_AppendableOctetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableOctetStruct); CompleteStructMemberSeq member_seq_AppendableOctetStruct; { - return_code_AppendableOctetStruct = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AppendableOctetStruct); + "_byte", type_ids_var_octet); - if (return_code_AppendableOctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_AppendableOctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableOctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_AppendableOctetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -1263,32 +758,26 @@ void register_AppendableOctetStruct_type_identifier( } CompleteStructType struct_type_AppendableOctetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableOctetStruct, header_AppendableOctetStruct, member_seq_AppendableOctetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableOctetStruct, type_name_AppendableOctetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableOctetStruct, type_name_AppendableOctetStruct.to_string(), type_ids_AppendableOctetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableOctetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableOctetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableOctetStruct", type_ids_AppendableOctetStruct); - if (return_code_AppendableOctetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableOctetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableCharStruct) { + + ReturnCode_t return_code_AppendableCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableCharStruct", type_ids_AppendableCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableCharStruct) { StructTypeFlag struct_flags_AppendableCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableCharStruct; - TypeIdentifierPair type_ids_AppendableCharStruct; QualifiedTypeName type_name_AppendableCharStruct = "AppendableCharStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableCharStruct; eprosima::fastcdr::optional ann_custom_AppendableCharStruct; @@ -1304,62 +793,26 @@ void register_AppendableCharStruct_type_identifier( header_AppendableCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableCharStruct); CompleteStructMemberSeq member_seq_AppendableCharStruct; { - return_code_AppendableCharStruct = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AppendableCharStruct); + "_char", type_ids_var_char8); - if (return_code_AppendableCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_AppendableCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_AppendableCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -1371,32 +824,26 @@ void register_AppendableCharStruct_type_identifier( } CompleteStructType struct_type_AppendableCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableCharStruct, header_AppendableCharStruct, member_seq_AppendableCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableCharStruct, type_name_AppendableCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableCharStruct, type_name_AppendableCharStruct.to_string(), type_ids_AppendableCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableCharStruct", type_ids_AppendableCharStruct); - if (return_code_AppendableCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableWCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableWCharStruct) { + + ReturnCode_t return_code_AppendableWCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableWCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableWCharStruct", type_ids_AppendableWCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableWCharStruct) { StructTypeFlag struct_flags_AppendableWCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableWCharStruct; - TypeIdentifierPair type_ids_AppendableWCharStruct; QualifiedTypeName type_name_AppendableWCharStruct = "AppendableWCharStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableWCharStruct; eprosima::fastcdr::optional ann_custom_AppendableWCharStruct; @@ -1412,62 +859,26 @@ void register_AppendableWCharStruct_type_identifier( header_AppendableWCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableWCharStruct); CompleteStructMemberSeq member_seq_AppendableWCharStruct; { - return_code_AppendableWCharStruct = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_AppendableWCharStruct); + "_wchar_t", type_ids_var_char16); - if (return_code_AppendableWCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_AppendableWCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableWCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_AppendableWCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -1479,32 +890,26 @@ void register_AppendableWCharStruct_type_identifier( } CompleteStructType struct_type_AppendableWCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableWCharStruct, header_AppendableWCharStruct, member_seq_AppendableWCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableWCharStruct, type_name_AppendableWCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableWCharStruct, type_name_AppendableWCharStruct.to_string(), type_ids_AppendableWCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableWCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableWCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableWCharStruct", type_ids_AppendableWCharStruct); - if (return_code_AppendableWCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableWCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableUnionStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableUnionStruct) { + + ReturnCode_t return_code_AppendableUnionStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableUnionStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableUnionStruct", type_ids_AppendableUnionStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableUnionStruct) { StructTypeFlag struct_flags_AppendableUnionStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableUnionStruct; - TypeIdentifierPair type_ids_AppendableUnionStruct; QualifiedTypeName type_name_AppendableUnionStruct = "AppendableUnionStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableUnionStruct; eprosima::fastcdr::optional ann_custom_AppendableUnionStruct; @@ -1520,339 +925,24 @@ void register_AppendableUnionStruct_type_identifier( header_AppendableUnionStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableUnionStruct); CompleteStructMemberSeq member_seq_AppendableUnionStruct; { - return_code_AppendableUnionStruct = + TypeIdentifierPair type_ids_var_union; + ReturnCode_t return_code_var_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_AppendableUnionStruct); + "InnerUnionHelper", type_ids_var_union); - if (return_code_AppendableUnionStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AppendableUnionStruct = return_code_InnerUnionHelper; - type_ids_AppendableUnionStruct = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_union); } - StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union; MemberId member_id_var_union = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_union_ec {false}; + CommonStructMember common_var_union {TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union, common_var_union_ec))}; + if (!common_var_union_ec) { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_AppendableUnionStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableUnionStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_AppendableUnionStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union member TypeIdentifier inconsistent."); return; } MemberName name_var_union = "var_union"; @@ -1864,32 +954,26 @@ void register_AppendableUnionStruct_type_identifier( } CompleteStructType struct_type_AppendableUnionStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableUnionStruct, header_AppendableUnionStruct, member_seq_AppendableUnionStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableUnionStruct, type_name_AppendableUnionStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableUnionStruct, type_name_AppendableUnionStruct.to_string(), type_ids_AppendableUnionStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableUnionStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableUnionStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableUnionStruct", type_ids_AppendableUnionStruct); - if (return_code_AppendableUnionStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableUnionStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableEmptyStruct) { + + ReturnCode_t return_code_AppendableEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableEmptyStruct", type_ids_AppendableEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableEmptyStruct) { StructTypeFlag struct_flags_AppendableEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableEmptyStruct; - TypeIdentifierPair type_ids_AppendableEmptyStruct; QualifiedTypeName type_name_AppendableEmptyStruct = "AppendableEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableEmptyStruct; eprosima::fastcdr::optional ann_custom_AppendableEmptyStruct; @@ -1906,77 +990,33 @@ void register_AppendableEmptyStruct_type_identifier( CompleteStructMemberSeq member_seq_AppendableEmptyStruct; CompleteStructType struct_type_AppendableEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableEmptyStruct, header_AppendableEmptyStruct, member_seq_AppendableEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableEmptyStruct, type_name_AppendableEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableEmptyStruct, type_name_AppendableEmptyStruct.to_string(), type_ids_AppendableEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableEmptyStruct", type_ids_AppendableEmptyStruct); - if (return_code_AppendableEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableEmptyInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableEmptyInheritanceStruct) { + + ReturnCode_t return_code_AppendableEmptyInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableEmptyInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableEmptyInheritanceStruct", type_ids_AppendableEmptyInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableEmptyInheritanceStruct) { StructTypeFlag struct_flags_AppendableEmptyInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableEmptyInheritanceStruct; - TypeIdentifierPair type_ids_AppendableEmptyInheritanceStruct; return_code_AppendableEmptyInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AppendableEmptyStruct", type_ids_AppendableEmptyInheritanceStruct); if (return_code_AppendableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AppendableEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - ReturnCode_t return_code_AppendableEmptyStruct; - TypeIdentifierPair type_ids_AppendableEmptyStruct; - QualifiedTypeName type_name_AppendableEmptyStruct = "AppendableEmptyStruct"; - eprosima::fastcdr::optional type_ann_builtin_AppendableEmptyStruct; - eprosima::fastcdr::optional ann_custom_AppendableEmptyStruct; - AppliedAnnotationSeq tmp_ann_custom_AppendableEmptyStruct; - eprosima::fastcdr::optional verbatim_AppendableEmptyStruct; - if (!tmp_ann_custom_AppendableEmptyStruct.empty()) - { - ann_custom_AppendableEmptyStruct = tmp_ann_custom_AppendableEmptyStruct; - } - - CompleteTypeDetail detail_AppendableEmptyStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AppendableEmptyStruct, ann_custom_AppendableEmptyStruct, type_name_AppendableEmptyStruct.to_string()); - CompleteStructHeader header_AppendableEmptyStruct; - header_AppendableEmptyStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableEmptyStruct); - CompleteStructMemberSeq member_seq_AppendableEmptyStruct; - CompleteStructType struct_type_AppendableEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableEmptyStruct, header_AppendableEmptyStruct, member_seq_AppendableEmptyStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableEmptyStruct, type_name_AppendableEmptyStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableEmptyStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_AppendableEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableEmptyStruct", type_ids_AppendableEmptyStruct); - if (return_code_AppendableEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AppendableEmptyInheritanceStruct = return_code_AppendableEmptyStruct; - type_ids_AppendableEmptyInheritanceStruct = type_ids_AppendableEmptyStruct; - } +::register_AppendableEmptyStruct_type_identifier(type_ids_AppendableEmptyInheritanceStruct); } QualifiedTypeName type_name_AppendableEmptyInheritanceStruct = "AppendableEmptyInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableEmptyInheritanceStruct; @@ -2002,84 +1042,38 @@ void register_AppendableEmptyInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableEmptyInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_AppendableEmptyInheritanceStruct; { - return_code_AppendableEmptyInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AppendableEmptyInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_AppendableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_AppendableEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AppendableEmptyInheritanceStruct); - if (return_code_AppendableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_AppendableEmptyInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableEmptyInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_AppendableEmptyInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2091,143 +1085,33 @@ void register_AppendableEmptyInheritanceStruct_type_identifier( } CompleteStructType struct_type_AppendableEmptyInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableEmptyInheritanceStruct, header_AppendableEmptyInheritanceStruct, member_seq_AppendableEmptyInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableEmptyInheritanceStruct, type_name_AppendableEmptyInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableEmptyInheritanceStruct, type_name_AppendableEmptyInheritanceStruct.to_string(), type_ids_AppendableEmptyInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableEmptyInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableEmptyInheritanceStruct", type_ids_AppendableEmptyInheritanceStruct); - if (return_code_AppendableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableEmptyInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableInheritanceStruct) { + + ReturnCode_t return_code_AppendableInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableInheritanceStruct", type_ids_AppendableInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableInheritanceStruct) { StructTypeFlag struct_flags_AppendableInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableInheritanceStruct; - TypeIdentifierPair type_ids_AppendableInheritanceStruct; return_code_AppendableInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AppendableShortStruct", type_ids_AppendableInheritanceStruct); if (return_code_AppendableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AppendableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - ReturnCode_t return_code_AppendableShortStruct; - TypeIdentifierPair type_ids_AppendableShortStruct; - QualifiedTypeName type_name_AppendableShortStruct = "AppendableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_AppendableShortStruct; - eprosima::fastcdr::optional ann_custom_AppendableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_AppendableShortStruct; - eprosima::fastcdr::optional verbatim_AppendableShortStruct; - if (!tmp_ann_custom_AppendableShortStruct.empty()) - { - ann_custom_AppendableShortStruct = tmp_ann_custom_AppendableShortStruct; - } - - CompleteTypeDetail detail_AppendableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AppendableShortStruct, ann_custom_AppendableShortStruct, type_name_AppendableShortStruct.to_string()); - CompleteStructHeader header_AppendableShortStruct; - header_AppendableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableShortStruct); - CompleteStructMemberSeq member_seq_AppendableShortStruct; - { - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AppendableShortStruct); - - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_AppendableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_AppendableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_AppendableShortStruct, member_var_short); - } - CompleteStructType struct_type_AppendableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableShortStruct, header_AppendableShortStruct, member_seq_AppendableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableShortStruct, type_name_AppendableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableShortStruct", type_ids_AppendableShortStruct); - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AppendableInheritanceStruct = return_code_AppendableShortStruct; - type_ids_AppendableInheritanceStruct = type_ids_AppendableShortStruct; - } +::register_AppendableShortStruct_type_identifier(type_ids_AppendableInheritanceStruct); } QualifiedTypeName type_name_AppendableInheritanceStruct = "AppendableInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableInheritanceStruct; @@ -2253,84 +1137,38 @@ void register_AppendableInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_AppendableInheritanceStruct; { - return_code_AppendableInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AppendableInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_AppendableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_AppendableInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_AppendableInheritanceStruct); - if (return_code_AppendableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000001; - if (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_AppendableInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_AppendableInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2342,143 +1180,33 @@ void register_AppendableInheritanceStruct_type_identifier( } CompleteStructType struct_type_AppendableInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableInheritanceStruct, header_AppendableInheritanceStruct, member_seq_AppendableInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableInheritanceStruct, type_name_AppendableInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableInheritanceStruct, type_name_AppendableInheritanceStruct.to_string(), type_ids_AppendableInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableInheritanceStruct", type_ids_AppendableInheritanceStruct); - if (return_code_AppendableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableInheritanceEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableInheritanceEmptyStruct) { + + ReturnCode_t return_code_AppendableInheritanceEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableInheritanceEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableInheritanceEmptyStruct", type_ids_AppendableInheritanceEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableInheritanceEmptyStruct) { StructTypeFlag struct_flags_AppendableInheritanceEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableInheritanceEmptyStruct; - TypeIdentifierPair type_ids_AppendableInheritanceEmptyStruct; return_code_AppendableInheritanceEmptyStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AppendableShortStruct", type_ids_AppendableInheritanceEmptyStruct); if (return_code_AppendableInheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AppendableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - ReturnCode_t return_code_AppendableShortStruct; - TypeIdentifierPair type_ids_AppendableShortStruct; - QualifiedTypeName type_name_AppendableShortStruct = "AppendableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_AppendableShortStruct; - eprosima::fastcdr::optional ann_custom_AppendableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_AppendableShortStruct; - eprosima::fastcdr::optional verbatim_AppendableShortStruct; - if (!tmp_ann_custom_AppendableShortStruct.empty()) - { - ann_custom_AppendableShortStruct = tmp_ann_custom_AppendableShortStruct; - } - - CompleteTypeDetail detail_AppendableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AppendableShortStruct, ann_custom_AppendableShortStruct, type_name_AppendableShortStruct.to_string()); - CompleteStructHeader header_AppendableShortStruct; - header_AppendableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableShortStruct); - CompleteStructMemberSeq member_seq_AppendableShortStruct; - { - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AppendableShortStruct); - - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_AppendableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_AppendableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_AppendableShortStruct, member_var_short); - } - CompleteStructType struct_type_AppendableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableShortStruct, header_AppendableShortStruct, member_seq_AppendableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableShortStruct, type_name_AppendableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableShortStruct", type_ids_AppendableShortStruct); - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AppendableInheritanceEmptyStruct = return_code_AppendableShortStruct; - type_ids_AppendableInheritanceEmptyStruct = type_ids_AppendableShortStruct; - } +::register_AppendableShortStruct_type_identifier(type_ids_AppendableInheritanceEmptyStruct); } QualifiedTypeName type_name_AppendableInheritanceEmptyStruct = "AppendableInheritanceEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_AppendableInheritanceEmptyStruct; @@ -2504,149 +1232,38 @@ void register_AppendableInheritanceEmptyStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableInheritanceEmptyStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_AppendableInheritanceEmptyStruct; CompleteStructType struct_type_AppendableInheritanceEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableInheritanceEmptyStruct, header_AppendableInheritanceEmptyStruct, member_seq_AppendableInheritanceEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableInheritanceEmptyStruct, type_name_AppendableInheritanceEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableInheritanceEmptyStruct, type_name_AppendableInheritanceEmptyStruct.to_string(), type_ids_AppendableInheritanceEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableInheritanceEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableInheritanceEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableInheritanceEmptyStruct", type_ids_AppendableInheritanceEmptyStruct); - if (return_code_AppendableInheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableInheritanceEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AppendableExtensibilityInheritance_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AppendableExtensibilityInheritance) { + + ReturnCode_t return_code_AppendableExtensibilityInheritance {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AppendableExtensibilityInheritance = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AppendableExtensibilityInheritance", type_ids_AppendableExtensibilityInheritance); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AppendableExtensibilityInheritance) { - StructTypeFlag struct_flags_AppendableExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AppendableExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AppendableExtensibilityInheritance; - TypeIdentifierPair type_ids_AppendableExtensibilityInheritance; return_code_AppendableExtensibilityInheritance = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AppendableShortStruct", type_ids_AppendableExtensibilityInheritance); if (return_code_AppendableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AppendableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, - false, false); - ReturnCode_t return_code_AppendableShortStruct; - TypeIdentifierPair type_ids_AppendableShortStruct; - QualifiedTypeName type_name_AppendableShortStruct = "AppendableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_AppendableShortStruct; - eprosima::fastcdr::optional ann_custom_AppendableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_AppendableShortStruct; - eprosima::fastcdr::optional verbatim_AppendableShortStruct; - if (!tmp_ann_custom_AppendableShortStruct.empty()) - { - ann_custom_AppendableShortStruct = tmp_ann_custom_AppendableShortStruct; - } - - CompleteTypeDetail detail_AppendableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AppendableShortStruct, ann_custom_AppendableShortStruct, type_name_AppendableShortStruct.to_string()); - CompleteStructHeader header_AppendableShortStruct; - header_AppendableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AppendableShortStruct); - CompleteStructMemberSeq member_seq_AppendableShortStruct; - { - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AppendableShortStruct); - - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_AppendableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_AppendableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_AppendableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_AppendableShortStruct, member_var_short); - } - CompleteStructType struct_type_AppendableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableShortStruct, header_AppendableShortStruct, member_seq_AppendableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableShortStruct, type_name_AppendableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_AppendableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableShortStruct", type_ids_AppendableShortStruct); - if (return_code_AppendableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_AppendableExtensibilityInheritance = return_code_AppendableShortStruct; - type_ids_AppendableExtensibilityInheritance = type_ids_AppendableShortStruct; - } +::register_AppendableShortStruct_type_identifier(type_ids_AppendableExtensibilityInheritance); } QualifiedTypeName type_name_AppendableExtensibilityInheritance = "AppendableExtensibilityInheritance"; eprosima::fastcdr::optional type_ann_builtin_AppendableExtensibilityInheritance; @@ -2665,67 +1282,30 @@ void register_AppendableExtensibilityInheritance_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableExtensibilityInheritance Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_AppendableExtensibilityInheritance; { - return_code_AppendableExtensibilityInheritance = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AppendableExtensibilityInheritance); + "_int32_t", type_ids_var_long); - if (return_code_AppendableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000001; - if (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() || TK_NONE == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_AppendableExtensibilityInheritance.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AppendableExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AppendableExtensibilityInheritance.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_AppendableExtensibilityInheritance.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -2737,21 +1317,11 @@ void register_AppendableExtensibilityInheritance_type_identifier( } CompleteStructType struct_type_AppendableExtensibilityInheritance = TypeObjectUtils::build_complete_struct_type(struct_flags_AppendableExtensibilityInheritance, header_AppendableExtensibilityInheritance, member_seq_AppendableExtensibilityInheritance); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableExtensibilityInheritance, type_name_AppendableExtensibilityInheritance.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AppendableExtensibilityInheritance, type_name_AppendableExtensibilityInheritance.to_string(), type_ids_AppendableExtensibilityInheritance)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AppendableExtensibilityInheritance already registered in TypeObjectRegistry for a different type."); } - return_code_AppendableExtensibilityInheritance = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AppendableExtensibilityInheritance", type_ids_AppendableExtensibilityInheritance); - if (return_code_AppendableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AppendableExtensibilityInheritance: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/appendableTypeObjectSupport.hpp b/test/dds-types-test/appendableTypeObjectSupport.hpp index 626fa9d897f..27c17207ee1 100644 --- a/test/dds-types-test/appendableTypeObjectSupport.hpp +++ b/test/dds-types-test/appendableTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_appendable_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_appendable_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableUShortStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_AppendableShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableUShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_AppendableUShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableULongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_AppendableLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableULongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableLongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_AppendableULongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableLongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableULongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_AppendableLongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableULongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableFloatStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_AppendableULongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableFloatStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_AppendableFloatStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableLongDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_AppendableDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableLongDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableBooleanStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_AppendableLongDoubleStruct_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableBooleanStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableOctetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_AppendableBooleanStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableOctetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_AppendableOctetStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableWCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_AppendableCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableWCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableUnionStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_AppendableWCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableUnionStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_AppendableUnionStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableEmptyInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_AppendableEmptyStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableEmptyInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_AppendableEmptyInheritanceStruct_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableInheritanceEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_AppendableInheritanceStruct_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableInheritanceEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AppendableExtensibilityInheritance related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_AppendableInheritanceEmptyStruct_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AppendableExtensibilityInheritance_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/arraysPubSubTypes.cxx b/test/dds-types-test/arraysPubSubTypes.cxx index 68bcc8711d2..2f51f7da108 100644 --- a/test/dds-types-test/arraysPubSubTypes.cxx +++ b/test/dds-types-test/arraysPubSubTypes.cxx @@ -219,9 +219,9 @@ bool ArrayShortPubSubType::getKey( return true; } -void ArrayShortPubSubType::register_type_object_representation() const +void ArrayShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayShort_type_identifier(type_identifiers_); } ArrayUShortPubSubType::ArrayUShortPubSubType() @@ -412,9 +412,9 @@ bool ArrayUShortPubSubType::getKey( return true; } -void ArrayUShortPubSubType::register_type_object_representation() const +void ArrayUShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayUShort_type_identifier(type_identifiers_); } ArrayLongPubSubType::ArrayLongPubSubType() @@ -605,9 +605,9 @@ bool ArrayLongPubSubType::getKey( return true; } -void ArrayLongPubSubType::register_type_object_representation() const +void ArrayLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayLong_type_identifier(type_identifiers_); } ArrayULongPubSubType::ArrayULongPubSubType() @@ -798,9 +798,9 @@ bool ArrayULongPubSubType::getKey( return true; } -void ArrayULongPubSubType::register_type_object_representation() const +void ArrayULongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayULong_type_identifier(type_identifiers_); } ArrayLongLongPubSubType::ArrayLongLongPubSubType() @@ -991,9 +991,9 @@ bool ArrayLongLongPubSubType::getKey( return true; } -void ArrayLongLongPubSubType::register_type_object_representation() const +void ArrayLongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayLongLong_type_identifier(type_identifiers_); } ArrayULongLongPubSubType::ArrayULongLongPubSubType() @@ -1184,9 +1184,9 @@ bool ArrayULongLongPubSubType::getKey( return true; } -void ArrayULongLongPubSubType::register_type_object_representation() const +void ArrayULongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayULongLong_type_identifier(type_identifiers_); } ArrayFloatPubSubType::ArrayFloatPubSubType() @@ -1377,9 +1377,9 @@ bool ArrayFloatPubSubType::getKey( return true; } -void ArrayFloatPubSubType::register_type_object_representation() const +void ArrayFloatPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayFloat_type_identifier(type_identifiers_); } ArrayDoublePubSubType::ArrayDoublePubSubType() @@ -1570,9 +1570,9 @@ bool ArrayDoublePubSubType::getKey( return true; } -void ArrayDoublePubSubType::register_type_object_representation() const +void ArrayDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayDouble_type_identifier(type_identifiers_); } ArrayLongDoublePubSubType::ArrayLongDoublePubSubType() @@ -1763,9 +1763,9 @@ bool ArrayLongDoublePubSubType::getKey( return true; } -void ArrayLongDoublePubSubType::register_type_object_representation() const +void ArrayLongDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayLongDouble_type_identifier(type_identifiers_); } ArrayBooleanPubSubType::ArrayBooleanPubSubType() @@ -1956,9 +1956,9 @@ bool ArrayBooleanPubSubType::getKey( return true; } -void ArrayBooleanPubSubType::register_type_object_representation() const +void ArrayBooleanPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayBoolean_type_identifier(type_identifiers_); } ArrayOctetPubSubType::ArrayOctetPubSubType() @@ -2149,9 +2149,9 @@ bool ArrayOctetPubSubType::getKey( return true; } -void ArrayOctetPubSubType::register_type_object_representation() const +void ArrayOctetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayOctet_type_identifier(type_identifiers_); } ArrayCharPubSubType::ArrayCharPubSubType() @@ -2342,9 +2342,9 @@ bool ArrayCharPubSubType::getKey( return true; } -void ArrayCharPubSubType::register_type_object_representation() const +void ArrayCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayChar_type_identifier(type_identifiers_); } ArrayWCharPubSubType::ArrayWCharPubSubType() @@ -2535,9 +2535,9 @@ bool ArrayWCharPubSubType::getKey( return true; } -void ArrayWCharPubSubType::register_type_object_representation() const +void ArrayWCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayWChar_type_identifier(type_identifiers_); } ArrayStringPubSubType::ArrayStringPubSubType() @@ -2728,9 +2728,9 @@ bool ArrayStringPubSubType::getKey( return true; } -void ArrayStringPubSubType::register_type_object_representation() const +void ArrayStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayString_type_identifier(type_identifiers_); } ArrayWStringPubSubType::ArrayWStringPubSubType() @@ -2921,9 +2921,9 @@ bool ArrayWStringPubSubType::getKey( return true; } -void ArrayWStringPubSubType::register_type_object_representation() const +void ArrayWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayWString_type_identifier(type_identifiers_); } ArrayBoundedStringPubSubType::ArrayBoundedStringPubSubType() @@ -3114,9 +3114,9 @@ bool ArrayBoundedStringPubSubType::getKey( return true; } -void ArrayBoundedStringPubSubType::register_type_object_representation() const +void ArrayBoundedStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayBoundedString_type_identifier(type_identifiers_); } ArrayBoundedWStringPubSubType::ArrayBoundedWStringPubSubType() @@ -3307,9 +3307,9 @@ bool ArrayBoundedWStringPubSubType::getKey( return true; } -void ArrayBoundedWStringPubSubType::register_type_object_representation() const +void ArrayBoundedWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayBoundedWString_type_identifier(type_identifiers_); } ArrayEnumPubSubType::ArrayEnumPubSubType() @@ -3500,9 +3500,9 @@ bool ArrayEnumPubSubType::getKey( return true; } -void ArrayEnumPubSubType::register_type_object_representation() const +void ArrayEnumPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayEnum_type_identifier(type_identifiers_); } ArrayBitMaskPubSubType::ArrayBitMaskPubSubType() @@ -3693,9 +3693,9 @@ bool ArrayBitMaskPubSubType::getKey( return true; } -void ArrayBitMaskPubSubType::register_type_object_representation() const +void ArrayBitMaskPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayBitMask_type_identifier(type_identifiers_); } ArrayAliasPubSubType::ArrayAliasPubSubType() @@ -3886,9 +3886,9 @@ bool ArrayAliasPubSubType::getKey( return true; } -void ArrayAliasPubSubType::register_type_object_representation() const +void ArrayAliasPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayAlias_type_identifier(type_identifiers_); } ArrayShortArrayPubSubType::ArrayShortArrayPubSubType() @@ -4079,9 +4079,9 @@ bool ArrayShortArrayPubSubType::getKey( return true; } -void ArrayShortArrayPubSubType::register_type_object_representation() const +void ArrayShortArrayPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayShortArray_type_identifier(type_identifiers_); } ArraySequencePubSubType::ArraySequencePubSubType() @@ -4272,9 +4272,9 @@ bool ArraySequencePubSubType::getKey( return true; } -void ArraySequencePubSubType::register_type_object_representation() const +void ArraySequencePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySequence_type_identifier(type_identifiers_); } ArrayMapPubSubType::ArrayMapPubSubType() @@ -4465,9 +4465,9 @@ bool ArrayMapPubSubType::getKey( return true; } -void ArrayMapPubSubType::register_type_object_representation() const +void ArrayMapPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMap_type_identifier(type_identifiers_); } ArrayUnionPubSubType::ArrayUnionPubSubType() @@ -4658,9 +4658,9 @@ bool ArrayUnionPubSubType::getKey( return true; } -void ArrayUnionPubSubType::register_type_object_representation() const +void ArrayUnionPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayUnion_type_identifier(type_identifiers_); } ArrayStructurePubSubType::ArrayStructurePubSubType() @@ -4851,9 +4851,9 @@ bool ArrayStructurePubSubType::getKey( return true; } -void ArrayStructurePubSubType::register_type_object_representation() const +void ArrayStructurePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayStructure_type_identifier(type_identifiers_); } ArrayBitsetPubSubType::ArrayBitsetPubSubType() @@ -5044,9 +5044,9 @@ bool ArrayBitsetPubSubType::getKey( return true; } -void ArrayBitsetPubSubType::register_type_object_representation() const +void ArrayBitsetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayBitset_type_identifier(type_identifiers_); } ArrayMultiDimensionShortPubSubType::ArrayMultiDimensionShortPubSubType() @@ -5237,9 +5237,9 @@ bool ArrayMultiDimensionShortPubSubType::getKey( return true; } -void ArrayMultiDimensionShortPubSubType::register_type_object_representation() const +void ArrayMultiDimensionShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionShort_type_identifier(type_identifiers_); } ArrayMultiDimensionUShortPubSubType::ArrayMultiDimensionUShortPubSubType() @@ -5430,9 +5430,9 @@ bool ArrayMultiDimensionUShortPubSubType::getKey( return true; } -void ArrayMultiDimensionUShortPubSubType::register_type_object_representation() const +void ArrayMultiDimensionUShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionUShort_type_identifier(type_identifiers_); } ArrayMultiDimensionLongPubSubType::ArrayMultiDimensionLongPubSubType() @@ -5623,9 +5623,9 @@ bool ArrayMultiDimensionLongPubSubType::getKey( return true; } -void ArrayMultiDimensionLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLong_type_identifier(type_identifiers_); } ArrayMultiDimensionULongPubSubType::ArrayMultiDimensionULongPubSubType() @@ -5816,9 +5816,9 @@ bool ArrayMultiDimensionULongPubSubType::getKey( return true; } -void ArrayMultiDimensionULongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionULongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionULong_type_identifier(type_identifiers_); } ArrayMultiDimensionLongLongPubSubType::ArrayMultiDimensionLongLongPubSubType() @@ -6009,9 +6009,9 @@ bool ArrayMultiDimensionLongLongPubSubType::getKey( return true; } -void ArrayMultiDimensionLongLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLongLong_type_identifier(type_identifiers_); } ArrayMultiDimensionULongLongPubSubType::ArrayMultiDimensionULongLongPubSubType() @@ -6202,9 +6202,9 @@ bool ArrayMultiDimensionULongLongPubSubType::getKey( return true; } -void ArrayMultiDimensionULongLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionULongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionULongLong_type_identifier(type_identifiers_); } ArrayMultiDimensionFloatPubSubType::ArrayMultiDimensionFloatPubSubType() @@ -6395,9 +6395,9 @@ bool ArrayMultiDimensionFloatPubSubType::getKey( return true; } -void ArrayMultiDimensionFloatPubSubType::register_type_object_representation() const +void ArrayMultiDimensionFloatPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionFloat_type_identifier(type_identifiers_); } ArrayMultiDimensionDoublePubSubType::ArrayMultiDimensionDoublePubSubType() @@ -6588,9 +6588,9 @@ bool ArrayMultiDimensionDoublePubSubType::getKey( return true; } -void ArrayMultiDimensionDoublePubSubType::register_type_object_representation() const +void ArrayMultiDimensionDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionDouble_type_identifier(type_identifiers_); } ArrayMultiDimensionLongDoublePubSubType::ArrayMultiDimensionLongDoublePubSubType() @@ -6781,9 +6781,9 @@ bool ArrayMultiDimensionLongDoublePubSubType::getKey( return true; } -void ArrayMultiDimensionLongDoublePubSubType::register_type_object_representation() const +void ArrayMultiDimensionLongDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLongDouble_type_identifier(type_identifiers_); } ArrayMultiDimensionBooleanPubSubType::ArrayMultiDimensionBooleanPubSubType() @@ -6974,9 +6974,9 @@ bool ArrayMultiDimensionBooleanPubSubType::getKey( return true; } -void ArrayMultiDimensionBooleanPubSubType::register_type_object_representation() const +void ArrayMultiDimensionBooleanPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionBoolean_type_identifier(type_identifiers_); } ArrayMultiDimensionOctetPubSubType::ArrayMultiDimensionOctetPubSubType() @@ -7167,9 +7167,9 @@ bool ArrayMultiDimensionOctetPubSubType::getKey( return true; } -void ArrayMultiDimensionOctetPubSubType::register_type_object_representation() const +void ArrayMultiDimensionOctetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionOctet_type_identifier(type_identifiers_); } ArrayMultiDimensionCharPubSubType::ArrayMultiDimensionCharPubSubType() @@ -7360,9 +7360,9 @@ bool ArrayMultiDimensionCharPubSubType::getKey( return true; } -void ArrayMultiDimensionCharPubSubType::register_type_object_representation() const +void ArrayMultiDimensionCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionChar_type_identifier(type_identifiers_); } ArrayMultiDimensionWCharPubSubType::ArrayMultiDimensionWCharPubSubType() @@ -7553,9 +7553,9 @@ bool ArrayMultiDimensionWCharPubSubType::getKey( return true; } -void ArrayMultiDimensionWCharPubSubType::register_type_object_representation() const +void ArrayMultiDimensionWCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionWChar_type_identifier(type_identifiers_); } ArrayMultiDimensionStringPubSubType::ArrayMultiDimensionStringPubSubType() @@ -7746,9 +7746,9 @@ bool ArrayMultiDimensionStringPubSubType::getKey( return true; } -void ArrayMultiDimensionStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionString_type_identifier(type_identifiers_); } ArrayMultiDimensionWStringPubSubType::ArrayMultiDimensionWStringPubSubType() @@ -7939,9 +7939,9 @@ bool ArrayMultiDimensionWStringPubSubType::getKey( return true; } -void ArrayMultiDimensionWStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionWString_type_identifier(type_identifiers_); } ArrayMultiDimensionBoundedStringPubSubType::ArrayMultiDimensionBoundedStringPubSubType() @@ -8132,9 +8132,9 @@ bool ArrayMultiDimensionBoundedStringPubSubType::getKey( return true; } -void ArrayMultiDimensionBoundedStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionBoundedStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionBoundedString_type_identifier(type_identifiers_); } ArrayMultiDimensionBoundedWStringPubSubType::ArrayMultiDimensionBoundedWStringPubSubType() @@ -8325,9 +8325,9 @@ bool ArrayMultiDimensionBoundedWStringPubSubType::getKey( return true; } -void ArrayMultiDimensionBoundedWStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionBoundedWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionBoundedWString_type_identifier(type_identifiers_); } ArrayMultiDimensionEnumPubSubType::ArrayMultiDimensionEnumPubSubType() @@ -8518,9 +8518,9 @@ bool ArrayMultiDimensionEnumPubSubType::getKey( return true; } -void ArrayMultiDimensionEnumPubSubType::register_type_object_representation() const +void ArrayMultiDimensionEnumPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionEnum_type_identifier(type_identifiers_); } ArrayMultiDimensionBitMaskPubSubType::ArrayMultiDimensionBitMaskPubSubType() @@ -8711,9 +8711,9 @@ bool ArrayMultiDimensionBitMaskPubSubType::getKey( return true; } -void ArrayMultiDimensionBitMaskPubSubType::register_type_object_representation() const +void ArrayMultiDimensionBitMaskPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionBitMask_type_identifier(type_identifiers_); } ArrayMultiDimensionAliasPubSubType::ArrayMultiDimensionAliasPubSubType() @@ -8904,9 +8904,9 @@ bool ArrayMultiDimensionAliasPubSubType::getKey( return true; } -void ArrayMultiDimensionAliasPubSubType::register_type_object_representation() const +void ArrayMultiDimensionAliasPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionAlias_type_identifier(type_identifiers_); } ArrayMultiDimensionSequencePubSubType::ArrayMultiDimensionSequencePubSubType() @@ -9097,9 +9097,9 @@ bool ArrayMultiDimensionSequencePubSubType::getKey( return true; } -void ArrayMultiDimensionSequencePubSubType::register_type_object_representation() const +void ArrayMultiDimensionSequencePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionSequence_type_identifier(type_identifiers_); } ArrayMultiDimensionMapPubSubType::ArrayMultiDimensionMapPubSubType() @@ -9290,9 +9290,9 @@ bool ArrayMultiDimensionMapPubSubType::getKey( return true; } -void ArrayMultiDimensionMapPubSubType::register_type_object_representation() const +void ArrayMultiDimensionMapPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionMap_type_identifier(type_identifiers_); } ArrayMultiDimensionUnionPubSubType::ArrayMultiDimensionUnionPubSubType() @@ -9483,9 +9483,9 @@ bool ArrayMultiDimensionUnionPubSubType::getKey( return true; } -void ArrayMultiDimensionUnionPubSubType::register_type_object_representation() const +void ArrayMultiDimensionUnionPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionUnion_type_identifier(type_identifiers_); } ArrayMultiDimensionStructurePubSubType::ArrayMultiDimensionStructurePubSubType() @@ -9676,9 +9676,9 @@ bool ArrayMultiDimensionStructurePubSubType::getKey( return true; } -void ArrayMultiDimensionStructurePubSubType::register_type_object_representation() const +void ArrayMultiDimensionStructurePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionStructure_type_identifier(type_identifiers_); } ArrayMultiDimensionBitsetPubSubType::ArrayMultiDimensionBitsetPubSubType() @@ -9869,9 +9869,9 @@ bool ArrayMultiDimensionBitsetPubSubType::getKey( return true; } -void ArrayMultiDimensionBitsetPubSubType::register_type_object_representation() const +void ArrayMultiDimensionBitsetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionBitset_type_identifier(type_identifiers_); } @@ -10064,9 +10064,9 @@ bool ArraySingleDimensionLiteralsShortPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsShortPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsShort_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsUnsignedShortPubSubType::ArraySingleDimensionLiteralsUnsignedShortPubSubType() @@ -10257,9 +10257,9 @@ bool ArraySingleDimensionLiteralsUnsignedShortPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsUnsignedShortPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsUnsignedShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsLongPubSubType::ArraySingleDimensionLiteralsLongPubSubType() @@ -10450,9 +10450,9 @@ bool ArraySingleDimensionLiteralsLongPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsLongPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsLong_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsUnsignedLongPubSubType::ArraySingleDimensionLiteralsUnsignedLongPubSubType() @@ -10643,9 +10643,9 @@ bool ArraySingleDimensionLiteralsUnsignedLongPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsUnsignedLongPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsUnsignedLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsLongLongPubSubType::ArraySingleDimensionLiteralsLongLongPubSubType() @@ -10836,9 +10836,9 @@ bool ArraySingleDimensionLiteralsLongLongPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsLongLongPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsLongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsLongLong_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsUnsignedLongLongPubSubType::ArraySingleDimensionLiteralsUnsignedLongLongPubSubType() @@ -11029,9 +11029,9 @@ bool ArraySingleDimensionLiteralsUnsignedLongLongPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsUnsignedLongLongPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsUnsignedLongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsFloatPubSubType::ArraySingleDimensionLiteralsFloatPubSubType() @@ -11222,9 +11222,9 @@ bool ArraySingleDimensionLiteralsFloatPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsFloatPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsFloatPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsFloat_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsDoublePubSubType::ArraySingleDimensionLiteralsDoublePubSubType() @@ -11415,9 +11415,9 @@ bool ArraySingleDimensionLiteralsDoublePubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsDoublePubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsDouble_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsLongDoublePubSubType::ArraySingleDimensionLiteralsLongDoublePubSubType() @@ -11608,9 +11608,9 @@ bool ArraySingleDimensionLiteralsLongDoublePubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsLongDoublePubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsLongDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsLongDouble_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsBooleanPubSubType::ArraySingleDimensionLiteralsBooleanPubSubType() @@ -11801,9 +11801,9 @@ bool ArraySingleDimensionLiteralsBooleanPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsBooleanPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsBooleanPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsBoolean_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsOctetPubSubType::ArraySingleDimensionLiteralsOctetPubSubType() @@ -11994,9 +11994,9 @@ bool ArraySingleDimensionLiteralsOctetPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsOctetPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsOctetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsOctet_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsCharPubSubType::ArraySingleDimensionLiteralsCharPubSubType() @@ -12187,9 +12187,9 @@ bool ArraySingleDimensionLiteralsCharPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsCharPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsChar_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsWCharPubSubType::ArraySingleDimensionLiteralsWCharPubSubType() @@ -12380,9 +12380,9 @@ bool ArraySingleDimensionLiteralsWCharPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsWCharPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsWCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsWChar_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsStringPubSubType::ArraySingleDimensionLiteralsStringPubSubType() @@ -12573,9 +12573,9 @@ bool ArraySingleDimensionLiteralsStringPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsStringPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsString_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsWStringPubSubType::ArraySingleDimensionLiteralsWStringPubSubType() @@ -12766,9 +12766,9 @@ bool ArraySingleDimensionLiteralsWStringPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsWStringPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsWString_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsBoundedStringPubSubType::ArraySingleDimensionLiteralsBoundedStringPubSubType() @@ -12959,9 +12959,9 @@ bool ArraySingleDimensionLiteralsBoundedStringPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsBoundedStringPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsBoundedStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsBoundedString_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsBoundedWStringPubSubType::ArraySingleDimensionLiteralsBoundedWStringPubSubType() @@ -13152,9 +13152,9 @@ bool ArraySingleDimensionLiteralsBoundedWStringPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsBoundedWStringPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsBoundedWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsBoundedWString_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsEnumPubSubType::ArraySingleDimensionLiteralsEnumPubSubType() @@ -13345,9 +13345,9 @@ bool ArraySingleDimensionLiteralsEnumPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsEnumPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsEnumPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsEnum_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsBitMaskPubSubType::ArraySingleDimensionLiteralsBitMaskPubSubType() @@ -13538,9 +13538,9 @@ bool ArraySingleDimensionLiteralsBitMaskPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsBitMaskPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsBitMaskPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsBitMask_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsAliasPubSubType::ArraySingleDimensionLiteralsAliasPubSubType() @@ -13731,9 +13731,9 @@ bool ArraySingleDimensionLiteralsAliasPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsAliasPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsAliasPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsAlias_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsShortArrayPubSubType::ArraySingleDimensionLiteralsShortArrayPubSubType() @@ -13924,9 +13924,9 @@ bool ArraySingleDimensionLiteralsShortArrayPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsShortArrayPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsShortArrayPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsShortArray_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsSequencePubSubType::ArraySingleDimensionLiteralsSequencePubSubType() @@ -14117,9 +14117,9 @@ bool ArraySingleDimensionLiteralsSequencePubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsSequencePubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsSequencePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsSequence_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsMapPubSubType::ArraySingleDimensionLiteralsMapPubSubType() @@ -14310,9 +14310,9 @@ bool ArraySingleDimensionLiteralsMapPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsMapPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsMapPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsMap_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsUnionPubSubType::ArraySingleDimensionLiteralsUnionPubSubType() @@ -14503,9 +14503,9 @@ bool ArraySingleDimensionLiteralsUnionPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsUnionPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsUnionPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsUnion_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsStructurePubSubType::ArraySingleDimensionLiteralsStructurePubSubType() @@ -14696,9 +14696,9 @@ bool ArraySingleDimensionLiteralsStructurePubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsStructurePubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsStructurePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsStructure_type_identifier(type_identifiers_); } ArraySingleDimensionLiteralsBitsetPubSubType::ArraySingleDimensionLiteralsBitsetPubSubType() @@ -14889,9 +14889,9 @@ bool ArraySingleDimensionLiteralsBitsetPubSubType::getKey( return true; } -void ArraySingleDimensionLiteralsBitsetPubSubType::register_type_object_representation() const +void ArraySingleDimensionLiteralsBitsetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArraySingleDimensionLiteralsBitset_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsShortPubSubType::ArrayMultiDimensionLiteralsShortPubSubType() @@ -15082,9 +15082,9 @@ bool ArrayMultiDimensionLiteralsShortPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsShortPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsShort_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsUShortPubSubType::ArrayMultiDimensionLiteralsUShortPubSubType() @@ -15275,9 +15275,9 @@ bool ArrayMultiDimensionLiteralsUShortPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsUShortPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsUShortPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsUShort_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsLongPubSubType::ArrayMultiDimensionLiteralsLongPubSubType() @@ -15468,9 +15468,9 @@ bool ArrayMultiDimensionLiteralsLongPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsLong_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsULongPubSubType::ArrayMultiDimensionLiteralsULongPubSubType() @@ -15661,9 +15661,9 @@ bool ArrayMultiDimensionLiteralsULongPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsULongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsULongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsULong_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsLongLongPubSubType::ArrayMultiDimensionLiteralsLongLongPubSubType() @@ -15854,9 +15854,9 @@ bool ArrayMultiDimensionLiteralsLongLongPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsLongLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsLongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsLongLong_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsULongLongPubSubType::ArrayMultiDimensionLiteralsULongLongPubSubType() @@ -16047,9 +16047,9 @@ bool ArrayMultiDimensionLiteralsULongLongPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsULongLongPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsULongLongPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsULongLong_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsFloatPubSubType::ArrayMultiDimensionLiteralsFloatPubSubType() @@ -16240,9 +16240,9 @@ bool ArrayMultiDimensionLiteralsFloatPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsFloatPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsFloatPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsFloat_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsDoublePubSubType::ArrayMultiDimensionLiteralsDoublePubSubType() @@ -16433,9 +16433,9 @@ bool ArrayMultiDimensionLiteralsDoublePubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsDoublePubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsDouble_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsLongDoublePubSubType::ArrayMultiDimensionLiteralsLongDoublePubSubType() @@ -16626,9 +16626,9 @@ bool ArrayMultiDimensionLiteralsLongDoublePubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsLongDoublePubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsLongDoublePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsLongDouble_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsBooleanPubSubType::ArrayMultiDimensionLiteralsBooleanPubSubType() @@ -16819,9 +16819,9 @@ bool ArrayMultiDimensionLiteralsBooleanPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsBooleanPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsBooleanPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsBoolean_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsOctetPubSubType::ArrayMultiDimensionLiteralsOctetPubSubType() @@ -17012,9 +17012,9 @@ bool ArrayMultiDimensionLiteralsOctetPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsOctetPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsOctetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsOctet_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsCharPubSubType::ArrayMultiDimensionLiteralsCharPubSubType() @@ -17205,9 +17205,9 @@ bool ArrayMultiDimensionLiteralsCharPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsCharPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsChar_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsWCharPubSubType::ArrayMultiDimensionLiteralsWCharPubSubType() @@ -17398,9 +17398,9 @@ bool ArrayMultiDimensionLiteralsWCharPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsWCharPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsWCharPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsWChar_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsStringPubSubType::ArrayMultiDimensionLiteralsStringPubSubType() @@ -17591,9 +17591,9 @@ bool ArrayMultiDimensionLiteralsStringPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsString_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsWStringPubSubType::ArrayMultiDimensionLiteralsWStringPubSubType() @@ -17784,9 +17784,9 @@ bool ArrayMultiDimensionLiteralsWStringPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsWStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsWString_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsBoundedStringPubSubType::ArrayMultiDimensionLiteralsBoundedStringPubSubType() @@ -17977,9 +17977,9 @@ bool ArrayMultiDimensionLiteralsBoundedStringPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsBoundedStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsBoundedStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsBoundedString_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsBoundedWStringPubSubType::ArrayMultiDimensionLiteralsBoundedWStringPubSubType() @@ -18170,9 +18170,9 @@ bool ArrayMultiDimensionLiteralsBoundedWStringPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsBoundedWStringPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsBoundedWStringPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsEnumPubSubType::ArrayMultiDimensionLiteralsEnumPubSubType() @@ -18363,9 +18363,9 @@ bool ArrayMultiDimensionLiteralsEnumPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsEnumPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsEnumPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsEnum_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsBitMaskPubSubType::ArrayMultiDimensionLiteralsBitMaskPubSubType() @@ -18556,9 +18556,9 @@ bool ArrayMultiDimensionLiteralsBitMaskPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsBitMaskPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsBitMaskPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsBitMask_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsAliasPubSubType::ArrayMultiDimensionLiteralsAliasPubSubType() @@ -18749,9 +18749,9 @@ bool ArrayMultiDimensionLiteralsAliasPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsAliasPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsAliasPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsAlias_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsSequencePubSubType::ArrayMultiDimensionLiteralsSequencePubSubType() @@ -18942,9 +18942,9 @@ bool ArrayMultiDimensionLiteralsSequencePubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsSequencePubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsSequencePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsSequence_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsMapPubSubType::ArrayMultiDimensionLiteralsMapPubSubType() @@ -19135,9 +19135,9 @@ bool ArrayMultiDimensionLiteralsMapPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsMapPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsMapPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsMap_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsUnionPubSubType::ArrayMultiDimensionLiteralsUnionPubSubType() @@ -19328,9 +19328,9 @@ bool ArrayMultiDimensionLiteralsUnionPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsUnionPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsUnionPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsUnion_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsStructurePubSubType::ArrayMultiDimensionLiteralsStructurePubSubType() @@ -19521,9 +19521,9 @@ bool ArrayMultiDimensionLiteralsStructurePubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsStructurePubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsStructurePubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsStructure_type_identifier(type_identifiers_); } ArrayMultiDimensionLiteralsBitSetPubSubType::ArrayMultiDimensionLiteralsBitSetPubSubType() @@ -19714,9 +19714,9 @@ bool ArrayMultiDimensionLiteralsBitSetPubSubType::getKey( return true; } -void ArrayMultiDimensionLiteralsBitSetPubSubType::register_type_object_representation() const +void ArrayMultiDimensionLiteralsBitSetPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_ArrayMultiDimensionLiteralsBitSet_type_identifier(type_identifiers_); } BoundedSmallArraysPubSubType::BoundedSmallArraysPubSubType() @@ -19907,9 +19907,9 @@ bool BoundedSmallArraysPubSubType::getKey( return true; } -void BoundedSmallArraysPubSubType::register_type_object_representation() const +void BoundedSmallArraysPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_BoundedSmallArrays_type_identifier(type_identifiers_); } BoundedBigArraysPubSubType::BoundedBigArraysPubSubType() @@ -20100,9 +20100,9 @@ bool BoundedBigArraysPubSubType::getKey( return true; } -void BoundedBigArraysPubSubType::register_type_object_representation() const +void BoundedBigArraysPubSubType::register_type_object_representation() { - register_arrays_type_objects(); + register_BoundedBigArrays_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/arraysPubSubTypes.h b/test/dds-types-test/arraysPubSubTypes.h index 259c8ef4f87..5f699814261 100644 --- a/test/dds-types-test/arraysPubSubTypes.h +++ b/test/dds-types-test/arraysPubSubTypes.h @@ -90,7 +90,7 @@ class ArrayShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class ArrayUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class ArrayLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class ArrayULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class ArrayLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class ArrayULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class ArrayFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class ArrayDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class ArrayLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class ArrayBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class ArrayOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class ArrayCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class ArrayWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class ArrayStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class ArrayWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class ArrayBoundedStringPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class ArrayBoundedWStringPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class ArrayEnumPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class ArrayBitMaskPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class ArrayAliasPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class ArrayShortArrayPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class ArraySequencePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class ArrayMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class ArrayUnionPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class ArrayStructurePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class ArrayBitsetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class ArrayMultiDimensionShortPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class ArrayMultiDimensionUShortPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2638,7 +2638,7 @@ class ArrayMultiDimensionLongPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2729,7 +2729,7 @@ class ArrayMultiDimensionULongPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2820,7 +2820,7 @@ class ArrayMultiDimensionLongLongPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2911,7 +2911,7 @@ class ArrayMultiDimensionULongLongPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3002,7 +3002,7 @@ class ArrayMultiDimensionFloatPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3093,7 +3093,7 @@ class ArrayMultiDimensionDoublePubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3184,7 +3184,7 @@ class ArrayMultiDimensionLongDoublePubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3275,7 +3275,7 @@ class ArrayMultiDimensionBooleanPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3366,7 +3366,7 @@ class ArrayMultiDimensionOctetPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3457,7 +3457,7 @@ class ArrayMultiDimensionCharPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3548,7 +3548,7 @@ class ArrayMultiDimensionWCharPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3639,7 +3639,7 @@ class ArrayMultiDimensionStringPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3730,7 +3730,7 @@ class ArrayMultiDimensionWStringPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3821,7 +3821,7 @@ class ArrayMultiDimensionBoundedStringPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3912,7 +3912,7 @@ class ArrayMultiDimensionBoundedWStringPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4003,7 +4003,7 @@ class ArrayMultiDimensionEnumPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4094,7 +4094,7 @@ class ArrayMultiDimensionBitMaskPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4185,7 +4185,7 @@ class ArrayMultiDimensionAliasPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4276,7 +4276,7 @@ class ArrayMultiDimensionSequencePubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4367,7 +4367,7 @@ class ArrayMultiDimensionMapPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4458,7 +4458,7 @@ class ArrayMultiDimensionUnionPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4549,7 +4549,7 @@ class ArrayMultiDimensionStructurePubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4640,7 +4640,7 @@ class ArrayMultiDimensionBitsetPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4733,7 +4733,7 @@ class ArraySingleDimensionLiteralsShortPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4824,7 +4824,7 @@ class ArraySingleDimensionLiteralsUnsignedShortPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4915,7 +4915,7 @@ class ArraySingleDimensionLiteralsLongPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5006,7 +5006,7 @@ class ArraySingleDimensionLiteralsUnsignedLongPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5097,7 +5097,7 @@ class ArraySingleDimensionLiteralsLongLongPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5188,7 +5188,7 @@ class ArraySingleDimensionLiteralsUnsignedLongLongPubSubType : public eprosima:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5279,7 +5279,7 @@ class ArraySingleDimensionLiteralsFloatPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5370,7 +5370,7 @@ class ArraySingleDimensionLiteralsDoublePubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5461,7 +5461,7 @@ class ArraySingleDimensionLiteralsLongDoublePubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5552,7 +5552,7 @@ class ArraySingleDimensionLiteralsBooleanPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5643,7 +5643,7 @@ class ArraySingleDimensionLiteralsOctetPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5734,7 +5734,7 @@ class ArraySingleDimensionLiteralsCharPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5825,7 +5825,7 @@ class ArraySingleDimensionLiteralsWCharPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5916,7 +5916,7 @@ class ArraySingleDimensionLiteralsStringPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6007,7 +6007,7 @@ class ArraySingleDimensionLiteralsWStringPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6098,7 +6098,7 @@ class ArraySingleDimensionLiteralsBoundedStringPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6189,7 +6189,7 @@ class ArraySingleDimensionLiteralsBoundedWStringPubSubType : public eprosima::fa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6280,7 +6280,7 @@ class ArraySingleDimensionLiteralsEnumPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6371,7 +6371,7 @@ class ArraySingleDimensionLiteralsBitMaskPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6462,7 +6462,7 @@ class ArraySingleDimensionLiteralsAliasPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6553,7 +6553,7 @@ class ArraySingleDimensionLiteralsShortArrayPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6644,7 +6644,7 @@ class ArraySingleDimensionLiteralsSequencePubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6735,7 +6735,7 @@ class ArraySingleDimensionLiteralsMapPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6826,7 +6826,7 @@ class ArraySingleDimensionLiteralsUnionPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6917,7 +6917,7 @@ class ArraySingleDimensionLiteralsStructurePubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7008,7 +7008,7 @@ class ArraySingleDimensionLiteralsBitsetPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7099,7 +7099,7 @@ class ArrayMultiDimensionLiteralsShortPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7190,7 +7190,7 @@ class ArrayMultiDimensionLiteralsUShortPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7281,7 +7281,7 @@ class ArrayMultiDimensionLiteralsLongPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7372,7 +7372,7 @@ class ArrayMultiDimensionLiteralsULongPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7463,7 +7463,7 @@ class ArrayMultiDimensionLiteralsLongLongPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7554,7 +7554,7 @@ class ArrayMultiDimensionLiteralsULongLongPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7645,7 +7645,7 @@ class ArrayMultiDimensionLiteralsFloatPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7736,7 +7736,7 @@ class ArrayMultiDimensionLiteralsDoublePubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7827,7 +7827,7 @@ class ArrayMultiDimensionLiteralsLongDoublePubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7918,7 +7918,7 @@ class ArrayMultiDimensionLiteralsBooleanPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8009,7 +8009,7 @@ class ArrayMultiDimensionLiteralsOctetPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8100,7 +8100,7 @@ class ArrayMultiDimensionLiteralsCharPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8191,7 +8191,7 @@ class ArrayMultiDimensionLiteralsWCharPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8282,7 +8282,7 @@ class ArrayMultiDimensionLiteralsStringPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8373,7 +8373,7 @@ class ArrayMultiDimensionLiteralsWStringPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8464,7 +8464,7 @@ class ArrayMultiDimensionLiteralsBoundedStringPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8555,7 +8555,7 @@ class ArrayMultiDimensionLiteralsBoundedWStringPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8646,7 +8646,7 @@ class ArrayMultiDimensionLiteralsEnumPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8737,7 +8737,7 @@ class ArrayMultiDimensionLiteralsBitMaskPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8828,7 +8828,7 @@ class ArrayMultiDimensionLiteralsAliasPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8919,7 +8919,7 @@ class ArrayMultiDimensionLiteralsSequencePubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9010,7 +9010,7 @@ class ArrayMultiDimensionLiteralsMapPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9101,7 +9101,7 @@ class ArrayMultiDimensionLiteralsUnionPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9192,7 +9192,7 @@ class ArrayMultiDimensionLiteralsStructurePubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9283,7 +9283,7 @@ class ArrayMultiDimensionLiteralsBitSetPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9374,7 +9374,7 @@ class BoundedSmallArraysPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9465,7 +9465,7 @@ class BoundedBigArraysPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/arraysTypeObjectSupport.cxx b/test/dds-types-test/arraysTypeObjectSupport.cxx index a9fc554fcec..f928f1d2ba5 100644 --- a/test/dds-types-test/arraysTypeObjectSupport.cxx +++ b/test/dds-types-test/arraysTypeObjectSupport.cxx @@ -39,238 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_arrays_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_ArrayShort_type_identifier(type_id); - - register_ArrayUShort_type_identifier(type_id); - - register_ArrayLong_type_identifier(type_id); - - register_ArrayULong_type_identifier(type_id); - - register_ArrayLongLong_type_identifier(type_id); - - register_ArrayULongLong_type_identifier(type_id); - - register_ArrayFloat_type_identifier(type_id); - - register_ArrayDouble_type_identifier(type_id); - - register_ArrayLongDouble_type_identifier(type_id); - - register_ArrayBoolean_type_identifier(type_id); - - register_ArrayOctet_type_identifier(type_id); - - register_ArrayChar_type_identifier(type_id); - - register_ArrayWChar_type_identifier(type_id); - - register_ArrayString_type_identifier(type_id); - - register_ArrayWString_type_identifier(type_id); - - register_ArrayBoundedString_type_identifier(type_id); - - register_ArrayBoundedWString_type_identifier(type_id); - - register_ArrayEnum_type_identifier(type_id); - - register_ArrayBitMask_type_identifier(type_id); - - register_ArrayAlias_type_identifier(type_id); - - register_ArrayShortArray_type_identifier(type_id); - - register_ArraySequence_type_identifier(type_id); - - register_ArrayMap_type_identifier(type_id); - - register_ArrayUnion_type_identifier(type_id); - - register_ArrayStructure_type_identifier(type_id); - - register_ArrayBitset_type_identifier(type_id); - - register_ArrayMultiDimensionShort_type_identifier(type_id); - - register_ArrayMultiDimensionUShort_type_identifier(type_id); - - register_ArrayMultiDimensionLong_type_identifier(type_id); - - register_ArrayMultiDimensionULong_type_identifier(type_id); - - register_ArrayMultiDimensionLongLong_type_identifier(type_id); - - register_ArrayMultiDimensionULongLong_type_identifier(type_id); - - register_ArrayMultiDimensionFloat_type_identifier(type_id); - - register_ArrayMultiDimensionDouble_type_identifier(type_id); - - register_ArrayMultiDimensionLongDouble_type_identifier(type_id); - - register_ArrayMultiDimensionBoolean_type_identifier(type_id); - - register_ArrayMultiDimensionOctet_type_identifier(type_id); - - register_ArrayMultiDimensionChar_type_identifier(type_id); - - register_ArrayMultiDimensionWChar_type_identifier(type_id); - - register_ArrayMultiDimensionString_type_identifier(type_id); - - register_ArrayMultiDimensionWString_type_identifier(type_id); - - register_ArrayMultiDimensionBoundedString_type_identifier(type_id); - - register_ArrayMultiDimensionBoundedWString_type_identifier(type_id); - - register_ArrayMultiDimensionEnum_type_identifier(type_id); - - register_ArrayMultiDimensionBitMask_type_identifier(type_id); - - register_ArrayMultiDimensionAlias_type_identifier(type_id); - - register_ArrayMultiDimensionSequence_type_identifier(type_id); - - register_ArrayMultiDimensionMap_type_identifier(type_id); - - register_ArrayMultiDimensionUnion_type_identifier(type_id); - - register_ArrayMultiDimensionStructure_type_identifier(type_id); - - register_ArrayMultiDimensionBitset_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsShort_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsLong_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsLongLong_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsFloat_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsDouble_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsLongDouble_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsBoolean_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsOctet_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsChar_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsWChar_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsString_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsWString_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsBoundedString_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsBoundedWString_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsEnum_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsBitMask_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsAlias_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsShortArray_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsSequence_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsMap_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsUnion_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsStructure_type_identifier(type_id); - - register_ArraySingleDimensionLiteralsBitset_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsShort_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsUShort_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsLong_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsULong_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsLongLong_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsULongLong_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsFloat_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsDouble_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsLongDouble_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsBoolean_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsOctet_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsChar_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsWChar_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsString_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsWString_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsBoundedString_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsEnum_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsBitMask_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsAlias_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsSequence_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsMap_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsUnion_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsStructure_type_identifier(type_id); - - register_ArrayMultiDimensionLiteralsBitSet_type_identifier(type_id); - - register_BoundedSmallArrays_type_identifier(type_id); - - register_BoundedBigArrays_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayShort) { + + ReturnCode_t return_code_ArrayShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayShort", type_ids_ArrayShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayShort) { - StructTypeFlag struct_flags_ArrayShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayShort; - TypeIdentifierPair type_ids_ArrayShort; QualifiedTypeName type_name_ArrayShort = "ArrayShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayShort; eprosima::fastcdr::optional ann_custom_ArrayShort; @@ -279,69 +60,33 @@ void register_ArrayShort_type_identifier( header_ArrayShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayShort); CompleteStructMemberSeq member_seq_ArrayShort; { - return_code_ArrayShort = + TypeIdentifierPair type_ids_var_array_short; + ReturnCode_t return_code_var_array_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ArrayShort); + "anonymous_array_int16_t_10", type_ids_var_array_short); - if (return_code_ArrayShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { - return_code_ArrayShort = + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArrayShort); + "_int16_t", type_ids_var_array_short); - if (return_code_ArrayShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ArrayShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ArrayShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -354,68 +99,21 @@ void register_ArrayShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_var_array_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ArrayShort); - if (return_code_ArrayShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short; MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_short_ec {false}; + CommonStructMember common_var_array_short {TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, common_var_array_short_ec))}; + if (!common_var_array_short_ec) { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short = "var_array_short"; @@ -427,32 +125,26 @@ void register_ArrayShort_type_identifier( } CompleteStructType struct_type_ArrayShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayShort, header_ArrayShort, member_seq_ArrayShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayShort, type_name_ArrayShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayShort, type_name_ArrayShort.to_string(), type_ids_ArrayShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayShort", type_ids_ArrayShort); - if (return_code_ArrayShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayUShort) { + + ReturnCode_t return_code_ArrayUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayUShort", type_ids_ArrayUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayUShort) { - StructTypeFlag struct_flags_ArrayUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayUShort; - TypeIdentifierPair type_ids_ArrayUShort; QualifiedTypeName type_name_ArrayUShort = "ArrayUShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayUShort; eprosima::fastcdr::optional ann_custom_ArrayUShort; @@ -461,69 +153,33 @@ void register_ArrayUShort_type_identifier( header_ArrayUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayUShort); CompleteStructMemberSeq member_seq_ArrayUShort; { - return_code_ArrayUShort = + TypeIdentifierPair type_ids_var_array_ushort; + ReturnCode_t return_code_var_array_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10", type_ids_ArrayUShort); + "anonymous_array_uint16_t_10", type_ids_var_array_ushort); - if (return_code_ArrayUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { - return_code_ArrayUShort = + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ArrayUShort); + "_uint16_t", type_ids_var_array_ushort); - if (return_code_ArrayUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10 = new TypeIdentifier(type_ids_ArrayUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10 = new TypeIdentifier(type_ids_ArrayUShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, element_identifier_anonymous_array_uint16_t_10_ec))}; + if (!element_identifier_anonymous_array_uint16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayUShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ushort.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_10 = EK_BOTH; } @@ -536,68 +192,21 @@ void register_ArrayUShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10", type_ids_var_array_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10", type_ids_ArrayUShort); - if (return_code_ArrayUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ushort; MemberId member_id_var_array_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayUShort.type_identifier2()); - } - else + bool common_var_array_ushort_ec {false}; + CommonStructMember common_var_array_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, common_var_array_ushort_ec))}; + if (!common_var_array_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ushort = "var_array_ushort"; @@ -609,32 +218,26 @@ void register_ArrayUShort_type_identifier( } CompleteStructType struct_type_ArrayUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayUShort, header_ArrayUShort, member_seq_ArrayUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayUShort, type_name_ArrayUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayUShort, type_name_ArrayUShort.to_string(), type_ids_ArrayUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayUShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayUShort", type_ids_ArrayUShort); - if (return_code_ArrayUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayLong) { + + ReturnCode_t return_code_ArrayLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayLong", type_ids_ArrayLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayLong) { - StructTypeFlag struct_flags_ArrayLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayLong; - TypeIdentifierPair type_ids_ArrayLong; QualifiedTypeName type_name_ArrayLong = "ArrayLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayLong; eprosima::fastcdr::optional ann_custom_ArrayLong; @@ -643,69 +246,33 @@ void register_ArrayLong_type_identifier( header_ArrayLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayLong); CompleteStructMemberSeq member_seq_ArrayLong; { - return_code_ArrayLong = + TypeIdentifierPair type_ids_var_array_long; + ReturnCode_t return_code_var_array_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10", type_ids_ArrayLong); + "anonymous_array_int32_t_10", type_ids_var_array_long); - if (return_code_ArrayLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { - return_code_ArrayLong = + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayLong); + "_int32_t", type_ids_var_array_long); - if (return_code_ArrayLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10 = new TypeIdentifier(type_ids_ArrayLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10 = new TypeIdentifier(type_ids_ArrayLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, element_identifier_anonymous_array_int32_t_10_ec))}; + if (!element_identifier_anonymous_array_int32_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_long.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_10 = EK_BOTH; } @@ -718,68 +285,21 @@ void register_ArrayLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10", type_ids_var_array_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10", type_ids_ArrayLong); - if (return_code_ArrayLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_long; MemberId member_id_var_array_long = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_long_ec {false}; + CommonStructMember common_var_array_long {TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, common_var_array_long_ec))}; + if (!common_var_array_long_ec) { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_long member TypeIdentifier inconsistent."); return; } MemberName name_var_array_long = "var_array_long"; @@ -791,32 +311,26 @@ void register_ArrayLong_type_identifier( } CompleteStructType struct_type_ArrayLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayLong, header_ArrayLong, member_seq_ArrayLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLong, type_name_ArrayLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLong, type_name_ArrayLong.to_string(), type_ids_ArrayLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayLong", type_ids_ArrayLong); - if (return_code_ArrayLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayULong) { + + ReturnCode_t return_code_ArrayULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayULong", type_ids_ArrayULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayULong) { - StructTypeFlag struct_flags_ArrayULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayULong; - TypeIdentifierPair type_ids_ArrayULong; QualifiedTypeName type_name_ArrayULong = "ArrayULong"; eprosima::fastcdr::optional type_ann_builtin_ArrayULong; eprosima::fastcdr::optional ann_custom_ArrayULong; @@ -825,69 +339,33 @@ void register_ArrayULong_type_identifier( header_ArrayULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayULong); CompleteStructMemberSeq member_seq_ArrayULong; { - return_code_ArrayULong = + TypeIdentifierPair type_ids_var_array_ulong; + ReturnCode_t return_code_var_array_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10", type_ids_ArrayULong); + "anonymous_array_uint32_t_10", type_ids_var_array_ulong); - if (return_code_ArrayULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { - return_code_ArrayULong = + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ArrayULong); + "_uint32_t", type_ids_var_array_ulong); - if (return_code_ArrayULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10 = new TypeIdentifier(type_ids_ArrayULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10 = new TypeIdentifier(type_ids_ArrayULong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, element_identifier_anonymous_array_uint32_t_10_ec))}; + if (!element_identifier_anonymous_array_uint32_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayULong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_10 = EK_BOTH; } @@ -900,68 +378,21 @@ void register_ArrayULong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10", type_ids_var_array_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10", type_ids_ArrayULong); - if (return_code_ArrayULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulong; MemberId member_id_var_array_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_ulong_ec {false}; + CommonStructMember common_var_array_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, common_var_array_ulong_ec))}; + if (!common_var_array_ulong_ec) { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulong = "var_array_ulong"; @@ -973,32 +404,26 @@ void register_ArrayULong_type_identifier( } CompleteStructType struct_type_ArrayULong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayULong, header_ArrayULong, member_seq_ArrayULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayULong, type_name_ArrayULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayULong, type_name_ArrayULong.to_string(), type_ids_ArrayULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayULong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayULong", type_ids_ArrayULong); - if (return_code_ArrayULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayLongLong) { + + ReturnCode_t return_code_ArrayLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayLongLong", type_ids_ArrayLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayLongLong) { - StructTypeFlag struct_flags_ArrayLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayLongLong; - TypeIdentifierPair type_ids_ArrayLongLong; QualifiedTypeName type_name_ArrayLongLong = "ArrayLongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayLongLong; eprosima::fastcdr::optional ann_custom_ArrayLongLong; @@ -1007,69 +432,33 @@ void register_ArrayLongLong_type_identifier( header_ArrayLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayLongLong); CompleteStructMemberSeq member_seq_ArrayLongLong; { - return_code_ArrayLongLong = + TypeIdentifierPair type_ids_var_array_longlong; + ReturnCode_t return_code_var_array_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10", type_ids_ArrayLongLong); + "anonymous_array_int64_t_10", type_ids_var_array_longlong); - if (return_code_ArrayLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { - return_code_ArrayLongLong = + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ArrayLongLong); + "_int64_t", type_ids_var_array_longlong); - if (return_code_ArrayLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10 = new TypeIdentifier(type_ids_ArrayLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10 = new TypeIdentifier(type_ids_ArrayLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, element_identifier_anonymous_array_int64_t_10_ec))}; + if (!element_identifier_anonymous_array_int64_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longlong.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_10 = EK_BOTH; } @@ -1082,68 +471,21 @@ void register_ArrayLongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10", type_ids_var_array_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10", type_ids_ArrayLongLong); - if (return_code_ArrayLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longlong; MemberId member_id_var_array_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longlong_ec {false}; + CommonStructMember common_var_array_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, common_var_array_longlong_ec))}; + if (!common_var_array_longlong_ec) { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longlong = "var_array_longlong"; @@ -1155,32 +497,26 @@ void register_ArrayLongLong_type_identifier( } CompleteStructType struct_type_ArrayLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayLongLong, header_ArrayLongLong, member_seq_ArrayLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLongLong, type_name_ArrayLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLongLong, type_name_ArrayLongLong.to_string(), type_ids_ArrayLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayLongLong", type_ids_ArrayLongLong); - if (return_code_ArrayLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayULongLong) { + + ReturnCode_t return_code_ArrayULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayULongLong", type_ids_ArrayULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayULongLong) { - StructTypeFlag struct_flags_ArrayULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayULongLong; - TypeIdentifierPair type_ids_ArrayULongLong; QualifiedTypeName type_name_ArrayULongLong = "ArrayULongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayULongLong; eprosima::fastcdr::optional ann_custom_ArrayULongLong; @@ -1189,69 +525,33 @@ void register_ArrayULongLong_type_identifier( header_ArrayULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayULongLong); CompleteStructMemberSeq member_seq_ArrayULongLong; { - return_code_ArrayULongLong = + TypeIdentifierPair type_ids_var_array_ulonglong; + ReturnCode_t return_code_var_array_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10", type_ids_ArrayULongLong); + "anonymous_array_uint64_t_10", type_ids_var_array_ulonglong); - if (return_code_ArrayULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { - return_code_ArrayULongLong = + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ArrayULongLong); + "_uint64_t", type_ids_var_array_ulonglong); - if (return_code_ArrayULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10 = new TypeIdentifier(type_ids_ArrayULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10 = new TypeIdentifier(type_ids_ArrayULongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, element_identifier_anonymous_array_uint64_t_10_ec))}; + if (!element_identifier_anonymous_array_uint64_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayULongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_10 = EK_BOTH; } @@ -1264,68 +564,21 @@ void register_ArrayULongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10", type_ids_var_array_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10", type_ids_ArrayULongLong); - if (return_code_ArrayULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulonglong; MemberId member_id_var_array_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayULongLong.type_identifier2()); - } - else + bool common_var_array_ulonglong_ec {false}; + CommonStructMember common_var_array_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, common_var_array_ulonglong_ec))}; + if (!common_var_array_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulonglong = "var_array_ulonglong"; @@ -1337,32 +590,26 @@ void register_ArrayULongLong_type_identifier( } CompleteStructType struct_type_ArrayULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayULongLong, header_ArrayULongLong, member_seq_ArrayULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayULongLong, type_name_ArrayULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayULongLong, type_name_ArrayULongLong.to_string(), type_ids_ArrayULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayULongLong", type_ids_ArrayULongLong); - if (return_code_ArrayULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayFloat) { + + ReturnCode_t return_code_ArrayFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayFloat", type_ids_ArrayFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayFloat) { - StructTypeFlag struct_flags_ArrayFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayFloat; - TypeIdentifierPair type_ids_ArrayFloat; QualifiedTypeName type_name_ArrayFloat = "ArrayFloat"; eprosima::fastcdr::optional type_ann_builtin_ArrayFloat; eprosima::fastcdr::optional ann_custom_ArrayFloat; @@ -1371,69 +618,33 @@ void register_ArrayFloat_type_identifier( header_ArrayFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayFloat); CompleteStructMemberSeq member_seq_ArrayFloat; { - return_code_ArrayFloat = + TypeIdentifierPair type_ids_var_array_float; + ReturnCode_t return_code_var_array_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10", type_ids_ArrayFloat); + "anonymous_array_float_10", type_ids_var_array_float); - if (return_code_ArrayFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { - return_code_ArrayFloat = + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ArrayFloat); + "_float", type_ids_var_array_float); - if (return_code_ArrayFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_float_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10 = new TypeIdentifier(type_ids_ArrayFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10 = new TypeIdentifier(type_ids_ArrayFloat.type_identifier2()); - } - else + bool element_identifier_anonymous_array_float_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_float_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, element_identifier_anonymous_array_float_10_ec))}; + if (!element_identifier_anonymous_array_float_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_float_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayFloat.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_float.type_identifier2()._d()) { equiv_kind_anonymous_array_float_10 = EK_BOTH; } @@ -1446,68 +657,21 @@ void register_ArrayFloat_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_float_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10", type_ids_var_array_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_float_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10", type_ids_ArrayFloat); - if (return_code_ArrayFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_float_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_float; MemberId member_id_var_array_float = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_float_ec {false}; + CommonStructMember common_var_array_float {TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, common_var_array_float_ec))}; + if (!common_var_array_float_ec) { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_float member TypeIdentifier inconsistent."); return; } MemberName name_var_array_float = "var_array_float"; @@ -1519,32 +683,26 @@ void register_ArrayFloat_type_identifier( } CompleteStructType struct_type_ArrayFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayFloat, header_ArrayFloat, member_seq_ArrayFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayFloat, type_name_ArrayFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayFloat, type_name_ArrayFloat.to_string(), type_ids_ArrayFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayFloat already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayFloat", type_ids_ArrayFloat); - if (return_code_ArrayFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayDouble) { + + ReturnCode_t return_code_ArrayDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayDouble", type_ids_ArrayDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayDouble) { - StructTypeFlag struct_flags_ArrayDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayDouble; - TypeIdentifierPair type_ids_ArrayDouble; QualifiedTypeName type_name_ArrayDouble = "ArrayDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayDouble; eprosima::fastcdr::optional ann_custom_ArrayDouble; @@ -1553,69 +711,33 @@ void register_ArrayDouble_type_identifier( header_ArrayDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayDouble); CompleteStructMemberSeq member_seq_ArrayDouble; { - return_code_ArrayDouble = + TypeIdentifierPair type_ids_var_array_double; + ReturnCode_t return_code_var_array_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10", type_ids_ArrayDouble); + "anonymous_array_double_10", type_ids_var_array_double); - if (return_code_ArrayDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { - return_code_ArrayDouble = + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ArrayDouble); + "_double", type_ids_var_array_double); - if (return_code_ArrayDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_double_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10 = new TypeIdentifier(type_ids_ArrayDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10 = new TypeIdentifier(type_ids_ArrayDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_double_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_double_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, element_identifier_anonymous_array_double_10_ec))}; + if (!element_identifier_anonymous_array_double_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_double_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_double.type_identifier2()._d()) { equiv_kind_anonymous_array_double_10 = EK_BOTH; } @@ -1628,68 +750,21 @@ void register_ArrayDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_double_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10", type_ids_var_array_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_double_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10", type_ids_ArrayDouble); - if (return_code_ArrayDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_double_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_double; MemberId member_id_var_array_double = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_double_ec {false}; + CommonStructMember common_var_array_double {TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, common_var_array_double_ec))}; + if (!common_var_array_double_ec) { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_double member TypeIdentifier inconsistent."); return; } MemberName name_var_array_double = "var_array_double"; @@ -1701,32 +776,26 @@ void register_ArrayDouble_type_identifier( } CompleteStructType struct_type_ArrayDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayDouble, header_ArrayDouble, member_seq_ArrayDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayDouble, type_name_ArrayDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayDouble, type_name_ArrayDouble.to_string(), type_ids_ArrayDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayDouble", type_ids_ArrayDouble); - if (return_code_ArrayDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayLongDouble) { + + ReturnCode_t return_code_ArrayLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayLongDouble", type_ids_ArrayLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayLongDouble) { - StructTypeFlag struct_flags_ArrayLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayLongDouble; - TypeIdentifierPair type_ids_ArrayLongDouble; QualifiedTypeName type_name_ArrayLongDouble = "ArrayLongDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayLongDouble; eprosima::fastcdr::optional ann_custom_ArrayLongDouble; @@ -1735,69 +804,33 @@ void register_ArrayLongDouble_type_identifier( header_ArrayLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayLongDouble); CompleteStructMemberSeq member_seq_ArrayLongDouble; { - return_code_ArrayLongDouble = + TypeIdentifierPair type_ids_var_array_longdouble; + ReturnCode_t return_code_var_array_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10", type_ids_ArrayLongDouble); + "anonymous_array_longdouble_10", type_ids_var_array_longdouble); - if (return_code_ArrayLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { - return_code_ArrayLongDouble = + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ArrayLongDouble); + "_longdouble", type_ids_var_array_longdouble); - if (return_code_ArrayLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_longdouble_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10 = new TypeIdentifier(type_ids_ArrayLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10 = new TypeIdentifier(type_ids_ArrayLongDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_longdouble_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_longdouble_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, element_identifier_anonymous_array_longdouble_10_ec))}; + if (!element_identifier_anonymous_array_longdouble_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_longdouble_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayLongDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longdouble.type_identifier2()._d()) { equiv_kind_anonymous_array_longdouble_10 = EK_BOTH; } @@ -1810,68 +843,21 @@ void register_ArrayLongDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_longdouble_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_longdouble_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10", type_ids_var_array_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_longdouble_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10", type_ids_ArrayLongDouble); - if (return_code_ArrayLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_longdouble_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longdouble; MemberId member_id_var_array_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longdouble_ec {false}; + CommonStructMember common_var_array_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, common_var_array_longdouble_ec))}; + if (!common_var_array_longdouble_ec) { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longdouble = "var_array_longdouble"; @@ -1883,32 +869,26 @@ void register_ArrayLongDouble_type_identifier( } CompleteStructType struct_type_ArrayLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayLongDouble, header_ArrayLongDouble, member_seq_ArrayLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLongDouble, type_name_ArrayLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayLongDouble, type_name_ArrayLongDouble.to_string(), type_ids_ArrayLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayLongDouble", type_ids_ArrayLongDouble); - if (return_code_ArrayLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayBoolean) { + + ReturnCode_t return_code_ArrayBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayBoolean", type_ids_ArrayBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayBoolean) { - StructTypeFlag struct_flags_ArrayBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayBoolean; - TypeIdentifierPair type_ids_ArrayBoolean; QualifiedTypeName type_name_ArrayBoolean = "ArrayBoolean"; eprosima::fastcdr::optional type_ann_builtin_ArrayBoolean; eprosima::fastcdr::optional ann_custom_ArrayBoolean; @@ -1917,69 +897,33 @@ void register_ArrayBoolean_type_identifier( header_ArrayBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayBoolean); CompleteStructMemberSeq member_seq_ArrayBoolean; { - return_code_ArrayBoolean = + TypeIdentifierPair type_ids_var_array_boolean; + ReturnCode_t return_code_var_array_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10", type_ids_ArrayBoolean); + "anonymous_array_bool_10", type_ids_var_array_boolean); - if (return_code_ArrayBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { - return_code_ArrayBoolean = + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ArrayBoolean); + "_bool", type_ids_var_array_boolean); - if (return_code_ArrayBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_bool_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10 = new TypeIdentifier(type_ids_ArrayBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10 = new TypeIdentifier(type_ids_ArrayBoolean.type_identifier2()); - } - else + bool element_identifier_anonymous_array_bool_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_bool_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, element_identifier_anonymous_array_bool_10_ec))}; + if (!element_identifier_anonymous_array_bool_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_bool_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayBoolean.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_boolean.type_identifier2()._d()) { equiv_kind_anonymous_array_bool_10 = EK_BOTH; } @@ -1992,68 +936,21 @@ void register_ArrayBoolean_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_bool_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10", type_ids_var_array_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_bool_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10", type_ids_ArrayBoolean); - if (return_code_ArrayBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_bool_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_boolean; MemberId member_id_var_array_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayBoolean.type_identifier2()); - } - else + bool common_var_array_boolean_ec {false}; + CommonStructMember common_var_array_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, common_var_array_boolean_ec))}; + if (!common_var_array_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_array_boolean = "var_array_boolean"; @@ -2065,32 +962,26 @@ void register_ArrayBoolean_type_identifier( } CompleteStructType struct_type_ArrayBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayBoolean, header_ArrayBoolean, member_seq_ArrayBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoolean, type_name_ArrayBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoolean, type_name_ArrayBoolean.to_string(), type_ids_ArrayBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayBoolean", type_ids_ArrayBoolean); - if (return_code_ArrayBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayOctet) { + + ReturnCode_t return_code_ArrayOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayOctet", type_ids_ArrayOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayOctet) { - StructTypeFlag struct_flags_ArrayOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayOctet; - TypeIdentifierPair type_ids_ArrayOctet; QualifiedTypeName type_name_ArrayOctet = "ArrayOctet"; eprosima::fastcdr::optional type_ann_builtin_ArrayOctet; eprosima::fastcdr::optional ann_custom_ArrayOctet; @@ -2099,69 +990,33 @@ void register_ArrayOctet_type_identifier( header_ArrayOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayOctet); CompleteStructMemberSeq member_seq_ArrayOctet; { - return_code_ArrayOctet = + TypeIdentifierPair type_ids_var_array_octet; + ReturnCode_t return_code_var_array_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10", type_ids_ArrayOctet); + "anonymous_array_uint8_t_10", type_ids_var_array_octet); - if (return_code_ArrayOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { - return_code_ArrayOctet = + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ArrayOctet); + "_byte", type_ids_var_array_octet); - if (return_code_ArrayOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10 = new TypeIdentifier(type_ids_ArrayOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10 = new TypeIdentifier(type_ids_ArrayOctet.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, element_identifier_anonymous_array_uint8_t_10_ec))}; + if (!element_identifier_anonymous_array_uint8_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayOctet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_octet.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_10 = EK_BOTH; } @@ -2174,68 +1029,21 @@ void register_ArrayOctet_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10", type_ids_var_array_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10", type_ids_ArrayOctet); - if (return_code_ArrayOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_octet; MemberId member_id_var_array_octet = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_octet_ec {false}; + CommonStructMember common_var_array_octet {TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, common_var_array_octet_ec))}; + if (!common_var_array_octet_ec) { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_array_octet = "var_array_octet"; @@ -2247,32 +1055,26 @@ void register_ArrayOctet_type_identifier( } CompleteStructType struct_type_ArrayOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayOctet, header_ArrayOctet, member_seq_ArrayOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayOctet, type_name_ArrayOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayOctet, type_name_ArrayOctet.to_string(), type_ids_ArrayOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayOctet already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayOctet", type_ids_ArrayOctet); - if (return_code_ArrayOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayChar) { + + ReturnCode_t return_code_ArrayChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayChar", type_ids_ArrayChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayChar) { - StructTypeFlag struct_flags_ArrayChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayChar; - TypeIdentifierPair type_ids_ArrayChar; QualifiedTypeName type_name_ArrayChar = "ArrayChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayChar; eprosima::fastcdr::optional ann_custom_ArrayChar; @@ -2281,69 +1083,33 @@ void register_ArrayChar_type_identifier( header_ArrayChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayChar); CompleteStructMemberSeq member_seq_ArrayChar; { - return_code_ArrayChar = + TypeIdentifierPair type_ids_var_array_char; + ReturnCode_t return_code_var_array_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10", type_ids_ArrayChar); + "anonymous_array_char_10", type_ids_var_array_char); - if (return_code_ArrayChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { - return_code_ArrayChar = + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ArrayChar); + "_char", type_ids_var_array_char); - if (return_code_ArrayChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10 = new TypeIdentifier(type_ids_ArrayChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10 = new TypeIdentifier(type_ids_ArrayChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, element_identifier_anonymous_array_char_10_ec))}; + if (!element_identifier_anonymous_array_char_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_char.type_identifier2()._d()) { equiv_kind_anonymous_array_char_10 = EK_BOTH; } @@ -2356,68 +1122,21 @@ void register_ArrayChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10", type_ids_var_array_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10", type_ids_ArrayChar); - if (return_code_ArrayChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_char; MemberId member_id_var_array_char = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_char_ec {false}; + CommonStructMember common_var_array_char {TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, common_var_array_char_ec))}; + if (!common_var_array_char_ec) { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_char member TypeIdentifier inconsistent."); return; } MemberName name_var_array_char = "var_array_char"; @@ -2429,32 +1148,26 @@ void register_ArrayChar_type_identifier( } CompleteStructType struct_type_ArrayChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayChar, header_ArrayChar, member_seq_ArrayChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayChar, type_name_ArrayChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayChar, type_name_ArrayChar.to_string(), type_ids_ArrayChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayChar", type_ids_ArrayChar); - if (return_code_ArrayChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayWChar) { + + ReturnCode_t return_code_ArrayWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayWChar", type_ids_ArrayWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayWChar) { - StructTypeFlag struct_flags_ArrayWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayWChar; - TypeIdentifierPair type_ids_ArrayWChar; QualifiedTypeName type_name_ArrayWChar = "ArrayWChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayWChar; eprosima::fastcdr::optional ann_custom_ArrayWChar; @@ -2463,69 +1176,33 @@ void register_ArrayWChar_type_identifier( header_ArrayWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayWChar); CompleteStructMemberSeq member_seq_ArrayWChar; { - return_code_ArrayWChar = + TypeIdentifierPair type_ids_var_array_wchar; + ReturnCode_t return_code_var_array_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10", type_ids_ArrayWChar); + "anonymous_array_wchar_t_10", type_ids_var_array_wchar); - if (return_code_ArrayWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { - return_code_ArrayWChar = + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_ArrayWChar); + "_wchar_t", type_ids_var_array_wchar); - if (return_code_ArrayWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_wchar_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10 = new TypeIdentifier(type_ids_ArrayWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10 = new TypeIdentifier(type_ids_ArrayWChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_wchar_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_wchar_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, element_identifier_anonymous_array_wchar_t_10_ec))}; + if (!element_identifier_anonymous_array_wchar_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_wchar_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayWChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wchar.type_identifier2()._d()) { equiv_kind_anonymous_array_wchar_t_10 = EK_BOTH; } @@ -2538,68 +1215,21 @@ void register_ArrayWChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_wchar_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_wchar_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10", type_ids_var_array_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_wchar_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10", type_ids_ArrayWChar); - if (return_code_ArrayWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_wchar_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wchar; MemberId member_id_var_array_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_wchar_ec {false}; + CommonStructMember common_var_array_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, common_var_array_wchar_ec))}; + if (!common_var_array_wchar_ec) { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wchar = "var_array_wchar"; @@ -2611,32 +1241,26 @@ void register_ArrayWChar_type_identifier( } CompleteStructType struct_type_ArrayWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayWChar, header_ArrayWChar, member_seq_ArrayWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayWChar, type_name_ArrayWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayWChar, type_name_ArrayWChar.to_string(), type_ids_ArrayWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayWChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayWChar", type_ids_ArrayWChar); - if (return_code_ArrayWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayString) { + + ReturnCode_t return_code_ArrayString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayString", type_ids_ArrayString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayString) { - StructTypeFlag struct_flags_ArrayString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayString; - TypeIdentifierPair type_ids_ArrayString; QualifiedTypeName type_name_ArrayString = "ArrayString"; eprosima::fastcdr::optional type_ann_builtin_ArrayString; eprosima::fastcdr::optional ann_custom_ArrayString; @@ -2645,86 +1269,41 @@ void register_ArrayString_type_identifier( header_ArrayString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayString); CompleteStructMemberSeq member_seq_ArrayString; { - return_code_ArrayString = + TypeIdentifierPair type_ids_var_array_string; + ReturnCode_t return_code_var_array_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_10", type_ids_ArrayString); + "anonymous_array_anonymous_string_unbounded_10", type_ids_var_array_string); - if (return_code_ArrayString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { - return_code_ArrayString = + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayString); + "anonymous_string_unbounded", type_ids_var_array_string); - if (return_code_ArrayString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayString); - if (return_code_ArrayString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayString.type_identifier1()._d() || TK_NONE == type_ids_ArrayString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_10 = new TypeIdentifier(type_ids_ArrayString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_10 = new TypeIdentifier(type_ids_ArrayString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_unbounded_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, element_identifier_anonymous_array_anonymous_string_unbounded_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_unbounded_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_unbounded_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_unbounded_10 = EK_BOTH; } @@ -2737,68 +1316,21 @@ void register_ArrayString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_unbounded_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_unbounded_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_10", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_unbounded_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_10", type_ids_ArrayString); - if (return_code_ArrayString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_unbounded_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_string; MemberId member_id_var_array_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayString.type_identifier1()._d() || TK_NONE == type_ids_ArrayString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayString.type_identifier2()); - } - else + bool common_var_array_string_ec {false}; + CommonStructMember common_var_array_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, common_var_array_string_ec))}; + if (!common_var_array_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_string = "var_array_string"; @@ -2810,32 +1342,26 @@ void register_ArrayString_type_identifier( } CompleteStructType struct_type_ArrayString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayString, header_ArrayString, member_seq_ArrayString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayString, type_name_ArrayString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayString, type_name_ArrayString.to_string(), type_ids_ArrayString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayString", type_ids_ArrayString); - if (return_code_ArrayString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayWString) { + + ReturnCode_t return_code_ArrayWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayWString", type_ids_ArrayWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayWString) { - StructTypeFlag struct_flags_ArrayWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayWString; - TypeIdentifierPair type_ids_ArrayWString; QualifiedTypeName type_name_ArrayWString = "ArrayWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayWString; eprosima::fastcdr::optional ann_custom_ArrayWString; @@ -2844,86 +1370,41 @@ void register_ArrayWString_type_identifier( header_ArrayWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayWString); CompleteStructMemberSeq member_seq_ArrayWString; { - return_code_ArrayWString = + TypeIdentifierPair type_ids_var_array_wstring; + ReturnCode_t return_code_var_array_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10", type_ids_ArrayWString); + "anonymous_array_anonymous_wstring_unbounded_10", type_ids_var_array_wstring); - if (return_code_ArrayWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { - return_code_ArrayWString = + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayWString); + "anonymous_wstring_unbounded", type_ids_var_array_wstring); - if (return_code_ArrayWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_array_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayWString); - if (return_code_ArrayWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10 = new TypeIdentifier(type_ids_ArrayWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10 = new TypeIdentifier(type_ids_ArrayWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_unbounded_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_unbounded_10 = EK_BOTH; } @@ -2936,68 +1417,21 @@ void register_ArrayWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_unbounded_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_unbounded_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10", type_ids_var_array_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_unbounded_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10", type_ids_ArrayWString); - if (return_code_ArrayWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_unbounded_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wstring; MemberId member_id_var_array_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayWString.type_identifier2()); - } - else + bool common_var_array_wstring_ec {false}; + CommonStructMember common_var_array_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, common_var_array_wstring_ec))}; + if (!common_var_array_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wstring = "var_array_wstring"; @@ -3009,32 +1443,26 @@ void register_ArrayWString_type_identifier( } CompleteStructType struct_type_ArrayWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayWString, header_ArrayWString, member_seq_ArrayWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayWString, type_name_ArrayWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayWString, type_name_ArrayWString.to_string(), type_ids_ArrayWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayWString", type_ids_ArrayWString); - if (return_code_ArrayWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayBoundedString) { + + ReturnCode_t return_code_ArrayBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayBoundedString", type_ids_ArrayBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayBoundedString) { - StructTypeFlag struct_flags_ArrayBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayBoundedString; - TypeIdentifierPair type_ids_ArrayBoundedString; QualifiedTypeName type_name_ArrayBoundedString = "ArrayBoundedString"; eprosima::fastcdr::optional type_ann_builtin_ArrayBoundedString; eprosima::fastcdr::optional ann_custom_ArrayBoundedString; @@ -3043,164 +1471,31 @@ void register_ArrayBoundedString_type_identifier( header_ArrayBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayBoundedString); CompleteStructMemberSeq member_seq_ArrayBoundedString; { - return_code_ArrayBoundedString = + TypeIdentifierPair type_ids_var_array_bounded_string; + ReturnCode_t return_code_var_array_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_10", type_ids_ArrayBoundedString); + "anonymous_array_anonymous_string_10_10", type_ids_var_array_bounded_string); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) { - return_code_ArrayBoundedString = + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayBoundedString); - - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_ArrayBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayBoundedString); + "Inner_alias_bounded_string_helper", type_ids_var_array_bounded_string); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayBoundedString); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayBoundedString); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_array_bounded_string); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_10 = new TypeIdentifier(type_ids_ArrayBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_10 = new TypeIdentifier(type_ids_ArrayBoundedString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, element_identifier_anonymous_array_anonymous_string_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayBoundedString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_10_10 = EK_BOTH; } @@ -3213,68 +1508,21 @@ void register_ArrayBoundedString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_10", type_ids_var_array_bounded_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_10", type_ids_ArrayBoundedString); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_string; MemberId member_id_var_array_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayBoundedString.type_identifier2()); - } - else + bool common_var_array_bounded_string_ec {false}; + CommonStructMember common_var_array_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, common_var_array_bounded_string_ec))}; + if (!common_var_array_bounded_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_string = "var_array_bounded_string"; @@ -3286,32 +1534,26 @@ void register_ArrayBoundedString_type_identifier( } CompleteStructType struct_type_ArrayBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayBoundedString, header_ArrayBoundedString, member_seq_ArrayBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoundedString, type_name_ArrayBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoundedString, type_name_ArrayBoundedString.to_string(), type_ids_ArrayBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayBoundedString", type_ids_ArrayBoundedString); - if (return_code_ArrayBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayBoundedWString) { + + ReturnCode_t return_code_ArrayBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayBoundedWString", type_ids_ArrayBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayBoundedWString) { - StructTypeFlag struct_flags_ArrayBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayBoundedWString; - TypeIdentifierPair type_ids_ArrayBoundedWString; QualifiedTypeName type_name_ArrayBoundedWString = "ArrayBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayBoundedWString; eprosima::fastcdr::optional ann_custom_ArrayBoundedWString; @@ -3320,164 +1562,31 @@ void register_ArrayBoundedWString_type_identifier( header_ArrayBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayBoundedWString); CompleteStructMemberSeq member_seq_ArrayBoundedWString; { - return_code_ArrayBoundedWString = + TypeIdentifierPair type_ids_var_array_bounded_wstring; + ReturnCode_t return_code_var_array_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10", type_ids_ArrayBoundedWString); + "anonymous_array_anonymous_wstring_10_10", type_ids_var_array_bounded_wstring); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) { - return_code_ArrayBoundedWString = + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayBoundedWString); - - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_ArrayBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayBoundedWString); + "Inner_alias_bounded_wstring_helper", type_ids_var_array_bounded_wstring); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayBoundedWString); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayBoundedWString); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_array_bounded_wstring); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10 = new TypeIdentifier(type_ids_ArrayBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10 = new TypeIdentifier(type_ids_ArrayBoundedWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, element_identifier_anonymous_array_anonymous_wstring_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayBoundedWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_10_10 = EK_BOTH; } @@ -3490,68 +1599,21 @@ void register_ArrayBoundedWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10", type_ids_var_array_bounded_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10", type_ids_ArrayBoundedWString); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_wstring; MemberId member_id_var_array_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayBoundedWString.type_identifier2()); - } - else + bool common_var_array_bounded_wstring_ec {false}; + CommonStructMember common_var_array_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, common_var_array_bounded_wstring_ec))}; + if (!common_var_array_bounded_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_wstring = "var_array_bounded_wstring"; @@ -3563,32 +1625,26 @@ void register_ArrayBoundedWString_type_identifier( } CompleteStructType struct_type_ArrayBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayBoundedWString, header_ArrayBoundedWString, member_seq_ArrayBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoundedWString, type_name_ArrayBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBoundedWString, type_name_ArrayBoundedWString.to_string(), type_ids_ArrayBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayBoundedWString", type_ids_ArrayBoundedWString); - if (return_code_ArrayBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayEnum) { + + ReturnCode_t return_code_ArrayEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayEnum", type_ids_ArrayEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayEnum) { - StructTypeFlag struct_flags_ArrayEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayEnum; - TypeIdentifierPair type_ids_ArrayEnum; QualifiedTypeName type_name_ArrayEnum = "ArrayEnum"; eprosima::fastcdr::optional type_ann_builtin_ArrayEnum; eprosima::fastcdr::optional ann_custom_ArrayEnum; @@ -3597,122 +1653,31 @@ void register_ArrayEnum_type_identifier( header_ArrayEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayEnum); CompleteStructMemberSeq member_seq_ArrayEnum; { - return_code_ArrayEnum = + TypeIdentifierPair type_ids_var_array_enum; + ReturnCode_t return_code_var_array_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10", type_ids_ArrayEnum); + "anonymous_array_InnerEnumHelper_10", type_ids_var_array_enum); - if (return_code_ArrayEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) { - return_code_ArrayEnum = + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayEnum); - - if (return_code_ArrayEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayEnum); - if (return_code_ArrayEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerEnumHelper", type_ids_var_array_enum); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) + { + ::register_InnerEnumHelper_type_identifier(type_ids_var_array_enum); } - TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10 = new TypeIdentifier(type_ids_ArrayEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10 = new TypeIdentifier(type_ids_ArrayEnum.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerEnumHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, element_identifier_anonymous_array_InnerEnumHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerEnumHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerEnumHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayEnum.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_enum.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerEnumHelper_10 = EK_BOTH; } @@ -3725,68 +1690,21 @@ void register_ArrayEnum_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerEnumHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerEnumHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10", type_ids_var_array_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerEnumHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10", type_ids_ArrayEnum); - if (return_code_ArrayEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerEnumHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_enum; MemberId member_id_var_array_enum = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayEnum.type_identifier2()); - } - else + bool common_var_array_enum_ec {false}; + CommonStructMember common_var_array_enum {TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, common_var_array_enum_ec))}; + if (!common_var_array_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_array_enum = "var_array_enum"; @@ -3798,32 +1716,26 @@ void register_ArrayEnum_type_identifier( } CompleteStructType struct_type_ArrayEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayEnum, header_ArrayEnum, member_seq_ArrayEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayEnum, type_name_ArrayEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayEnum, type_name_ArrayEnum.to_string(), type_ids_ArrayEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayEnum already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayEnum", type_ids_ArrayEnum); - if (return_code_ArrayEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayBitMask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayBitMask) { + + ReturnCode_t return_code_ArrayBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayBitMask", type_ids_ArrayBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayBitMask) { - StructTypeFlag struct_flags_ArrayBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayBitMask; - TypeIdentifierPair type_ids_ArrayBitMask; QualifiedTypeName type_name_ArrayBitMask = "ArrayBitMask"; eprosima::fastcdr::optional type_ann_builtin_ArrayBitMask; eprosima::fastcdr::optional ann_custom_ArrayBitMask; @@ -3832,155 +1744,31 @@ void register_ArrayBitMask_type_identifier( header_ArrayBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayBitMask); CompleteStructMemberSeq member_seq_ArrayBitMask; { - return_code_ArrayBitMask = + TypeIdentifierPair type_ids_var_array_bitmask; + ReturnCode_t return_code_var_array_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10", type_ids_ArrayBitMask); + "anonymous_array_InnerBitMaskHelper_10", type_ids_var_array_bitmask); - if (return_code_ArrayBitMask != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) { - return_code_ArrayBitMask = + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayBitMask); - - if (return_code_ArrayBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayBitMask); - if (return_code_ArrayBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerBitMaskHelper", type_ids_var_array_bitmask); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_array_bitmask); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10 = new TypeIdentifier(type_ids_ArrayBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10 = new TypeIdentifier(type_ids_ArrayBitMask.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitMaskHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, element_identifier_anonymous_array_InnerBitMaskHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitMaskHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitMaskHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayBitMask.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitmask.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitMaskHelper_10 = EK_BOTH; } @@ -3993,68 +1781,21 @@ void register_ArrayBitMask_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitMaskHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitMaskHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10", type_ids_var_array_bitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitMaskHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10", type_ids_ArrayBitMask); - if (return_code_ArrayBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitMaskHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitmask; MemberId member_id_var_array_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayBitMask.type_identifier2()); - } - else + bool common_var_array_bitmask_ec {false}; + CommonStructMember common_var_array_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, common_var_array_bitmask_ec))}; + if (!common_var_array_bitmask_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitmask = "var_array_bitmask"; @@ -4066,32 +1807,26 @@ void register_ArrayBitMask_type_identifier( } CompleteStructType struct_type_ArrayBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayBitMask, header_ArrayBitMask, member_seq_ArrayBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBitMask, type_name_ArrayBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBitMask, type_name_ArrayBitMask.to_string(), type_ids_ArrayBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayBitMask", type_ids_ArrayBitMask); - if (return_code_ArrayBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayAlias) { + + ReturnCode_t return_code_ArrayAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayAlias", type_ids_ArrayAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayAlias) { - StructTypeFlag struct_flags_ArrayAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayAlias; - TypeIdentifierPair type_ids_ArrayAlias; QualifiedTypeName type_name_ArrayAlias = "ArrayAlias"; eprosima::fastcdr::optional type_ann_builtin_ArrayAlias; eprosima::fastcdr::optional ann_custom_ArrayAlias; @@ -4100,147 +1835,31 @@ void register_ArrayAlias_type_identifier( header_ArrayAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayAlias); CompleteStructMemberSeq member_seq_ArrayAlias; { - return_code_ArrayAlias = + TypeIdentifierPair type_ids_var_array_alias; + ReturnCode_t return_code_var_array_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10", type_ids_ArrayAlias); + "anonymous_array_InnerAliasHelper_10", type_ids_var_array_alias); - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) { - return_code_ArrayAlias = + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayAlias); - - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_ArrayAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayAlias); + "InnerAliasHelper", type_ids_var_array_alias); - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayAlias); - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) + { + ::register_InnerAliasHelper_type_identifier(type_ids_var_array_alias); } - TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10 = new TypeIdentifier(type_ids_ArrayAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10 = new TypeIdentifier(type_ids_ArrayAlias.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerAliasHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, element_identifier_anonymous_array_InnerAliasHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerAliasHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerAliasHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayAlias.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_alias.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerAliasHelper_10 = EK_BOTH; } @@ -4253,68 +1872,21 @@ void register_ArrayAlias_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerAliasHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerAliasHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10", type_ids_var_array_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerAliasHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10", type_ids_ArrayAlias); - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerAliasHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_alias; MemberId member_id_var_array_alias = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayAlias.type_identifier2()); - } - else + bool common_var_array_alias_ec {false}; + CommonStructMember common_var_array_alias {TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, common_var_array_alias_ec))}; + if (!common_var_array_alias_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_array_alias = "var_array_alias"; @@ -4326,32 +1898,26 @@ void register_ArrayAlias_type_identifier( } CompleteStructType struct_type_ArrayAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayAlias, header_ArrayAlias, member_seq_ArrayAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayAlias, type_name_ArrayAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayAlias, type_name_ArrayAlias.to_string(), type_ids_ArrayAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayAlias already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayAlias", type_ids_ArrayAlias); - if (return_code_ArrayAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayShortArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayShortArray) { + + ReturnCode_t return_code_ArrayShortArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayShortArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayShortArray", type_ids_ArrayShortArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayShortArray) { - StructTypeFlag struct_flags_ArrayShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayShortArray; - TypeIdentifierPair type_ids_ArrayShortArray; QualifiedTypeName type_name_ArrayShortArray = "ArrayShortArray"; eprosima::fastcdr::optional type_ann_builtin_ArrayShortArray; eprosima::fastcdr::optional ann_custom_ArrayShortArray; @@ -4360,69 +1926,33 @@ void register_ArrayShortArray_type_identifier( header_ArrayShortArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayShortArray); CompleteStructMemberSeq member_seq_ArrayShortArray; { - return_code_ArrayShortArray = + TypeIdentifierPair type_ids_var_array_short_array; + ReturnCode_t return_code_var_array_short_array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10", type_ids_ArrayShortArray); + "anonymous_array_int16_t_10_10", type_ids_var_array_short_array); - if (return_code_ArrayShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short_array) { - return_code_ArrayShortArray = + return_code_var_array_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArrayShortArray); + "_int16_t", type_ids_var_array_short_array); - if (return_code_ArrayShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short_array) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1()._d() || TK_NONE == type_ids_ArrayShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10 = new TypeIdentifier(type_ids_ArrayShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10 = new TypeIdentifier(type_ids_ArrayShortArray.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short_array, element_identifier_anonymous_array_int16_t_10_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayShortArray.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short_array.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10_10 = EK_BOTH; } @@ -4437,68 +1967,21 @@ void register_ArrayShortArray_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10", type_ids_var_array_short_array)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10", type_ids_ArrayShortArray); - if (return_code_ArrayShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short_array; MemberId member_id_var_array_short_array = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1()._d() || TK_NONE == type_ids_ArrayShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, type_ids_ArrayShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, type_ids_ArrayShortArray.type_identifier2()); - } - else + bool common_var_array_short_array_ec {false}; + CommonStructMember common_var_array_short_array {TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short_array, common_var_array_short_array_ec))}; + if (!common_var_array_short_array_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short_array member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short_array member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short_array = "var_array_short_array"; @@ -4510,32 +1993,26 @@ void register_ArrayShortArray_type_identifier( } CompleteStructType struct_type_ArrayShortArray = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayShortArray, header_ArrayShortArray, member_seq_ArrayShortArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayShortArray, type_name_ArrayShortArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayShortArray, type_name_ArrayShortArray.to_string(), type_ids_ArrayShortArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayShortArray already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayShortArray", type_ids_ArrayShortArray); - if (return_code_ArrayShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayShortArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySequence) { + + ReturnCode_t return_code_ArraySequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySequence", type_ids_ArraySequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySequence) { - StructTypeFlag struct_flags_ArraySequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySequence; - TypeIdentifierPair type_ids_ArraySequence; QualifiedTypeName type_name_ArraySequence = "ArraySequence"; eprosima::fastcdr::optional type_ann_builtin_ArraySequence; eprosima::fastcdr::optional ann_custom_ArraySequence; @@ -4544,75 +2021,39 @@ void register_ArraySequence_type_identifier( header_ArraySequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySequence); CompleteStructMemberSeq member_seq_ArraySequence; { - return_code_ArraySequence = + TypeIdentifierPair type_ids_var_array_sequence; + ReturnCode_t return_code_var_array_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10", type_ids_ArraySequence); + "anonymous_array_anonymous_sequence_int32_t_unbounded_10", type_ids_var_array_sequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArraySequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArraySequence); + "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArraySequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySequence); + "_int32_t", type_ids_var_array_sequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArraySequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySequence.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -4623,69 +2064,22 @@ void register_ArraySequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArraySequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10 = new TypeIdentifier(type_ids_ArraySequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10 = new TypeIdentifier(type_ids_ArraySequence.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10 = EK_BOTH; } @@ -4698,68 +2092,21 @@ void register_ArraySequence_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_sequence_int32_t_unbounded_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_sequence_int32_t_unbounded_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10", type_ids_ArraySequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_sequence_int32_t_unbounded_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_sequence; MemberId member_id_var_array_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArraySequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArraySequence.type_identifier2()); - } - else + bool common_var_array_sequence_ec {false}; + CommonStructMember common_var_array_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, common_var_array_sequence_ec))}; + if (!common_var_array_sequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_array_sequence = "var_array_sequence"; @@ -4771,32 +2118,26 @@ void register_ArraySequence_type_identifier( } CompleteStructType struct_type_ArraySequence = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySequence, header_ArraySequence, member_seq_ArraySequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySequence, type_name_ArraySequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySequence, type_name_ArraySequence.to_string(), type_ids_ArraySequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySequence already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySequence", type_ids_ArraySequence); - if (return_code_ArraySequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMap) { + + ReturnCode_t return_code_ArrayMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMap", type_ids_ArrayMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMap) { - StructTypeFlag struct_flags_ArrayMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMap; - TypeIdentifierPair type_ids_ArrayMap; QualifiedTypeName type_name_ArrayMap = "ArrayMap"; eprosima::fastcdr::optional type_ann_builtin_ArrayMap; eprosima::fastcdr::optional ann_custom_ArrayMap; @@ -4805,126 +2146,54 @@ void register_ArrayMap_type_identifier( header_ArrayMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMap); CompleteStructMemberSeq member_seq_ArrayMap; { - return_code_ArrayMap = + TypeIdentifierPair type_ids_var_array_map; + ReturnCode_t return_code_var_array_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10", type_ids_ArrayMap); + "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10", type_ids_var_array_map); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMap); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_ArrayMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -4947,69 +2216,22 @@ void register_ArrayMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMap); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 = new TypeIdentifier(type_ids_ArrayMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 = new TypeIdentifier(type_ids_ArrayMap.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMap.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_map.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 = EK_BOTH; } @@ -5022,68 +2244,21 @@ void register_ArrayMap_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10", type_ids_ArrayMap); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_map; MemberId member_id_var_array_map = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMap.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_map_ec {false}; + CommonStructMember common_var_array_map {TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, common_var_array_map_ec))}; + if (!common_var_array_map_ec) { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_map member TypeIdentifier inconsistent."); return; } MemberName name_var_array_map = "var_array_map"; @@ -5095,32 +2270,26 @@ void register_ArrayMap_type_identifier( } CompleteStructType struct_type_ArrayMap = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMap, header_ArrayMap, member_seq_ArrayMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMap, type_name_ArrayMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMap, type_name_ArrayMap.to_string(), type_ids_ArrayMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMap already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMap", type_ids_ArrayMap); - if (return_code_ArrayMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayUnion) { + + ReturnCode_t return_code_ArrayUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayUnion", type_ids_ArrayUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayUnion) { - StructTypeFlag struct_flags_ArrayUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayUnion; - TypeIdentifierPair type_ids_ArrayUnion; QualifiedTypeName type_name_ArrayUnion = "ArrayUnion"; eprosima::fastcdr::optional type_ann_builtin_ArrayUnion; eprosima::fastcdr::optional ann_custom_ArrayUnion; @@ -5129,346 +2298,31 @@ void register_ArrayUnion_type_identifier( header_ArrayUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayUnion); CompleteStructMemberSeq member_seq_ArrayUnion; { - return_code_ArrayUnion = + TypeIdentifierPair type_ids_var_array_union; + ReturnCode_t return_code_var_array_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10", type_ids_ArrayUnion); + "anonymous_array_InnerUnionHelper_10", type_ids_var_array_union); - if (return_code_ArrayUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - return_code_ArrayUnion = + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_ArrayUnion); + "InnerUnionHelper", type_ids_var_array_union); - if (return_code_ArrayUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayUnion = return_code_InnerUnionHelper; - type_ids_ArrayUnion = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_array_union); } - TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10 = new TypeIdentifier(type_ids_ArrayUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10 = new TypeIdentifier(type_ids_ArrayUnion.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerUnionHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, element_identifier_anonymous_array_InnerUnionHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerUnionHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerUnionHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayUnion.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_union.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerUnionHelper_10 = EK_BOTH; } @@ -5481,68 +2335,21 @@ void register_ArrayUnion_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerUnionHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerUnionHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10", type_ids_var_array_union)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerUnionHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10", type_ids_ArrayUnion); - if (return_code_ArrayUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerUnionHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_union; MemberId member_id_var_array_union = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayUnion.type_identifier2()); - } - else + bool common_var_array_union_ec {false}; + CommonStructMember common_var_array_union {TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, common_var_array_union_ec))}; + if (!common_var_array_union_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_union member TypeIdentifier inconsistent."); return; } MemberName name_var_array_union = "var_array_union"; @@ -5554,32 +2361,26 @@ void register_ArrayUnion_type_identifier( } CompleteStructType struct_type_ArrayUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayUnion, header_ArrayUnion, member_seq_ArrayUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayUnion, type_name_ArrayUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayUnion, type_name_ArrayUnion.to_string(), type_ids_ArrayUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayUnion already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayUnion", type_ids_ArrayUnion); - if (return_code_ArrayUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayStructure) { + + ReturnCode_t return_code_ArrayStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayStructure", type_ids_ArrayStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayStructure) { - StructTypeFlag struct_flags_ArrayStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayStructure; - TypeIdentifierPair type_ids_ArrayStructure; QualifiedTypeName type_name_ArrayStructure = "ArrayStructure"; eprosima::fastcdr::optional type_ann_builtin_ArrayStructure; eprosima::fastcdr::optional ann_custom_ArrayStructure; @@ -5588,236 +2389,31 @@ void register_ArrayStructure_type_identifier( header_ArrayStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayStructure); CompleteStructMemberSeq member_seq_ArrayStructure; { - return_code_ArrayStructure = + TypeIdentifierPair type_ids_var_array_structure; + ReturnCode_t return_code_var_array_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_10", type_ids_ArrayStructure); + "anonymous_array_InnerStructureHelper_10", type_ids_var_array_structure); - if (return_code_ArrayStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - return_code_ArrayStructure = + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_ArrayStructure); + "InnerStructureHelper", type_ids_var_array_structure); - if (return_code_ArrayStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayStructure = return_code_InnerStructureHelper; - type_ids_ArrayStructure = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_array_structure); } - TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_10 = new TypeIdentifier(type_ids_ArrayStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_10 = new TypeIdentifier(type_ids_ArrayStructure.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerStructureHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, element_identifier_anonymous_array_InnerStructureHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerStructureHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerStructureHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayStructure.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_structure.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerStructureHelper_10 = EK_BOTH; } @@ -5830,68 +2426,21 @@ void register_ArrayStructure_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerStructureHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerStructureHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_10", type_ids_var_array_structure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerStructureHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_10", type_ids_ArrayStructure); - if (return_code_ArrayStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerStructureHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_structure; MemberId member_id_var_array_structure = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayStructure.type_identifier2()); - } - else + bool common_var_array_structure_ec {false}; + CommonStructMember common_var_array_structure {TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, common_var_array_structure_ec))}; + if (!common_var_array_structure_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_array_structure = "var_array_structure"; @@ -5903,32 +2452,26 @@ void register_ArrayStructure_type_identifier( } CompleteStructType struct_type_ArrayStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayStructure, header_ArrayStructure, member_seq_ArrayStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayStructure, type_name_ArrayStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayStructure, type_name_ArrayStructure.to_string(), type_ids_ArrayStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayStructure already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayStructure", type_ids_ArrayStructure); - if (return_code_ArrayStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayBitset) { + + ReturnCode_t return_code_ArrayBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayBitset", type_ids_ArrayBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayBitset) { - StructTypeFlag struct_flags_ArrayBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayBitset; - TypeIdentifierPair type_ids_ArrayBitset; QualifiedTypeName type_name_ArrayBitset = "ArrayBitset"; eprosima::fastcdr::optional type_ann_builtin_ArrayBitset; eprosima::fastcdr::optional ann_custom_ArrayBitset; @@ -5937,141 +2480,31 @@ void register_ArrayBitset_type_identifier( header_ArrayBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayBitset); CompleteStructMemberSeq member_seq_ArrayBitset; { - return_code_ArrayBitset = + TypeIdentifierPair type_ids_var_array_bitset; + ReturnCode_t return_code_var_array_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10", type_ids_ArrayBitset); + "anonymous_array_InnerBitsetHelper_10", type_ids_var_array_bitset); - if (return_code_ArrayBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - return_code_ArrayBitset = + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayBitset); + "InnerBitsetHelper", type_ids_var_array_bitset); - if (return_code_ArrayBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayBitset); - if (return_code_ArrayBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_array_bitset); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1()._d() || TK_NONE == type_ids_ArrayBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10 = new TypeIdentifier(type_ids_ArrayBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10 = new TypeIdentifier(type_ids_ArrayBitset.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitsetHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, element_identifier_anonymous_array_InnerBitsetHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitsetHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitsetHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayBitset.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitset.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitsetHelper_10 = EK_BOTH; } @@ -6084,68 +2517,21 @@ void register_ArrayBitset_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitsetHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitsetHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10", type_ids_var_array_bitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitsetHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10", type_ids_ArrayBitset); - if (return_code_ArrayBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitsetHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitset; MemberId member_id_var_array_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1()._d() || TK_NONE == type_ids_ArrayBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bitset_ec {false}; + CommonStructMember common_var_array_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, common_var_array_bitset_ec))}; + if (!common_var_array_bitset_ec) { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitset = "var_array_bitset"; @@ -6157,32 +2543,26 @@ void register_ArrayBitset_type_identifier( } CompleteStructType struct_type_ArrayBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayBitset, header_ArrayBitset, member_seq_ArrayBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBitset, type_name_ArrayBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayBitset, type_name_ArrayBitset.to_string(), type_ids_ArrayBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayBitset already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayBitset", type_ids_ArrayBitset); - if (return_code_ArrayBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionShort) { + + ReturnCode_t return_code_ArrayMultiDimensionShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionShort", type_ids_ArrayMultiDimensionShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionShort) { - StructTypeFlag struct_flags_ArrayMultiDimensionShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionShort; - TypeIdentifierPair type_ids_ArrayMultiDimensionShort; QualifiedTypeName type_name_ArrayMultiDimensionShort = "ArrayMultiDimensionShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionShort; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionShort; @@ -6191,69 +2571,33 @@ void register_ArrayMultiDimensionShort_type_identifier( header_ArrayMultiDimensionShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionShort); CompleteStructMemberSeq member_seq_ArrayMultiDimensionShort; { - return_code_ArrayMultiDimensionShort = + TypeIdentifierPair type_ids_var_array_short; + ReturnCode_t return_code_var_array_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10_10", type_ids_ArrayMultiDimensionShort); + "anonymous_array_int16_t_10_10_10", type_ids_var_array_short); - if (return_code_ArrayMultiDimensionShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { - return_code_ArrayMultiDimensionShort = + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArrayMultiDimensionShort); + "_int16_t", type_ids_var_array_short); - if (return_code_ArrayMultiDimensionShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, element_identifier_anonymous_array_int16_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10_10_10 = EK_BOTH; } @@ -6270,68 +2614,21 @@ void register_ArrayMultiDimensionShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10_10", type_ids_var_array_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10_10", type_ids_ArrayMultiDimensionShort); - if (return_code_ArrayMultiDimensionShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short; MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_short_ec {false}; + CommonStructMember common_var_array_short {TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, common_var_array_short_ec))}; + if (!common_var_array_short_ec) { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayMultiDimensionShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayMultiDimensionShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short = "var_array_short"; @@ -6343,32 +2640,26 @@ void register_ArrayMultiDimensionShort_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionShort, header_ArrayMultiDimensionShort, member_seq_ArrayMultiDimensionShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionShort, type_name_ArrayMultiDimensionShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionShort, type_name_ArrayMultiDimensionShort.to_string(), type_ids_ArrayMultiDimensionShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionShort", type_ids_ArrayMultiDimensionShort); - if (return_code_ArrayMultiDimensionShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionUShort) { + + ReturnCode_t return_code_ArrayMultiDimensionUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionUShort", type_ids_ArrayMultiDimensionUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionUShort) { - StructTypeFlag struct_flags_ArrayMultiDimensionUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionUShort; - TypeIdentifierPair type_ids_ArrayMultiDimensionUShort; QualifiedTypeName type_name_ArrayMultiDimensionUShort = "ArrayMultiDimensionUShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionUShort; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionUShort; @@ -6377,69 +2668,33 @@ void register_ArrayMultiDimensionUShort_type_identifier( header_ArrayMultiDimensionUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionUShort); CompleteStructMemberSeq member_seq_ArrayMultiDimensionUShort; { - return_code_ArrayMultiDimensionUShort = + TypeIdentifierPair type_ids_var_array_ushort; + ReturnCode_t return_code_var_array_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10_10_10", type_ids_ArrayMultiDimensionUShort); + "anonymous_array_uint16_t_10_10_10", type_ids_var_array_ushort); - if (return_code_ArrayMultiDimensionUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { - return_code_ArrayMultiDimensionUShort = + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ArrayMultiDimensionUShort); + "_uint16_t", type_ids_var_array_ushort); - if (return_code_ArrayMultiDimensionUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionUShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, element_identifier_anonymous_array_uint16_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_uint16_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ushort.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_10_10_10 = EK_BOTH; } @@ -6456,68 +2711,21 @@ void register_ArrayMultiDimensionUShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10_10_10", type_ids_var_array_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10_10_10", type_ids_ArrayMultiDimensionUShort); - if (return_code_ArrayMultiDimensionUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ushort; MemberId member_id_var_array_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayMultiDimensionUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_ushort_ec {false}; + CommonStructMember common_var_array_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, common_var_array_ushort_ec))}; + if (!common_var_array_ushort_ec) { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayMultiDimensionUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ushort = "var_array_ushort"; @@ -6529,32 +2737,26 @@ void register_ArrayMultiDimensionUShort_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionUShort, header_ArrayMultiDimensionUShort, member_seq_ArrayMultiDimensionUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionUShort, type_name_ArrayMultiDimensionUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionUShort, type_name_ArrayMultiDimensionUShort.to_string(), type_ids_ArrayMultiDimensionUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionUShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionUShort", type_ids_ArrayMultiDimensionUShort); - if (return_code_ArrayMultiDimensionUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLong) { + + ReturnCode_t return_code_ArrayMultiDimensionLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLong", type_ids_ArrayMultiDimensionLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLong; QualifiedTypeName type_name_ArrayMultiDimensionLong = "ArrayMultiDimensionLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLong; @@ -6563,69 +2765,33 @@ void register_ArrayMultiDimensionLong_type_identifier( header_ArrayMultiDimensionLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLong; { - return_code_ArrayMultiDimensionLong = + TypeIdentifierPair type_ids_var_array_long; + ReturnCode_t return_code_var_array_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10_10_10", type_ids_ArrayMultiDimensionLong); + "anonymous_array_int32_t_10_10_10", type_ids_var_array_long); - if (return_code_ArrayMultiDimensionLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { - return_code_ArrayMultiDimensionLong = + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLong); + "_int32_t", type_ids_var_array_long); - if (return_code_ArrayMultiDimensionLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, element_identifier_anonymous_array_int32_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_int32_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_long.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_10_10_10 = EK_BOTH; } @@ -6642,68 +2808,21 @@ void register_ArrayMultiDimensionLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10_10_10", type_ids_var_array_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10_10_10", type_ids_ArrayMultiDimensionLong); - if (return_code_ArrayMultiDimensionLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_long; MemberId member_id_var_array_long = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayMultiDimensionLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayMultiDimensionLong.type_identifier2()); - } - else + bool common_var_array_long_ec {false}; + CommonStructMember common_var_array_long {TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, common_var_array_long_ec))}; + if (!common_var_array_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_long member TypeIdentifier inconsistent."); return; } MemberName name_var_array_long = "var_array_long"; @@ -6715,32 +2834,26 @@ void register_ArrayMultiDimensionLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLong, header_ArrayMultiDimensionLong, member_seq_ArrayMultiDimensionLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLong, type_name_ArrayMultiDimensionLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLong, type_name_ArrayMultiDimensionLong.to_string(), type_ids_ArrayMultiDimensionLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLong", type_ids_ArrayMultiDimensionLong); - if (return_code_ArrayMultiDimensionLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionULong) { + + ReturnCode_t return_code_ArrayMultiDimensionULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionULong", type_ids_ArrayMultiDimensionULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionULong) { - StructTypeFlag struct_flags_ArrayMultiDimensionULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionULong; - TypeIdentifierPair type_ids_ArrayMultiDimensionULong; QualifiedTypeName type_name_ArrayMultiDimensionULong = "ArrayMultiDimensionULong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionULong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionULong; @@ -6749,69 +2862,33 @@ void register_ArrayMultiDimensionULong_type_identifier( header_ArrayMultiDimensionULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionULong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionULong; { - return_code_ArrayMultiDimensionULong = + TypeIdentifierPair type_ids_var_array_ulong; + ReturnCode_t return_code_var_array_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10_10_10", type_ids_ArrayMultiDimensionULong); + "anonymous_array_uint32_t_10_10_10", type_ids_var_array_ulong); - if (return_code_ArrayMultiDimensionULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { - return_code_ArrayMultiDimensionULong = + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ArrayMultiDimensionULong); + "_uint32_t", type_ids_var_array_ulong); - if (return_code_ArrayMultiDimensionULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionULong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, element_identifier_anonymous_array_uint32_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_uint32_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_10_10_10 = EK_BOTH; } @@ -6828,68 +2905,21 @@ void register_ArrayMultiDimensionULong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10_10_10", type_ids_var_array_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10_10_10", type_ids_ArrayMultiDimensionULong); - if (return_code_ArrayMultiDimensionULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulong; MemberId member_id_var_array_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayMultiDimensionULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_ulong_ec {false}; + CommonStructMember common_var_array_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, common_var_array_ulong_ec))}; + if (!common_var_array_ulong_ec) { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayMultiDimensionULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulong = "var_array_ulong"; @@ -6901,32 +2931,26 @@ void register_ArrayMultiDimensionULong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionULong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionULong, header_ArrayMultiDimensionULong, member_seq_ArrayMultiDimensionULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionULong, type_name_ArrayMultiDimensionULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionULong, type_name_ArrayMultiDimensionULong.to_string(), type_ids_ArrayMultiDimensionULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionULong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionULong", type_ids_ArrayMultiDimensionULong); - if (return_code_ArrayMultiDimensionULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLongLong) { + + ReturnCode_t return_code_ArrayMultiDimensionLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLongLong", type_ids_ArrayMultiDimensionLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLongLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLongLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLongLong; QualifiedTypeName type_name_ArrayMultiDimensionLongLong = "ArrayMultiDimensionLongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLongLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLongLong; @@ -6935,69 +2959,33 @@ void register_ArrayMultiDimensionLongLong_type_identifier( header_ArrayMultiDimensionLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLongLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLongLong; { - return_code_ArrayMultiDimensionLongLong = + TypeIdentifierPair type_ids_var_array_longlong; + ReturnCode_t return_code_var_array_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10_10_10", type_ids_ArrayMultiDimensionLongLong); + "anonymous_array_int64_t_10_10_10", type_ids_var_array_longlong); - if (return_code_ArrayMultiDimensionLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { - return_code_ArrayMultiDimensionLongLong = + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ArrayMultiDimensionLongLong); + "_int64_t", type_ids_var_array_longlong); - if (return_code_ArrayMultiDimensionLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, element_identifier_anonymous_array_int64_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_int64_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longlong.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_10_10_10 = EK_BOTH; } @@ -7014,68 +3002,21 @@ void register_ArrayMultiDimensionLongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10_10_10", type_ids_var_array_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10_10_10", type_ids_ArrayMultiDimensionLongLong); - if (return_code_ArrayMultiDimensionLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longlong; MemberId member_id_var_array_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longlong_ec {false}; + CommonStructMember common_var_array_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, common_var_array_longlong_ec))}; + if (!common_var_array_longlong_ec) { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayMultiDimensionLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayMultiDimensionLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longlong = "var_array_longlong"; @@ -7087,32 +3028,26 @@ void register_ArrayMultiDimensionLongLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLongLong, header_ArrayMultiDimensionLongLong, member_seq_ArrayMultiDimensionLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLongLong, type_name_ArrayMultiDimensionLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLongLong, type_name_ArrayMultiDimensionLongLong.to_string(), type_ids_ArrayMultiDimensionLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLongLong", type_ids_ArrayMultiDimensionLongLong); - if (return_code_ArrayMultiDimensionLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionULongLong) { + + ReturnCode_t return_code_ArrayMultiDimensionULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionULongLong", type_ids_ArrayMultiDimensionULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionULongLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionULongLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionULongLong; QualifiedTypeName type_name_ArrayMultiDimensionULongLong = "ArrayMultiDimensionULongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionULongLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionULongLong; @@ -7121,69 +3056,33 @@ void register_ArrayMultiDimensionULongLong_type_identifier( header_ArrayMultiDimensionULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionULongLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionULongLong; { - return_code_ArrayMultiDimensionULongLong = + TypeIdentifierPair type_ids_var_array_ulonglong; + ReturnCode_t return_code_var_array_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10_10_10", type_ids_ArrayMultiDimensionULongLong); + "anonymous_array_uint64_t_10_10_10", type_ids_var_array_ulonglong); - if (return_code_ArrayMultiDimensionULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { - return_code_ArrayMultiDimensionULongLong = + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ArrayMultiDimensionULongLong); + "_uint64_t", type_ids_var_array_ulonglong); - if (return_code_ArrayMultiDimensionULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionULongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, element_identifier_anonymous_array_uint64_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_uint64_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_10_10_10 = EK_BOTH; } @@ -7200,69 +3099,22 @@ void register_ArrayMultiDimensionULongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10_10_10", type_ids_var_array_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10_10_10", type_ids_ArrayMultiDimensionULongLong); - if (return_code_ArrayMultiDimensionULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulonglong; MemberId member_id_var_array_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_ulonglong_ec {false}; + CommonStructMember common_var_array_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, common_var_array_ulonglong_ec))}; + if (!common_var_array_ulonglong_ec) { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayMultiDimensionULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayMultiDimensionULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulonglong member TypeIdentifier inconsistent."); + return; } MemberName name_var_array_ulonglong = "var_array_ulonglong"; eprosima::fastcdr::optional member_ann_builtin_var_array_ulonglong; @@ -7273,32 +3125,26 @@ void register_ArrayMultiDimensionULongLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionULongLong, header_ArrayMultiDimensionULongLong, member_seq_ArrayMultiDimensionULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionULongLong, type_name_ArrayMultiDimensionULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionULongLong, type_name_ArrayMultiDimensionULongLong.to_string(), type_ids_ArrayMultiDimensionULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionULongLong", type_ids_ArrayMultiDimensionULongLong); - if (return_code_ArrayMultiDimensionULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionFloat) { + + ReturnCode_t return_code_ArrayMultiDimensionFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionFloat", type_ids_ArrayMultiDimensionFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionFloat) { - StructTypeFlag struct_flags_ArrayMultiDimensionFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionFloat; - TypeIdentifierPair type_ids_ArrayMultiDimensionFloat; QualifiedTypeName type_name_ArrayMultiDimensionFloat = "ArrayMultiDimensionFloat"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionFloat; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionFloat; @@ -7307,69 +3153,33 @@ void register_ArrayMultiDimensionFloat_type_identifier( header_ArrayMultiDimensionFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionFloat); CompleteStructMemberSeq member_seq_ArrayMultiDimensionFloat; { - return_code_ArrayMultiDimensionFloat = + TypeIdentifierPair type_ids_var_array_float; + ReturnCode_t return_code_var_array_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10_10_10", type_ids_ArrayMultiDimensionFloat); + "anonymous_array_float_10_10_10", type_ids_var_array_float); - if (return_code_ArrayMultiDimensionFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { - return_code_ArrayMultiDimensionFloat = + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ArrayMultiDimensionFloat); + "_float", type_ids_var_array_float); - if (return_code_ArrayMultiDimensionFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_float_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionFloat.type_identifier2()); - } - else + bool element_identifier_anonymous_array_float_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_float_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, element_identifier_anonymous_array_float_10_10_10_ec))}; + if (!element_identifier_anonymous_array_float_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_float_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_float.type_identifier2()._d()) { equiv_kind_anonymous_array_float_10_10_10 = EK_BOTH; } @@ -7386,68 +3196,21 @@ void register_ArrayMultiDimensionFloat_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_float_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10_10_10", type_ids_var_array_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_float_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10_10_10", type_ids_ArrayMultiDimensionFloat); - if (return_code_ArrayMultiDimensionFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_float_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_float; MemberId member_id_var_array_float = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayMultiDimensionFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_float_ec {false}; + CommonStructMember common_var_array_float {TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, common_var_array_float_ec))}; + if (!common_var_array_float_ec) { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayMultiDimensionFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_float member TypeIdentifier inconsistent."); return; } MemberName name_var_array_float = "var_array_float"; @@ -7459,32 +3222,26 @@ void register_ArrayMultiDimensionFloat_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionFloat, header_ArrayMultiDimensionFloat, member_seq_ArrayMultiDimensionFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionFloat, type_name_ArrayMultiDimensionFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionFloat, type_name_ArrayMultiDimensionFloat.to_string(), type_ids_ArrayMultiDimensionFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionFloat already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionFloat", type_ids_ArrayMultiDimensionFloat); - if (return_code_ArrayMultiDimensionFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionDouble) { + + ReturnCode_t return_code_ArrayMultiDimensionDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionDouble", type_ids_ArrayMultiDimensionDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionDouble) { - StructTypeFlag struct_flags_ArrayMultiDimensionDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionDouble; - TypeIdentifierPair type_ids_ArrayMultiDimensionDouble; QualifiedTypeName type_name_ArrayMultiDimensionDouble = "ArrayMultiDimensionDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionDouble; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionDouble; @@ -7493,69 +3250,33 @@ void register_ArrayMultiDimensionDouble_type_identifier( header_ArrayMultiDimensionDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionDouble); CompleteStructMemberSeq member_seq_ArrayMultiDimensionDouble; { - return_code_ArrayMultiDimensionDouble = + TypeIdentifierPair type_ids_var_array_double; + ReturnCode_t return_code_var_array_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10_10_10", type_ids_ArrayMultiDimensionDouble); + "anonymous_array_double_10_10_10", type_ids_var_array_double); - if (return_code_ArrayMultiDimensionDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { - return_code_ArrayMultiDimensionDouble = + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ArrayMultiDimensionDouble); + "_double", type_ids_var_array_double); - if (return_code_ArrayMultiDimensionDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_double_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_double_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_double_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, element_identifier_anonymous_array_double_10_10_10_ec))}; + if (!element_identifier_anonymous_array_double_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_double_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_double.type_identifier2()._d()) { equiv_kind_anonymous_array_double_10_10_10 = EK_BOTH; } @@ -7572,68 +3293,21 @@ void register_ArrayMultiDimensionDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_double_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10_10_10", type_ids_var_array_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_double_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10_10_10", type_ids_ArrayMultiDimensionDouble); - if (return_code_ArrayMultiDimensionDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_double_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_double; MemberId member_id_var_array_double = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayMultiDimensionDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayMultiDimensionDouble.type_identifier2()); - } - else + bool common_var_array_double_ec {false}; + CommonStructMember common_var_array_double {TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, common_var_array_double_ec))}; + if (!common_var_array_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_double member TypeIdentifier inconsistent."); return; } MemberName name_var_array_double = "var_array_double"; @@ -7645,32 +3319,26 @@ void register_ArrayMultiDimensionDouble_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionDouble, header_ArrayMultiDimensionDouble, member_seq_ArrayMultiDimensionDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionDouble, type_name_ArrayMultiDimensionDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionDouble, type_name_ArrayMultiDimensionDouble.to_string(), type_ids_ArrayMultiDimensionDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionDouble", type_ids_ArrayMultiDimensionDouble); - if (return_code_ArrayMultiDimensionDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLongDouble) { + + ReturnCode_t return_code_ArrayMultiDimensionLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLongDouble", type_ids_ArrayMultiDimensionLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLongDouble) { - StructTypeFlag struct_flags_ArrayMultiDimensionLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLongDouble; - TypeIdentifierPair type_ids_ArrayMultiDimensionLongDouble; QualifiedTypeName type_name_ArrayMultiDimensionLongDouble = "ArrayMultiDimensionLongDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLongDouble; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLongDouble; @@ -7679,69 +3347,33 @@ void register_ArrayMultiDimensionLongDouble_type_identifier( header_ArrayMultiDimensionLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLongDouble); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLongDouble; { - return_code_ArrayMultiDimensionLongDouble = + TypeIdentifierPair type_ids_var_array_longdouble; + ReturnCode_t return_code_var_array_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10_10_10", type_ids_ArrayMultiDimensionLongDouble); + "anonymous_array_longdouble_10_10_10", type_ids_var_array_longdouble); - if (return_code_ArrayMultiDimensionLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { - return_code_ArrayMultiDimensionLongDouble = + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ArrayMultiDimensionLongDouble); + "_longdouble", type_ids_var_array_longdouble); - if (return_code_ArrayMultiDimensionLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_longdouble_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLongDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_longdouble_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_longdouble_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, element_identifier_anonymous_array_longdouble_10_10_10_ec))}; + if (!element_identifier_anonymous_array_longdouble_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_longdouble_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longdouble.type_identifier2()._d()) { equiv_kind_anonymous_array_longdouble_10_10_10 = EK_BOTH; } @@ -7758,68 +3390,21 @@ void register_ArrayMultiDimensionLongDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_longdouble_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_longdouble_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10_10_10", type_ids_var_array_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_longdouble_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10_10_10", type_ids_ArrayMultiDimensionLongDouble); - if (return_code_ArrayMultiDimensionLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_longdouble_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longdouble; MemberId member_id_var_array_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayMultiDimensionLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longdouble_ec {false}; + CommonStructMember common_var_array_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, common_var_array_longdouble_ec))}; + if (!common_var_array_longdouble_ec) { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayMultiDimensionLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longdouble = "var_array_longdouble"; @@ -7831,32 +3416,26 @@ void register_ArrayMultiDimensionLongDouble_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLongDouble, header_ArrayMultiDimensionLongDouble, member_seq_ArrayMultiDimensionLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLongDouble, type_name_ArrayMultiDimensionLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLongDouble, type_name_ArrayMultiDimensionLongDouble.to_string(), type_ids_ArrayMultiDimensionLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLongDouble", type_ids_ArrayMultiDimensionLongDouble); - if (return_code_ArrayMultiDimensionLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionBoolean) { + + ReturnCode_t return_code_ArrayMultiDimensionBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionBoolean", type_ids_ArrayMultiDimensionBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionBoolean) { - StructTypeFlag struct_flags_ArrayMultiDimensionBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionBoolean; - TypeIdentifierPair type_ids_ArrayMultiDimensionBoolean; QualifiedTypeName type_name_ArrayMultiDimensionBoolean = "ArrayMultiDimensionBoolean"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionBoolean; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionBoolean; @@ -7865,69 +3444,33 @@ void register_ArrayMultiDimensionBoolean_type_identifier( header_ArrayMultiDimensionBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionBoolean); CompleteStructMemberSeq member_seq_ArrayMultiDimensionBoolean; { - return_code_ArrayMultiDimensionBoolean = + TypeIdentifierPair type_ids_var_array_boolean; + ReturnCode_t return_code_var_array_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10_10_10", type_ids_ArrayMultiDimensionBoolean); + "anonymous_array_bool_10_10_10", type_ids_var_array_boolean); - if (return_code_ArrayMultiDimensionBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { - return_code_ArrayMultiDimensionBoolean = + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ArrayMultiDimensionBoolean); + "_bool", type_ids_var_array_boolean); - if (return_code_ArrayMultiDimensionBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_bool_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoolean.type_identifier2()); - } - else + bool element_identifier_anonymous_array_bool_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_bool_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, element_identifier_anonymous_array_bool_10_10_10_ec))}; + if (!element_identifier_anonymous_array_bool_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_bool_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_boolean.type_identifier2()._d()) { equiv_kind_anonymous_array_bool_10_10_10 = EK_BOTH; } @@ -7944,68 +3487,21 @@ void register_ArrayMultiDimensionBoolean_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_bool_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10_10_10", type_ids_var_array_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_bool_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10_10_10", type_ids_ArrayMultiDimensionBoolean); - if (return_code_ArrayMultiDimensionBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_bool_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_boolean; MemberId member_id_var_array_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_boolean_ec {false}; + CommonStructMember common_var_array_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, common_var_array_boolean_ec))}; + if (!common_var_array_boolean_ec) { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayMultiDimensionBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayMultiDimensionBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_array_boolean = "var_array_boolean"; @@ -8017,32 +3513,26 @@ void register_ArrayMultiDimensionBoolean_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionBoolean, header_ArrayMultiDimensionBoolean, member_seq_ArrayMultiDimensionBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoolean, type_name_ArrayMultiDimensionBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoolean, type_name_ArrayMultiDimensionBoolean.to_string(), type_ids_ArrayMultiDimensionBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionBoolean", type_ids_ArrayMultiDimensionBoolean); - if (return_code_ArrayMultiDimensionBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionOctet) { + + ReturnCode_t return_code_ArrayMultiDimensionOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionOctet", type_ids_ArrayMultiDimensionOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionOctet) { - StructTypeFlag struct_flags_ArrayMultiDimensionOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionOctet; - TypeIdentifierPair type_ids_ArrayMultiDimensionOctet; QualifiedTypeName type_name_ArrayMultiDimensionOctet = "ArrayMultiDimensionOctet"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionOctet; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionOctet; @@ -8051,69 +3541,33 @@ void register_ArrayMultiDimensionOctet_type_identifier( header_ArrayMultiDimensionOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionOctet); CompleteStructMemberSeq member_seq_ArrayMultiDimensionOctet; { - return_code_ArrayMultiDimensionOctet = + TypeIdentifierPair type_ids_var_array_octet; + ReturnCode_t return_code_var_array_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10_10_10", type_ids_ArrayMultiDimensionOctet); + "anonymous_array_uint8_t_10_10_10", type_ids_var_array_octet); - if (return_code_ArrayMultiDimensionOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { - return_code_ArrayMultiDimensionOctet = + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ArrayMultiDimensionOctet); + "_byte", type_ids_var_array_octet); - if (return_code_ArrayMultiDimensionOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionOctet.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, element_identifier_anonymous_array_uint8_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_uint8_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_octet.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_10_10_10 = EK_BOTH; } @@ -8130,68 +3584,21 @@ void register_ArrayMultiDimensionOctet_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10_10_10", type_ids_var_array_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10_10_10", type_ids_ArrayMultiDimensionOctet); - if (return_code_ArrayMultiDimensionOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_octet; MemberId member_id_var_array_octet = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayMultiDimensionOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_octet_ec {false}; + CommonStructMember common_var_array_octet {TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, common_var_array_octet_ec))}; + if (!common_var_array_octet_ec) { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayMultiDimensionOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_array_octet = "var_array_octet"; @@ -8203,32 +3610,26 @@ void register_ArrayMultiDimensionOctet_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionOctet, header_ArrayMultiDimensionOctet, member_seq_ArrayMultiDimensionOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionOctet, type_name_ArrayMultiDimensionOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionOctet, type_name_ArrayMultiDimensionOctet.to_string(), type_ids_ArrayMultiDimensionOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionOctet already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionOctet", type_ids_ArrayMultiDimensionOctet); - if (return_code_ArrayMultiDimensionOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionChar) { + + ReturnCode_t return_code_ArrayMultiDimensionChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionChar", type_ids_ArrayMultiDimensionChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionChar) { - StructTypeFlag struct_flags_ArrayMultiDimensionChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionChar; - TypeIdentifierPair type_ids_ArrayMultiDimensionChar; QualifiedTypeName type_name_ArrayMultiDimensionChar = "ArrayMultiDimensionChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionChar; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionChar; @@ -8237,69 +3638,33 @@ void register_ArrayMultiDimensionChar_type_identifier( header_ArrayMultiDimensionChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionChar); CompleteStructMemberSeq member_seq_ArrayMultiDimensionChar; { - return_code_ArrayMultiDimensionChar = + TypeIdentifierPair type_ids_var_array_char; + ReturnCode_t return_code_var_array_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10_10_10", type_ids_ArrayMultiDimensionChar); + "anonymous_array_char_10_10_10", type_ids_var_array_char); - if (return_code_ArrayMultiDimensionChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { - return_code_ArrayMultiDimensionChar = + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ArrayMultiDimensionChar); + "_char", type_ids_var_array_char); - if (return_code_ArrayMultiDimensionChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, element_identifier_anonymous_array_char_10_10_10_ec))}; + if (!element_identifier_anonymous_array_char_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_char.type_identifier2()._d()) { equiv_kind_anonymous_array_char_10_10_10 = EK_BOTH; } @@ -8316,68 +3681,21 @@ void register_ArrayMultiDimensionChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10_10_10", type_ids_var_array_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10_10_10", type_ids_ArrayMultiDimensionChar); - if (return_code_ArrayMultiDimensionChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_char; MemberId member_id_var_array_char = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayMultiDimensionChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayMultiDimensionChar.type_identifier2()); - } - else + bool common_var_array_char_ec {false}; + CommonStructMember common_var_array_char {TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, common_var_array_char_ec))}; + if (!common_var_array_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_char member TypeIdentifier inconsistent."); return; } MemberName name_var_array_char = "var_array_char"; @@ -8389,32 +3707,26 @@ void register_ArrayMultiDimensionChar_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionChar, header_ArrayMultiDimensionChar, member_seq_ArrayMultiDimensionChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionChar, type_name_ArrayMultiDimensionChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionChar, type_name_ArrayMultiDimensionChar.to_string(), type_ids_ArrayMultiDimensionChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionChar", type_ids_ArrayMultiDimensionChar); - if (return_code_ArrayMultiDimensionChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionWChar) { + + ReturnCode_t return_code_ArrayMultiDimensionWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionWChar", type_ids_ArrayMultiDimensionWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionWChar) { - StructTypeFlag struct_flags_ArrayMultiDimensionWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionWChar; - TypeIdentifierPair type_ids_ArrayMultiDimensionWChar; QualifiedTypeName type_name_ArrayMultiDimensionWChar = "ArrayMultiDimensionWChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionWChar; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionWChar; @@ -8423,69 +3735,33 @@ void register_ArrayMultiDimensionWChar_type_identifier( header_ArrayMultiDimensionWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionWChar); CompleteStructMemberSeq member_seq_ArrayMultiDimensionWChar; { - return_code_ArrayMultiDimensionWChar = + TypeIdentifierPair type_ids_var_array_wchar; + ReturnCode_t return_code_var_array_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10_10_10", type_ids_ArrayMultiDimensionWChar); + "anonymous_array_wchar_t_10_10_10", type_ids_var_array_wchar); - if (return_code_ArrayMultiDimensionWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { - return_code_ArrayMultiDimensionWChar = + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_ArrayMultiDimensionWChar); + "_wchar_t", type_ids_var_array_wchar); - if (return_code_ArrayMultiDimensionWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_wchar_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionWChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_wchar_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_wchar_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, element_identifier_anonymous_array_wchar_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_wchar_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_wchar_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wchar.type_identifier2()._d()) { equiv_kind_anonymous_array_wchar_t_10_10_10 = EK_BOTH; } @@ -8502,68 +3778,21 @@ void register_ArrayMultiDimensionWChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_wchar_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_wchar_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10_10_10", type_ids_var_array_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_wchar_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10_10_10", type_ids_ArrayMultiDimensionWChar); - if (return_code_ArrayMultiDimensionWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_wchar_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wchar; MemberId member_id_var_array_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayMultiDimensionWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_wchar_ec {false}; + CommonStructMember common_var_array_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, common_var_array_wchar_ec))}; + if (!common_var_array_wchar_ec) { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayMultiDimensionWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wchar = "var_array_wchar"; @@ -8575,32 +3804,26 @@ void register_ArrayMultiDimensionWChar_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionWChar, header_ArrayMultiDimensionWChar, member_seq_ArrayMultiDimensionWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionWChar, type_name_ArrayMultiDimensionWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionWChar, type_name_ArrayMultiDimensionWChar.to_string(), type_ids_ArrayMultiDimensionWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionWChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionWChar", type_ids_ArrayMultiDimensionWChar); - if (return_code_ArrayMultiDimensionWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionString) { + + ReturnCode_t return_code_ArrayMultiDimensionString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionString", type_ids_ArrayMultiDimensionString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionString) { - StructTypeFlag struct_flags_ArrayMultiDimensionString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionString; - TypeIdentifierPair type_ids_ArrayMultiDimensionString; QualifiedTypeName type_name_ArrayMultiDimensionString = "ArrayMultiDimensionString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionString; @@ -8609,86 +3832,41 @@ void register_ArrayMultiDimensionString_type_identifier( header_ArrayMultiDimensionString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionString; { - return_code_ArrayMultiDimensionString = + TypeIdentifierPair type_ids_var_array_string; + ReturnCode_t return_code_var_array_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_10_10_10", type_ids_ArrayMultiDimensionString); + "anonymous_array_anonymous_string_unbounded_10_10_10", type_ids_var_array_string); - if (return_code_ArrayMultiDimensionString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { - return_code_ArrayMultiDimensionString = + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayMultiDimensionString); + "anonymous_string_unbounded", type_ids_var_array_string); - if (return_code_ArrayMultiDimensionString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayMultiDimensionString); - if (return_code_ArrayMultiDimensionString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_unbounded_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_unbounded_10_10_10 = EK_BOTH; } @@ -8705,68 +3883,21 @@ void register_ArrayMultiDimensionString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_unbounded_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_unbounded_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_10_10_10", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_unbounded_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_10_10_10", type_ids_ArrayMultiDimensionString); - if (return_code_ArrayMultiDimensionString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_unbounded_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_string; MemberId member_id_var_array_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayMultiDimensionString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayMultiDimensionString.type_identifier2()); - } - else + bool common_var_array_string_ec {false}; + CommonStructMember common_var_array_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, common_var_array_string_ec))}; + if (!common_var_array_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_string = "var_array_string"; @@ -8778,32 +3909,26 @@ void register_ArrayMultiDimensionString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionString, header_ArrayMultiDimensionString, member_seq_ArrayMultiDimensionString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionString, type_name_ArrayMultiDimensionString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionString, type_name_ArrayMultiDimensionString.to_string(), type_ids_ArrayMultiDimensionString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionString", type_ids_ArrayMultiDimensionString); - if (return_code_ArrayMultiDimensionString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionWString) { + + ReturnCode_t return_code_ArrayMultiDimensionWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionWString", type_ids_ArrayMultiDimensionWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionWString) { - StructTypeFlag struct_flags_ArrayMultiDimensionWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionWString; - TypeIdentifierPair type_ids_ArrayMultiDimensionWString; QualifiedTypeName type_name_ArrayMultiDimensionWString = "ArrayMultiDimensionWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionWString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionWString; @@ -8812,86 +3937,41 @@ void register_ArrayMultiDimensionWString_type_identifier( header_ArrayMultiDimensionWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionWString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionWString; { - return_code_ArrayMultiDimensionWString = + TypeIdentifierPair type_ids_var_array_wstring; + ReturnCode_t return_code_var_array_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_ArrayMultiDimensionWString); + "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_var_array_wstring); - if (return_code_ArrayMultiDimensionWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { - return_code_ArrayMultiDimensionWString = + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayMultiDimensionWString); + "anonymous_wstring_unbounded", type_ids_var_array_wstring); - if (return_code_ArrayMultiDimensionWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_array_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayMultiDimensionWString); - if (return_code_ArrayMultiDimensionWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_unbounded_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_unbounded_10_10_10 = EK_BOTH; } @@ -8908,68 +3988,21 @@ void register_ArrayMultiDimensionWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_unbounded_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_var_array_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_unbounded_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_ArrayMultiDimensionWString); - if (return_code_ArrayMultiDimensionWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_unbounded_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wstring; MemberId member_id_var_array_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_wstring_ec {false}; + CommonStructMember common_var_array_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, common_var_array_wstring_ec))}; + if (!common_var_array_wstring_ec) { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayMultiDimensionWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayMultiDimensionWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wstring = "var_array_wstring"; @@ -8981,32 +4014,26 @@ void register_ArrayMultiDimensionWString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionWString, header_ArrayMultiDimensionWString, member_seq_ArrayMultiDimensionWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionWString, type_name_ArrayMultiDimensionWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionWString, type_name_ArrayMultiDimensionWString.to_string(), type_ids_ArrayMultiDimensionWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionWString", type_ids_ArrayMultiDimensionWString); - if (return_code_ArrayMultiDimensionWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionBoundedString) { + + ReturnCode_t return_code_ArrayMultiDimensionBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionBoundedString", type_ids_ArrayMultiDimensionBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionBoundedString) { - StructTypeFlag struct_flags_ArrayMultiDimensionBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionBoundedString; - TypeIdentifierPair type_ids_ArrayMultiDimensionBoundedString; QualifiedTypeName type_name_ArrayMultiDimensionBoundedString = "ArrayMultiDimensionBoundedString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionBoundedString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionBoundedString; @@ -9015,164 +4042,31 @@ void register_ArrayMultiDimensionBoundedString_type_identifier( header_ArrayMultiDimensionBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionBoundedString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionBoundedString; { - return_code_ArrayMultiDimensionBoundedString = + TypeIdentifierPair type_ids_var_array_bounded_string; + ReturnCode_t return_code_var_array_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_10_10_10", type_ids_ArrayMultiDimensionBoundedString); + "anonymous_array_anonymous_string_10_10_10_10", type_ids_var_array_bounded_string); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) { - return_code_ArrayMultiDimensionBoundedString = + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayMultiDimensionBoundedString); - - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_ArrayMultiDimensionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayMultiDimensionBoundedString); + "Inner_alias_bounded_string_helper", type_ids_var_array_bounded_string); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayMultiDimensionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayMultiDimensionBoundedString); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayMultiDimensionBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayMultiDimensionBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayMultiDimensionBoundedString); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_array_bounded_string); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoundedString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_10_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, element_identifier_anonymous_array_anonymous_string_10_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_10_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_10_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_10_10_10_10 = EK_BOTH; } @@ -9189,68 +4083,21 @@ void register_ArrayMultiDimensionBoundedString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_10_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_10_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_10_10_10", type_ids_var_array_bounded_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_10_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_10_10_10", type_ids_ArrayMultiDimensionBoundedString); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_10_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_string; MemberId member_id_var_array_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bounded_string_ec {false}; + CommonStructMember common_var_array_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, common_var_array_bounded_string_ec))}; + if (!common_var_array_bounded_string_ec) { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayMultiDimensionBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayMultiDimensionBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_string = "var_array_bounded_string"; @@ -9262,32 +4109,26 @@ void register_ArrayMultiDimensionBoundedString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionBoundedString, header_ArrayMultiDimensionBoundedString, member_seq_ArrayMultiDimensionBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoundedString, type_name_ArrayMultiDimensionBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoundedString, type_name_ArrayMultiDimensionBoundedString.to_string(), type_ids_ArrayMultiDimensionBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionBoundedString", type_ids_ArrayMultiDimensionBoundedString); - if (return_code_ArrayMultiDimensionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionBoundedWString) { + + ReturnCode_t return_code_ArrayMultiDimensionBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionBoundedWString", type_ids_ArrayMultiDimensionBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionBoundedWString) { - StructTypeFlag struct_flags_ArrayMultiDimensionBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionBoundedWString; - TypeIdentifierPair type_ids_ArrayMultiDimensionBoundedWString; QualifiedTypeName type_name_ArrayMultiDimensionBoundedWString = "ArrayMultiDimensionBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionBoundedWString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionBoundedWString; @@ -9296,164 +4137,31 @@ void register_ArrayMultiDimensionBoundedWString_type_identifier( header_ArrayMultiDimensionBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionBoundedWString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionBoundedWString; { - return_code_ArrayMultiDimensionBoundedWString = + TypeIdentifierPair type_ids_var_array_bounded_wstring; + ReturnCode_t return_code_var_array_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_ArrayMultiDimensionBoundedWString); + "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_var_array_bounded_wstring); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) { - return_code_ArrayMultiDimensionBoundedWString = + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayMultiDimensionBoundedWString); - - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_ArrayMultiDimensionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayMultiDimensionBoundedWString); + "Inner_alias_bounded_wstring_helper", type_ids_var_array_bounded_wstring); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayMultiDimensionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayMultiDimensionBoundedWString); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayMultiDimensionBoundedWString); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_array_bounded_wstring); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_10_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_10_10_10_10 = EK_BOTH; } @@ -9470,68 +4178,21 @@ void register_ArrayMultiDimensionBoundedWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_10_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_10_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_var_array_bounded_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_10_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_ArrayMultiDimensionBoundedWString); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_10_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_wstring; MemberId member_id_var_array_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bounded_wstring_ec {false}; + CommonStructMember common_var_array_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, common_var_array_bounded_wstring_ec))}; + if (!common_var_array_bounded_wstring_ec) { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayMultiDimensionBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayMultiDimensionBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_wstring = "var_array_bounded_wstring"; @@ -9543,32 +4204,26 @@ void register_ArrayMultiDimensionBoundedWString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionBoundedWString, header_ArrayMultiDimensionBoundedWString, member_seq_ArrayMultiDimensionBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoundedWString, type_name_ArrayMultiDimensionBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBoundedWString, type_name_ArrayMultiDimensionBoundedWString.to_string(), type_ids_ArrayMultiDimensionBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionBoundedWString", type_ids_ArrayMultiDimensionBoundedWString); - if (return_code_ArrayMultiDimensionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionEnum) { + + ReturnCode_t return_code_ArrayMultiDimensionEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionEnum", type_ids_ArrayMultiDimensionEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionEnum) { - StructTypeFlag struct_flags_ArrayMultiDimensionEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionEnum; - TypeIdentifierPair type_ids_ArrayMultiDimensionEnum; QualifiedTypeName type_name_ArrayMultiDimensionEnum = "ArrayMultiDimensionEnum"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionEnum; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionEnum; @@ -9577,122 +4232,31 @@ void register_ArrayMultiDimensionEnum_type_identifier( header_ArrayMultiDimensionEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionEnum); CompleteStructMemberSeq member_seq_ArrayMultiDimensionEnum; { - return_code_ArrayMultiDimensionEnum = + TypeIdentifierPair type_ids_var_array_enum; + ReturnCode_t return_code_var_array_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10_10_10", type_ids_ArrayMultiDimensionEnum); + "anonymous_array_InnerEnumHelper_10_10_10", type_ids_var_array_enum); - if (return_code_ArrayMultiDimensionEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) { - return_code_ArrayMultiDimensionEnum = + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayMultiDimensionEnum); - - if (return_code_ArrayMultiDimensionEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayMultiDimensionEnum); - if (return_code_ArrayMultiDimensionEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerEnumHelper", type_ids_var_array_enum); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) + { + ::register_InnerEnumHelper_type_identifier(type_ids_var_array_enum); } - TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionEnum.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerEnumHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, element_identifier_anonymous_array_InnerEnumHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerEnumHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerEnumHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_enum.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerEnumHelper_10_10_10 = EK_BOTH; } @@ -9709,68 +4273,21 @@ void register_ArrayMultiDimensionEnum_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerEnumHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerEnumHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10_10_10", type_ids_var_array_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerEnumHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10_10_10", type_ids_ArrayMultiDimensionEnum); - if (return_code_ArrayMultiDimensionEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerEnumHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_enum; MemberId member_id_var_array_enum = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayMultiDimensionEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayMultiDimensionEnum.type_identifier2()); - } - else + bool common_var_array_enum_ec {false}; + CommonStructMember common_var_array_enum {TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, common_var_array_enum_ec))}; + if (!common_var_array_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_array_enum = "var_array_enum"; @@ -9782,32 +4299,26 @@ void register_ArrayMultiDimensionEnum_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionEnum, header_ArrayMultiDimensionEnum, member_seq_ArrayMultiDimensionEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionEnum, type_name_ArrayMultiDimensionEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionEnum, type_name_ArrayMultiDimensionEnum.to_string(), type_ids_ArrayMultiDimensionEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionEnum already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionEnum", type_ids_ArrayMultiDimensionEnum); - if (return_code_ArrayMultiDimensionEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionBitMask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionBitMask) { + + ReturnCode_t return_code_ArrayMultiDimensionBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionBitMask", type_ids_ArrayMultiDimensionBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionBitMask) { - StructTypeFlag struct_flags_ArrayMultiDimensionBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionBitMask; - TypeIdentifierPair type_ids_ArrayMultiDimensionBitMask; QualifiedTypeName type_name_ArrayMultiDimensionBitMask = "ArrayMultiDimensionBitMask"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionBitMask; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionBitMask; @@ -9816,155 +4327,31 @@ void register_ArrayMultiDimensionBitMask_type_identifier( header_ArrayMultiDimensionBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionBitMask); CompleteStructMemberSeq member_seq_ArrayMultiDimensionBitMask; { - return_code_ArrayMultiDimensionBitMask = + TypeIdentifierPair type_ids_var_array_bitmask; + ReturnCode_t return_code_var_array_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10_10_10", type_ids_ArrayMultiDimensionBitMask); + "anonymous_array_InnerBitMaskHelper_10_10_10", type_ids_var_array_bitmask); - if (return_code_ArrayMultiDimensionBitMask != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) { - return_code_ArrayMultiDimensionBitMask = + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayMultiDimensionBitMask); - - if (return_code_ArrayMultiDimensionBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayMultiDimensionBitMask); - if (return_code_ArrayMultiDimensionBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerBitMaskHelper", type_ids_var_array_bitmask); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_array_bitmask); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBitMask.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitMaskHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitmask.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitMaskHelper_10_10_10 = EK_BOTH; } @@ -9981,68 +4368,21 @@ void register_ArrayMultiDimensionBitMask_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitMaskHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitMaskHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10_10_10", type_ids_var_array_bitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitMaskHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10_10_10", type_ids_ArrayMultiDimensionBitMask); - if (return_code_ArrayMultiDimensionBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitMaskHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitmask; MemberId member_id_var_array_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bitmask_ec {false}; + CommonStructMember common_var_array_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, common_var_array_bitmask_ec))}; + if (!common_var_array_bitmask_ec) { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayMultiDimensionBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayMultiDimensionBitMask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitmask = "var_array_bitmask"; @@ -10054,32 +4394,26 @@ void register_ArrayMultiDimensionBitMask_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionBitMask, header_ArrayMultiDimensionBitMask, member_seq_ArrayMultiDimensionBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBitMask, type_name_ArrayMultiDimensionBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBitMask, type_name_ArrayMultiDimensionBitMask.to_string(), type_ids_ArrayMultiDimensionBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionBitMask", type_ids_ArrayMultiDimensionBitMask); - if (return_code_ArrayMultiDimensionBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionAlias) { + + ReturnCode_t return_code_ArrayMultiDimensionAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionAlias", type_ids_ArrayMultiDimensionAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionAlias) { - StructTypeFlag struct_flags_ArrayMultiDimensionAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionAlias; - TypeIdentifierPair type_ids_ArrayMultiDimensionAlias; QualifiedTypeName type_name_ArrayMultiDimensionAlias = "ArrayMultiDimensionAlias"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionAlias; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionAlias; @@ -10088,147 +4422,31 @@ void register_ArrayMultiDimensionAlias_type_identifier( header_ArrayMultiDimensionAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionAlias); CompleteStructMemberSeq member_seq_ArrayMultiDimensionAlias; { - return_code_ArrayMultiDimensionAlias = + TypeIdentifierPair type_ids_var_array_alias; + ReturnCode_t return_code_var_array_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10_10_10", type_ids_ArrayMultiDimensionAlias); + "anonymous_array_InnerAliasHelper_10_10_10", type_ids_var_array_alias); - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) { - return_code_ArrayMultiDimensionAlias = + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayMultiDimensionAlias); - - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_ArrayMultiDimensionAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionAlias); + "InnerAliasHelper", type_ids_var_array_alias); - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayMultiDimensionAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayMultiDimensionAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayMultiDimensionAlias); - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) + { + ::register_InnerAliasHelper_type_identifier(type_ids_var_array_alias); } - TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionAlias.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerAliasHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_alias.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerAliasHelper_10_10_10 = EK_BOTH; } @@ -10245,68 +4463,21 @@ void register_ArrayMultiDimensionAlias_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerAliasHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerAliasHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10_10_10", type_ids_var_array_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerAliasHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10_10_10", type_ids_ArrayMultiDimensionAlias); - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerAliasHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_alias; MemberId member_id_var_array_alias = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayMultiDimensionAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayMultiDimensionAlias.type_identifier2()); - } - else + bool common_var_array_alias_ec {false}; + CommonStructMember common_var_array_alias {TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, common_var_array_alias_ec))}; + if (!common_var_array_alias_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_array_alias = "var_array_alias"; @@ -10318,32 +4489,26 @@ void register_ArrayMultiDimensionAlias_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionAlias, header_ArrayMultiDimensionAlias, member_seq_ArrayMultiDimensionAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionAlias, type_name_ArrayMultiDimensionAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionAlias, type_name_ArrayMultiDimensionAlias.to_string(), type_ids_ArrayMultiDimensionAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionAlias already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionAlias", type_ids_ArrayMultiDimensionAlias); - if (return_code_ArrayMultiDimensionAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionSequence) { + + ReturnCode_t return_code_ArrayMultiDimensionSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionSequence", type_ids_ArrayMultiDimensionSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionSequence) { - StructTypeFlag struct_flags_ArrayMultiDimensionSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionSequence; - TypeIdentifierPair type_ids_ArrayMultiDimensionSequence; QualifiedTypeName type_name_ArrayMultiDimensionSequence = "ArrayMultiDimensionSequence"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionSequence; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionSequence; @@ -10352,75 +4517,39 @@ void register_ArrayMultiDimensionSequence_type_identifier( header_ArrayMultiDimensionSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionSequence); CompleteStructMemberSeq member_seq_ArrayMultiDimensionSequence; { - return_code_ArrayMultiDimensionSequence = + TypeIdentifierPair type_ids_var_array_sequence; + ReturnCode_t return_code_var_array_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10", type_ids_ArrayMultiDimensionSequence); + "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArrayMultiDimensionSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArrayMultiDimensionSequence); + "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArrayMultiDimensionSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionSequence); + "_int32_t", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionSequence.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -10431,69 +4560,22 @@ void register_ArrayMultiDimensionSequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArrayMultiDimensionSequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionSequence.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 = EK_BOTH; } @@ -10510,68 +4592,21 @@ void register_ArrayMultiDimensionSequence_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10", type_ids_ArrayMultiDimensionSequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_sequence; MemberId member_id_var_array_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArrayMultiDimensionSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArrayMultiDimensionSequence.type_identifier2()); - } - else + bool common_var_array_sequence_ec {false}; + CommonStructMember common_var_array_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, common_var_array_sequence_ec))}; + if (!common_var_array_sequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_array_sequence = "var_array_sequence"; @@ -10583,32 +4618,26 @@ void register_ArrayMultiDimensionSequence_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionSequence, header_ArrayMultiDimensionSequence, member_seq_ArrayMultiDimensionSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionSequence, type_name_ArrayMultiDimensionSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionSequence, type_name_ArrayMultiDimensionSequence.to_string(), type_ids_ArrayMultiDimensionSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionSequence already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionSequence", type_ids_ArrayMultiDimensionSequence); - if (return_code_ArrayMultiDimensionSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionMap) { + + ReturnCode_t return_code_ArrayMultiDimensionMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionMap", type_ids_ArrayMultiDimensionMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionMap) { - StructTypeFlag struct_flags_ArrayMultiDimensionMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionMap; - TypeIdentifierPair type_ids_ArrayMultiDimensionMap; QualifiedTypeName type_name_ArrayMultiDimensionMap = "ArrayMultiDimensionMap"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionMap; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionMap; @@ -10617,126 +4646,54 @@ void register_ArrayMultiDimensionMap_type_identifier( header_ArrayMultiDimensionMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionMap); CompleteStructMemberSeq member_seq_ArrayMultiDimensionMap; { - return_code_ArrayMultiDimensionMap = + TypeIdentifierPair type_ids_var_array_map; + ReturnCode_t return_code_var_array_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10", type_ids_ArrayMultiDimensionMap); + "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMultiDimensionMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMultiDimensionMap); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMultiDimensionMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_ArrayMultiDimensionMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -10759,69 +4716,22 @@ void register_ArrayMultiDimensionMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMultiDimensionMap); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionMap.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_map.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 = EK_BOTH; } @@ -10838,68 +4748,21 @@ void register_ArrayMultiDimensionMap_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10", type_ids_ArrayMultiDimensionMap); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_map; MemberId member_id_var_array_map = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_map_ec {false}; + CommonStructMember common_var_array_map {TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, common_var_array_map_ec))}; + if (!common_var_array_map_ec) { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMultiDimensionMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMultiDimensionMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_map member TypeIdentifier inconsistent."); return; } MemberName name_var_array_map = "var_array_map"; @@ -10911,32 +4774,26 @@ void register_ArrayMultiDimensionMap_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionMap = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionMap, header_ArrayMultiDimensionMap, member_seq_ArrayMultiDimensionMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionMap, type_name_ArrayMultiDimensionMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionMap, type_name_ArrayMultiDimensionMap.to_string(), type_ids_ArrayMultiDimensionMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionMap already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionMap", type_ids_ArrayMultiDimensionMap); - if (return_code_ArrayMultiDimensionMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionUnion) { + + ReturnCode_t return_code_ArrayMultiDimensionUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionUnion", type_ids_ArrayMultiDimensionUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionUnion) { - StructTypeFlag struct_flags_ArrayMultiDimensionUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionUnion; - TypeIdentifierPair type_ids_ArrayMultiDimensionUnion; QualifiedTypeName type_name_ArrayMultiDimensionUnion = "ArrayMultiDimensionUnion"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionUnion; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionUnion; @@ -10945,346 +4802,31 @@ void register_ArrayMultiDimensionUnion_type_identifier( header_ArrayMultiDimensionUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionUnion); CompleteStructMemberSeq member_seq_ArrayMultiDimensionUnion; { - return_code_ArrayMultiDimensionUnion = + TypeIdentifierPair type_ids_var_array_union; + ReturnCode_t return_code_var_array_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10_10_10", type_ids_ArrayMultiDimensionUnion); + "anonymous_array_InnerUnionHelper_10_10_10", type_ids_var_array_union); - if (return_code_ArrayMultiDimensionUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - return_code_ArrayMultiDimensionUnion = + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_ArrayMultiDimensionUnion); + "InnerUnionHelper", type_ids_var_array_union); - if (return_code_ArrayMultiDimensionUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayMultiDimensionUnion = return_code_InnerUnionHelper; - type_ids_ArrayMultiDimensionUnion = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_array_union); } - TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionUnion.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerUnionHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_union.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerUnionHelper_10_10_10 = EK_BOTH; } @@ -11301,68 +4843,21 @@ void register_ArrayMultiDimensionUnion_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerUnionHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerUnionHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10_10_10", type_ids_var_array_union)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerUnionHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10_10_10", type_ids_ArrayMultiDimensionUnion); - if (return_code_ArrayMultiDimensionUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerUnionHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_union; MemberId member_id_var_array_union = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayMultiDimensionUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayMultiDimensionUnion.type_identifier2()); - } - else + bool common_var_array_union_ec {false}; + CommonStructMember common_var_array_union {TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, common_var_array_union_ec))}; + if (!common_var_array_union_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_union member TypeIdentifier inconsistent."); return; } MemberName name_var_array_union = "var_array_union"; @@ -11374,32 +4869,26 @@ void register_ArrayMultiDimensionUnion_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionUnion, header_ArrayMultiDimensionUnion, member_seq_ArrayMultiDimensionUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionUnion, type_name_ArrayMultiDimensionUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionUnion, type_name_ArrayMultiDimensionUnion.to_string(), type_ids_ArrayMultiDimensionUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionUnion already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionUnion", type_ids_ArrayMultiDimensionUnion); - if (return_code_ArrayMultiDimensionUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionStructure) { + + ReturnCode_t return_code_ArrayMultiDimensionStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionStructure", type_ids_ArrayMultiDimensionStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionStructure) { - StructTypeFlag struct_flags_ArrayMultiDimensionStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionStructure; - TypeIdentifierPair type_ids_ArrayMultiDimensionStructure; QualifiedTypeName type_name_ArrayMultiDimensionStructure = "ArrayMultiDimensionStructure"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionStructure; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionStructure; @@ -11408,236 +4897,31 @@ void register_ArrayMultiDimensionStructure_type_identifier( header_ArrayMultiDimensionStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionStructure); CompleteStructMemberSeq member_seq_ArrayMultiDimensionStructure; { - return_code_ArrayMultiDimensionStructure = + TypeIdentifierPair type_ids_var_array_structure; + ReturnCode_t return_code_var_array_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_10_10_10", type_ids_ArrayMultiDimensionStructure); + "anonymous_array_InnerStructureHelper_10_10_10", type_ids_var_array_structure); - if (return_code_ArrayMultiDimensionStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - return_code_ArrayMultiDimensionStructure = + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_ArrayMultiDimensionStructure); + "InnerStructureHelper", type_ids_var_array_structure); - if (return_code_ArrayMultiDimensionStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayMultiDimensionStructure = return_code_InnerStructureHelper; - type_ids_ArrayMultiDimensionStructure = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_array_structure); } - TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionStructure.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerStructureHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, element_identifier_anonymous_array_InnerStructureHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerStructureHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerStructureHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_structure.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerStructureHelper_10_10_10 = EK_BOTH; } @@ -11654,68 +4938,21 @@ void register_ArrayMultiDimensionStructure_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerStructureHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerStructureHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_10_10_10", type_ids_var_array_structure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerStructureHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_10_10_10", type_ids_ArrayMultiDimensionStructure); - if (return_code_ArrayMultiDimensionStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerStructureHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_structure; MemberId member_id_var_array_structure = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayMultiDimensionStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayMultiDimensionStructure.type_identifier2()); - } - else + bool common_var_array_structure_ec {false}; + CommonStructMember common_var_array_structure {TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, common_var_array_structure_ec))}; + if (!common_var_array_structure_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_array_structure = "var_array_structure"; @@ -11727,32 +4964,26 @@ void register_ArrayMultiDimensionStructure_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionStructure, header_ArrayMultiDimensionStructure, member_seq_ArrayMultiDimensionStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionStructure, type_name_ArrayMultiDimensionStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionStructure, type_name_ArrayMultiDimensionStructure.to_string(), type_ids_ArrayMultiDimensionStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionStructure already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionStructure", type_ids_ArrayMultiDimensionStructure); - if (return_code_ArrayMultiDimensionStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionBitset) { + + ReturnCode_t return_code_ArrayMultiDimensionBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionBitset", type_ids_ArrayMultiDimensionBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionBitset) { - StructTypeFlag struct_flags_ArrayMultiDimensionBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionBitset; - TypeIdentifierPair type_ids_ArrayMultiDimensionBitset; QualifiedTypeName type_name_ArrayMultiDimensionBitset = "ArrayMultiDimensionBitset"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionBitset; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionBitset; @@ -11761,141 +4992,31 @@ void register_ArrayMultiDimensionBitset_type_identifier( header_ArrayMultiDimensionBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionBitset); CompleteStructMemberSeq member_seq_ArrayMultiDimensionBitset; { - return_code_ArrayMultiDimensionBitset = + TypeIdentifierPair type_ids_var_array_bitset; + ReturnCode_t return_code_var_array_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_ArrayMultiDimensionBitset); + "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_var_array_bitset); - if (return_code_ArrayMultiDimensionBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - return_code_ArrayMultiDimensionBitset = + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayMultiDimensionBitset); + "InnerBitsetHelper", type_ids_var_array_bitset); - if (return_code_ArrayMultiDimensionBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayMultiDimensionBitset); - if (return_code_ArrayMultiDimensionBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_array_bitset); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionBitset.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitsetHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitset.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitsetHelper_10_10_10 = EK_BOTH; } @@ -11912,68 +5033,21 @@ void register_ArrayMultiDimensionBitset_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitsetHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitsetHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_var_array_bitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitsetHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_ArrayMultiDimensionBitset); - if (return_code_ArrayMultiDimensionBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitsetHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitset; MemberId member_id_var_array_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bitset_ec {false}; + CommonStructMember common_var_array_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, common_var_array_bitset_ec))}; + if (!common_var_array_bitset_ec) { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayMultiDimensionBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayMultiDimensionBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitset = "var_array_bitset"; @@ -11985,32 +5059,26 @@ void register_ArrayMultiDimensionBitset_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionBitset, header_ArrayMultiDimensionBitset, member_seq_ArrayMultiDimensionBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBitset, type_name_ArrayMultiDimensionBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionBitset, type_name_ArrayMultiDimensionBitset.to_string(), type_ids_ArrayMultiDimensionBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionBitset already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionBitset", type_ids_ArrayMultiDimensionBitset); - if (return_code_ArrayMultiDimensionBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsShort) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsShort", type_ids_ArraySingleDimensionLiteralsShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsShort) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsShort; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsShort; QualifiedTypeName type_name_ArraySingleDimensionLiteralsShort = "ArraySingleDimensionLiteralsShort"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsShort; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsShort; @@ -12019,69 +5087,33 @@ void register_ArraySingleDimensionLiteralsShort_type_identifier( header_ArraySingleDimensionLiteralsShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsShort); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsShort; { - return_code_ArraySingleDimensionLiteralsShort = + TypeIdentifierPair type_ids_var_array_short; + ReturnCode_t return_code_var_array_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_5", type_ids_ArraySingleDimensionLiteralsShort); + "anonymous_array_int16_t_5", type_ids_var_array_short); - if (return_code_ArraySingleDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { - return_code_ArraySingleDimensionLiteralsShort = + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArraySingleDimensionLiteralsShort); + "_int16_t", type_ids_var_array_short); - if (return_code_ArraySingleDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, element_identifier_anonymous_array_int16_t_5_ec))}; + if (!element_identifier_anonymous_array_int16_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_5 = EK_BOTH; } @@ -12094,68 +5126,21 @@ void register_ArraySingleDimensionLiteralsShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_5", type_ids_var_array_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_5", type_ids_ArraySingleDimensionLiteralsShort); - if (return_code_ArraySingleDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short; MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArraySingleDimensionLiteralsShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_short_ec {false}; + CommonStructMember common_var_array_short {TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, common_var_array_short_ec))}; + if (!common_var_array_short_ec) { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArraySingleDimensionLiteralsShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short = "var_array_short"; @@ -12167,32 +5152,26 @@ void register_ArraySingleDimensionLiteralsShort_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsShort, header_ArraySingleDimensionLiteralsShort, member_seq_ArraySingleDimensionLiteralsShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsShort, type_name_ArraySingleDimensionLiteralsShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsShort, type_name_ArraySingleDimensionLiteralsShort.to_string(), type_ids_ArraySingleDimensionLiteralsShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsShort", type_ids_ArraySingleDimensionLiteralsShort); - if (return_code_ArraySingleDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsUnsignedShort) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsUnsignedShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsUnsignedShort", type_ids_ArraySingleDimensionLiteralsUnsignedShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsUnsignedShort) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedShort; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsUnsignedShort; QualifiedTypeName type_name_ArraySingleDimensionLiteralsUnsignedShort = "ArraySingleDimensionLiteralsUnsignedShort"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsUnsignedShort; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsUnsignedShort; @@ -12201,69 +5180,33 @@ void register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier( header_ArraySingleDimensionLiteralsUnsignedShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsUnsignedShort); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsUnsignedShort; { - return_code_ArraySingleDimensionLiteralsUnsignedShort = + TypeIdentifierPair type_ids_var_array_ushort; + ReturnCode_t return_code_var_array_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedShort); + "anonymous_array_uint16_t_10", type_ids_var_array_ushort); - if (return_code_ArraySingleDimensionLiteralsUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { - return_code_ArraySingleDimensionLiteralsUnsignedShort = + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ArraySingleDimensionLiteralsUnsignedShort); + "_uint16_t", type_ids_var_array_ushort); - if (return_code_ArraySingleDimensionLiteralsUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, element_identifier_anonymous_array_uint16_t_10_ec))}; + if (!element_identifier_anonymous_array_uint16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ushort.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_10 = EK_BOTH; } @@ -12276,68 +5219,21 @@ void register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_10", type_ids_var_array_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsUnsignedShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedShort); - if (return_code_ArraySingleDimensionLiteralsUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ushort; MemberId member_id_var_array_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArraySingleDimensionLiteralsUnsignedShort.type_identifier2()); - } - else + bool common_var_array_ushort_ec {false}; + CommonStructMember common_var_array_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, common_var_array_ushort_ec))}; + if (!common_var_array_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ushort = "var_array_ushort"; @@ -12349,32 +5245,26 @@ void register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsUnsignedShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsUnsignedShort, header_ArraySingleDimensionLiteralsUnsignedShort, member_seq_ArraySingleDimensionLiteralsUnsignedShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedShort, type_name_ArraySingleDimensionLiteralsUnsignedShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedShort, type_name_ArraySingleDimensionLiteralsUnsignedShort.to_string(), type_ids_ArraySingleDimensionLiteralsUnsignedShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsUnsignedShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsUnsignedShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsUnsignedShort", type_ids_ArraySingleDimensionLiteralsUnsignedShort); - if (return_code_ArraySingleDimensionLiteralsUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsUnsignedShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsLong) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsLong", type_ids_ArraySingleDimensionLiteralsLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsLong) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsLong; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsLong; QualifiedTypeName type_name_ArraySingleDimensionLiteralsLong = "ArraySingleDimensionLiteralsLong"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsLong; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsLong; @@ -12383,69 +5273,33 @@ void register_ArraySingleDimensionLiteralsLong_type_identifier( header_ArraySingleDimensionLiteralsLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsLong); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsLong; { - return_code_ArraySingleDimensionLiteralsLong = + TypeIdentifierPair type_ids_var_array_long; + ReturnCode_t return_code_var_array_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10", type_ids_ArraySingleDimensionLiteralsLong); + "anonymous_array_int32_t_10", type_ids_var_array_long); - if (return_code_ArraySingleDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { - return_code_ArraySingleDimensionLiteralsLong = + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySingleDimensionLiteralsLong); + "_int32_t", type_ids_var_array_long); - if (return_code_ArraySingleDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, element_identifier_anonymous_array_int32_t_10_ec))}; + if (!element_identifier_anonymous_array_int32_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_long.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_10 = EK_BOTH; } @@ -12458,68 +5312,21 @@ void register_ArraySingleDimensionLiteralsLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10", type_ids_var_array_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10", type_ids_ArraySingleDimensionLiteralsLong); - if (return_code_ArraySingleDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_long; MemberId member_id_var_array_long = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArraySingleDimensionLiteralsLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArraySingleDimensionLiteralsLong.type_identifier2()); - } - else + bool common_var_array_long_ec {false}; + CommonStructMember common_var_array_long {TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, common_var_array_long_ec))}; + if (!common_var_array_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_long member TypeIdentifier inconsistent."); return; } MemberName name_var_array_long = "var_array_long"; @@ -12531,32 +5338,26 @@ void register_ArraySingleDimensionLiteralsLong_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsLong, header_ArraySingleDimensionLiteralsLong, member_seq_ArraySingleDimensionLiteralsLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLong, type_name_ArraySingleDimensionLiteralsLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLong, type_name_ArraySingleDimensionLiteralsLong.to_string(), type_ids_ArraySingleDimensionLiteralsLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsLong", type_ids_ArraySingleDimensionLiteralsLong); - if (return_code_ArraySingleDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsUnsignedLong) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsUnsignedLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsUnsignedLong", type_ids_ArraySingleDimensionLiteralsUnsignedLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsUnsignedLong) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedLong; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsUnsignedLong; QualifiedTypeName type_name_ArraySingleDimensionLiteralsUnsignedLong = "ArraySingleDimensionLiteralsUnsignedLong"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsUnsignedLong; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsUnsignedLong; @@ -12565,69 +5366,33 @@ void register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier( header_ArraySingleDimensionLiteralsUnsignedLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsUnsignedLong); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsUnsignedLong; { - return_code_ArraySingleDimensionLiteralsUnsignedLong = + TypeIdentifierPair type_ids_var_array_ulong; + ReturnCode_t return_code_var_array_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedLong); + "anonymous_array_uint32_t_10", type_ids_var_array_ulong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { - return_code_ArraySingleDimensionLiteralsUnsignedLong = + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ArraySingleDimensionLiteralsUnsignedLong); + "_uint32_t", type_ids_var_array_ulong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, element_identifier_anonymous_array_uint32_t_10_ec))}; + if (!element_identifier_anonymous_array_uint32_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_10 = EK_BOTH; } @@ -12640,68 +5405,21 @@ void register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10", type_ids_var_array_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsUnsignedLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedLong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulong; MemberId member_id_var_array_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_ulong_ec {false}; + CommonStructMember common_var_array_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, common_var_array_ulong_ec))}; + if (!common_var_array_ulong_ec) { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArraySingleDimensionLiteralsUnsignedLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulong = "var_array_ulong"; @@ -12713,32 +5431,26 @@ void register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsUnsignedLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsUnsignedLong, header_ArraySingleDimensionLiteralsUnsignedLong, member_seq_ArraySingleDimensionLiteralsUnsignedLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedLong, type_name_ArraySingleDimensionLiteralsUnsignedLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedLong, type_name_ArraySingleDimensionLiteralsUnsignedLong.to_string(), type_ids_ArraySingleDimensionLiteralsUnsignedLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsUnsignedLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsUnsignedLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsUnsignedLong", type_ids_ArraySingleDimensionLiteralsUnsignedLong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsUnsignedLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsLongLong) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsLongLong", type_ids_ArraySingleDimensionLiteralsLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsLongLong) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsLongLong; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsLongLong; QualifiedTypeName type_name_ArraySingleDimensionLiteralsLongLong = "ArraySingleDimensionLiteralsLongLong"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsLongLong; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsLongLong; @@ -12747,69 +5459,33 @@ void register_ArraySingleDimensionLiteralsLongLong_type_identifier( header_ArraySingleDimensionLiteralsLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsLongLong); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsLongLong; { - return_code_ArraySingleDimensionLiteralsLongLong = + TypeIdentifierPair type_ids_var_array_longlong; + ReturnCode_t return_code_var_array_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10", type_ids_ArraySingleDimensionLiteralsLongLong); + "anonymous_array_int64_t_10", type_ids_var_array_longlong); - if (return_code_ArraySingleDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { - return_code_ArraySingleDimensionLiteralsLongLong = + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ArraySingleDimensionLiteralsLongLong); + "_int64_t", type_ids_var_array_longlong); - if (return_code_ArraySingleDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, element_identifier_anonymous_array_int64_t_10_ec))}; + if (!element_identifier_anonymous_array_int64_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longlong.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_10 = EK_BOTH; } @@ -12822,68 +5498,21 @@ void register_ArraySingleDimensionLiteralsLongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_10", type_ids_var_array_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_10", type_ids_ArraySingleDimensionLiteralsLongLong); - if (return_code_ArraySingleDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longlong; MemberId member_id_var_array_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longlong_ec {false}; + CommonStructMember common_var_array_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, common_var_array_longlong_ec))}; + if (!common_var_array_longlong_ec) { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArraySingleDimensionLiteralsLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longlong = "var_array_longlong"; @@ -12895,32 +5524,26 @@ void register_ArraySingleDimensionLiteralsLongLong_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsLongLong, header_ArraySingleDimensionLiteralsLongLong, member_seq_ArraySingleDimensionLiteralsLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLongLong, type_name_ArraySingleDimensionLiteralsLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLongLong, type_name_ArraySingleDimensionLiteralsLongLong.to_string(), type_ids_ArraySingleDimensionLiteralsLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsLongLong", type_ids_ArraySingleDimensionLiteralsLongLong); - if (return_code_ArraySingleDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsUnsignedLongLong) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsUnsignedLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsUnsignedLongLong", type_ids_ArraySingleDimensionLiteralsUnsignedLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsUnsignedLongLong) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnsignedLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsUnsignedLongLong; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsUnsignedLongLong; QualifiedTypeName type_name_ArraySingleDimensionLiteralsUnsignedLongLong = "ArraySingleDimensionLiteralsUnsignedLongLong"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsUnsignedLongLong; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsUnsignedLongLong; @@ -12929,69 +5552,33 @@ void register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier( header_ArraySingleDimensionLiteralsUnsignedLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsUnsignedLongLong); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsUnsignedLongLong; { - return_code_ArraySingleDimensionLiteralsUnsignedLongLong = + TypeIdentifierPair type_ids_var_array_ulonglong; + ReturnCode_t return_code_var_array_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedLongLong); + "anonymous_array_uint64_t_10", type_ids_var_array_ulonglong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { - return_code_ArraySingleDimensionLiteralsUnsignedLongLong = + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ArraySingleDimensionLiteralsUnsignedLongLong); + "_uint64_t", type_ids_var_array_ulonglong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, element_identifier_anonymous_array_uint64_t_10_ec))}; + if (!element_identifier_anonymous_array_uint64_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_10 = EK_BOTH; } @@ -13004,68 +5591,21 @@ void register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10", type_ids_var_array_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsUnsignedLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10", type_ids_ArraySingleDimensionLiteralsUnsignedLongLong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulonglong; MemberId member_id_var_array_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArraySingleDimensionLiteralsUnsignedLongLong.type_identifier2()); - } - else + bool common_var_array_ulonglong_ec {false}; + CommonStructMember common_var_array_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, common_var_array_ulonglong_ec))}; + if (!common_var_array_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulonglong = "var_array_ulonglong"; @@ -13077,32 +5617,26 @@ void register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsUnsignedLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsUnsignedLongLong, header_ArraySingleDimensionLiteralsUnsignedLongLong, member_seq_ArraySingleDimensionLiteralsUnsignedLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedLongLong, type_name_ArraySingleDimensionLiteralsUnsignedLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnsignedLongLong, type_name_ArraySingleDimensionLiteralsUnsignedLongLong.to_string(), type_ids_ArraySingleDimensionLiteralsUnsignedLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsUnsignedLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsUnsignedLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsUnsignedLongLong", type_ids_ArraySingleDimensionLiteralsUnsignedLongLong); - if (return_code_ArraySingleDimensionLiteralsUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsUnsignedLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsFloat) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsFloat", type_ids_ArraySingleDimensionLiteralsFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsFloat) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsFloat; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsFloat; QualifiedTypeName type_name_ArraySingleDimensionLiteralsFloat = "ArraySingleDimensionLiteralsFloat"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsFloat; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsFloat; @@ -13111,69 +5645,33 @@ void register_ArraySingleDimensionLiteralsFloat_type_identifier( header_ArraySingleDimensionLiteralsFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsFloat); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsFloat; { - return_code_ArraySingleDimensionLiteralsFloat = + TypeIdentifierPair type_ids_var_array_float; + ReturnCode_t return_code_var_array_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_5", type_ids_ArraySingleDimensionLiteralsFloat); + "anonymous_array_float_5", type_ids_var_array_float); - if (return_code_ArraySingleDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { - return_code_ArraySingleDimensionLiteralsFloat = + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ArraySingleDimensionLiteralsFloat); + "_float", type_ids_var_array_float); - if (return_code_ArraySingleDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_float_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()); - } - else + bool element_identifier_anonymous_array_float_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_float_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, element_identifier_anonymous_array_float_5_ec))}; + if (!element_identifier_anonymous_array_float_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_float_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_float.type_identifier2()._d()) { equiv_kind_anonymous_array_float_5 = EK_BOTH; } @@ -13186,68 +5684,21 @@ void register_ArraySingleDimensionLiteralsFloat_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_float_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_5", type_ids_var_array_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_float_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_5", type_ids_ArraySingleDimensionLiteralsFloat); - if (return_code_ArraySingleDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_float_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_float; MemberId member_id_var_array_float = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_float_ec {false}; + CommonStructMember common_var_array_float {TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, common_var_array_float_ec))}; + if (!common_var_array_float_ec) { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArraySingleDimensionLiteralsFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArraySingleDimensionLiteralsFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_float member TypeIdentifier inconsistent."); return; } MemberName name_var_array_float = "var_array_float"; @@ -13259,32 +5710,26 @@ void register_ArraySingleDimensionLiteralsFloat_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsFloat, header_ArraySingleDimensionLiteralsFloat, member_seq_ArraySingleDimensionLiteralsFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsFloat, type_name_ArraySingleDimensionLiteralsFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsFloat, type_name_ArraySingleDimensionLiteralsFloat.to_string(), type_ids_ArraySingleDimensionLiteralsFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsFloat already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsFloat", type_ids_ArraySingleDimensionLiteralsFloat); - if (return_code_ArraySingleDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsDouble) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsDouble", type_ids_ArraySingleDimensionLiteralsDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsDouble) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsDouble; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsDouble; QualifiedTypeName type_name_ArraySingleDimensionLiteralsDouble = "ArraySingleDimensionLiteralsDouble"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsDouble; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsDouble; @@ -13293,69 +5738,33 @@ void register_ArraySingleDimensionLiteralsDouble_type_identifier( header_ArraySingleDimensionLiteralsDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsDouble); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsDouble; { - return_code_ArraySingleDimensionLiteralsDouble = + TypeIdentifierPair type_ids_var_array_double; + ReturnCode_t return_code_var_array_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10", type_ids_ArraySingleDimensionLiteralsDouble); + "anonymous_array_double_10", type_ids_var_array_double); - if (return_code_ArraySingleDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { - return_code_ArraySingleDimensionLiteralsDouble = + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ArraySingleDimensionLiteralsDouble); + "_double", type_ids_var_array_double); - if (return_code_ArraySingleDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_double_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_double_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_double_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, element_identifier_anonymous_array_double_10_ec))}; + if (!element_identifier_anonymous_array_double_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_double_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_double.type_identifier2()._d()) { equiv_kind_anonymous_array_double_10 = EK_BOTH; } @@ -13368,68 +5777,21 @@ void register_ArraySingleDimensionLiteralsDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_double_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_10", type_ids_var_array_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_double_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_10", type_ids_ArraySingleDimensionLiteralsDouble); - if (return_code_ArraySingleDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_double_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_double; MemberId member_id_var_array_double = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_double_ec {false}; + CommonStructMember common_var_array_double {TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, common_var_array_double_ec))}; + if (!common_var_array_double_ec) { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArraySingleDimensionLiteralsDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArraySingleDimensionLiteralsDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_double member TypeIdentifier inconsistent."); return; } MemberName name_var_array_double = "var_array_double"; @@ -13441,32 +5803,26 @@ void register_ArraySingleDimensionLiteralsDouble_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsDouble, header_ArraySingleDimensionLiteralsDouble, member_seq_ArraySingleDimensionLiteralsDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsDouble, type_name_ArraySingleDimensionLiteralsDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsDouble, type_name_ArraySingleDimensionLiteralsDouble.to_string(), type_ids_ArraySingleDimensionLiteralsDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsDouble", type_ids_ArraySingleDimensionLiteralsDouble); - if (return_code_ArraySingleDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsLongDouble) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsLongDouble", type_ids_ArraySingleDimensionLiteralsLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsLongDouble) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsLongDouble; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsLongDouble; QualifiedTypeName type_name_ArraySingleDimensionLiteralsLongDouble = "ArraySingleDimensionLiteralsLongDouble"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsLongDouble; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsLongDouble; @@ -13475,69 +5831,33 @@ void register_ArraySingleDimensionLiteralsLongDouble_type_identifier( header_ArraySingleDimensionLiteralsLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsLongDouble); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsLongDouble; { - return_code_ArraySingleDimensionLiteralsLongDouble = + TypeIdentifierPair type_ids_var_array_longdouble; + ReturnCode_t return_code_var_array_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10", type_ids_ArraySingleDimensionLiteralsLongDouble); + "anonymous_array_longdouble_10", type_ids_var_array_longdouble); - if (return_code_ArraySingleDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { - return_code_ArraySingleDimensionLiteralsLongDouble = + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ArraySingleDimensionLiteralsLongDouble); + "_longdouble", type_ids_var_array_longdouble); - if (return_code_ArraySingleDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_longdouble_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_longdouble_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_longdouble_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, element_identifier_anonymous_array_longdouble_10_ec))}; + if (!element_identifier_anonymous_array_longdouble_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_longdouble_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longdouble.type_identifier2()._d()) { equiv_kind_anonymous_array_longdouble_10 = EK_BOTH; } @@ -13550,68 +5870,21 @@ void register_ArraySingleDimensionLiteralsLongDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_longdouble_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_longdouble_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_10", type_ids_var_array_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_longdouble_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_10", type_ids_ArraySingleDimensionLiteralsLongDouble); - if (return_code_ArraySingleDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_longdouble_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longdouble; MemberId member_id_var_array_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_longdouble_ec {false}; + CommonStructMember common_var_array_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, common_var_array_longdouble_ec))}; + if (!common_var_array_longdouble_ec) { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArraySingleDimensionLiteralsLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longdouble = "var_array_longdouble"; @@ -13623,32 +5896,26 @@ void register_ArraySingleDimensionLiteralsLongDouble_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsLongDouble, header_ArraySingleDimensionLiteralsLongDouble, member_seq_ArraySingleDimensionLiteralsLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLongDouble, type_name_ArraySingleDimensionLiteralsLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsLongDouble, type_name_ArraySingleDimensionLiteralsLongDouble.to_string(), type_ids_ArraySingleDimensionLiteralsLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsLongDouble", type_ids_ArraySingleDimensionLiteralsLongDouble); - if (return_code_ArraySingleDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsBoolean) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsBoolean", type_ids_ArraySingleDimensionLiteralsBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsBoolean) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsBoolean; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsBoolean; QualifiedTypeName type_name_ArraySingleDimensionLiteralsBoolean = "ArraySingleDimensionLiteralsBoolean"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsBoolean; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsBoolean; @@ -13657,69 +5924,33 @@ void register_ArraySingleDimensionLiteralsBoolean_type_identifier( header_ArraySingleDimensionLiteralsBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsBoolean); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsBoolean; { - return_code_ArraySingleDimensionLiteralsBoolean = + TypeIdentifierPair type_ids_var_array_boolean; + ReturnCode_t return_code_var_array_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_5", type_ids_ArraySingleDimensionLiteralsBoolean); + "anonymous_array_bool_5", type_ids_var_array_boolean); - if (return_code_ArraySingleDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { - return_code_ArraySingleDimensionLiteralsBoolean = + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ArraySingleDimensionLiteralsBoolean); + "_bool", type_ids_var_array_boolean); - if (return_code_ArraySingleDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_bool_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()); - } - else + bool element_identifier_anonymous_array_bool_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_bool_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, element_identifier_anonymous_array_bool_5_ec))}; + if (!element_identifier_anonymous_array_bool_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_bool_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_boolean.type_identifier2()._d()) { equiv_kind_anonymous_array_bool_5 = EK_BOTH; } @@ -13732,68 +5963,21 @@ void register_ArraySingleDimensionLiteralsBoolean_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_bool_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_5", type_ids_var_array_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_bool_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_5", type_ids_ArraySingleDimensionLiteralsBoolean); - if (return_code_ArraySingleDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_bool_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_boolean; MemberId member_id_var_array_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_boolean_ec {false}; + CommonStructMember common_var_array_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, common_var_array_boolean_ec))}; + if (!common_var_array_boolean_ec) { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArraySingleDimensionLiteralsBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_array_boolean = "var_array_boolean"; @@ -13805,32 +5989,26 @@ void register_ArraySingleDimensionLiteralsBoolean_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsBoolean, header_ArraySingleDimensionLiteralsBoolean, member_seq_ArraySingleDimensionLiteralsBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoolean, type_name_ArraySingleDimensionLiteralsBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoolean, type_name_ArraySingleDimensionLiteralsBoolean.to_string(), type_ids_ArraySingleDimensionLiteralsBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsBoolean", type_ids_ArraySingleDimensionLiteralsBoolean); - if (return_code_ArraySingleDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsOctet) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsOctet", type_ids_ArraySingleDimensionLiteralsOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsOctet) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsOctet; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsOctet; QualifiedTypeName type_name_ArraySingleDimensionLiteralsOctet = "ArraySingleDimensionLiteralsOctet"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsOctet; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsOctet; @@ -13839,69 +6017,33 @@ void register_ArraySingleDimensionLiteralsOctet_type_identifier( header_ArraySingleDimensionLiteralsOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsOctet); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsOctet; { - return_code_ArraySingleDimensionLiteralsOctet = + TypeIdentifierPair type_ids_var_array_octet; + ReturnCode_t return_code_var_array_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10", type_ids_ArraySingleDimensionLiteralsOctet); + "anonymous_array_uint8_t_10", type_ids_var_array_octet); - if (return_code_ArraySingleDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { - return_code_ArraySingleDimensionLiteralsOctet = + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ArraySingleDimensionLiteralsOctet); + "_byte", type_ids_var_array_octet); - if (return_code_ArraySingleDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, element_identifier_anonymous_array_uint8_t_10_ec))}; + if (!element_identifier_anonymous_array_uint8_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_octet.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_10 = EK_BOTH; } @@ -13914,68 +6056,21 @@ void register_ArraySingleDimensionLiteralsOctet_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_10", type_ids_var_array_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_10", type_ids_ArraySingleDimensionLiteralsOctet); - if (return_code_ArraySingleDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_octet; MemberId member_id_var_array_octet = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArraySingleDimensionLiteralsOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_octet_ec {false}; + CommonStructMember common_var_array_octet {TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, common_var_array_octet_ec))}; + if (!common_var_array_octet_ec) { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArraySingleDimensionLiteralsOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_array_octet = "var_array_octet"; @@ -13987,32 +6082,26 @@ void register_ArraySingleDimensionLiteralsOctet_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsOctet, header_ArraySingleDimensionLiteralsOctet, member_seq_ArraySingleDimensionLiteralsOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsOctet, type_name_ArraySingleDimensionLiteralsOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsOctet, type_name_ArraySingleDimensionLiteralsOctet.to_string(), type_ids_ArraySingleDimensionLiteralsOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsOctet already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsOctet", type_ids_ArraySingleDimensionLiteralsOctet); - if (return_code_ArraySingleDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsChar) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsChar", type_ids_ArraySingleDimensionLiteralsChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsChar) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsChar; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsChar; QualifiedTypeName type_name_ArraySingleDimensionLiteralsChar = "ArraySingleDimensionLiteralsChar"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsChar; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsChar; @@ -14021,69 +6110,33 @@ void register_ArraySingleDimensionLiteralsChar_type_identifier( header_ArraySingleDimensionLiteralsChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsChar); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsChar; { - return_code_ArraySingleDimensionLiteralsChar = + TypeIdentifierPair type_ids_var_array_char; + ReturnCode_t return_code_var_array_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_5", type_ids_ArraySingleDimensionLiteralsChar); + "anonymous_array_char_5", type_ids_var_array_char); - if (return_code_ArraySingleDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { - return_code_ArraySingleDimensionLiteralsChar = + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ArraySingleDimensionLiteralsChar); + "_char", type_ids_var_array_char); - if (return_code_ArraySingleDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, element_identifier_anonymous_array_char_5_ec))}; + if (!element_identifier_anonymous_array_char_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_char.type_identifier2()._d()) { equiv_kind_anonymous_array_char_5 = EK_BOTH; } @@ -14096,68 +6149,21 @@ void register_ArraySingleDimensionLiteralsChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_5", type_ids_var_array_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_5", type_ids_ArraySingleDimensionLiteralsChar); - if (return_code_ArraySingleDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_char; MemberId member_id_var_array_char = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArraySingleDimensionLiteralsChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArraySingleDimensionLiteralsChar.type_identifier2()); - } - else + bool common_var_array_char_ec {false}; + CommonStructMember common_var_array_char {TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, common_var_array_char_ec))}; + if (!common_var_array_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_char member TypeIdentifier inconsistent."); return; } MemberName name_var_array_char = "var_array_char"; @@ -14169,32 +6175,26 @@ void register_ArraySingleDimensionLiteralsChar_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsChar, header_ArraySingleDimensionLiteralsChar, member_seq_ArraySingleDimensionLiteralsChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsChar, type_name_ArraySingleDimensionLiteralsChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsChar, type_name_ArraySingleDimensionLiteralsChar.to_string(), type_ids_ArraySingleDimensionLiteralsChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsChar", type_ids_ArraySingleDimensionLiteralsChar); - if (return_code_ArraySingleDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsWChar) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsWChar", type_ids_ArraySingleDimensionLiteralsWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsWChar) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsWChar; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsWChar; QualifiedTypeName type_name_ArraySingleDimensionLiteralsWChar = "ArraySingleDimensionLiteralsWChar"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsWChar; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsWChar; @@ -14203,69 +6203,33 @@ void register_ArraySingleDimensionLiteralsWChar_type_identifier( header_ArraySingleDimensionLiteralsWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsWChar); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsWChar; { - return_code_ArraySingleDimensionLiteralsWChar = + TypeIdentifierPair type_ids_var_array_wchar; + ReturnCode_t return_code_var_array_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10", type_ids_ArraySingleDimensionLiteralsWChar); + "anonymous_array_wchar_t_10", type_ids_var_array_wchar); - if (return_code_ArraySingleDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { - return_code_ArraySingleDimensionLiteralsWChar = + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_ArraySingleDimensionLiteralsWChar); + "_wchar_t", type_ids_var_array_wchar); - if (return_code_ArraySingleDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_wchar_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_wchar_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_wchar_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, element_identifier_anonymous_array_wchar_t_10_ec))}; + if (!element_identifier_anonymous_array_wchar_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_wchar_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wchar.type_identifier2()._d()) { equiv_kind_anonymous_array_wchar_t_10 = EK_BOTH; } @@ -14278,68 +6242,21 @@ void register_ArraySingleDimensionLiteralsWChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_wchar_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_wchar_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10", type_ids_var_array_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_wchar_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10", type_ids_ArraySingleDimensionLiteralsWChar); - if (return_code_ArraySingleDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_wchar_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wchar; MemberId member_id_var_array_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_wchar_ec {false}; + CommonStructMember common_var_array_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, common_var_array_wchar_ec))}; + if (!common_var_array_wchar_ec) { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArraySingleDimensionLiteralsWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArraySingleDimensionLiteralsWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wchar = "var_array_wchar"; @@ -14351,32 +6268,26 @@ void register_ArraySingleDimensionLiteralsWChar_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsWChar, header_ArraySingleDimensionLiteralsWChar, member_seq_ArraySingleDimensionLiteralsWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsWChar, type_name_ArraySingleDimensionLiteralsWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsWChar, type_name_ArraySingleDimensionLiteralsWChar.to_string(), type_ids_ArraySingleDimensionLiteralsWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsWChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsWChar", type_ids_ArraySingleDimensionLiteralsWChar); - if (return_code_ArraySingleDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsString) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsString", type_ids_ArraySingleDimensionLiteralsString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsString) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsString; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsString; QualifiedTypeName type_name_ArraySingleDimensionLiteralsString = "ArraySingleDimensionLiteralsString"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsString; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsString; @@ -14385,86 +6296,41 @@ void register_ArraySingleDimensionLiteralsString_type_identifier( header_ArraySingleDimensionLiteralsString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsString); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsString; { - return_code_ArraySingleDimensionLiteralsString = + TypeIdentifierPair type_ids_var_array_string; + ReturnCode_t return_code_var_array_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_5", type_ids_ArraySingleDimensionLiteralsString); + "anonymous_array_anonymous_string_unbounded_5", type_ids_var_array_string); - if (return_code_ArraySingleDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { - return_code_ArraySingleDimensionLiteralsString = + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArraySingleDimensionLiteralsString); + "anonymous_string_unbounded", type_ids_var_array_string); - if (return_code_ArraySingleDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArraySingleDimensionLiteralsString); - if (return_code_ArraySingleDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_unbounded_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, element_identifier_anonymous_array_anonymous_string_unbounded_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_unbounded_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_unbounded_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_unbounded_5 = EK_BOTH; } @@ -14477,68 +6343,21 @@ void register_ArraySingleDimensionLiteralsString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_unbounded_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_unbounded_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_5", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_unbounded_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_5", type_ids_ArraySingleDimensionLiteralsString); - if (return_code_ArraySingleDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_unbounded_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_string; MemberId member_id_var_array_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArraySingleDimensionLiteralsString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArraySingleDimensionLiteralsString.type_identifier2()); - } - else + bool common_var_array_string_ec {false}; + CommonStructMember common_var_array_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, common_var_array_string_ec))}; + if (!common_var_array_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_string = "var_array_string"; @@ -14550,32 +6369,26 @@ void register_ArraySingleDimensionLiteralsString_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsString, header_ArraySingleDimensionLiteralsString, member_seq_ArraySingleDimensionLiteralsString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsString, type_name_ArraySingleDimensionLiteralsString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsString, type_name_ArraySingleDimensionLiteralsString.to_string(), type_ids_ArraySingleDimensionLiteralsString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsString already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsString", type_ids_ArraySingleDimensionLiteralsString); - if (return_code_ArraySingleDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsWString) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsWString", type_ids_ArraySingleDimensionLiteralsWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsWString) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsWString; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsWString; QualifiedTypeName type_name_ArraySingleDimensionLiteralsWString = "ArraySingleDimensionLiteralsWString"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsWString; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsWString; @@ -14584,86 +6397,41 @@ void register_ArraySingleDimensionLiteralsWString_type_identifier( header_ArraySingleDimensionLiteralsWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsWString); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsWString; { - return_code_ArraySingleDimensionLiteralsWString = + TypeIdentifierPair type_ids_var_array_wstring; + ReturnCode_t return_code_var_array_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10", type_ids_ArraySingleDimensionLiteralsWString); + "anonymous_array_anonymous_wstring_unbounded_10", type_ids_var_array_wstring); - if (return_code_ArraySingleDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { - return_code_ArraySingleDimensionLiteralsWString = + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArraySingleDimensionLiteralsWString); + "anonymous_wstring_unbounded", type_ids_var_array_wstring); - if (return_code_ArraySingleDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_array_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArraySingleDimensionLiteralsWString); - if (return_code_ArraySingleDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_unbounded_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_unbounded_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_unbounded_10 = EK_BOTH; } @@ -14676,68 +6444,21 @@ void register_ArraySingleDimensionLiteralsWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_unbounded_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_unbounded_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10", type_ids_var_array_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_unbounded_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10", type_ids_ArraySingleDimensionLiteralsWString); - if (return_code_ArraySingleDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_unbounded_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wstring; MemberId member_id_var_array_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArraySingleDimensionLiteralsWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsWString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_wstring_ec {false}; + CommonStructMember common_var_array_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, common_var_array_wstring_ec))}; + if (!common_var_array_wstring_ec) { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArraySingleDimensionLiteralsWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wstring = "var_array_wstring"; @@ -14749,32 +6470,26 @@ void register_ArraySingleDimensionLiteralsWString_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsWString, header_ArraySingleDimensionLiteralsWString, member_seq_ArraySingleDimensionLiteralsWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsWString, type_name_ArraySingleDimensionLiteralsWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsWString, type_name_ArraySingleDimensionLiteralsWString.to_string(), type_ids_ArraySingleDimensionLiteralsWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsWString", type_ids_ArraySingleDimensionLiteralsWString); - if (return_code_ArraySingleDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsBoundedString) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsBoundedString", type_ids_ArraySingleDimensionLiteralsBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsBoundedString) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsBoundedString; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsBoundedString; QualifiedTypeName type_name_ArraySingleDimensionLiteralsBoundedString = "ArraySingleDimensionLiteralsBoundedString"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsBoundedString; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsBoundedString; @@ -14783,164 +6498,31 @@ void register_ArraySingleDimensionLiteralsBoundedString_type_identifier( header_ArraySingleDimensionLiteralsBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsBoundedString); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsBoundedString; { - return_code_ArraySingleDimensionLiteralsBoundedString = + TypeIdentifierPair type_ids_var_array_bounded_string; + ReturnCode_t return_code_var_array_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_5", type_ids_ArraySingleDimensionLiteralsBoundedString); + "anonymous_array_anonymous_string_10_5", type_ids_var_array_bounded_string); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) { - return_code_ArraySingleDimensionLiteralsBoundedString = + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArraySingleDimensionLiteralsBoundedString); - - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_ArraySingleDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArraySingleDimensionLiteralsBoundedString); + "Inner_alias_bounded_string_helper", type_ids_var_array_bounded_string); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArraySingleDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArraySingleDimensionLiteralsBoundedString); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArraySingleDimensionLiteralsBoundedString); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_array_bounded_string); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, element_identifier_anonymous_array_anonymous_string_10_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_10_5 = EK_BOTH; } @@ -14953,68 +6535,21 @@ void register_ArraySingleDimensionLiteralsBoundedString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_5", type_ids_var_array_bounded_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_5", type_ids_ArraySingleDimensionLiteralsBoundedString); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_string; MemberId member_id_var_array_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bounded_string_ec {false}; + CommonStructMember common_var_array_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, common_var_array_bounded_string_ec))}; + if (!common_var_array_bounded_string_ec) { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArraySingleDimensionLiteralsBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_string = "var_array_bounded_string"; @@ -15026,32 +6561,26 @@ void register_ArraySingleDimensionLiteralsBoundedString_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsBoundedString, header_ArraySingleDimensionLiteralsBoundedString, member_seq_ArraySingleDimensionLiteralsBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoundedString, type_name_ArraySingleDimensionLiteralsBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoundedString, type_name_ArraySingleDimensionLiteralsBoundedString.to_string(), type_ids_ArraySingleDimensionLiteralsBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsBoundedString", type_ids_ArraySingleDimensionLiteralsBoundedString); - if (return_code_ArraySingleDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsBoundedWString) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsBoundedWString", type_ids_ArraySingleDimensionLiteralsBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsBoundedWString) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsBoundedWString; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsBoundedWString; QualifiedTypeName type_name_ArraySingleDimensionLiteralsBoundedWString = "ArraySingleDimensionLiteralsBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsBoundedWString; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsBoundedWString; @@ -15060,164 +6589,31 @@ void register_ArraySingleDimensionLiteralsBoundedWString_type_identifier( header_ArraySingleDimensionLiteralsBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsBoundedWString); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsBoundedWString; { - return_code_ArraySingleDimensionLiteralsBoundedWString = + TypeIdentifierPair type_ids_var_array_bounded_wstring; + ReturnCode_t return_code_var_array_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10", type_ids_ArraySingleDimensionLiteralsBoundedWString); + "anonymous_array_anonymous_wstring_10_10", type_ids_var_array_bounded_wstring); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) { - return_code_ArraySingleDimensionLiteralsBoundedWString = + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArraySingleDimensionLiteralsBoundedWString); - - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_ArraySingleDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArraySingleDimensionLiteralsBoundedWString); + "Inner_alias_bounded_wstring_helper", type_ids_var_array_bounded_wstring); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArraySingleDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArraySingleDimensionLiteralsBoundedWString); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArraySingleDimensionLiteralsBoundedWString); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_array_bounded_wstring); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, element_identifier_anonymous_array_anonymous_wstring_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_10_10 = EK_BOTH; } @@ -15230,68 +6626,21 @@ void register_ArraySingleDimensionLiteralsBoundedWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10", type_ids_var_array_bounded_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10", type_ids_ArraySingleDimensionLiteralsBoundedWString); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_wstring; MemberId member_id_var_array_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArraySingleDimensionLiteralsBoundedWString.type_identifier2()); - } - else + bool common_var_array_bounded_wstring_ec {false}; + CommonStructMember common_var_array_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, common_var_array_bounded_wstring_ec))}; + if (!common_var_array_bounded_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_wstring = "var_array_bounded_wstring"; @@ -15303,32 +6652,26 @@ void register_ArraySingleDimensionLiteralsBoundedWString_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsBoundedWString, header_ArraySingleDimensionLiteralsBoundedWString, member_seq_ArraySingleDimensionLiteralsBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoundedWString, type_name_ArraySingleDimensionLiteralsBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBoundedWString, type_name_ArraySingleDimensionLiteralsBoundedWString.to_string(), type_ids_ArraySingleDimensionLiteralsBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsBoundedWString", type_ids_ArraySingleDimensionLiteralsBoundedWString); - if (return_code_ArraySingleDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsEnum) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsEnum", type_ids_ArraySingleDimensionLiteralsEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsEnum) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsEnum; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsEnum; QualifiedTypeName type_name_ArraySingleDimensionLiteralsEnum = "ArraySingleDimensionLiteralsEnum"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsEnum; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsEnum; @@ -15337,122 +6680,31 @@ void register_ArraySingleDimensionLiteralsEnum_type_identifier( header_ArraySingleDimensionLiteralsEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsEnum); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsEnum; { - return_code_ArraySingleDimensionLiteralsEnum = + TypeIdentifierPair type_ids_var_array_enum; + ReturnCode_t return_code_var_array_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_5", type_ids_ArraySingleDimensionLiteralsEnum); + "anonymous_array_InnerEnumHelper_5", type_ids_var_array_enum); - if (return_code_ArraySingleDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) { - return_code_ArraySingleDimensionLiteralsEnum = + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArraySingleDimensionLiteralsEnum); - - if (return_code_ArraySingleDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArraySingleDimensionLiteralsEnum); - if (return_code_ArraySingleDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerEnumHelper", type_ids_var_array_enum); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) + { + ::register_InnerEnumHelper_type_identifier(type_ids_var_array_enum); } - TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerEnumHelper_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, element_identifier_anonymous_array_InnerEnumHelper_5_ec))}; + if (!element_identifier_anonymous_array_InnerEnumHelper_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerEnumHelper_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_enum.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerEnumHelper_5 = EK_BOTH; } @@ -15465,68 +6717,21 @@ void register_ArraySingleDimensionLiteralsEnum_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerEnumHelper_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerEnumHelper_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_5", type_ids_var_array_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerEnumHelper_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_5", type_ids_ArraySingleDimensionLiteralsEnum); - if (return_code_ArraySingleDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerEnumHelper_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_enum; MemberId member_id_var_array_enum = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_enum_ec {false}; + CommonStructMember common_var_array_enum {TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, common_var_array_enum_ec))}; + if (!common_var_array_enum_ec) { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArraySingleDimensionLiteralsEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArraySingleDimensionLiteralsEnum.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_array_enum = "var_array_enum"; @@ -15538,32 +6743,26 @@ void register_ArraySingleDimensionLiteralsEnum_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsEnum, header_ArraySingleDimensionLiteralsEnum, member_seq_ArraySingleDimensionLiteralsEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsEnum, type_name_ArraySingleDimensionLiteralsEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsEnum, type_name_ArraySingleDimensionLiteralsEnum.to_string(), type_ids_ArraySingleDimensionLiteralsEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsEnum already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsEnum", type_ids_ArraySingleDimensionLiteralsEnum); - if (return_code_ArraySingleDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsBitMask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsBitMask) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsBitMask", type_ids_ArraySingleDimensionLiteralsBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsBitMask) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsBitMask; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsBitMask; QualifiedTypeName type_name_ArraySingleDimensionLiteralsBitMask = "ArraySingleDimensionLiteralsBitMask"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsBitMask; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsBitMask; @@ -15572,155 +6771,31 @@ void register_ArraySingleDimensionLiteralsBitMask_type_identifier( header_ArraySingleDimensionLiteralsBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsBitMask); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsBitMask; { - return_code_ArraySingleDimensionLiteralsBitMask = + TypeIdentifierPair type_ids_var_array_bitmask; + ReturnCode_t return_code_var_array_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10", type_ids_ArraySingleDimensionLiteralsBitMask); + "anonymous_array_InnerBitMaskHelper_10", type_ids_var_array_bitmask); - if (return_code_ArraySingleDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) { - return_code_ArraySingleDimensionLiteralsBitMask = + return_code_var_array_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArraySingleDimensionLiteralsBitMask); - - if (return_code_ArraySingleDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArraySingleDimensionLiteralsBitMask); - if (return_code_ArraySingleDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerBitMaskHelper", type_ids_var_array_bitmask); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_array_bitmask); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitMaskHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, element_identifier_anonymous_array_InnerBitMaskHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitMaskHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitMaskHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitmask.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitMaskHelper_10 = EK_BOTH; } @@ -15733,68 +6808,21 @@ void register_ArraySingleDimensionLiteralsBitMask_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitMaskHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitMaskHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_10", type_ids_var_array_bitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitMaskHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_10", type_ids_ArraySingleDimensionLiteralsBitMask); - if (return_code_ArraySingleDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitMaskHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitmask; MemberId member_id_var_array_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_bitmask_ec {false}; + CommonStructMember common_var_array_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, common_var_array_bitmask_ec))}; + if (!common_var_array_bitmask_ec) { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArraySingleDimensionLiteralsBitMask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitmask = "var_array_bitmask"; @@ -15806,32 +6834,26 @@ void register_ArraySingleDimensionLiteralsBitMask_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsBitMask, header_ArraySingleDimensionLiteralsBitMask, member_seq_ArraySingleDimensionLiteralsBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBitMask, type_name_ArraySingleDimensionLiteralsBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBitMask, type_name_ArraySingleDimensionLiteralsBitMask.to_string(), type_ids_ArraySingleDimensionLiteralsBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsBitMask", type_ids_ArraySingleDimensionLiteralsBitMask); - if (return_code_ArraySingleDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsAlias) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsAlias", type_ids_ArraySingleDimensionLiteralsAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsAlias) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsAlias; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsAlias; QualifiedTypeName type_name_ArraySingleDimensionLiteralsAlias = "ArraySingleDimensionLiteralsAlias"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsAlias; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsAlias; @@ -15840,147 +6862,31 @@ void register_ArraySingleDimensionLiteralsAlias_type_identifier( header_ArraySingleDimensionLiteralsAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsAlias); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsAlias; { - return_code_ArraySingleDimensionLiteralsAlias = + TypeIdentifierPair type_ids_var_array_alias; + ReturnCode_t return_code_var_array_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10", type_ids_ArraySingleDimensionLiteralsAlias); + "anonymous_array_InnerAliasHelper_10", type_ids_var_array_alias); - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) { - return_code_ArraySingleDimensionLiteralsAlias = + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArraySingleDimensionLiteralsAlias); - - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_ArraySingleDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySingleDimensionLiteralsAlias); + "InnerAliasHelper", type_ids_var_array_alias); - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArraySingleDimensionLiteralsAlias); - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) + { + ::register_InnerAliasHelper_type_identifier(type_ids_var_array_alias); } - TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerAliasHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, element_identifier_anonymous_array_InnerAliasHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerAliasHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerAliasHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_alias.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerAliasHelper_10 = EK_BOTH; } @@ -15993,68 +6899,21 @@ void register_ArraySingleDimensionLiteralsAlias_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerAliasHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerAliasHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10", type_ids_var_array_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerAliasHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10", type_ids_ArraySingleDimensionLiteralsAlias); - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerAliasHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_alias; MemberId member_id_var_array_alias = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_alias_ec {false}; + CommonStructMember common_var_array_alias {TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, common_var_array_alias_ec))}; + if (!common_var_array_alias_ec) { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArraySingleDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArraySingleDimensionLiteralsAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_array_alias = "var_array_alias"; @@ -16066,32 +6925,26 @@ void register_ArraySingleDimensionLiteralsAlias_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsAlias, header_ArraySingleDimensionLiteralsAlias, member_seq_ArraySingleDimensionLiteralsAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsAlias, type_name_ArraySingleDimensionLiteralsAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsAlias, type_name_ArraySingleDimensionLiteralsAlias.to_string(), type_ids_ArraySingleDimensionLiteralsAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsAlias already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsAlias", type_ids_ArraySingleDimensionLiteralsAlias); - if (return_code_ArraySingleDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsShortArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsShortArray) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsShortArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsShortArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsShortArray", type_ids_ArraySingleDimensionLiteralsShortArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsShortArray) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsShortArray; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsShortArray; QualifiedTypeName type_name_ArraySingleDimensionLiteralsShortArray = "ArraySingleDimensionLiteralsShortArray"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsShortArray; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsShortArray; @@ -16100,69 +6953,33 @@ void register_ArraySingleDimensionLiteralsShortArray_type_identifier( header_ArraySingleDimensionLiteralsShortArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsShortArray); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsShortArray; { - return_code_ArraySingleDimensionLiteralsShortArray = + TypeIdentifierPair type_ids_var_array_short_array; + ReturnCode_t return_code_var_array_short_array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10", type_ids_ArraySingleDimensionLiteralsShortArray); + "anonymous_array_int16_t_10_10", type_ids_var_array_short_array); - if (return_code_ArraySingleDimensionLiteralsShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short_array) { - return_code_ArraySingleDimensionLiteralsShortArray = + return_code_var_array_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArraySingleDimensionLiteralsShortArray); + "_int16_t", type_ids_var_array_short_array); - if (return_code_ArraySingleDimensionLiteralsShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short_array) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short_array, element_identifier_anonymous_array_int16_t_10_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short_array.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10_10 = EK_BOTH; } @@ -16177,68 +6994,21 @@ void register_ArraySingleDimensionLiteralsShortArray_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10_10", type_ids_var_array_short_array)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10_10", type_ids_ArraySingleDimensionLiteralsShortArray); - if (return_code_ArraySingleDimensionLiteralsShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short_array; MemberId member_id_var_array_short_array = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_short_array_ec {false}; + CommonStructMember common_var_array_short_array {TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short_array, common_var_array_short_array_ec))}; + if (!common_var_array_short_array_ec) { - common_var_array_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_array_short_array, member_flags_var_array_short_array, type_ids_ArraySingleDimensionLiteralsShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short_array member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short_array member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short_array = "var_array_short_array"; @@ -16250,32 +7020,26 @@ void register_ArraySingleDimensionLiteralsShortArray_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsShortArray = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsShortArray, header_ArraySingleDimensionLiteralsShortArray, member_seq_ArraySingleDimensionLiteralsShortArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsShortArray, type_name_ArraySingleDimensionLiteralsShortArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsShortArray, type_name_ArraySingleDimensionLiteralsShortArray.to_string(), type_ids_ArraySingleDimensionLiteralsShortArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsShortArray already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsShortArray", type_ids_ArraySingleDimensionLiteralsShortArray); - if (return_code_ArraySingleDimensionLiteralsShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsShortArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsSequence) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsSequence", type_ids_ArraySingleDimensionLiteralsSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsSequence) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsSequence; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsSequence; QualifiedTypeName type_name_ArraySingleDimensionLiteralsSequence = "ArraySingleDimensionLiteralsSequence"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsSequence; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsSequence; @@ -16284,75 +7048,39 @@ void register_ArraySingleDimensionLiteralsSequence_type_identifier( header_ArraySingleDimensionLiteralsSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsSequence); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsSequence; { - return_code_ArraySingleDimensionLiteralsSequence = + TypeIdentifierPair type_ids_var_array_sequence; + ReturnCode_t return_code_var_array_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_5", type_ids_ArraySingleDimensionLiteralsSequence); + "anonymous_array_anonymous_sequence_int32_t_unbounded_5", type_ids_var_array_sequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArraySingleDimensionLiteralsSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArraySingleDimensionLiteralsSequence); + "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArraySingleDimensionLiteralsSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySingleDimensionLiteralsSequence); + "_int32_t", type_ids_var_array_sequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -16363,69 +7091,22 @@ void register_ArraySingleDimensionLiteralsSequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArraySingleDimensionLiteralsSequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_5 = EK_BOTH; } @@ -16438,68 +7119,21 @@ void register_ArraySingleDimensionLiteralsSequence_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_sequence_int32_t_unbounded_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_5", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_sequence_int32_t_unbounded_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_5", type_ids_ArraySingleDimensionLiteralsSequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_sequence_int32_t_unbounded_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_sequence; MemberId member_id_var_array_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArraySingleDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_sequence_ec {false}; + CommonStructMember common_var_array_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, common_var_array_sequence_ec))}; + if (!common_var_array_sequence_ec) { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArraySingleDimensionLiteralsSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_array_sequence = "var_array_sequence"; @@ -16511,32 +7145,26 @@ void register_ArraySingleDimensionLiteralsSequence_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsSequence, header_ArraySingleDimensionLiteralsSequence, member_seq_ArraySingleDimensionLiteralsSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsSequence, type_name_ArraySingleDimensionLiteralsSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsSequence, type_name_ArraySingleDimensionLiteralsSequence.to_string(), type_ids_ArraySingleDimensionLiteralsSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsSequence already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsSequence", type_ids_ArraySingleDimensionLiteralsSequence); - if (return_code_ArraySingleDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsMap) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsMap", type_ids_ArraySingleDimensionLiteralsMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsMap) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsMap; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsMap; QualifiedTypeName type_name_ArraySingleDimensionLiteralsMap = "ArraySingleDimensionLiteralsMap"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsMap; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsMap; @@ -16545,126 +7173,54 @@ void register_ArraySingleDimensionLiteralsMap_type_identifier( header_ArraySingleDimensionLiteralsMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsMap); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsMap; { - return_code_ArraySingleDimensionLiteralsMap = + TypeIdentifierPair type_ids_var_array_map; + ReturnCode_t return_code_var_array_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2", type_ids_ArraySingleDimensionLiteralsMap); + "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2", type_ids_var_array_map); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArraySingleDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArraySingleDimensionLiteralsMap); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArraySingleDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySingleDimensionLiteralsMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_ArraySingleDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArraySingleDimensionLiteralsMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -16687,69 +7243,22 @@ void register_ArraySingleDimensionLiteralsMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArraySingleDimensionLiteralsMap); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2_ec))}; + if (!element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_map.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 = EK_BOTH; } @@ -16762,68 +7271,21 @@ void register_ArraySingleDimensionLiteralsMap_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2", type_ids_ArraySingleDimensionLiteralsMap); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_map; MemberId member_id_var_array_map = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArraySingleDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArraySingleDimensionLiteralsMap.type_identifier2()); - } - else + bool common_var_array_map_ec {false}; + CommonStructMember common_var_array_map {TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, common_var_array_map_ec))}; + if (!common_var_array_map_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_map member TypeIdentifier inconsistent."); return; } MemberName name_var_array_map = "var_array_map"; @@ -16835,32 +7297,26 @@ void register_ArraySingleDimensionLiteralsMap_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsMap = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsMap, header_ArraySingleDimensionLiteralsMap, member_seq_ArraySingleDimensionLiteralsMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsMap, type_name_ArraySingleDimensionLiteralsMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsMap, type_name_ArraySingleDimensionLiteralsMap.to_string(), type_ids_ArraySingleDimensionLiteralsMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsMap already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsMap", type_ids_ArraySingleDimensionLiteralsMap); - if (return_code_ArraySingleDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsUnion) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsUnion", type_ids_ArraySingleDimensionLiteralsUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsUnion) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsUnion; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsUnion; QualifiedTypeName type_name_ArraySingleDimensionLiteralsUnion = "ArraySingleDimensionLiteralsUnion"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsUnion; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsUnion; @@ -16869,346 +7325,31 @@ void register_ArraySingleDimensionLiteralsUnion_type_identifier( header_ArraySingleDimensionLiteralsUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsUnion); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsUnion; { - return_code_ArraySingleDimensionLiteralsUnion = + TypeIdentifierPair type_ids_var_array_union; + ReturnCode_t return_code_var_array_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10", type_ids_ArraySingleDimensionLiteralsUnion); + "anonymous_array_InnerUnionHelper_10", type_ids_var_array_union); - if (return_code_ArraySingleDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - return_code_ArraySingleDimensionLiteralsUnion = + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_ArraySingleDimensionLiteralsUnion); + "InnerUnionHelper", type_ids_var_array_union); - if (return_code_ArraySingleDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArraySingleDimensionLiteralsUnion = return_code_InnerUnionHelper; - type_ids_ArraySingleDimensionLiteralsUnion = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_array_union); } - TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerUnionHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, element_identifier_anonymous_array_InnerUnionHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerUnionHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerUnionHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_union.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerUnionHelper_10 = EK_BOTH; } @@ -17221,68 +7362,21 @@ void register_ArraySingleDimensionLiteralsUnion_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerUnionHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerUnionHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10", type_ids_var_array_union)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerUnionHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10", type_ids_ArraySingleDimensionLiteralsUnion); - if (return_code_ArraySingleDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerUnionHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_union; MemberId member_id_var_array_union = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArraySingleDimensionLiteralsUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_union_ec {false}; + CommonStructMember common_var_array_union {TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, common_var_array_union_ec))}; + if (!common_var_array_union_ec) { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArraySingleDimensionLiteralsUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_union member TypeIdentifier inconsistent."); return; } MemberName name_var_array_union = "var_array_union"; @@ -17294,32 +7388,26 @@ void register_ArraySingleDimensionLiteralsUnion_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsUnion, header_ArraySingleDimensionLiteralsUnion, member_seq_ArraySingleDimensionLiteralsUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnion, type_name_ArraySingleDimensionLiteralsUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsUnion, type_name_ArraySingleDimensionLiteralsUnion.to_string(), type_ids_ArraySingleDimensionLiteralsUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsUnion already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsUnion", type_ids_ArraySingleDimensionLiteralsUnion); - if (return_code_ArraySingleDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsStructure) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsStructure", type_ids_ArraySingleDimensionLiteralsStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsStructure) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsStructure; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsStructure; QualifiedTypeName type_name_ArraySingleDimensionLiteralsStructure = "ArraySingleDimensionLiteralsStructure"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsStructure; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsStructure; @@ -17328,236 +7416,31 @@ void register_ArraySingleDimensionLiteralsStructure_type_identifier( header_ArraySingleDimensionLiteralsStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsStructure); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsStructure; { - return_code_ArraySingleDimensionLiteralsStructure = + TypeIdentifierPair type_ids_var_array_structure; + ReturnCode_t return_code_var_array_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_5", type_ids_ArraySingleDimensionLiteralsStructure); + "anonymous_array_InnerStructureHelper_5", type_ids_var_array_structure); - if (return_code_ArraySingleDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - return_code_ArraySingleDimensionLiteralsStructure = + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_ArraySingleDimensionLiteralsStructure); + "InnerStructureHelper", type_ids_var_array_structure); - if (return_code_ArraySingleDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArraySingleDimensionLiteralsStructure = return_code_InnerStructureHelper; - type_ids_ArraySingleDimensionLiteralsStructure = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_array_structure); } - TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_5 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerStructureHelper_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, element_identifier_anonymous_array_InnerStructureHelper_5_ec))}; + if (!element_identifier_anonymous_array_InnerStructureHelper_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerStructureHelper_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_structure.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerStructureHelper_5 = EK_BOTH; } @@ -17570,68 +7453,21 @@ void register_ArraySingleDimensionLiteralsStructure_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerStructureHelper_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerStructureHelper_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_5", type_ids_var_array_structure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerStructureHelper_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_5", type_ids_ArraySingleDimensionLiteralsStructure); - if (return_code_ArraySingleDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerStructureHelper_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_structure; MemberId member_id_var_array_structure = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArraySingleDimensionLiteralsStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArraySingleDimensionLiteralsStructure.type_identifier2()); - } - else + bool common_var_array_structure_ec {false}; + CommonStructMember common_var_array_structure {TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, common_var_array_structure_ec))}; + if (!common_var_array_structure_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_array_structure = "var_array_structure"; @@ -17643,32 +7479,26 @@ void register_ArraySingleDimensionLiteralsStructure_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsStructure, header_ArraySingleDimensionLiteralsStructure, member_seq_ArraySingleDimensionLiteralsStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsStructure, type_name_ArraySingleDimensionLiteralsStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsStructure, type_name_ArraySingleDimensionLiteralsStructure.to_string(), type_ids_ArraySingleDimensionLiteralsStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsStructure already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsStructure", type_ids_ArraySingleDimensionLiteralsStructure); - if (return_code_ArraySingleDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArraySingleDimensionLiteralsBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArraySingleDimensionLiteralsBitset) { + + ReturnCode_t return_code_ArraySingleDimensionLiteralsBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArraySingleDimensionLiteralsBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArraySingleDimensionLiteralsBitset", type_ids_ArraySingleDimensionLiteralsBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArraySingleDimensionLiteralsBitset) { - StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArraySingleDimensionLiteralsBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArraySingleDimensionLiteralsBitset; - TypeIdentifierPair type_ids_ArraySingleDimensionLiteralsBitset; QualifiedTypeName type_name_ArraySingleDimensionLiteralsBitset = "ArraySingleDimensionLiteralsBitset"; eprosima::fastcdr::optional type_ann_builtin_ArraySingleDimensionLiteralsBitset; eprosima::fastcdr::optional ann_custom_ArraySingleDimensionLiteralsBitset; @@ -17677,141 +7507,31 @@ void register_ArraySingleDimensionLiteralsBitset_type_identifier( header_ArraySingleDimensionLiteralsBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArraySingleDimensionLiteralsBitset); CompleteStructMemberSeq member_seq_ArraySingleDimensionLiteralsBitset; { - return_code_ArraySingleDimensionLiteralsBitset = + TypeIdentifierPair type_ids_var_array_bitset; + ReturnCode_t return_code_var_array_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10", type_ids_ArraySingleDimensionLiteralsBitset); + "anonymous_array_InnerBitsetHelper_10", type_ids_var_array_bitset); - if (return_code_ArraySingleDimensionLiteralsBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - return_code_ArraySingleDimensionLiteralsBitset = + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArraySingleDimensionLiteralsBitset); + "InnerBitsetHelper", type_ids_var_array_bitset); - if (return_code_ArraySingleDimensionLiteralsBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArraySingleDimensionLiteralsBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArraySingleDimensionLiteralsBitset); - if (return_code_ArraySingleDimensionLiteralsBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_array_bitset); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10 = new TypeIdentifier(type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitsetHelper_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, element_identifier_anonymous_array_InnerBitsetHelper_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitsetHelper_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitsetHelper_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitset.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitsetHelper_10 = EK_BOTH; } @@ -17824,68 +7544,21 @@ void register_ArraySingleDimensionLiteralsBitset_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitsetHelper_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitsetHelper_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10", type_ids_var_array_bitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitsetHelper_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArraySingleDimensionLiteralsBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10", type_ids_ArraySingleDimensionLiteralsBitset); - if (return_code_ArraySingleDimensionLiteralsBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitsetHelper_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitset; MemberId member_id_var_array_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() || TK_NONE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArraySingleDimensionLiteralsBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArraySingleDimensionLiteralsBitset.type_identifier2()); - } - else + bool common_var_array_bitset_ec {false}; + CommonStructMember common_var_array_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, common_var_array_bitset_ec))}; + if (!common_var_array_bitset_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitset = "var_array_bitset"; @@ -17897,32 +7570,26 @@ void register_ArraySingleDimensionLiteralsBitset_type_identifier( } CompleteStructType struct_type_ArraySingleDimensionLiteralsBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_ArraySingleDimensionLiteralsBitset, header_ArraySingleDimensionLiteralsBitset, member_seq_ArraySingleDimensionLiteralsBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBitset, type_name_ArraySingleDimensionLiteralsBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArraySingleDimensionLiteralsBitset, type_name_ArraySingleDimensionLiteralsBitset.to_string(), type_ids_ArraySingleDimensionLiteralsBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArraySingleDimensionLiteralsBitset already registered in TypeObjectRegistry for a different type."); } - return_code_ArraySingleDimensionLiteralsBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArraySingleDimensionLiteralsBitset", type_ids_ArraySingleDimensionLiteralsBitset); - if (return_code_ArraySingleDimensionLiteralsBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArraySingleDimensionLiteralsBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsShort) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsShort", type_ids_ArrayMultiDimensionLiteralsShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsShort) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsShort; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsShort; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsShort = "ArrayMultiDimensionLiteralsShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsShort; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsShort; @@ -17931,69 +7598,33 @@ void register_ArrayMultiDimensionLiteralsShort_type_identifier( header_ArrayMultiDimensionLiteralsShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsShort); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsShort; { - return_code_ArrayMultiDimensionLiteralsShort = + TypeIdentifierPair type_ids_var_array_short; + ReturnCode_t return_code_var_array_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_5_10_2", type_ids_ArrayMultiDimensionLiteralsShort); + "anonymous_array_int16_t_5_10_2", type_ids_var_array_short); - if (return_code_ArrayMultiDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { - return_code_ArrayMultiDimensionLiteralsShort = + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ArrayMultiDimensionLiteralsShort); + "_int16_t", type_ids_var_array_short); - if (return_code_ArrayMultiDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_5_10_2 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_5_10_2 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_5_10_2 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_5_10_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_5_10_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, element_identifier_anonymous_array_int16_t_5_10_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_5_10_2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_5_10_2 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_5_10_2 = EK_BOTH; } @@ -18010,68 +7641,21 @@ void register_ArrayMultiDimensionLiteralsShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_5_10_2, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_5_10_2)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_5_10_2")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_5_10_2", type_ids_var_array_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_5_10_2 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_5_10_2", type_ids_ArrayMultiDimensionLiteralsShort); - if (return_code_ArrayMultiDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_5_10_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short; MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayMultiDimensionLiteralsShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_ArrayMultiDimensionLiteralsShort.type_identifier2()); - } - else + bool common_var_array_short_ec {false}; + CommonStructMember common_var_array_short {TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, common_var_array_short_ec))}; + if (!common_var_array_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short = "var_array_short"; @@ -18083,32 +7667,26 @@ void register_ArrayMultiDimensionLiteralsShort_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsShort, header_ArrayMultiDimensionLiteralsShort, member_seq_ArrayMultiDimensionLiteralsShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsShort, type_name_ArrayMultiDimensionLiteralsShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsShort, type_name_ArrayMultiDimensionLiteralsShort.to_string(), type_ids_ArrayMultiDimensionLiteralsShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsShort", type_ids_ArrayMultiDimensionLiteralsShort); - if (return_code_ArrayMultiDimensionLiteralsShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsUShort) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsUShort", type_ids_ArrayMultiDimensionLiteralsUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsUShort) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsUShort; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsUShort; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsUShort = "ArrayMultiDimensionLiteralsUShort"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsUShort; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsUShort; @@ -18117,69 +7695,33 @@ void register_ArrayMultiDimensionLiteralsUShort_type_identifier( header_ArrayMultiDimensionLiteralsUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsUShort); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsUShort; { - return_code_ArrayMultiDimensionLiteralsUShort = + TypeIdentifierPair type_ids_var_array_ushort; + ReturnCode_t return_code_var_array_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsUShort); + "anonymous_array_uint16_t_5_10_5", type_ids_var_array_ushort); - if (return_code_ArrayMultiDimensionLiteralsUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { - return_code_ArrayMultiDimensionLiteralsUShort = + return_code_var_array_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ArrayMultiDimensionLiteralsUShort); + "_uint16_t", type_ids_var_array_ushort); - if (return_code_ArrayMultiDimensionLiteralsUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, element_identifier_anonymous_array_uint16_t_5_10_5_ec))}; + if (!element_identifier_anonymous_array_uint16_t_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ushort.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_5_10_5 = EK_BOTH; } @@ -18196,68 +7738,21 @@ void register_ArrayMultiDimensionLiteralsUShort_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_5_10_5", type_ids_var_array_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsUShort); - if (return_code_ArrayMultiDimensionLiteralsUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ushort; MemberId member_id_var_array_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, type_ids_ArrayMultiDimensionLiteralsUShort.type_identifier2()); - } - else + bool common_var_array_ushort_ec {false}; + CommonStructMember common_var_array_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_array_ushort, member_flags_var_array_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ushort, common_var_array_ushort_ec))}; + if (!common_var_array_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ushort = "var_array_ushort"; @@ -18269,32 +7764,26 @@ void register_ArrayMultiDimensionLiteralsUShort_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsUShort, header_ArrayMultiDimensionLiteralsUShort, member_seq_ArrayMultiDimensionLiteralsUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsUShort, type_name_ArrayMultiDimensionLiteralsUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsUShort, type_name_ArrayMultiDimensionLiteralsUShort.to_string(), type_ids_ArrayMultiDimensionLiteralsUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsUShort already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsUShort", type_ids_ArrayMultiDimensionLiteralsUShort); - if (return_code_ArrayMultiDimensionLiteralsUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsLong) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsLong", type_ids_ArrayMultiDimensionLiteralsLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsLong; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsLong = "ArrayMultiDimensionLiteralsLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsLong; @@ -18303,69 +7792,33 @@ void register_ArrayMultiDimensionLiteralsLong_type_identifier( header_ArrayMultiDimensionLiteralsLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsLong; { - return_code_ArrayMultiDimensionLiteralsLong = + TypeIdentifierPair type_ids_var_array_long; + ReturnCode_t return_code_var_array_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10_5_5", type_ids_ArrayMultiDimensionLiteralsLong); + "anonymous_array_int32_t_10_5_5", type_ids_var_array_long); - if (return_code_ArrayMultiDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { - return_code_ArrayMultiDimensionLiteralsLong = + return_code_var_array_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLiteralsLong); + "_int32_t", type_ids_var_array_long); - if (return_code_ArrayMultiDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_10_5_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10_5_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_10_5_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_10_5_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_10_5_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, element_identifier_anonymous_array_int32_t_10_5_5_ec))}; + if (!element_identifier_anonymous_array_int32_t_10_5_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_10_5_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_long.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_10_5_5 = EK_BOTH; } @@ -18382,68 +7835,21 @@ void register_ArrayMultiDimensionLiteralsLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_10_5_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_10_5_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10_5_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_10_5_5", type_ids_var_array_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_10_5_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_10_5_5", type_ids_ArrayMultiDimensionLiteralsLong); - if (return_code_ArrayMultiDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_10_5_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_long; MemberId member_id_var_array_long = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayMultiDimensionLiteralsLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_long = TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, type_ids_ArrayMultiDimensionLiteralsLong.type_identifier2()); - } - else + bool common_var_array_long_ec {false}; + CommonStructMember common_var_array_long {TypeObjectUtils::build_common_struct_member(member_id_var_array_long, member_flags_var_array_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_long, common_var_array_long_ec))}; + if (!common_var_array_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_long member TypeIdentifier inconsistent."); return; } MemberName name_var_array_long = "var_array_long"; @@ -18455,32 +7861,26 @@ void register_ArrayMultiDimensionLiteralsLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsLong, header_ArrayMultiDimensionLiteralsLong, member_seq_ArrayMultiDimensionLiteralsLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLong, type_name_ArrayMultiDimensionLiteralsLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLong, type_name_ArrayMultiDimensionLiteralsLong.to_string(), type_ids_ArrayMultiDimensionLiteralsLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsLong", type_ids_ArrayMultiDimensionLiteralsLong); - if (return_code_ArrayMultiDimensionLiteralsLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsULong) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsULong", type_ids_ArrayMultiDimensionLiteralsULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsULong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsULong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsULong; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsULong = "ArrayMultiDimensionLiteralsULong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsULong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsULong; @@ -18489,69 +7889,33 @@ void register_ArrayMultiDimensionLiteralsULong_type_identifier( header_ArrayMultiDimensionLiteralsULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsULong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsULong; { - return_code_ArrayMultiDimensionLiteralsULong = + TypeIdentifierPair type_ids_var_array_ulong; + ReturnCode_t return_code_var_array_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10_10_5", type_ids_ArrayMultiDimensionLiteralsULong); + "anonymous_array_uint32_t_10_10_5", type_ids_var_array_ulong); - if (return_code_ArrayMultiDimensionLiteralsULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { - return_code_ArrayMultiDimensionLiteralsULong = + return_code_var_array_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ArrayMultiDimensionLiteralsULong); + "_uint32_t", type_ids_var_array_ulong); - if (return_code_ArrayMultiDimensionLiteralsULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_10_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_10_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_10_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_10_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, element_identifier_anonymous_array_uint32_t_10_10_5_ec))}; + if (!element_identifier_anonymous_array_uint32_t_10_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_10_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_10_10_5 = EK_BOTH; } @@ -18568,68 +7932,21 @@ void register_ArrayMultiDimensionLiteralsULong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_10_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_10_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_10_10_5", type_ids_var_array_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_10_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_10_10_5", type_ids_ArrayMultiDimensionLiteralsULong); - if (return_code_ArrayMultiDimensionLiteralsULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_10_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulong; MemberId member_id_var_array_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayMultiDimensionLiteralsULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, type_ids_ArrayMultiDimensionLiteralsULong.type_identifier2()); - } - else + bool common_var_array_ulong_ec {false}; + CommonStructMember common_var_array_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulong, member_flags_var_array_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulong, common_var_array_ulong_ec))}; + if (!common_var_array_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulong = "var_array_ulong"; @@ -18641,32 +7958,26 @@ void register_ArrayMultiDimensionLiteralsULong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsULong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsULong, header_ArrayMultiDimensionLiteralsULong, member_seq_ArrayMultiDimensionLiteralsULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsULong, type_name_ArrayMultiDimensionLiteralsULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsULong, type_name_ArrayMultiDimensionLiteralsULong.to_string(), type_ids_ArrayMultiDimensionLiteralsULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsULong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsULong", type_ids_ArrayMultiDimensionLiteralsULong); - if (return_code_ArrayMultiDimensionLiteralsULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsLongLong) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsLongLong", type_ids_ArrayMultiDimensionLiteralsLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsLongLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsLongLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsLongLong; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsLongLong = "ArrayMultiDimensionLiteralsLongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsLongLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsLongLong; @@ -18675,69 +7986,33 @@ void register_ArrayMultiDimensionLiteralsLongLong_type_identifier( header_ArrayMultiDimensionLiteralsLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsLongLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsLongLong; { - return_code_ArrayMultiDimensionLiteralsLongLong = + TypeIdentifierPair type_ids_var_array_longlong; + ReturnCode_t return_code_var_array_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsLongLong); + "anonymous_array_int64_t_5_10_5", type_ids_var_array_longlong); - if (return_code_ArrayMultiDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { - return_code_ArrayMultiDimensionLiteralsLongLong = + return_code_var_array_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ArrayMultiDimensionLiteralsLongLong); + "_int64_t", type_ids_var_array_longlong); - if (return_code_ArrayMultiDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, element_identifier_anonymous_array_int64_t_5_10_5_ec))}; + if (!element_identifier_anonymous_array_int64_t_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longlong.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_5_10_5 = EK_BOTH; } @@ -18754,68 +8029,21 @@ void register_ArrayMultiDimensionLiteralsLongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_5_10_5", type_ids_var_array_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsLongLong); - if (return_code_ArrayMultiDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_longlong; MemberId member_id_var_array_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, type_ids_ArrayMultiDimensionLiteralsLongLong.type_identifier2()); - } - else + bool common_var_array_longlong_ec {false}; + CommonStructMember common_var_array_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_array_longlong, member_flags_var_array_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longlong, common_var_array_longlong_ec))}; + if (!common_var_array_longlong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longlong = "var_array_longlong"; @@ -18827,32 +8055,26 @@ void register_ArrayMultiDimensionLiteralsLongLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsLongLong, header_ArrayMultiDimensionLiteralsLongLong, member_seq_ArrayMultiDimensionLiteralsLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLongLong, type_name_ArrayMultiDimensionLiteralsLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLongLong, type_name_ArrayMultiDimensionLiteralsLongLong.to_string(), type_ids_ArrayMultiDimensionLiteralsLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsLongLong", type_ids_ArrayMultiDimensionLiteralsLongLong); - if (return_code_ArrayMultiDimensionLiteralsLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsULongLong) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsULongLong", type_ids_ArrayMultiDimensionLiteralsULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsULongLong) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsULongLong; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsULongLong; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsULongLong = "ArrayMultiDimensionLiteralsULongLong"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsULongLong; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsULongLong; @@ -18861,69 +8083,33 @@ void register_ArrayMultiDimensionLiteralsULongLong_type_identifier( header_ArrayMultiDimensionLiteralsULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsULongLong); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsULongLong; { - return_code_ArrayMultiDimensionLiteralsULongLong = + TypeIdentifierPair type_ids_var_array_ulonglong; + ReturnCode_t return_code_var_array_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10_10_10", type_ids_ArrayMultiDimensionLiteralsULongLong); + "anonymous_array_uint64_t_10_10_10", type_ids_var_array_ulonglong); - if (return_code_ArrayMultiDimensionLiteralsULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { - return_code_ArrayMultiDimensionLiteralsULongLong = + return_code_var_array_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ArrayMultiDimensionLiteralsULongLong); + "_uint64_t", type_ids_var_array_ulonglong); - if (return_code_ArrayMultiDimensionLiteralsULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, element_identifier_anonymous_array_uint64_t_10_10_10_ec))}; + if (!element_identifier_anonymous_array_uint64_t_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_10_10_10 = EK_BOTH; } @@ -18940,68 +8126,21 @@ void register_ArrayMultiDimensionLiteralsULongLong_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_10_10_10", type_ids_var_array_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_10_10_10", type_ids_ArrayMultiDimensionLiteralsULongLong); - if (return_code_ArrayMultiDimensionLiteralsULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_ulonglong; MemberId member_id_var_array_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, type_ids_ArrayMultiDimensionLiteralsULongLong.type_identifier2()); - } - else + bool common_var_array_ulonglong_ec {false}; + CommonStructMember common_var_array_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_array_ulonglong, member_flags_var_array_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_ulonglong, common_var_array_ulonglong_ec))}; + if (!common_var_array_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_array_ulonglong = "var_array_ulonglong"; @@ -19013,32 +8152,26 @@ void register_ArrayMultiDimensionLiteralsULongLong_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsULongLong, header_ArrayMultiDimensionLiteralsULongLong, member_seq_ArrayMultiDimensionLiteralsULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsULongLong, type_name_ArrayMultiDimensionLiteralsULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsULongLong, type_name_ArrayMultiDimensionLiteralsULongLong.to_string(), type_ids_ArrayMultiDimensionLiteralsULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsULongLong", type_ids_ArrayMultiDimensionLiteralsULongLong); - if (return_code_ArrayMultiDimensionLiteralsULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsFloat) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsFloat", type_ids_ArrayMultiDimensionLiteralsFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsFloat) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsFloat; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsFloat; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsFloat = "ArrayMultiDimensionLiteralsFloat"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsFloat; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsFloat; @@ -19047,69 +8180,33 @@ void register_ArrayMultiDimensionLiteralsFloat_type_identifier( header_ArrayMultiDimensionLiteralsFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsFloat); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsFloat; { - return_code_ArrayMultiDimensionLiteralsFloat = + TypeIdentifierPair type_ids_var_array_float; + ReturnCode_t return_code_var_array_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10_5_10", type_ids_ArrayMultiDimensionLiteralsFloat); + "anonymous_array_float_10_5_10", type_ids_var_array_float); - if (return_code_ArrayMultiDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { - return_code_ArrayMultiDimensionLiteralsFloat = + return_code_var_array_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ArrayMultiDimensionLiteralsFloat); + "_float", type_ids_var_array_float); - if (return_code_ArrayMultiDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_float_10_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()); - } - else + bool element_identifier_anonymous_array_float_10_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_float_10_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, element_identifier_anonymous_array_float_10_5_10_ec))}; + if (!element_identifier_anonymous_array_float_10_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_float_10_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_float.type_identifier2()._d()) { equiv_kind_anonymous_array_float_10_5_10 = EK_BOTH; } @@ -19126,68 +8223,21 @@ void register_ArrayMultiDimensionLiteralsFloat_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_10_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_float_10_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_10_5_10", type_ids_var_array_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_float_10_5_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_10_5_10", type_ids_ArrayMultiDimensionLiteralsFloat); - if (return_code_ArrayMultiDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_float_10_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_float; MemberId member_id_var_array_float = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_float = TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, type_ids_ArrayMultiDimensionLiteralsFloat.type_identifier2()); - } - else + bool common_var_array_float_ec {false}; + CommonStructMember common_var_array_float {TypeObjectUtils::build_common_struct_member(member_id_var_array_float, member_flags_var_array_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_float, common_var_array_float_ec))}; + if (!common_var_array_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_float member TypeIdentifier inconsistent."); return; } MemberName name_var_array_float = "var_array_float"; @@ -19199,32 +8249,26 @@ void register_ArrayMultiDimensionLiteralsFloat_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsFloat, header_ArrayMultiDimensionLiteralsFloat, member_seq_ArrayMultiDimensionLiteralsFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsFloat, type_name_ArrayMultiDimensionLiteralsFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsFloat, type_name_ArrayMultiDimensionLiteralsFloat.to_string(), type_ids_ArrayMultiDimensionLiteralsFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsFloat already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsFloat", type_ids_ArrayMultiDimensionLiteralsFloat); - if (return_code_ArrayMultiDimensionLiteralsFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsDouble) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsDouble", type_ids_ArrayMultiDimensionLiteralsDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsDouble) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsDouble; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsDouble; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsDouble = "ArrayMultiDimensionLiteralsDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsDouble; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsDouble; @@ -19233,69 +8277,33 @@ void register_ArrayMultiDimensionLiteralsDouble_type_identifier( header_ArrayMultiDimensionLiteralsDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsDouble); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsDouble; { - return_code_ArrayMultiDimensionLiteralsDouble = + TypeIdentifierPair type_ids_var_array_double; + ReturnCode_t return_code_var_array_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_5_10_5", type_ids_ArrayMultiDimensionLiteralsDouble); + "anonymous_array_double_5_10_5", type_ids_var_array_double); - if (return_code_ArrayMultiDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { - return_code_ArrayMultiDimensionLiteralsDouble = + return_code_var_array_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ArrayMultiDimensionLiteralsDouble); + "_double", type_ids_var_array_double); - if (return_code_ArrayMultiDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_double_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_double_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_double_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, element_identifier_anonymous_array_double_5_10_5_ec))}; + if (!element_identifier_anonymous_array_double_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_double_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_double.type_identifier2()._d()) { equiv_kind_anonymous_array_double_5_10_5 = EK_BOTH; } @@ -19312,68 +8320,21 @@ void register_ArrayMultiDimensionLiteralsDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_double_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_5_10_5", type_ids_var_array_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_double_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_5_10_5", type_ids_ArrayMultiDimensionLiteralsDouble); - if (return_code_ArrayMultiDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_double_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_double; MemberId member_id_var_array_double = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_double = TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, type_ids_ArrayMultiDimensionLiteralsDouble.type_identifier2()); - } - else + bool common_var_array_double_ec {false}; + CommonStructMember common_var_array_double {TypeObjectUtils::build_common_struct_member(member_id_var_array_double, member_flags_var_array_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_double, common_var_array_double_ec))}; + if (!common_var_array_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_double member TypeIdentifier inconsistent."); return; } MemberName name_var_array_double = "var_array_double"; @@ -19385,32 +8346,26 @@ void register_ArrayMultiDimensionLiteralsDouble_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsDouble, header_ArrayMultiDimensionLiteralsDouble, member_seq_ArrayMultiDimensionLiteralsDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsDouble, type_name_ArrayMultiDimensionLiteralsDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsDouble, type_name_ArrayMultiDimensionLiteralsDouble.to_string(), type_ids_ArrayMultiDimensionLiteralsDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsDouble", type_ids_ArrayMultiDimensionLiteralsDouble); - if (return_code_ArrayMultiDimensionLiteralsDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsLongDouble) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsLongDouble", type_ids_ArrayMultiDimensionLiteralsLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsLongDouble) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsLongDouble; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsLongDouble; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsLongDouble = "ArrayMultiDimensionLiteralsLongDouble"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsLongDouble; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsLongDouble; @@ -19419,69 +8374,33 @@ void register_ArrayMultiDimensionLiteralsLongDouble_type_identifier( header_ArrayMultiDimensionLiteralsLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsLongDouble); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsLongDouble; { - return_code_ArrayMultiDimensionLiteralsLongDouble = + TypeIdentifierPair type_ids_var_array_longdouble; + ReturnCode_t return_code_var_array_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_5_5_10", type_ids_ArrayMultiDimensionLiteralsLongDouble); + "anonymous_array_longdouble_5_5_10", type_ids_var_array_longdouble); - if (return_code_ArrayMultiDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { - return_code_ArrayMultiDimensionLiteralsLongDouble = + return_code_var_array_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ArrayMultiDimensionLiteralsLongDouble); + "_longdouble", type_ids_var_array_longdouble); - if (return_code_ArrayMultiDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_longdouble_5_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_5_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_5_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_array_longdouble_5_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_longdouble_5_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, element_identifier_anonymous_array_longdouble_5_5_10_ec))}; + if (!element_identifier_anonymous_array_longdouble_5_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_longdouble_5_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_longdouble.type_identifier2()._d()) { equiv_kind_anonymous_array_longdouble_5_5_10 = EK_BOTH; } @@ -19498,68 +8417,21 @@ void register_ArrayMultiDimensionLiteralsLongDouble_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_longdouble_5_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_longdouble_5_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_5_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_5_5_10", type_ids_var_array_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_longdouble_5_5_10 already registered in TypeObjectRegistry for a different type."); } - } - return_code_ArrayMultiDimensionLiteralsLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_5_5_10", type_ids_ArrayMultiDimensionLiteralsLongDouble); - if (return_code_ArrayMultiDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_longdouble_5_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_array_longdouble; - MemberId member_id_var_array_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, type_ids_ArrayMultiDimensionLiteralsLongDouble.type_identifier2()); + } } - else + StructMemberFlag member_flags_var_array_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_var_array_longdouble = 0x00000000; + bool common_var_array_longdouble_ec {false}; + CommonStructMember common_var_array_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_array_longdouble, member_flags_var_array_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_longdouble, common_var_array_longdouble_ec))}; + if (!common_var_array_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_array_longdouble = "var_array_longdouble"; @@ -19571,32 +8443,26 @@ void register_ArrayMultiDimensionLiteralsLongDouble_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsLongDouble, header_ArrayMultiDimensionLiteralsLongDouble, member_seq_ArrayMultiDimensionLiteralsLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLongDouble, type_name_ArrayMultiDimensionLiteralsLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsLongDouble, type_name_ArrayMultiDimensionLiteralsLongDouble.to_string(), type_ids_ArrayMultiDimensionLiteralsLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsLongDouble", type_ids_ArrayMultiDimensionLiteralsLongDouble); - if (return_code_ArrayMultiDimensionLiteralsLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsBoolean) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsBoolean", type_ids_ArrayMultiDimensionLiteralsBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsBoolean) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoolean; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsBoolean; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBoolean = "ArrayMultiDimensionLiteralsBoolean"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBoolean; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBoolean; @@ -19605,69 +8471,33 @@ void register_ArrayMultiDimensionLiteralsBoolean_type_identifier( header_ArrayMultiDimensionLiteralsBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBoolean); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBoolean; { - return_code_ArrayMultiDimensionLiteralsBoolean = + TypeIdentifierPair type_ids_var_array_boolean; + ReturnCode_t return_code_var_array_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10_5_5", type_ids_ArrayMultiDimensionLiteralsBoolean); + "anonymous_array_bool_10_5_5", type_ids_var_array_boolean); - if (return_code_ArrayMultiDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { - return_code_ArrayMultiDimensionLiteralsBoolean = + return_code_var_array_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ArrayMultiDimensionLiteralsBoolean); + "_bool", type_ids_var_array_boolean); - if (return_code_ArrayMultiDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_bool_10_5_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10_5_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_10_5_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()); - } - else + bool element_identifier_anonymous_array_bool_10_5_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_bool_10_5_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, element_identifier_anonymous_array_bool_10_5_5_ec))}; + if (!element_identifier_anonymous_array_bool_10_5_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_bool_10_5_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_boolean.type_identifier2()._d()) { equiv_kind_anonymous_array_bool_10_5_5 = EK_BOTH; } @@ -19684,68 +8514,21 @@ void register_ArrayMultiDimensionLiteralsBoolean_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_10_5_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_bool_10_5_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10_5_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_10_5_5", type_ids_var_array_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_bool_10_5_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_10_5_5", type_ids_ArrayMultiDimensionLiteralsBoolean); - if (return_code_ArrayMultiDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_bool_10_5_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_boolean; MemberId member_id_var_array_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, type_ids_ArrayMultiDimensionLiteralsBoolean.type_identifier2()); - } - else + bool common_var_array_boolean_ec {false}; + CommonStructMember common_var_array_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_array_boolean, member_flags_var_array_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_boolean, common_var_array_boolean_ec))}; + if (!common_var_array_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_array_boolean = "var_array_boolean"; @@ -19757,32 +8540,26 @@ void register_ArrayMultiDimensionLiteralsBoolean_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsBoolean, header_ArrayMultiDimensionLiteralsBoolean, member_seq_ArrayMultiDimensionLiteralsBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoolean, type_name_ArrayMultiDimensionLiteralsBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoolean, type_name_ArrayMultiDimensionLiteralsBoolean.to_string(), type_ids_ArrayMultiDimensionLiteralsBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsBoolean", type_ids_ArrayMultiDimensionLiteralsBoolean); - if (return_code_ArrayMultiDimensionLiteralsBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsOctet) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsOctet", type_ids_ArrayMultiDimensionLiteralsOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsOctet) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsOctet; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsOctet; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsOctet = "ArrayMultiDimensionLiteralsOctet"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsOctet; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsOctet; @@ -19791,69 +8568,33 @@ void register_ArrayMultiDimensionLiteralsOctet_type_identifier( header_ArrayMultiDimensionLiteralsOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsOctet); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsOctet; { - return_code_ArrayMultiDimensionLiteralsOctet = + TypeIdentifierPair type_ids_var_array_octet; + ReturnCode_t return_code_var_array_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsOctet); + "anonymous_array_uint8_t_5_10_5", type_ids_var_array_octet); - if (return_code_ArrayMultiDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { - return_code_ArrayMultiDimensionLiteralsOctet = + return_code_var_array_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ArrayMultiDimensionLiteralsOctet); + "_byte", type_ids_var_array_octet); - if (return_code_ArrayMultiDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, element_identifier_anonymous_array_uint8_t_5_10_5_ec))}; + if (!element_identifier_anonymous_array_uint8_t_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_octet.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_5_10_5 = EK_BOTH; } @@ -19870,68 +8611,21 @@ void register_ArrayMultiDimensionLiteralsOctet_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_5_10_5", type_ids_var_array_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_5_10_5", type_ids_ArrayMultiDimensionLiteralsOctet); - if (return_code_ArrayMultiDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_octet; MemberId member_id_var_array_octet = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_octet = TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, type_ids_ArrayMultiDimensionLiteralsOctet.type_identifier2()); - } - else + bool common_var_array_octet_ec {false}; + CommonStructMember common_var_array_octet {TypeObjectUtils::build_common_struct_member(member_id_var_array_octet, member_flags_var_array_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_octet, common_var_array_octet_ec))}; + if (!common_var_array_octet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_array_octet = "var_array_octet"; @@ -19943,32 +8637,26 @@ void register_ArrayMultiDimensionLiteralsOctet_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsOctet, header_ArrayMultiDimensionLiteralsOctet, member_seq_ArrayMultiDimensionLiteralsOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsOctet, type_name_ArrayMultiDimensionLiteralsOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsOctet, type_name_ArrayMultiDimensionLiteralsOctet.to_string(), type_ids_ArrayMultiDimensionLiteralsOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsOctet already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsOctet", type_ids_ArrayMultiDimensionLiteralsOctet); - if (return_code_ArrayMultiDimensionLiteralsOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsChar) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsChar", type_ids_ArrayMultiDimensionLiteralsChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsChar) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsChar; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsChar; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsChar = "ArrayMultiDimensionLiteralsChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsChar; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsChar; @@ -19977,69 +8665,33 @@ void register_ArrayMultiDimensionLiteralsChar_type_identifier( header_ArrayMultiDimensionLiteralsChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsChar); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsChar; { - return_code_ArrayMultiDimensionLiteralsChar = + TypeIdentifierPair type_ids_var_array_char; + ReturnCode_t return_code_var_array_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10_5_10", type_ids_ArrayMultiDimensionLiteralsChar); + "anonymous_array_char_10_5_10", type_ids_var_array_char); - if (return_code_ArrayMultiDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { - return_code_ArrayMultiDimensionLiteralsChar = + return_code_var_array_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ArrayMultiDimensionLiteralsChar); + "_char", type_ids_var_array_char); - if (return_code_ArrayMultiDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_10_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_10_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_10_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, element_identifier_anonymous_array_char_10_5_10_ec))}; + if (!element_identifier_anonymous_array_char_10_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_10_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_char.type_identifier2()._d()) { equiv_kind_anonymous_array_char_10_5_10 = EK_BOTH; } @@ -20056,68 +8708,21 @@ void register_ArrayMultiDimensionLiteralsChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_10_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_10_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_10_5_10", type_ids_var_array_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_10_5_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_10_5_10", type_ids_ArrayMultiDimensionLiteralsChar); - if (return_code_ArrayMultiDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_10_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_char; MemberId member_id_var_array_char = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayMultiDimensionLiteralsChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_char = TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, type_ids_ArrayMultiDimensionLiteralsChar.type_identifier2()); - } - else + bool common_var_array_char_ec {false}; + CommonStructMember common_var_array_char {TypeObjectUtils::build_common_struct_member(member_id_var_array_char, member_flags_var_array_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_char, common_var_array_char_ec))}; + if (!common_var_array_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_char member TypeIdentifier inconsistent."); return; } MemberName name_var_array_char = "var_array_char"; @@ -20129,32 +8734,26 @@ void register_ArrayMultiDimensionLiteralsChar_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsChar, header_ArrayMultiDimensionLiteralsChar, member_seq_ArrayMultiDimensionLiteralsChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsChar, type_name_ArrayMultiDimensionLiteralsChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsChar, type_name_ArrayMultiDimensionLiteralsChar.to_string(), type_ids_ArrayMultiDimensionLiteralsChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsChar", type_ids_ArrayMultiDimensionLiteralsChar); - if (return_code_ArrayMultiDimensionLiteralsChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsWChar) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsWChar", type_ids_ArrayMultiDimensionLiteralsWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsWChar) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsWChar; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsWChar; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsWChar = "ArrayMultiDimensionLiteralsWChar"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsWChar; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsWChar; @@ -20163,69 +8762,33 @@ void register_ArrayMultiDimensionLiteralsWChar_type_identifier( header_ArrayMultiDimensionLiteralsWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsWChar); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsWChar; { - return_code_ArrayMultiDimensionLiteralsWChar = + TypeIdentifierPair type_ids_var_array_wchar; + ReturnCode_t return_code_var_array_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10_10_5", type_ids_ArrayMultiDimensionLiteralsWChar); + "anonymous_array_wchar_t_10_10_5", type_ids_var_array_wchar); - if (return_code_ArrayMultiDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { - return_code_ArrayMultiDimensionLiteralsWChar = + return_code_var_array_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_ArrayMultiDimensionLiteralsWChar); + "_wchar_t", type_ids_var_array_wchar); - if (return_code_ArrayMultiDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_wchar_t_10_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_wchar_t_10_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()); - } - else + bool element_identifier_anonymous_array_wchar_t_10_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_wchar_t_10_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, element_identifier_anonymous_array_wchar_t_10_10_5_ec))}; + if (!element_identifier_anonymous_array_wchar_t_10_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_wchar_t_10_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wchar.type_identifier2()._d()) { equiv_kind_anonymous_array_wchar_t_10_10_5 = EK_BOTH; } @@ -20242,68 +8805,21 @@ void register_ArrayMultiDimensionLiteralsWChar_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_wchar_t_10_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_wchar_t_10_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_wchar_t_10_10_5", type_ids_var_array_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_wchar_t_10_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_wchar_t_10_10_5", type_ids_ArrayMultiDimensionLiteralsWChar); - if (return_code_ArrayMultiDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_wchar_t_10_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wchar; MemberId member_id_var_array_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, type_ids_ArrayMultiDimensionLiteralsWChar.type_identifier2()); - } - else + bool common_var_array_wchar_ec {false}; + CommonStructMember common_var_array_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_array_wchar, member_flags_var_array_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wchar, common_var_array_wchar_ec))}; + if (!common_var_array_wchar_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wchar = "var_array_wchar"; @@ -20315,32 +8831,26 @@ void register_ArrayMultiDimensionLiteralsWChar_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsWChar, header_ArrayMultiDimensionLiteralsWChar, member_seq_ArrayMultiDimensionLiteralsWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsWChar, type_name_ArrayMultiDimensionLiteralsWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsWChar, type_name_ArrayMultiDimensionLiteralsWChar.to_string(), type_ids_ArrayMultiDimensionLiteralsWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsWChar already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsWChar", type_ids_ArrayMultiDimensionLiteralsWChar); - if (return_code_ArrayMultiDimensionLiteralsWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsString) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsString", type_ids_ArrayMultiDimensionLiteralsString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsString) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsString; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsString; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsString = "ArrayMultiDimensionLiteralsString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsString; @@ -20349,86 +8859,41 @@ void register_ArrayMultiDimensionLiteralsString_type_identifier( header_ArrayMultiDimensionLiteralsString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsString; { - return_code_ArrayMultiDimensionLiteralsString = + TypeIdentifierPair type_ids_var_array_string; + ReturnCode_t return_code_var_array_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_5_10_5", type_ids_ArrayMultiDimensionLiteralsString); + "anonymous_array_anonymous_string_unbounded_5_10_5", type_ids_var_array_string); - if (return_code_ArrayMultiDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { - return_code_ArrayMultiDimensionLiteralsString = + return_code_var_array_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayMultiDimensionLiteralsString); + "anonymous_string_unbounded", type_ids_var_array_string); - if (return_code_ArrayMultiDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ArrayMultiDimensionLiteralsString); - if (return_code_ArrayMultiDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_unbounded_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_unbounded_5_10_5 = EK_BOTH; } @@ -20445,68 +8910,21 @@ void register_ArrayMultiDimensionLiteralsString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_unbounded_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_unbounded_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_5_10_5", type_ids_var_array_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_unbounded_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_5_10_5", type_ids_ArrayMultiDimensionLiteralsString); - if (return_code_ArrayMultiDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_unbounded_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_string; MemberId member_id_var_array_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayMultiDimensionLiteralsString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_string_ec {false}; + CommonStructMember common_var_array_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_string, common_var_array_string_ec))}; + if (!common_var_array_string_ec) { - common_var_array_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_string, member_flags_var_array_string, type_ids_ArrayMultiDimensionLiteralsString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_string = "var_array_string"; @@ -20518,32 +8936,26 @@ void register_ArrayMultiDimensionLiteralsString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsString, header_ArrayMultiDimensionLiteralsString, member_seq_ArrayMultiDimensionLiteralsString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsString, type_name_ArrayMultiDimensionLiteralsString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsString, type_name_ArrayMultiDimensionLiteralsString.to_string(), type_ids_ArrayMultiDimensionLiteralsString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsString", type_ids_ArrayMultiDimensionLiteralsString); - if (return_code_ArrayMultiDimensionLiteralsString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsWString) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsWString", type_ids_ArrayMultiDimensionLiteralsWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsWString) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsWString; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsWString; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsWString = "ArrayMultiDimensionLiteralsWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsWString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsWString; @@ -20552,86 +8964,41 @@ void register_ArrayMultiDimensionLiteralsWString_type_identifier( header_ArrayMultiDimensionLiteralsWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsWString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsWString; { - return_code_ArrayMultiDimensionLiteralsWString = + TypeIdentifierPair type_ids_var_array_wstring; + ReturnCode_t return_code_var_array_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_ArrayMultiDimensionLiteralsWString); + "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_var_array_wstring); - if (return_code_ArrayMultiDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { - return_code_ArrayMultiDimensionLiteralsWString = + return_code_var_array_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayMultiDimensionLiteralsWString); + "anonymous_wstring_unbounded", type_ids_var_array_wstring); - if (return_code_ArrayMultiDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_array_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_ArrayMultiDimensionLiteralsWString); - if (return_code_ArrayMultiDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_unbounded_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_unbounded_10_10_10 = EK_BOTH; } @@ -20648,68 +9015,21 @@ void register_ArrayMultiDimensionLiteralsWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_unbounded_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_unbounded_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_var_array_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_unbounded_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_unbounded_10_10_10", type_ids_ArrayMultiDimensionLiteralsWString); - if (return_code_ArrayMultiDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_unbounded_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_wstring; MemberId member_id_var_array_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayMultiDimensionLiteralsWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, type_ids_ArrayMultiDimensionLiteralsWString.type_identifier2()); - } - else + bool common_var_array_wstring_ec {false}; + CommonStructMember common_var_array_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_wstring, member_flags_var_array_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_wstring, common_var_array_wstring_ec))}; + if (!common_var_array_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_wstring = "var_array_wstring"; @@ -20721,32 +9041,26 @@ void register_ArrayMultiDimensionLiteralsWString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsWString, header_ArrayMultiDimensionLiteralsWString, member_seq_ArrayMultiDimensionLiteralsWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsWString, type_name_ArrayMultiDimensionLiteralsWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsWString, type_name_ArrayMultiDimensionLiteralsWString.to_string(), type_ids_ArrayMultiDimensionLiteralsWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsWString", type_ids_ArrayMultiDimensionLiteralsWString); - if (return_code_ArrayMultiDimensionLiteralsWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsBoundedString) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsBoundedString", type_ids_ArrayMultiDimensionLiteralsBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsBoundedString) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoundedString; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsBoundedString; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBoundedString = "ArrayMultiDimensionLiteralsBoundedString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBoundedString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBoundedString; @@ -20755,164 +9069,31 @@ void register_ArrayMultiDimensionLiteralsBoundedString_type_identifier( header_ArrayMultiDimensionLiteralsBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBoundedString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBoundedString; { - return_code_ArrayMultiDimensionLiteralsBoundedString = + TypeIdentifierPair type_ids_var_array_bounded_string; + ReturnCode_t return_code_var_array_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_5_10_5", type_ids_ArrayMultiDimensionLiteralsBoundedString); + "anonymous_array_anonymous_string_10_5_10_5", type_ids_var_array_bounded_string); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) { - return_code_ArrayMultiDimensionLiteralsBoundedString = + return_code_var_array_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayMultiDimensionLiteralsBoundedString); - - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_ArrayMultiDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayMultiDimensionLiteralsBoundedString); + "Inner_alias_bounded_string_helper", type_ids_var_array_bounded_string); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayMultiDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_ArrayMultiDimensionLiteralsBoundedString); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_ArrayMultiDimensionLiteralsBoundedString); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_string) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_array_bounded_string); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_10_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_10_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_10_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, element_identifier_anonymous_array_anonymous_string_10_5_10_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_10_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_10_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_string.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_10_5_10_5 = EK_BOTH; } @@ -20929,68 +9110,21 @@ void register_ArrayMultiDimensionLiteralsBoundedString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_10_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_10_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_10_5_10_5", type_ids_var_array_bounded_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_10_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_10_5_10_5", type_ids_ArrayMultiDimensionLiteralsBoundedString); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_10_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_string; MemberId member_id_var_array_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, type_ids_ArrayMultiDimensionLiteralsBoundedString.type_identifier2()); - } - else + bool common_var_array_bounded_string_ec {false}; + CommonStructMember common_var_array_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_string, member_flags_var_array_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_string, common_var_array_bounded_string_ec))}; + if (!common_var_array_bounded_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_string = "var_array_bounded_string"; @@ -21002,32 +9136,26 @@ void register_ArrayMultiDimensionLiteralsBoundedString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsBoundedString, header_ArrayMultiDimensionLiteralsBoundedString, member_seq_ArrayMultiDimensionLiteralsBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoundedString, type_name_ArrayMultiDimensionLiteralsBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoundedString, type_name_ArrayMultiDimensionLiteralsBoundedString.to_string(), type_ids_ArrayMultiDimensionLiteralsBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsBoundedString", type_ids_ArrayMultiDimensionLiteralsBoundedString); - if (return_code_ArrayMultiDimensionLiteralsBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsBoundedWString) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsBoundedWString", type_ids_ArrayMultiDimensionLiteralsBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsBoundedWString) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsBoundedWString; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsBoundedWString; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBoundedWString = "ArrayMultiDimensionLiteralsBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBoundedWString; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBoundedWString; @@ -21036,164 +9164,31 @@ void register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier( header_ArrayMultiDimensionLiteralsBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBoundedWString); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBoundedWString; { - return_code_ArrayMultiDimensionLiteralsBoundedWString = + TypeIdentifierPair type_ids_var_array_bounded_wstring; + ReturnCode_t return_code_var_array_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_ArrayMultiDimensionLiteralsBoundedWString); + "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_var_array_bounded_wstring); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) { - return_code_ArrayMultiDimensionLiteralsBoundedWString = + return_code_var_array_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayMultiDimensionLiteralsBoundedWString); - - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_ArrayMultiDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayMultiDimensionLiteralsBoundedWString); + "Inner_alias_bounded_wstring_helper", type_ids_var_array_bounded_wstring); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_ArrayMultiDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_ArrayMultiDimensionLiteralsBoundedWString); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_ArrayMultiDimensionLiteralsBoundedWString); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bounded_wstring) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_array_bounded_wstring); } - TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_wstring_10_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_wstring_10_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_wstring_10_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bounded_wstring.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_wstring_10_10_10_10 = EK_BOTH; } @@ -21210,68 +9205,21 @@ void register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_wstring_10_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_wstring_10_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_var_array_bounded_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_wstring_10_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_wstring_10_10_10_10", type_ids_ArrayMultiDimensionLiteralsBoundedWString); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_wstring_10_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bounded_wstring; MemberId member_id_var_array_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, type_ids_ArrayMultiDimensionLiteralsBoundedWString.type_identifier2()); - } - else + bool common_var_array_bounded_wstring_ec {false}; + CommonStructMember common_var_array_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_array_bounded_wstring, member_flags_var_array_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bounded_wstring, common_var_array_bounded_wstring_ec))}; + if (!common_var_array_bounded_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bounded_wstring = "var_array_bounded_wstring"; @@ -21283,32 +9231,26 @@ void register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsBoundedWString, header_ArrayMultiDimensionLiteralsBoundedWString, member_seq_ArrayMultiDimensionLiteralsBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoundedWString, type_name_ArrayMultiDimensionLiteralsBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBoundedWString, type_name_ArrayMultiDimensionLiteralsBoundedWString.to_string(), type_ids_ArrayMultiDimensionLiteralsBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsBoundedWString", type_ids_ArrayMultiDimensionLiteralsBoundedWString); - if (return_code_ArrayMultiDimensionLiteralsBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsEnum) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsEnum", type_ids_ArrayMultiDimensionLiteralsEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsEnum) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsEnum; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsEnum; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsEnum = "ArrayMultiDimensionLiteralsEnum"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsEnum; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsEnum; @@ -21317,122 +9259,31 @@ void register_ArrayMultiDimensionLiteralsEnum_type_identifier( header_ArrayMultiDimensionLiteralsEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsEnum); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsEnum; { - return_code_ArrayMultiDimensionLiteralsEnum = + TypeIdentifierPair type_ids_var_array_enum; + ReturnCode_t return_code_var_array_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10_5_10", type_ids_ArrayMultiDimensionLiteralsEnum); + "anonymous_array_InnerEnumHelper_10_5_10", type_ids_var_array_enum); - if (return_code_ArrayMultiDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) { - return_code_ArrayMultiDimensionLiteralsEnum = + return_code_var_array_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayMultiDimensionLiteralsEnum); - - if (return_code_ArrayMultiDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_ArrayMultiDimensionLiteralsEnum); - if (return_code_ArrayMultiDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "InnerEnumHelper", type_ids_var_array_enum); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_enum) + { + ::register_InnerEnumHelper_type_identifier(type_ids_var_array_enum); } - TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerEnumHelper_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerEnumHelper_10_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerEnumHelper_10_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, element_identifier_anonymous_array_InnerEnumHelper_10_5_10_ec))}; + if (!element_identifier_anonymous_array_InnerEnumHelper_10_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerEnumHelper_10_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_enum.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerEnumHelper_10_5_10 = EK_BOTH; } @@ -21449,68 +9300,21 @@ void register_ArrayMultiDimensionLiteralsEnum_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerEnumHelper_10_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerEnumHelper_10_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerEnumHelper_10_5_10", type_ids_var_array_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerEnumHelper_10_5_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerEnumHelper_10_5_10", type_ids_ArrayMultiDimensionLiteralsEnum); - if (return_code_ArrayMultiDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerEnumHelper_10_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_enum; MemberId member_id_var_array_enum = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_enum = TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, type_ids_ArrayMultiDimensionLiteralsEnum.type_identifier2()); - } - else + bool common_var_array_enum_ec {false}; + CommonStructMember common_var_array_enum {TypeObjectUtils::build_common_struct_member(member_id_var_array_enum, member_flags_var_array_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_enum, common_var_array_enum_ec))}; + if (!common_var_array_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_array_enum = "var_array_enum"; @@ -21522,189 +9326,59 @@ void register_ArrayMultiDimensionLiteralsEnum_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsEnum, header_ArrayMultiDimensionLiteralsEnum, member_seq_ArrayMultiDimensionLiteralsEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsEnum, type_name_ArrayMultiDimensionLiteralsEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsEnum, type_name_ArrayMultiDimensionLiteralsEnum.to_string(), type_ids_ArrayMultiDimensionLiteralsEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsEnum already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsEnum", type_ids_ArrayMultiDimensionLiteralsEnum); - if (return_code_ArrayMultiDimensionLiteralsEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } -} -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_ArrayMultiDimensionLiteralsBitMask_type_identifier( - TypeIdentifier& type_id) -{ - { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsBitMask; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsBitMask; - QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBitMask = "ArrayMultiDimensionLiteralsBitMask"; - eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBitMask; - eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBitMask; - CompleteTypeDetail detail_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ArrayMultiDimensionLiteralsBitMask, ann_custom_ArrayMultiDimensionLiteralsBitMask, type_name_ArrayMultiDimensionLiteralsBitMask.to_string()); - CompleteStructHeader header_ArrayMultiDimensionLiteralsBitMask; - header_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBitMask); - CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBitMask; - { - return_code_ArrayMultiDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_5_10_5", type_ids_ArrayMultiDimensionLiteralsBitMask); - - if (return_code_ArrayMultiDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_ArrayMultiDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayMultiDimensionLiteralsBitMask); - - if (return_code_ArrayMultiDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_ArrayMultiDimensionLiteralsBitMask); - if (return_code_ArrayMultiDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + } + } +} +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_ArrayMultiDimensionLiteralsBitMask_type_identifier( + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsBitMask) +{ + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsBitMask", type_ids_ArrayMultiDimensionLiteralsBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsBitMask) + { + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBitMask = "ArrayMultiDimensionLiteralsBitMask"; + eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBitMask; + eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBitMask; + CompleteTypeDetail detail_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_ArrayMultiDimensionLiteralsBitMask, ann_custom_ArrayMultiDimensionLiteralsBitMask, type_name_ArrayMultiDimensionLiteralsBitMask.to_string()); + CompleteStructHeader header_ArrayMultiDimensionLiteralsBitMask; + header_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBitMask); + CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBitMask; + { + TypeIdentifierPair type_ids_var_array_bitmask; + ReturnCode_t return_code_var_array_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitmask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_InnerBitMaskHelper_5_10_5", type_ids_var_array_bitmask); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) + { + return_code_var_array_bitmask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitMaskHelper", type_ids_var_array_bitmask); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitmask) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_array_bitmask); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5_ec))}; + if (!element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitMaskHelper_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitmask.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitMaskHelper_5_10_5 = EK_BOTH; } @@ -21721,68 +9395,21 @@ void register_ArrayMultiDimensionLiteralsBitMask_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitMaskHelper_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitMaskHelper_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitMaskHelper_5_10_5", type_ids_var_array_bitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitMaskHelper_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitMaskHelper_5_10_5", type_ids_ArrayMultiDimensionLiteralsBitMask); - if (return_code_ArrayMultiDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitMaskHelper_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitmask; MemberId member_id_var_array_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, type_ids_ArrayMultiDimensionLiteralsBitMask.type_identifier2()); - } - else + bool common_var_array_bitmask_ec {false}; + CommonStructMember common_var_array_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitmask, member_flags_var_array_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitmask, common_var_array_bitmask_ec))}; + if (!common_var_array_bitmask_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitmask = "var_array_bitmask"; @@ -21794,32 +9421,26 @@ void register_ArrayMultiDimensionLiteralsBitMask_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsBitMask, header_ArrayMultiDimensionLiteralsBitMask, member_seq_ArrayMultiDimensionLiteralsBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBitMask, type_name_ArrayMultiDimensionLiteralsBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBitMask, type_name_ArrayMultiDimensionLiteralsBitMask.to_string(), type_ids_ArrayMultiDimensionLiteralsBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsBitMask", type_ids_ArrayMultiDimensionLiteralsBitMask); - if (return_code_ArrayMultiDimensionLiteralsBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsAlias) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsAlias", type_ids_ArrayMultiDimensionLiteralsAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsAlias) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsAlias; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsAlias; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsAlias = "ArrayMultiDimensionLiteralsAlias"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsAlias; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsAlias; @@ -21828,147 +9449,31 @@ void register_ArrayMultiDimensionLiteralsAlias_type_identifier( header_ArrayMultiDimensionLiteralsAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsAlias); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsAlias; { - return_code_ArrayMultiDimensionLiteralsAlias = + TypeIdentifierPair type_ids_var_array_alias; + ReturnCode_t return_code_var_array_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsAlias); + "anonymous_array_InnerAliasHelper_10_10_10", type_ids_var_array_alias); - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) { - return_code_ArrayMultiDimensionLiteralsAlias = + return_code_var_array_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayMultiDimensionLiteralsAlias); - - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_ArrayMultiDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLiteralsAlias); + "InnerAliasHelper", type_ids_var_array_alias); - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_ArrayMultiDimensionLiteralsAlias); - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_alias) + { + ::register_InnerAliasHelper_type_identifier(type_ids_var_array_alias); } - TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerAliasHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerAliasHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerAliasHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerAliasHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_alias.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerAliasHelper_10_10_10 = EK_BOTH; } @@ -21985,68 +9490,21 @@ void register_ArrayMultiDimensionLiteralsAlias_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerAliasHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerAliasHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerAliasHelper_10_10_10", type_ids_var_array_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerAliasHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerAliasHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsAlias); - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerAliasHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_alias; MemberId member_id_var_array_alias = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_alias_ec {false}; + CommonStructMember common_var_array_alias {TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_alias, common_var_array_alias_ec))}; + if (!common_var_array_alias_ec) { - common_var_array_alias = TypeObjectUtils::build_common_struct_member(member_id_var_array_alias, member_flags_var_array_alias, type_ids_ArrayMultiDimensionLiteralsAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_array_alias = "var_array_alias"; @@ -22058,32 +9516,26 @@ void register_ArrayMultiDimensionLiteralsAlias_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsAlias, header_ArrayMultiDimensionLiteralsAlias, member_seq_ArrayMultiDimensionLiteralsAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsAlias, type_name_ArrayMultiDimensionLiteralsAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsAlias, type_name_ArrayMultiDimensionLiteralsAlias.to_string(), type_ids_ArrayMultiDimensionLiteralsAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsAlias already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsAlias", type_ids_ArrayMultiDimensionLiteralsAlias); - if (return_code_ArrayMultiDimensionLiteralsAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsSequence) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsSequence", type_ids_ArrayMultiDimensionLiteralsSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsSequence) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsSequence; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsSequence; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsSequence = "ArrayMultiDimensionLiteralsSequence"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsSequence; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsSequence; @@ -22092,75 +9544,39 @@ void register_ArrayMultiDimensionLiteralsSequence_type_identifier( header_ArrayMultiDimensionLiteralsSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsSequence); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsSequence; { - return_code_ArrayMultiDimensionLiteralsSequence = + TypeIdentifierPair type_ids_var_array_sequence; + ReturnCode_t return_code_var_array_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10", type_ids_ArrayMultiDimensionLiteralsSequence); + "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArrayMultiDimensionLiteralsSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArrayMultiDimensionLiteralsSequence); + "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { - return_code_ArrayMultiDimensionLiteralsSequence = + return_code_var_array_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLiteralsSequence); + "_int32_t", type_ids_var_array_sequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -22171,69 +9587,22 @@ void register_ArrayMultiDimensionLiteralsSequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ArrayMultiDimensionLiteralsSequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10_ec))}; + if (!element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_sequence.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 = EK_BOTH; } @@ -22250,68 +9619,21 @@ void register_ArrayMultiDimensionLiteralsSequence_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10", type_ids_var_array_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10", type_ids_ArrayMultiDimensionLiteralsSequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_sequence_int32_t_unbounded_10_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_sequence; MemberId member_id_var_array_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_sequence_ec {false}; + CommonStructMember common_var_array_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_sequence, common_var_array_sequence_ec))}; + if (!common_var_array_sequence_ec) { - common_var_array_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_array_sequence, member_flags_var_array_sequence, type_ids_ArrayMultiDimensionLiteralsSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_array_sequence = "var_array_sequence"; @@ -22323,32 +9645,26 @@ void register_ArrayMultiDimensionLiteralsSequence_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsSequence, header_ArrayMultiDimensionLiteralsSequence, member_seq_ArrayMultiDimensionLiteralsSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsSequence, type_name_ArrayMultiDimensionLiteralsSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsSequence, type_name_ArrayMultiDimensionLiteralsSequence.to_string(), type_ids_ArrayMultiDimensionLiteralsSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsSequence already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsSequence", type_ids_ArrayMultiDimensionLiteralsSequence); - if (return_code_ArrayMultiDimensionLiteralsSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsMap) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsMap", type_ids_ArrayMultiDimensionLiteralsMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsMap) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsMap; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsMap; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsMap = "ArrayMultiDimensionLiteralsMap"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsMap; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsMap; @@ -22357,126 +9673,54 @@ void register_ArrayMultiDimensionLiteralsMap_type_identifier( header_ArrayMultiDimensionLiteralsMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsMap); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsMap; { - return_code_ArrayMultiDimensionLiteralsMap = + TypeIdentifierPair type_ids_var_array_map; + ReturnCode_t return_code_var_array_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5", type_ids_ArrayMultiDimensionLiteralsMap); + "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMultiDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMultiDimensionLiteralsMap); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { - return_code_ArrayMultiDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLiteralsMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_ArrayMultiDimensionLiteralsMap = + return_code_var_array_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ArrayMultiDimensionLiteralsMap); + "_int32_t", type_ids_var_array_map); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -22499,69 +9743,22 @@ void register_ArrayMultiDimensionLiteralsMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_ArrayMultiDimensionLiteralsMap); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5_ec))}; + if (!element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_map.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 = EK_BOTH; } @@ -22578,68 +9775,21 @@ void register_ArrayMultiDimensionLiteralsMap_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5", type_ids_var_array_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5", type_ids_ArrayMultiDimensionLiteralsMap); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_map_int32_t_int32_t_unbounded_5_10_5: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_map; MemberId member_id_var_array_map = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMultiDimensionLiteralsMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_map = TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, type_ids_ArrayMultiDimensionLiteralsMap.type_identifier2()); - } - else + bool common_var_array_map_ec {false}; + CommonStructMember common_var_array_map {TypeObjectUtils::build_common_struct_member(member_id_var_array_map, member_flags_var_array_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_map, common_var_array_map_ec))}; + if (!common_var_array_map_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_map member TypeIdentifier inconsistent."); return; } MemberName name_var_array_map = "var_array_map"; @@ -22651,32 +9801,26 @@ void register_ArrayMultiDimensionLiteralsMap_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsMap = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsMap, header_ArrayMultiDimensionLiteralsMap, member_seq_ArrayMultiDimensionLiteralsMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsMap, type_name_ArrayMultiDimensionLiteralsMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsMap, type_name_ArrayMultiDimensionLiteralsMap.to_string(), type_ids_ArrayMultiDimensionLiteralsMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsMap already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsMap", type_ids_ArrayMultiDimensionLiteralsMap); - if (return_code_ArrayMultiDimensionLiteralsMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsUnion) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsUnion", type_ids_ArrayMultiDimensionLiteralsUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsUnion) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsUnion; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsUnion; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsUnion = "ArrayMultiDimensionLiteralsUnion"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsUnion; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsUnion; @@ -22685,346 +9829,31 @@ void register_ArrayMultiDimensionLiteralsUnion_type_identifier( header_ArrayMultiDimensionLiteralsUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsUnion); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsUnion; { - return_code_ArrayMultiDimensionLiteralsUnion = + TypeIdentifierPair type_ids_var_array_union; + ReturnCode_t return_code_var_array_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsUnion); + "anonymous_array_InnerUnionHelper_10_10_10", type_ids_var_array_union); - if (return_code_ArrayMultiDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - return_code_ArrayMultiDimensionLiteralsUnion = + return_code_var_array_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_ArrayMultiDimensionLiteralsUnion); + "InnerUnionHelper", type_ids_var_array_union); - if (return_code_ArrayMultiDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayMultiDimensionLiteralsUnion = return_code_InnerUnionHelper; - type_ids_ArrayMultiDimensionLiteralsUnion = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_array_union); } - TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerUnionHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerUnionHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerUnionHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerUnionHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_union.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerUnionHelper_10_10_10 = EK_BOTH; } @@ -23041,68 +9870,21 @@ void register_ArrayMultiDimensionLiteralsUnion_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerUnionHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerUnionHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerUnionHelper_10_10_10", type_ids_var_array_union)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerUnionHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerUnionHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsUnion); - if (return_code_ArrayMultiDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerUnionHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_union; MemberId member_id_var_array_union = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_union_ec {false}; + CommonStructMember common_var_array_union {TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_union, common_var_array_union_ec))}; + if (!common_var_array_union_ec) { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_union = TypeObjectUtils::build_common_struct_member(member_id_var_array_union, member_flags_var_array_union, type_ids_ArrayMultiDimensionLiteralsUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_union member TypeIdentifier inconsistent."); return; } MemberName name_var_array_union = "var_array_union"; @@ -23114,32 +9896,26 @@ void register_ArrayMultiDimensionLiteralsUnion_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsUnion, header_ArrayMultiDimensionLiteralsUnion, member_seq_ArrayMultiDimensionLiteralsUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsUnion, type_name_ArrayMultiDimensionLiteralsUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsUnion, type_name_ArrayMultiDimensionLiteralsUnion.to_string(), type_ids_ArrayMultiDimensionLiteralsUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsUnion already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsUnion", type_ids_ArrayMultiDimensionLiteralsUnion); - if (return_code_ArrayMultiDimensionLiteralsUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsStructure) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsStructure", type_ids_ArrayMultiDimensionLiteralsStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsStructure) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsStructure; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsStructure; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsStructure = "ArrayMultiDimensionLiteralsStructure"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsStructure; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsStructure; @@ -23148,236 +9924,31 @@ void register_ArrayMultiDimensionLiteralsStructure_type_identifier( header_ArrayMultiDimensionLiteralsStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsStructure); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsStructure; { - return_code_ArrayMultiDimensionLiteralsStructure = + TypeIdentifierPair type_ids_var_array_structure; + ReturnCode_t return_code_var_array_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_5_5_10", type_ids_ArrayMultiDimensionLiteralsStructure); + "anonymous_array_InnerStructureHelper_5_5_10", type_ids_var_array_structure); - if (return_code_ArrayMultiDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - return_code_ArrayMultiDimensionLiteralsStructure = + return_code_var_array_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_ArrayMultiDimensionLiteralsStructure); + "InnerStructureHelper", type_ids_var_array_structure); - if (return_code_ArrayMultiDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_structure) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ArrayMultiDimensionLiteralsStructure = return_code_InnerStructureHelper; - type_ids_ArrayMultiDimensionLiteralsStructure = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_array_structure); } - TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_5_5_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_5_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerStructureHelper_5_5_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerStructureHelper_5_5_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerStructureHelper_5_5_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, element_identifier_anonymous_array_InnerStructureHelper_5_5_10_ec))}; + if (!element_identifier_anonymous_array_InnerStructureHelper_5_5_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerStructureHelper_5_5_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_structure.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerStructureHelper_5_5_10 = EK_BOTH; } @@ -23394,68 +9965,21 @@ void register_ArrayMultiDimensionLiteralsStructure_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerStructureHelper_5_5_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerStructureHelper_5_5_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_5_5_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerStructureHelper_5_5_10", type_ids_var_array_structure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerStructureHelper_5_5_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerStructureHelper_5_5_10", type_ids_ArrayMultiDimensionLiteralsStructure); - if (return_code_ArrayMultiDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerStructureHelper_5_5_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_structure; MemberId member_id_var_array_structure = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_array_structure_ec {false}; + CommonStructMember common_var_array_structure {TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_structure, common_var_array_structure_ec))}; + if (!common_var_array_structure_ec) { - common_var_array_structure = TypeObjectUtils::build_common_struct_member(member_id_var_array_structure, member_flags_var_array_structure, type_ids_ArrayMultiDimensionLiteralsStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_array_structure = "var_array_structure"; @@ -23467,32 +9991,26 @@ void register_ArrayMultiDimensionLiteralsStructure_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsStructure, header_ArrayMultiDimensionLiteralsStructure, member_seq_ArrayMultiDimensionLiteralsStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsStructure, type_name_ArrayMultiDimensionLiteralsStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsStructure, type_name_ArrayMultiDimensionLiteralsStructure.to_string(), type_ids_ArrayMultiDimensionLiteralsStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsStructure already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsStructure", type_ids_ArrayMultiDimensionLiteralsStructure); - if (return_code_ArrayMultiDimensionLiteralsStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ArrayMultiDimensionLiteralsBitSet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ArrayMultiDimensionLiteralsBitSet) { + + ReturnCode_t return_code_ArrayMultiDimensionLiteralsBitSet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ArrayMultiDimensionLiteralsBitSet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ArrayMultiDimensionLiteralsBitSet", type_ids_ArrayMultiDimensionLiteralsBitSet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ArrayMultiDimensionLiteralsBitSet) { - StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBitSet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ArrayMultiDimensionLiteralsBitSet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ArrayMultiDimensionLiteralsBitSet; - TypeIdentifierPair type_ids_ArrayMultiDimensionLiteralsBitSet; QualifiedTypeName type_name_ArrayMultiDimensionLiteralsBitSet = "ArrayMultiDimensionLiteralsBitSet"; eprosima::fastcdr::optional type_ann_builtin_ArrayMultiDimensionLiteralsBitSet; eprosima::fastcdr::optional ann_custom_ArrayMultiDimensionLiteralsBitSet; @@ -23501,141 +10019,31 @@ void register_ArrayMultiDimensionLiteralsBitSet_type_identifier( header_ArrayMultiDimensionLiteralsBitSet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ArrayMultiDimensionLiteralsBitSet); CompleteStructMemberSeq member_seq_ArrayMultiDimensionLiteralsBitSet; { - return_code_ArrayMultiDimensionLiteralsBitSet = + TypeIdentifierPair type_ids_var_array_bitset; + ReturnCode_t return_code_var_array_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsBitSet); + "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_var_array_bitset); - if (return_code_ArrayMultiDimensionLiteralsBitSet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - return_code_ArrayMultiDimensionLiteralsBitSet = + return_code_var_array_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayMultiDimensionLiteralsBitSet); + "InnerBitsetHelper", type_ids_var_array_bitset); - if (return_code_ArrayMultiDimensionLiteralsBitSet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_bitset) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_ArrayMultiDimensionLiteralsBitSet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_ArrayMultiDimensionLiteralsBitSet); - if (return_code_ArrayMultiDimensionLiteralsBitSet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_array_bitset); } - TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 {nullptr}; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 = new TypeIdentifier(type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()); - } - else + bool element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_InnerBitsetHelper_10_10_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec))}; + if (!element_identifier_anonymous_array_InnerBitsetHelper_10_10_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_InnerBitsetHelper_10_10_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_bitset.type_identifier2()._d()) { equiv_kind_anonymous_array_InnerBitsetHelper_10_10_10 = EK_BOTH; } @@ -23652,68 +10060,21 @@ void register_ArrayMultiDimensionLiteralsBitSet_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_InnerBitsetHelper_10_10_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_InnerBitsetHelper_10_10_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10_10_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_var_array_bitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_InnerBitsetHelper_10_10_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ArrayMultiDimensionLiteralsBitSet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_InnerBitsetHelper_10_10_10", type_ids_ArrayMultiDimensionLiteralsBitSet); - if (return_code_ArrayMultiDimensionLiteralsBitSet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_InnerBitsetHelper_10_10_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_bitset; MemberId member_id_var_array_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() || TK_NONE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, type_ids_ArrayMultiDimensionLiteralsBitSet.type_identifier2()); - } - else + bool common_var_array_bitset_ec {false}; + CommonStructMember common_var_array_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_array_bitset, member_flags_var_array_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_bitset, common_var_array_bitset_ec))}; + if (!common_var_array_bitset_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_array_bitset = "var_array_bitset"; @@ -23725,32 +10086,26 @@ void register_ArrayMultiDimensionLiteralsBitSet_type_identifier( } CompleteStructType struct_type_ArrayMultiDimensionLiteralsBitSet = TypeObjectUtils::build_complete_struct_type(struct_flags_ArrayMultiDimensionLiteralsBitSet, header_ArrayMultiDimensionLiteralsBitSet, member_seq_ArrayMultiDimensionLiteralsBitSet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBitSet, type_name_ArrayMultiDimensionLiteralsBitSet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ArrayMultiDimensionLiteralsBitSet, type_name_ArrayMultiDimensionLiteralsBitSet.to_string(), type_ids_ArrayMultiDimensionLiteralsBitSet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ArrayMultiDimensionLiteralsBitSet already registered in TypeObjectRegistry for a different type."); } - return_code_ArrayMultiDimensionLiteralsBitSet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ArrayMultiDimensionLiteralsBitSet", type_ids_ArrayMultiDimensionLiteralsBitSet); - if (return_code_ArrayMultiDimensionLiteralsBitSet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ArrayMultiDimensionLiteralsBitSet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedSmallArrays_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedSmallArrays) { + + ReturnCode_t return_code_BoundedSmallArrays {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedSmallArrays = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedSmallArrays", type_ids_BoundedSmallArrays); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedSmallArrays) { - StructTypeFlag struct_flags_BoundedSmallArrays = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedSmallArrays = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedSmallArrays; - TypeIdentifierPair type_ids_BoundedSmallArrays; QualifiedTypeName type_name_BoundedSmallArrays = "BoundedSmallArrays"; eprosima::fastcdr::optional type_ann_builtin_BoundedSmallArrays; eprosima::fastcdr::optional ann_custom_BoundedSmallArrays; @@ -23759,69 +10114,33 @@ void register_BoundedSmallArrays_type_identifier( header_BoundedSmallArrays = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedSmallArrays); CompleteStructMemberSeq member_seq_BoundedSmallArrays; { - return_code_BoundedSmallArrays = + TypeIdentifierPair type_ids_var_array_small; + ReturnCode_t return_code_var_array_small {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_small = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1", type_ids_BoundedSmallArrays); + "anonymous_array_int16_t_1", type_ids_var_array_small); - if (return_code_BoundedSmallArrays != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_small) { - return_code_BoundedSmallArrays = + return_code_var_array_small = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_BoundedSmallArrays); + "_int16_t", type_ids_var_array_small); - if (return_code_BoundedSmallArrays != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_small) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_1 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1 = new TypeIdentifier(type_ids_BoundedSmallArrays.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1 = new TypeIdentifier(type_ids_BoundedSmallArrays.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_1_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_1 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_small, element_identifier_anonymous_array_int16_t_1_ec))}; + if (!element_identifier_anonymous_array_int16_t_1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_1 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedSmallArrays.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_small.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_1 = EK_BOTH; } @@ -23834,68 +10153,21 @@ void register_BoundedSmallArrays_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_1, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_1)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_1")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_1", type_ids_var_array_small)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallArrays = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1", type_ids_BoundedSmallArrays); - if (return_code_BoundedSmallArrays != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_1: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_small = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_small = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_small; MemberId member_id_var_array_small = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_small = TypeObjectUtils::build_common_struct_member(member_id_var_array_small, member_flags_var_array_small, type_ids_BoundedSmallArrays.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallArrays.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_small = TypeObjectUtils::build_common_struct_member(member_id_var_array_small, member_flags_var_array_small, type_ids_BoundedSmallArrays.type_identifier2()); - } - else + bool common_var_array_small_ec {false}; + CommonStructMember common_var_array_small {TypeObjectUtils::build_common_struct_member(member_id_var_array_small, member_flags_var_array_small, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_small, common_var_array_small_ec))}; + if (!common_var_array_small_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_small member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_small member TypeIdentifier inconsistent."); return; } MemberName name_var_array_small = "var_array_small"; @@ -23907,32 +10179,26 @@ void register_BoundedSmallArrays_type_identifier( } CompleteStructType struct_type_BoundedSmallArrays = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedSmallArrays, header_BoundedSmallArrays, member_seq_BoundedSmallArrays); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallArrays, type_name_BoundedSmallArrays.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallArrays, type_name_BoundedSmallArrays.to_string(), type_ids_BoundedSmallArrays)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedSmallArrays already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedSmallArrays = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedSmallArrays", type_ids_BoundedSmallArrays); - if (return_code_BoundedSmallArrays != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedSmallArrays: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedBigArrays_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedBigArrays) { + + ReturnCode_t return_code_BoundedBigArrays {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedBigArrays = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedBigArrays", type_ids_BoundedBigArrays); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedBigArrays) { - StructTypeFlag struct_flags_BoundedBigArrays = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedBigArrays = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedBigArrays; - TypeIdentifierPair type_ids_BoundedBigArrays; QualifiedTypeName type_name_BoundedBigArrays = "BoundedBigArrays"; eprosima::fastcdr::optional type_ann_builtin_BoundedBigArrays; eprosima::fastcdr::optional ann_custom_BoundedBigArrays; @@ -23941,69 +10207,33 @@ void register_BoundedBigArrays_type_identifier( header_BoundedBigArrays = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedBigArrays); CompleteStructMemberSeq member_seq_BoundedBigArrays; { - return_code_BoundedBigArrays = + TypeIdentifierPair type_ids_var_array_big; + ReturnCode_t return_code_var_array_big {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_big = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_41925", type_ids_BoundedBigArrays); + "anonymous_array_int16_t_41925", type_ids_var_array_big); - if (return_code_BoundedBigArrays != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_big) { - return_code_BoundedBigArrays = + return_code_var_array_big = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_BoundedBigArrays); + "_int16_t", type_ids_var_array_big); - if (return_code_BoundedBigArrays != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_big) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_41925 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_41925 = new TypeIdentifier(type_ids_BoundedBigArrays.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_41925 = new TypeIdentifier(type_ids_BoundedBigArrays.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_41925_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_41925 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_big, element_identifier_anonymous_array_int16_t_41925_ec))}; + if (!element_identifier_anonymous_array_int16_t_41925_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_41925 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedBigArrays.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_big.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_41925 = EK_BOTH; } @@ -24016,68 +10246,21 @@ void register_BoundedBigArrays_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_41925, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_41925)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_41925")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_41925", type_ids_var_array_big)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_41925 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedBigArrays = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_41925", type_ids_BoundedBigArrays); - if (return_code_BoundedBigArrays != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_41925: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_big = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_big = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_big; MemberId member_id_var_array_big = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigArrays.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_big = TypeObjectUtils::build_common_struct_member(member_id_var_array_big, member_flags_var_array_big, type_ids_BoundedBigArrays.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigArrays.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigArrays.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_big = TypeObjectUtils::build_common_struct_member(member_id_var_array_big, member_flags_var_array_big, type_ids_BoundedBigArrays.type_identifier2()); - } - else + bool common_var_array_big_ec {false}; + CommonStructMember common_var_array_big {TypeObjectUtils::build_common_struct_member(member_id_var_array_big, member_flags_var_array_big, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_big, common_var_array_big_ec))}; + if (!common_var_array_big_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_big member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_big member TypeIdentifier inconsistent."); return; } MemberName name_var_array_big = "var_array_big"; @@ -24089,21 +10272,11 @@ void register_BoundedBigArrays_type_identifier( } CompleteStructType struct_type_BoundedBigArrays = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedBigArrays, header_BoundedBigArrays, member_seq_BoundedBigArrays); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBigArrays, type_name_BoundedBigArrays.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBigArrays, type_name_BoundedBigArrays.to_string(), type_ids_BoundedBigArrays)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedBigArrays already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedBigArrays = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedBigArrays", type_ids_BoundedBigArrays); - if (return_code_BoundedBigArrays != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedBigArrays: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/arraysTypeObjectSupport.hpp b/test/dds-types-test/arraysTypeObjectSupport.hpp index 2cf065ae8f8..1c8fd6edd70 100644 --- a/test/dds-types-test/arraysTypeObjectSupport.hpp +++ b/test/dds-types-test/arraysTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_arrays_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_arrays_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_ArrayShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_ArrayUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_ArrayLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_ArrayULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_ArrayLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_ArrayULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_ArrayFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_ArrayDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_ArrayLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_ArrayBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_ArrayOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_ArrayChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_ArrayWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_ArrayString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_ArrayWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_ArrayBoundedString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_ArrayBoundedWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_ArrayEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_ArrayBitMask_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayShortArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_ArrayAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayShortArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_ArrayShortArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_ArraySequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_ArrayMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_ArrayUnion_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_ArrayStructure_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_ArrayBitset_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,7 +373,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -390,7 +385,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -402,7 +397,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -414,7 +409,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -426,7 +421,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLongLong_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -438,7 +433,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionULongLong_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -450,7 +445,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -462,7 +457,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -474,7 +469,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLongDouble_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -486,7 +481,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionBoolean_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -498,7 +493,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -510,7 +505,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -522,7 +517,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -534,7 +529,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -546,7 +541,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionWString_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -558,7 +553,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionBoundedString_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -570,7 +565,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionBoundedWString_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -582,7 +577,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -594,7 +589,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionBitMask_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -606,7 +601,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -618,7 +613,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionSequence_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -630,7 +625,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -642,7 +637,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionUnion_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -654,7 +649,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionStructure_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -666,7 +661,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionBitset_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsUnsignedShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -678,7 +673,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsShort_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -690,7 +685,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedShort_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsUnsignedLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -702,7 +697,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLong_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -714,7 +709,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedLong_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsUnsignedLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -726,7 +721,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLongLong_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -738,7 +733,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnsignedLongLo * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -750,7 +745,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsFloat_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -762,7 +757,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsDouble_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -774,7 +769,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsLongDouble_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -786,7 +781,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoolean_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -798,7 +793,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsOctet_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -810,7 +805,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsChar_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -822,7 +817,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsWChar_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -834,7 +829,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsString_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -846,7 +841,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsWString_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -858,7 +853,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoundedString_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -870,7 +865,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBoundedWString * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -882,7 +877,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsEnum_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -894,7 +889,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBitMask_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsShortArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -906,7 +901,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsAlias_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsShortArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -918,7 +913,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsShortArray_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -930,7 +925,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsSequence_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -942,7 +937,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsMap_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -954,7 +949,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsUnion_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArraySingleDimensionLiteralsBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -966,7 +961,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsStructure_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -978,7 +973,7 @@ eProsima_user_DllExport void register_ArraySingleDimensionLiteralsBitset_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -990,7 +985,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsShort_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1002,7 +997,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsUShort_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1014,7 +1009,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLong_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1026,7 +1021,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsULong_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1038,7 +1033,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLongLong_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1050,7 +1045,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsULongLong_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1062,7 +1057,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsFloat_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1074,7 +1069,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsDouble_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1086,7 +1081,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsLongDouble_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1098,7 +1093,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoolean_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1110,7 +1105,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsOctet_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1122,7 +1117,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsChar_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1134,7 +1129,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsWChar_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1146,7 +1141,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsString_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1158,7 +1153,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsWString_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1170,7 +1165,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoundedString_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1182,7 +1177,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBoundedWString_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1194,7 +1189,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsEnum_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1206,7 +1201,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBitMask_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1218,7 +1213,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsAlias_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1230,7 +1225,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsSequence_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1242,7 +1237,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsMap_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1254,7 +1249,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsUnion_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ArrayMultiDimensionLiteralsBitSet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1266,7 +1261,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsStructure_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBitSet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedSmallArrays related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1278,7 +1273,7 @@ eProsima_user_DllExport void register_ArrayMultiDimensionLiteralsBitSet_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedSmallArrays_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedBigArrays related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1290,7 +1285,7 @@ eProsima_user_DllExport void register_BoundedSmallArrays_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedBigArrays_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/bitsetsPubSubTypes.cxx b/test/dds-types-test/bitsetsPubSubTypes.cxx index 59d8ff08a3f..e5669aac86b 100644 --- a/test/dds-types-test/bitsetsPubSubTypes.cxx +++ b/test/dds-types-test/bitsetsPubSubTypes.cxx @@ -219,9 +219,9 @@ bool BitsetStructPubSubType::getKey( return true; } -void BitsetStructPubSubType::register_type_object_representation() const +void BitsetStructPubSubType::register_type_object_representation() { - register_bitsets_type_objects(); + register_BitsetStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/bitsetsPubSubTypes.h b/test/dds-types-test/bitsetsPubSubTypes.h index b24d5b9df5a..fd2ce4d8ffd 100644 --- a/test/dds-types-test/bitsetsPubSubTypes.h +++ b/test/dds-types-test/bitsetsPubSubTypes.h @@ -90,7 +90,7 @@ class BitsetStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/bitsetsTypeObjectSupport.cxx b/test/dds-types-test/bitsetsTypeObjectSupport.cxx index 694212840a1..bc7a86b5486 100644 --- a/test/dds-types-test/bitsetsTypeObjectSupport.cxx +++ b/test/dds-types-test/bitsetsTypeObjectSupport.cxx @@ -39,32 +39,249 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_bitsets_type_objects() +void register_InnerTypedBitsetHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerTypedBitsetHelper) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_BitsetStruct_type_identifier(type_id); - - }); -} - -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method + ReturnCode_t return_code_InnerTypedBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerTypedBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerTypedBitsetHelper", type_ids_InnerTypedBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerTypedBitsetHelper) + { + BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper = 0; + QualifiedTypeName type_name_InnerTypedBitsetHelper = "InnerTypedBitsetHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper; + eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper; + CompleteTypeDetail detail_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper, ann_custom_InnerTypedBitsetHelper, type_name_InnerTypedBitsetHelper.to_string()); + CompleteBitsetHeader header_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper); + CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper; + { + uint16_t position_boolean_bitfield = 0; + BitsetMemberFlag flags_boolean_bitfield = 0; + uint8_t bitcount_boolean_bitfield = 1; + TypeKind holder_type_boolean_bitfield = TK_BOOLEAN; + CommonBitfield common_boolean_bitfield = TypeObjectUtils::build_common_bitfield(position_boolean_bitfield, flags_boolean_bitfield, bitcount_boolean_bitfield, holder_type_boolean_bitfield); + eprosima::fastcdr::optional member_ann_builtin_boolean_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_boolean_bitfield = "boolean_bitfield"; + CompleteMemberDetail detail_boolean_bitfield = TypeObjectUtils::build_complete_member_detail(name_boolean_bitfield, member_ann_builtin_boolean_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_boolean_bitfield = TypeObjectUtils::build_complete_bitfield(common_boolean_bitfield, detail_boolean_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_boolean_bitfield); + } + { + uint16_t position_byte_bitfield = 1; + BitsetMemberFlag flags_byte_bitfield = 0; + uint8_t bitcount_byte_bitfield = 8; + TypeKind holder_type_byte_bitfield = TK_BYTE; + CommonBitfield common_byte_bitfield = TypeObjectUtils::build_common_bitfield(position_byte_bitfield, flags_byte_bitfield, bitcount_byte_bitfield, holder_type_byte_bitfield); + eprosima::fastcdr::optional member_ann_builtin_byte_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_byte_bitfield = "byte_bitfield"; + CompleteMemberDetail detail_byte_bitfield = TypeObjectUtils::build_complete_member_detail(name_byte_bitfield, member_ann_builtin_byte_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_byte_bitfield = TypeObjectUtils::build_complete_bitfield(common_byte_bitfield, detail_byte_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_byte_bitfield); + } + { + uint16_t position_int8_bitfield = 9; + BitsetMemberFlag flags_int8_bitfield = 0; + uint8_t bitcount_int8_bitfield = 8; + TypeKind holder_type_int8_bitfield = TK_INT8; + CommonBitfield common_int8_bitfield = TypeObjectUtils::build_common_bitfield(position_int8_bitfield, flags_int8_bitfield, bitcount_int8_bitfield, holder_type_int8_bitfield); + eprosima::fastcdr::optional member_ann_builtin_int8_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_int8_bitfield = "int8_bitfield"; + CompleteMemberDetail detail_int8_bitfield = TypeObjectUtils::build_complete_member_detail(name_int8_bitfield, member_ann_builtin_int8_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_int8_bitfield = TypeObjectUtils::build_complete_bitfield(common_int8_bitfield, detail_int8_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_int8_bitfield); + } + { + uint16_t position_uint8_bitfield = 17; + BitsetMemberFlag flags_uint8_bitfield = 0; + uint8_t bitcount_uint8_bitfield = 8; + TypeKind holder_type_uint8_bitfield = TK_UINT8; + CommonBitfield common_uint8_bitfield = TypeObjectUtils::build_common_bitfield(position_uint8_bitfield, flags_uint8_bitfield, bitcount_uint8_bitfield, holder_type_uint8_bitfield); + eprosima::fastcdr::optional member_ann_builtin_uint8_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_uint8_bitfield = "uint8_bitfield"; + CompleteMemberDetail detail_uint8_bitfield = TypeObjectUtils::build_complete_member_detail(name_uint8_bitfield, member_ann_builtin_uint8_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_uint8_bitfield = TypeObjectUtils::build_complete_bitfield(common_uint8_bitfield, detail_uint8_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_uint8_bitfield); + } + { + uint16_t position_short_bitfield = 25; + BitsetMemberFlag flags_short_bitfield = 0; + uint8_t bitcount_short_bitfield = 16; + TypeKind holder_type_short_bitfield = TK_INT16; + CommonBitfield common_short_bitfield = TypeObjectUtils::build_common_bitfield(position_short_bitfield, flags_short_bitfield, bitcount_short_bitfield, holder_type_short_bitfield); + eprosima::fastcdr::optional member_ann_builtin_short_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_short_bitfield = "short_bitfield"; + CompleteMemberDetail detail_short_bitfield = TypeObjectUtils::build_complete_member_detail(name_short_bitfield, member_ann_builtin_short_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_short_bitfield = TypeObjectUtils::build_complete_bitfield(common_short_bitfield, detail_short_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_short_bitfield); + } + { + uint16_t position_ushort_bitfield = 41; + BitsetMemberFlag flags_ushort_bitfield = 0; + uint8_t bitcount_ushort_bitfield = 16; + TypeKind holder_type_ushort_bitfield = TK_UINT16; + CommonBitfield common_ushort_bitfield = TypeObjectUtils::build_common_bitfield(position_ushort_bitfield, flags_ushort_bitfield, bitcount_ushort_bitfield, holder_type_ushort_bitfield); + eprosima::fastcdr::optional member_ann_builtin_ushort_bitfield; + ann_custom_InnerTypedBitsetHelper.reset(); + MemberName name_ushort_bitfield = "ushort_bitfield"; + CompleteMemberDetail detail_ushort_bitfield = TypeObjectUtils::build_complete_member_detail(name_ushort_bitfield, member_ann_builtin_ushort_bitfield, ann_custom_InnerTypedBitsetHelper); + CompleteBitfield bitfield_ushort_bitfield = TypeObjectUtils::build_complete_bitfield(common_ushort_bitfield, detail_ushort_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_ushort_bitfield); + } + CompleteBitsetType bitset_type_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper, header_InnerTypedBitsetHelper, field_seq_InnerTypedBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper, + type_name_InnerTypedBitsetHelper.to_string(), type_ids_InnerTypedBitsetHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerTypedBitsetHelper already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerTypedBitsetHelper2_type_identifier( + TypeIdentifierPair& type_ids_InnerTypedBitsetHelper2) +{ + ReturnCode_t return_code_InnerTypedBitsetHelper2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerTypedBitsetHelper2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerTypedBitsetHelper2", type_ids_InnerTypedBitsetHelper2); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerTypedBitsetHelper2) + { + BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper2 = 0; + QualifiedTypeName type_name_InnerTypedBitsetHelper2 = "InnerTypedBitsetHelper2"; + eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper2; + eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper2; + CompleteTypeDetail detail_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper2, ann_custom_InnerTypedBitsetHelper2, type_name_InnerTypedBitsetHelper2.to_string()); + CompleteBitsetHeader header_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper2); + CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper2; + { + uint16_t position_long_bitfield = 0; + BitsetMemberFlag flags_long_bitfield = 0; + uint8_t bitcount_long_bitfield = 32; + TypeKind holder_type_long_bitfield = TK_INT32; + CommonBitfield common_long_bitfield = TypeObjectUtils::build_common_bitfield(position_long_bitfield, flags_long_bitfield, bitcount_long_bitfield, holder_type_long_bitfield); + eprosima::fastcdr::optional member_ann_builtin_long_bitfield; + ann_custom_InnerTypedBitsetHelper2.reset(); + MemberName name_long_bitfield = "long_bitfield"; + CompleteMemberDetail detail_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_long_bitfield, member_ann_builtin_long_bitfield, ann_custom_InnerTypedBitsetHelper2); + CompleteBitfield bitfield_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_long_bitfield, detail_long_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper2, bitfield_long_bitfield); + } + { + uint16_t position_ulong_bitfield = 32; + BitsetMemberFlag flags_ulong_bitfield = 0; + uint8_t bitcount_ulong_bitfield = 32; + TypeKind holder_type_ulong_bitfield = TK_UINT32; + CommonBitfield common_ulong_bitfield = TypeObjectUtils::build_common_bitfield(position_ulong_bitfield, flags_ulong_bitfield, bitcount_ulong_bitfield, holder_type_ulong_bitfield); + eprosima::fastcdr::optional member_ann_builtin_ulong_bitfield; + ann_custom_InnerTypedBitsetHelper2.reset(); + MemberName name_ulong_bitfield = "ulong_bitfield"; + CompleteMemberDetail detail_ulong_bitfield = TypeObjectUtils::build_complete_member_detail(name_ulong_bitfield, member_ann_builtin_ulong_bitfield, ann_custom_InnerTypedBitsetHelper2); + CompleteBitfield bitfield_ulong_bitfield = TypeObjectUtils::build_complete_bitfield(common_ulong_bitfield, detail_ulong_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper2, bitfield_ulong_bitfield); + } + CompleteBitsetType bitset_type_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper2, header_InnerTypedBitsetHelper2, field_seq_InnerTypedBitsetHelper2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper2, + type_name_InnerTypedBitsetHelper2.to_string(), type_ids_InnerTypedBitsetHelper2)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerTypedBitsetHelper2 already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerTypedBitsetHelper3_type_identifier( + TypeIdentifierPair& type_ids_InnerTypedBitsetHelper3) +{ + ReturnCode_t return_code_InnerTypedBitsetHelper3 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerTypedBitsetHelper3 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerTypedBitsetHelper3", type_ids_InnerTypedBitsetHelper3); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerTypedBitsetHelper3) + { + BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper3 = 0; + QualifiedTypeName type_name_InnerTypedBitsetHelper3 = "InnerTypedBitsetHelper3"; + eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper3; + eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper3; + CompleteTypeDetail detail_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper3, ann_custom_InnerTypedBitsetHelper3, type_name_InnerTypedBitsetHelper3.to_string()); + CompleteBitsetHeader header_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper3); + CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper3; + { + uint16_t position_long_long_bitfield = 0; + BitsetMemberFlag flags_long_long_bitfield = 0; + uint8_t bitcount_long_long_bitfield = 64; + TypeKind holder_type_long_long_bitfield = TK_INT64; + CommonBitfield common_long_long_bitfield = TypeObjectUtils::build_common_bitfield(position_long_long_bitfield, flags_long_long_bitfield, bitcount_long_long_bitfield, holder_type_long_long_bitfield); + eprosima::fastcdr::optional member_ann_builtin_long_long_bitfield; + ann_custom_InnerTypedBitsetHelper3.reset(); + MemberName name_long_long_bitfield = "long_long_bitfield"; + CompleteMemberDetail detail_long_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_long_long_bitfield, member_ann_builtin_long_long_bitfield, ann_custom_InnerTypedBitsetHelper3); + CompleteBitfield bitfield_long_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_long_long_bitfield, detail_long_long_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper3, bitfield_long_long_bitfield); + } + CompleteBitsetType bitset_type_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper3, header_InnerTypedBitsetHelper3, field_seq_InnerTypedBitsetHelper3); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper3, + type_name_InnerTypedBitsetHelper3.to_string(), type_ids_InnerTypedBitsetHelper3)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerTypedBitsetHelper3 already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerTypedBitsetHelper4_type_identifier( + TypeIdentifierPair& type_ids_InnerTypedBitsetHelper4) +{ + ReturnCode_t return_code_InnerTypedBitsetHelper4 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerTypedBitsetHelper4 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerTypedBitsetHelper4", type_ids_InnerTypedBitsetHelper4); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerTypedBitsetHelper4) + { + BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper4 = 0; + QualifiedTypeName type_name_InnerTypedBitsetHelper4 = "InnerTypedBitsetHelper4"; + eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper4; + eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper4; + CompleteTypeDetail detail_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper4, ann_custom_InnerTypedBitsetHelper4, type_name_InnerTypedBitsetHelper4.to_string()); + CompleteBitsetHeader header_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper4); + CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper4; + { + uint16_t position_ulong_long_bitfield = 0; + BitsetMemberFlag flags_ulong_long_bitfield = 0; + uint8_t bitcount_ulong_long_bitfield = 64; + TypeKind holder_type_ulong_long_bitfield = TK_UINT64; + CommonBitfield common_ulong_long_bitfield = TypeObjectUtils::build_common_bitfield(position_ulong_long_bitfield, flags_ulong_long_bitfield, bitcount_ulong_long_bitfield, holder_type_ulong_long_bitfield); + eprosima::fastcdr::optional member_ann_builtin_ulong_long_bitfield; + ann_custom_InnerTypedBitsetHelper4.reset(); + MemberName name_ulong_long_bitfield = "ulong_long_bitfield"; + CompleteMemberDetail detail_ulong_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_ulong_long_bitfield, member_ann_builtin_ulong_long_bitfield, ann_custom_InnerTypedBitsetHelper4); + CompleteBitfield bitfield_ulong_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_ulong_long_bitfield, detail_ulong_long_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper4, bitfield_ulong_long_bitfield); + } + CompleteBitsetType bitset_type_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper4, header_InnerTypedBitsetHelper4, field_seq_InnerTypedBitsetHelper4); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper4, + type_name_InnerTypedBitsetHelper4.to_string(), type_ids_InnerTypedBitsetHelper4)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerTypedBitsetHelper4 already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BitsetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BitsetStruct) { + + ReturnCode_t return_code_BitsetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BitsetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BitsetStruct", type_ids_BitsetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BitsetStruct) { - StructTypeFlag struct_flags_BitsetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BitsetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BitsetStruct; - TypeIdentifierPair type_ids_BitsetStruct; QualifiedTypeName type_name_BitsetStruct = "BitsetStruct"; eprosima::fastcdr::optional type_ann_builtin_BitsetStruct; eprosima::fastcdr::optional ann_custom_BitsetStruct; @@ -73,134 +290,24 @@ void register_BitsetStruct_type_identifier( header_BitsetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BitsetStruct); CompleteStructMemberSeq member_seq_BitsetStruct; { - return_code_BitsetStruct = + TypeIdentifierPair type_ids_var_InnerBitsetHelper; + ReturnCode_t return_code_var_InnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerBitsetHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_BitsetStruct); + "InnerBitsetHelper", type_ids_var_InnerBitsetHelper); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerBitsetHelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_InnerBitsetHelper); } - StructMemberFlag member_flags_var_InnerBitsetHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerBitsetHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerBitsetHelper; MemberId member_id_var_InnerBitsetHelper = 0x00000000; - if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitsetHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelper, member_flags_var_InnerBitsetHelper, type_ids_BitsetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitsetHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelper, member_flags_var_InnerBitsetHelper, type_ids_BitsetStruct.type_identifier2()); - } - else + bool common_var_InnerBitsetHelper_ec {false}; + CommonStructMember common_var_InnerBitsetHelper {TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelper, member_flags_var_InnerBitsetHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerBitsetHelper, common_var_InnerBitsetHelper_ec))}; + if (!common_var_InnerBitsetHelper_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerBitsetHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerBitsetHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerBitsetHelper = "var_InnerBitsetHelper"; @@ -211,160 +318,24 @@ void register_BitsetStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetStruct, member_var_InnerBitsetHelper); } { - return_code_BitsetStruct = + TypeIdentifierPair type_ids_var_InnerTypedBitsetHelper; + ReturnCode_t return_code_var_InnerTypedBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerTypedBitsetHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper", type_ids_BitsetStruct); + "InnerTypedBitsetHelper", type_ids_var_InnerTypedBitsetHelper); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerTypedBitsetHelper) { - BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper = 0; - QualifiedTypeName type_name_InnerTypedBitsetHelper = "InnerTypedBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper; - CompleteTypeDetail detail_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper, ann_custom_InnerTypedBitsetHelper, type_name_InnerTypedBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper); - CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper; - { - uint16_t position_boolean_bitfield = 0; - BitsetMemberFlag flags_boolean_bitfield = 0; - uint8_t bitcount_boolean_bitfield = 1; - TypeKind holder_type_boolean_bitfield = TK_BOOLEAN; - CommonBitfield common_boolean_bitfield = TypeObjectUtils::build_common_bitfield(position_boolean_bitfield, flags_boolean_bitfield, bitcount_boolean_bitfield, holder_type_boolean_bitfield); - eprosima::fastcdr::optional member_ann_builtin_boolean_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_boolean_bitfield = "boolean_bitfield"; - CompleteMemberDetail detail_boolean_bitfield = TypeObjectUtils::build_complete_member_detail(name_boolean_bitfield, member_ann_builtin_boolean_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_boolean_bitfield = TypeObjectUtils::build_complete_bitfield(common_boolean_bitfield, detail_boolean_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_boolean_bitfield); - } - { - uint16_t position_byte_bitfield = 1; - BitsetMemberFlag flags_byte_bitfield = 0; - uint8_t bitcount_byte_bitfield = 8; - TypeKind holder_type_byte_bitfield = TK_BYTE; - CommonBitfield common_byte_bitfield = TypeObjectUtils::build_common_bitfield(position_byte_bitfield, flags_byte_bitfield, bitcount_byte_bitfield, holder_type_byte_bitfield); - eprosima::fastcdr::optional member_ann_builtin_byte_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_byte_bitfield = "byte_bitfield"; - CompleteMemberDetail detail_byte_bitfield = TypeObjectUtils::build_complete_member_detail(name_byte_bitfield, member_ann_builtin_byte_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_byte_bitfield = TypeObjectUtils::build_complete_bitfield(common_byte_bitfield, detail_byte_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_byte_bitfield); - } - { - uint16_t position_int8_bitfield = 9; - BitsetMemberFlag flags_int8_bitfield = 0; - uint8_t bitcount_int8_bitfield = 8; - TypeKind holder_type_int8_bitfield = TK_INT8; - CommonBitfield common_int8_bitfield = TypeObjectUtils::build_common_bitfield(position_int8_bitfield, flags_int8_bitfield, bitcount_int8_bitfield, holder_type_int8_bitfield); - eprosima::fastcdr::optional member_ann_builtin_int8_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_int8_bitfield = "int8_bitfield"; - CompleteMemberDetail detail_int8_bitfield = TypeObjectUtils::build_complete_member_detail(name_int8_bitfield, member_ann_builtin_int8_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_int8_bitfield = TypeObjectUtils::build_complete_bitfield(common_int8_bitfield, detail_int8_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_int8_bitfield); - } - { - uint16_t position_uint8_bitfield = 17; - BitsetMemberFlag flags_uint8_bitfield = 0; - uint8_t bitcount_uint8_bitfield = 8; - TypeKind holder_type_uint8_bitfield = TK_UINT8; - CommonBitfield common_uint8_bitfield = TypeObjectUtils::build_common_bitfield(position_uint8_bitfield, flags_uint8_bitfield, bitcount_uint8_bitfield, holder_type_uint8_bitfield); - eprosima::fastcdr::optional member_ann_builtin_uint8_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_uint8_bitfield = "uint8_bitfield"; - CompleteMemberDetail detail_uint8_bitfield = TypeObjectUtils::build_complete_member_detail(name_uint8_bitfield, member_ann_builtin_uint8_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_uint8_bitfield = TypeObjectUtils::build_complete_bitfield(common_uint8_bitfield, detail_uint8_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_uint8_bitfield); - } - { - uint16_t position_short_bitfield = 25; - BitsetMemberFlag flags_short_bitfield = 0; - uint8_t bitcount_short_bitfield = 16; - TypeKind holder_type_short_bitfield = TK_INT16; - CommonBitfield common_short_bitfield = TypeObjectUtils::build_common_bitfield(position_short_bitfield, flags_short_bitfield, bitcount_short_bitfield, holder_type_short_bitfield); - eprosima::fastcdr::optional member_ann_builtin_short_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_short_bitfield = "short_bitfield"; - CompleteMemberDetail detail_short_bitfield = TypeObjectUtils::build_complete_member_detail(name_short_bitfield, member_ann_builtin_short_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_short_bitfield = TypeObjectUtils::build_complete_bitfield(common_short_bitfield, detail_short_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_short_bitfield); - } - { - uint16_t position_ushort_bitfield = 41; - BitsetMemberFlag flags_ushort_bitfield = 0; - uint8_t bitcount_ushort_bitfield = 16; - TypeKind holder_type_ushort_bitfield = TK_UINT16; - CommonBitfield common_ushort_bitfield = TypeObjectUtils::build_common_bitfield(position_ushort_bitfield, flags_ushort_bitfield, bitcount_ushort_bitfield, holder_type_ushort_bitfield); - eprosima::fastcdr::optional member_ann_builtin_ushort_bitfield; - ann_custom_InnerTypedBitsetHelper.reset(); - MemberName name_ushort_bitfield = "ushort_bitfield"; - CompleteMemberDetail detail_ushort_bitfield = TypeObjectUtils::build_complete_member_detail(name_ushort_bitfield, member_ann_builtin_ushort_bitfield, ann_custom_InnerTypedBitsetHelper); - CompleteBitfield bitfield_ushort_bitfield = TypeObjectUtils::build_complete_bitfield(common_ushort_bitfield, detail_ushort_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper, bitfield_ushort_bitfield); - } - CompleteBitsetType bitset_type_InnerTypedBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper, header_InnerTypedBitsetHelper, field_seq_InnerTypedBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper, type_name_InnerTypedBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerTypedBitsetHelper_type_identifier(type_ids_var_InnerTypedBitsetHelper); } - StructMemberFlag member_flags_var_InnerTypedBitsetHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerTypedBitsetHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerTypedBitsetHelper; MemberId member_id_var_InnerTypedBitsetHelper = 0x00000001; - if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerTypedBitsetHelper_ec {false}; + CommonStructMember common_var_InnerTypedBitsetHelper {TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper, member_flags_var_InnerTypedBitsetHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerTypedBitsetHelper, common_var_InnerTypedBitsetHelper_ec))}; + if (!common_var_InnerTypedBitsetHelper_ec) { - common_var_InnerTypedBitsetHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper, member_flags_var_InnerTypedBitsetHelper, type_ids_BitsetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerTypedBitsetHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper, member_flags_var_InnerTypedBitsetHelper, type_ids_BitsetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerTypedBitsetHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerTypedBitsetHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerTypedBitsetHelper = "var_InnerTypedBitsetHelper"; @@ -375,108 +346,24 @@ void register_BitsetStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetStruct, member_var_InnerTypedBitsetHelper); } { - return_code_BitsetStruct = + TypeIdentifierPair type_ids_var_InnerTypedBitsetHelper2; + ReturnCode_t return_code_var_InnerTypedBitsetHelper2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerTypedBitsetHelper2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper2", type_ids_BitsetStruct); + "InnerTypedBitsetHelper2", type_ids_var_InnerTypedBitsetHelper2); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerTypedBitsetHelper2) { - BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper2 = 0; - QualifiedTypeName type_name_InnerTypedBitsetHelper2 = "InnerTypedBitsetHelper2"; - eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper2; - eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper2; - CompleteTypeDetail detail_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper2, ann_custom_InnerTypedBitsetHelper2, type_name_InnerTypedBitsetHelper2.to_string()); - CompleteBitsetHeader header_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper2); - CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper2; - { - uint16_t position_long_bitfield = 0; - BitsetMemberFlag flags_long_bitfield = 0; - uint8_t bitcount_long_bitfield = 32; - TypeKind holder_type_long_bitfield = TK_INT32; - CommonBitfield common_long_bitfield = TypeObjectUtils::build_common_bitfield(position_long_bitfield, flags_long_bitfield, bitcount_long_bitfield, holder_type_long_bitfield); - eprosima::fastcdr::optional member_ann_builtin_long_bitfield; - ann_custom_InnerTypedBitsetHelper2.reset(); - MemberName name_long_bitfield = "long_bitfield"; - CompleteMemberDetail detail_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_long_bitfield, member_ann_builtin_long_bitfield, ann_custom_InnerTypedBitsetHelper2); - CompleteBitfield bitfield_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_long_bitfield, detail_long_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper2, bitfield_long_bitfield); - } - { - uint16_t position_ulong_bitfield = 32; - BitsetMemberFlag flags_ulong_bitfield = 0; - uint8_t bitcount_ulong_bitfield = 32; - TypeKind holder_type_ulong_bitfield = TK_UINT32; - CommonBitfield common_ulong_bitfield = TypeObjectUtils::build_common_bitfield(position_ulong_bitfield, flags_ulong_bitfield, bitcount_ulong_bitfield, holder_type_ulong_bitfield); - eprosima::fastcdr::optional member_ann_builtin_ulong_bitfield; - ann_custom_InnerTypedBitsetHelper2.reset(); - MemberName name_ulong_bitfield = "ulong_bitfield"; - CompleteMemberDetail detail_ulong_bitfield = TypeObjectUtils::build_complete_member_detail(name_ulong_bitfield, member_ann_builtin_ulong_bitfield, ann_custom_InnerTypedBitsetHelper2); - CompleteBitfield bitfield_ulong_bitfield = TypeObjectUtils::build_complete_bitfield(common_ulong_bitfield, detail_ulong_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper2, bitfield_ulong_bitfield); - } - CompleteBitsetType bitset_type_InnerTypedBitsetHelper2 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper2, header_InnerTypedBitsetHelper2, field_seq_InnerTypedBitsetHelper2); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper2, type_name_InnerTypedBitsetHelper2.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper2 already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper2", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper2: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerTypedBitsetHelper2_type_identifier(type_ids_var_InnerTypedBitsetHelper2); } - StructMemberFlag member_flags_var_InnerTypedBitsetHelper2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerTypedBitsetHelper2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerTypedBitsetHelper2; MemberId member_id_var_InnerTypedBitsetHelper2 = 0x00000002; - if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerTypedBitsetHelper2 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper2, member_flags_var_InnerTypedBitsetHelper2, type_ids_BitsetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerTypedBitsetHelper2 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper2, member_flags_var_InnerTypedBitsetHelper2, type_ids_BitsetStruct.type_identifier2()); - } - else + bool common_var_InnerTypedBitsetHelper2_ec {false}; + CommonStructMember common_var_InnerTypedBitsetHelper2 {TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper2, member_flags_var_InnerTypedBitsetHelper2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerTypedBitsetHelper2, common_var_InnerTypedBitsetHelper2_ec))}; + if (!common_var_InnerTypedBitsetHelper2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerTypedBitsetHelper2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerTypedBitsetHelper2 member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerTypedBitsetHelper2 = "var_InnerTypedBitsetHelper2"; @@ -487,95 +374,24 @@ void register_BitsetStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetStruct, member_var_InnerTypedBitsetHelper2); } { - return_code_BitsetStruct = + TypeIdentifierPair type_ids_var_InnerTypedBitsetHelper3; + ReturnCode_t return_code_var_InnerTypedBitsetHelper3 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerTypedBitsetHelper3 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper3", type_ids_BitsetStruct); + "InnerTypedBitsetHelper3", type_ids_var_InnerTypedBitsetHelper3); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerTypedBitsetHelper3) { - BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper3 = 0; - QualifiedTypeName type_name_InnerTypedBitsetHelper3 = "InnerTypedBitsetHelper3"; - eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper3; - eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper3; - CompleteTypeDetail detail_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper3, ann_custom_InnerTypedBitsetHelper3, type_name_InnerTypedBitsetHelper3.to_string()); - CompleteBitsetHeader header_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper3); - CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper3; - { - uint16_t position_long_long_bitfield = 0; - BitsetMemberFlag flags_long_long_bitfield = 0; - uint8_t bitcount_long_long_bitfield = 64; - TypeKind holder_type_long_long_bitfield = TK_INT64; - CommonBitfield common_long_long_bitfield = TypeObjectUtils::build_common_bitfield(position_long_long_bitfield, flags_long_long_bitfield, bitcount_long_long_bitfield, holder_type_long_long_bitfield); - eprosima::fastcdr::optional member_ann_builtin_long_long_bitfield; - ann_custom_InnerTypedBitsetHelper3.reset(); - MemberName name_long_long_bitfield = "long_long_bitfield"; - CompleteMemberDetail detail_long_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_long_long_bitfield, member_ann_builtin_long_long_bitfield, ann_custom_InnerTypedBitsetHelper3); - CompleteBitfield bitfield_long_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_long_long_bitfield, detail_long_long_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper3, bitfield_long_long_bitfield); - } - CompleteBitsetType bitset_type_InnerTypedBitsetHelper3 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper3, header_InnerTypedBitsetHelper3, field_seq_InnerTypedBitsetHelper3); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper3, type_name_InnerTypedBitsetHelper3.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper3 already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper3", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper3: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerTypedBitsetHelper3_type_identifier(type_ids_var_InnerTypedBitsetHelper3); } - StructMemberFlag member_flags_var_InnerTypedBitsetHelper3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerTypedBitsetHelper3 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerTypedBitsetHelper3; MemberId member_id_var_InnerTypedBitsetHelper3 = 0x00000003; - if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerTypedBitsetHelper3 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper3, member_flags_var_InnerTypedBitsetHelper3, type_ids_BitsetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerTypedBitsetHelper3_ec {false}; + CommonStructMember common_var_InnerTypedBitsetHelper3 {TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper3, member_flags_var_InnerTypedBitsetHelper3, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerTypedBitsetHelper3, common_var_InnerTypedBitsetHelper3_ec))}; + if (!common_var_InnerTypedBitsetHelper3_ec) { - common_var_InnerTypedBitsetHelper3 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper3, member_flags_var_InnerTypedBitsetHelper3, type_ids_BitsetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerTypedBitsetHelper3 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerTypedBitsetHelper3 member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerTypedBitsetHelper3 = "var_InnerTypedBitsetHelper3"; @@ -586,95 +402,24 @@ void register_BitsetStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetStruct, member_var_InnerTypedBitsetHelper3); } { - return_code_BitsetStruct = + TypeIdentifierPair type_ids_var_InnerTypedBitsetHelper4; + ReturnCode_t return_code_var_InnerTypedBitsetHelper4 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerTypedBitsetHelper4 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper4", type_ids_BitsetStruct); + "InnerTypedBitsetHelper4", type_ids_var_InnerTypedBitsetHelper4); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerTypedBitsetHelper4) { - BitsetTypeFlag bitset_flags_InnerTypedBitsetHelper4 = 0; - QualifiedTypeName type_name_InnerTypedBitsetHelper4 = "InnerTypedBitsetHelper4"; - eprosima::fastcdr::optional type_ann_builtin_InnerTypedBitsetHelper4; - eprosima::fastcdr::optional ann_custom_InnerTypedBitsetHelper4; - CompleteTypeDetail detail_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerTypedBitsetHelper4, ann_custom_InnerTypedBitsetHelper4, type_name_InnerTypedBitsetHelper4.to_string()); - CompleteBitsetHeader header_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_bitset_header(detail_InnerTypedBitsetHelper4); - CompleteBitfieldSeq field_seq_InnerTypedBitsetHelper4; - { - uint16_t position_ulong_long_bitfield = 0; - BitsetMemberFlag flags_ulong_long_bitfield = 0; - uint8_t bitcount_ulong_long_bitfield = 64; - TypeKind holder_type_ulong_long_bitfield = TK_UINT64; - CommonBitfield common_ulong_long_bitfield = TypeObjectUtils::build_common_bitfield(position_ulong_long_bitfield, flags_ulong_long_bitfield, bitcount_ulong_long_bitfield, holder_type_ulong_long_bitfield); - eprosima::fastcdr::optional member_ann_builtin_ulong_long_bitfield; - ann_custom_InnerTypedBitsetHelper4.reset(); - MemberName name_ulong_long_bitfield = "ulong_long_bitfield"; - CompleteMemberDetail detail_ulong_long_bitfield = TypeObjectUtils::build_complete_member_detail(name_ulong_long_bitfield, member_ann_builtin_ulong_long_bitfield, ann_custom_InnerTypedBitsetHelper4); - CompleteBitfield bitfield_ulong_long_bitfield = TypeObjectUtils::build_complete_bitfield(common_ulong_long_bitfield, detail_ulong_long_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerTypedBitsetHelper4, bitfield_ulong_long_bitfield); - } - CompleteBitsetType bitset_type_InnerTypedBitsetHelper4 = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerTypedBitsetHelper4, header_InnerTypedBitsetHelper4, field_seq_InnerTypedBitsetHelper4); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerTypedBitsetHelper4, type_name_InnerTypedBitsetHelper4.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper4 already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerTypedBitsetHelper4", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerTypedBitsetHelper4: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerTypedBitsetHelper4_type_identifier(type_ids_var_InnerTypedBitsetHelper4); } - StructMemberFlag member_flags_var_InnerTypedBitsetHelper4 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerTypedBitsetHelper4 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerTypedBitsetHelper4; MemberId member_id_var_InnerTypedBitsetHelper4 = 0x00000004; - if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerTypedBitsetHelper4_ec {false}; + CommonStructMember common_var_InnerTypedBitsetHelper4 {TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper4, member_flags_var_InnerTypedBitsetHelper4, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerTypedBitsetHelper4, common_var_InnerTypedBitsetHelper4_ec))}; + if (!common_var_InnerTypedBitsetHelper4_ec) { - common_var_InnerTypedBitsetHelper4 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper4, member_flags_var_InnerTypedBitsetHelper4, type_ids_BitsetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerTypedBitsetHelper4 = TypeObjectUtils::build_common_struct_member(member_id_var_InnerTypedBitsetHelper4, member_flags_var_InnerTypedBitsetHelper4, type_ids_BitsetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerTypedBitsetHelper4 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerTypedBitsetHelper4 member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerTypedBitsetHelper4 = "var_InnerTypedBitsetHelper4"; @@ -686,21 +431,11 @@ void register_BitsetStruct_type_identifier( } CompleteStructType struct_type_BitsetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BitsetStruct, header_BitsetStruct, member_seq_BitsetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitsetStruct, type_name_BitsetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitsetStruct, type_name_BitsetStruct.to_string(), type_ids_BitsetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BitsetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_BitsetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BitsetStruct", type_ids_BitsetStruct); - if (return_code_BitsetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BitsetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/bitsetsTypeObjectSupport.hpp b/test/dds-types-test/bitsetsTypeObjectSupport.hpp index 67ade871646..58e9d8275c4 100644 --- a/test/dds-types-test/bitsetsTypeObjectSupport.hpp +++ b/test/dds-types-test/bitsetsTypeObjectSupport.hpp @@ -36,13 +36,56 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_bitsets_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +/** + * @brief Register InnerTypedBitsetHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerTypedBitsetHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerTypedBitsetHelper2 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerTypedBitsetHelper2_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerTypedBitsetHelper3 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerTypedBitsetHelper3_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerTypedBitsetHelper4 related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerTypedBitsetHelper4_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BitsetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -54,7 +97,7 @@ eProsima_user_DllExport void register_bitsets_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BitsetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/constantsPubSubTypes.cxx b/test/dds-types-test/constantsPubSubTypes.cxx index 4c714b57271..6849ce4fe56 100644 --- a/test/dds-types-test/constantsPubSubTypes.cxx +++ b/test/dds-types-test/constantsPubSubTypes.cxx @@ -220,9 +220,9 @@ namespace const_module1 { return true; } - void ModuleConstsLiteralsStructPubSubType::register_type_object_representation() const + void ModuleConstsLiteralsStructPubSubType::register_type_object_representation() { - register_constants_type_objects(); + register_ModuleConstsLiteralsStruct_type_identifier(type_identifiers_); } } // namespace const_module1 @@ -416,9 +416,9 @@ namespace const_module2 { return true; } - void Module2ConstsLiteralsStructPubSubType::register_type_object_representation() const + void Module2ConstsLiteralsStructPubSubType::register_type_object_representation() { - register_constants_type_objects(); + register_Module2ConstsLiteralsStruct_type_identifier(type_identifiers_); } } // namespace const_module2 @@ -611,9 +611,9 @@ bool ConstsLiteralsStructPubSubType::getKey( return true; } -void ConstsLiteralsStructPubSubType::register_type_object_representation() const +void ConstsLiteralsStructPubSubType::register_type_object_representation() { - register_constants_type_objects(); + register_ConstsLiteralsStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/constantsPubSubTypes.h b/test/dds-types-test/constantsPubSubTypes.h index fcc1a25d859..632b39aef55 100644 --- a/test/dds-types-test/constantsPubSubTypes.h +++ b/test/dds-types-test/constantsPubSubTypes.h @@ -96,7 +96,7 @@ namespace const_module1 void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -190,7 +190,7 @@ namespace const_module2 void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -282,7 +282,7 @@ class ConstsLiteralsStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/constantsTypeObjectSupport.cxx b/test/dds-types-test/constantsTypeObjectSupport.cxx index da00e436803..b1e80fc315c 100644 --- a/test/dds-types-test/constantsTypeObjectSupport.cxx +++ b/test/dds-types-test/constantsTypeObjectSupport.cxx @@ -39,37 +39,120 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_constants_type_objects() +void register_alias_short_type_identifier( + TypeIdentifierPair& type_ids_alias_short) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - const_module1::register_const_module1_ModuleConstsLiteralsStruct_type_identifier(type_id); + ReturnCode_t return_code_alias_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "alias_short", type_ids_alias_short); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_short) + { + AliasTypeFlag alias_flags_alias_short = 0; + QualifiedTypeName type_name_alias_short = "alias_short"; + eprosima::fastcdr::optional type_ann_builtin_alias_short; + eprosima::fastcdr::optional ann_custom_alias_short; + CompleteTypeDetail detail_alias_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_short, ann_custom_alias_short, type_name_alias_short.to_string()); + CompleteAliasHeader header_alias_short = TypeObjectUtils::build_complete_alias_header(detail_alias_short); + AliasMemberFlag related_flags_alias_short = 0; + return_code_alias_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_short); - const_module2::register_const_module2_Module2ConstsLiteralsStruct_type_identifier(type_id); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_short) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_short related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_short_ec {false}; + CommonAliasBody common_alias_short {TypeObjectUtils::build_common_alias_body(related_flags_alias_short, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_short, common_alias_short_ec))}; + if (!common_alias_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "alias_short related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_short; + ann_custom_alias_short.reset(); + CompleteAliasBody body_alias_short = TypeObjectUtils::build_complete_alias_body(common_alias_short, + member_ann_builtin_alias_short, ann_custom_alias_short); + CompleteAliasType alias_type_alias_short = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_short, + header_alias_short, body_alias_short); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_short, + type_name_alias_short.to_string(), type_ids_alias_short)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "alias_short already registered in TypeObjectRegistry for a different type."); + } + } +} - register_ConstsLiteralsStruct_type_identifier(type_id); +namespace const_module1 { +void register_alias_short_moduled_type_identifier( + TypeIdentifierPair& type_ids_alias_short_moduled) +{ + ReturnCode_t return_code_alias_short_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_alias_short_moduled = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "const_module1::alias_short_moduled", type_ids_alias_short_moduled); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_short_moduled) + { + AliasTypeFlag alias_flags_alias_short_moduled = 0; + QualifiedTypeName type_name_alias_short_moduled = "const_module1::alias_short_moduled"; + eprosima::fastcdr::optional type_ann_builtin_alias_short_moduled; + eprosima::fastcdr::optional ann_custom_alias_short_moduled; + CompleteTypeDetail detail_alias_short_moduled = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_short_moduled, ann_custom_alias_short_moduled, type_name_alias_short_moduled.to_string()); + CompleteAliasHeader header_alias_short_moduled = TypeObjectUtils::build_complete_alias_header(detail_alias_short_moduled); + AliasMemberFlag related_flags_alias_short_moduled = 0; + return_code_alias_short_moduled = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_alias_short_moduled); - }); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_alias_short_moduled) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "const_module1::alias_short_moduled related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_alias_short_moduled_ec {false}; + CommonAliasBody common_alias_short_moduled {TypeObjectUtils::build_common_alias_body(related_flags_alias_short_moduled, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_alias_short_moduled, common_alias_short_moduled_ec))}; + if (!common_alias_short_moduled_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "const_module1::alias_short_moduled related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_alias_short_moduled; + ann_custom_alias_short_moduled.reset(); + CompleteAliasBody body_alias_short_moduled = TypeObjectUtils::build_complete_alias_body(common_alias_short_moduled, + member_ann_builtin_alias_short_moduled, ann_custom_alias_short_moduled); + CompleteAliasType alias_type_alias_short_moduled = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_short_moduled, + header_alias_short_moduled, body_alias_short_moduled); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_short_moduled, + type_name_alias_short_moduled.to_string(), type_ids_alias_short_moduled)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "const_module1::alias_short_moduled already registered in TypeObjectRegistry for a different type."); + } + } } -namespace const_module1 { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( - TypeIdentifier& type_id) +void register_ModuleConstsLiteralsStruct_type_identifier( + TypeIdentifierPair& type_ids_ModuleConstsLiteralsStruct) { + + ReturnCode_t return_code_ModuleConstsLiteralsStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ModuleConstsLiteralsStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "const_module1::ModuleConstsLiteralsStruct", type_ids_ModuleConstsLiteralsStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ModuleConstsLiteralsStruct) { - StructTypeFlag struct_flags_ModuleConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ModuleConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ModuleConstsLiteralsStruct; - TypeIdentifierPair type_ids_ModuleConstsLiteralsStruct; QualifiedTypeName type_name_ModuleConstsLiteralsStruct = "const_module1::ModuleConstsLiteralsStruct"; eprosima::fastcdr::optional type_ann_builtin_ModuleConstsLiteralsStruct; eprosima::fastcdr::optional ann_custom_ModuleConstsLiteralsStruct; @@ -78,69 +161,33 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( header_ModuleConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ModuleConstsLiteralsStruct); CompleteStructMemberSeq member_seq_ModuleConstsLiteralsStruct; { - return_code_ModuleConstsLiteralsStruct = + TypeIdentifierPair type_ids_module1_array_literal_const_moduled; + ReturnCode_t return_code_module1_array_literal_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module1_array_literal_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ModuleConstsLiteralsStruct); + "anonymous_array_int16_t_11", type_ids_module1_array_literal_const_moduled); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module1_array_literal_const_moduled) { - return_code_ModuleConstsLiteralsStruct = + return_code_module1_array_literal_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ModuleConstsLiteralsStruct); + "_int16_t", type_ids_module1_array_literal_const_moduled); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module1_array_literal_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module1_array_literal_const_moduled, element_identifier_anonymous_array_int16_t_11_ec))}; + if (!element_identifier_anonymous_array_int16_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module1_array_literal_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_11 = EK_BOTH; } @@ -153,68 +200,21 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11", type_ids_module1_array_literal_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ModuleConstsLiteralsStruct); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module1_array_literal_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module1_array_literal_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module1_array_literal_const_moduled; MemberId member_id_module1_array_literal_const_moduled = 0x00000000; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module1_array_literal_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_moduled, member_flags_module1_array_literal_const_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_module1_array_literal_const_moduled_ec {false}; + CommonStructMember common_module1_array_literal_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_moduled, member_flags_module1_array_literal_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module1_array_literal_const_moduled, common_module1_array_literal_const_moduled_ec))}; + if (!common_module1_array_literal_const_moduled_ec) { - common_module1_array_literal_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_moduled, member_flags_module1_array_literal_const_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module1_array_literal_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module1_array_literal_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module1_array_literal_const_moduled = "module1_array_literal_const_moduled"; @@ -225,69 +225,33 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ModuleConstsLiteralsStruct, member_module1_array_literal_const_moduled); } { - return_code_ModuleConstsLiteralsStruct = + TypeIdentifierPair type_ids_module1_array_literal_const_alias_const_moduled; + ReturnCode_t return_code_module1_array_literal_const_alias_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module1_array_literal_const_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ModuleConstsLiteralsStruct); + "anonymous_array_int16_t_10", type_ids_module1_array_literal_const_alias_const_moduled); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module1_array_literal_const_alias_const_moduled) { - return_code_ModuleConstsLiteralsStruct = + return_code_module1_array_literal_const_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ModuleConstsLiteralsStruct); + "_int16_t", type_ids_module1_array_literal_const_alias_const_moduled); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module1_array_literal_const_alias_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module1_array_literal_const_alias_const_moduled, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module1_array_literal_const_alias_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -300,68 +264,21 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_module1_array_literal_const_alias_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ModuleConstsLiteralsStruct); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module1_array_literal_const_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module1_array_literal_const_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module1_array_literal_const_alias_const_moduled; MemberId member_id_module1_array_literal_const_alias_const_moduled = 0x00000001; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module1_array_literal_const_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_alias_const_moduled, member_flags_module1_array_literal_const_alias_const_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_module1_array_literal_const_alias_const_moduled_ec {false}; + CommonStructMember common_module1_array_literal_const_alias_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_alias_const_moduled, member_flags_module1_array_literal_const_alias_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module1_array_literal_const_alias_const_moduled, common_module1_array_literal_const_alias_const_moduled_ec))}; + if (!common_module1_array_literal_const_alias_const_moduled_ec) { - common_module1_array_literal_const_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module1_array_literal_const_alias_const_moduled, member_flags_module1_array_literal_const_alias_const_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module1_array_literal_const_alias_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module1_array_literal_const_alias_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module1_array_literal_const_alias_const_moduled = "module1_array_literal_const_alias_const_moduled"; @@ -372,140 +289,24 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ModuleConstsLiteralsStruct, member_module1_array_literal_const_alias_const_moduled); } { - return_code_ModuleConstsLiteralsStruct = + TypeIdentifierPair type_ids_var1; + ReturnCode_t return_code_var1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var1 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_short", type_ids_ModuleConstsLiteralsStruct); + "alias_short", type_ids_var1); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var1) { - AliasTypeFlag alias_flags_alias_short = 0; - QualifiedTypeName type_name_alias_short = "alias_short"; - eprosima::fastcdr::optional type_ann_builtin_alias_short; - eprosima::fastcdr::optional ann_custom_alias_short; - CompleteTypeDetail detail_alias_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_short, ann_custom_alias_short, type_name_alias_short.to_string()); - CompleteAliasHeader header_alias_short = TypeObjectUtils::build_complete_alias_header(detail_alias_short); - AliasMemberFlag related_flags_alias_short = 0; - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ModuleConstsLiteralsStruct); - - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_short related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_short; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_short = TypeObjectUtils::build_common_alias_body(related_flags_alias_short, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_short = TypeObjectUtils::build_common_alias_body(related_flags_alias_short, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_short related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_short; - ann_custom_alias_short.reset(); - CompleteAliasBody body_alias_short = TypeObjectUtils::build_complete_alias_body(common_alias_short, member_ann_builtin_alias_short, ann_custom_alias_short); - CompleteAliasType alias_type_alias_short = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_short, header_alias_short, body_alias_short); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_short, type_name_alias_short.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_short already registered in TypeObjectRegistry for a different type."); - } - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "alias_short", type_ids_ModuleConstsLiteralsStruct); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "alias_short: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_alias_short_type_identifier(type_ids_var1); } - StructMemberFlag member_flags_var1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var1; MemberId member_id_var1 = 0x00000002; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var1 = TypeObjectUtils::build_common_struct_member(member_id_var1, member_flags_var1, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var1 = TypeObjectUtils::build_common_struct_member(member_id_var1, member_flags_var1, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else + bool common_var1_ec {false}; + CommonStructMember common_var1 {TypeObjectUtils::build_common_struct_member(member_id_var1, member_flags_var1, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var1, common_var1_ec))}; + if (!common_var1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var1 member TypeIdentifier inconsistent."); return; } MemberName name_var1 = "var1"; @@ -516,140 +317,24 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ModuleConstsLiteralsStruct, member_var1); } { - return_code_ModuleConstsLiteralsStruct = + TypeIdentifierPair type_ids_var2; + ReturnCode_t return_code_var2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "const_module1::alias_short_moduled", type_ids_ModuleConstsLiteralsStruct); + "const_module1::alias_short_moduled", type_ids_var2); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var2) { - AliasTypeFlag alias_flags_alias_short_moduled = 0; - QualifiedTypeName type_name_alias_short_moduled = "const_module1::alias_short_moduled"; - eprosima::fastcdr::optional type_ann_builtin_alias_short_moduled; - eprosima::fastcdr::optional ann_custom_alias_short_moduled; - CompleteTypeDetail detail_alias_short_moduled = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_alias_short_moduled, ann_custom_alias_short_moduled, type_name_alias_short_moduled.to_string()); - CompleteAliasHeader header_alias_short_moduled = TypeObjectUtils::build_complete_alias_header(detail_alias_short_moduled); - AliasMemberFlag related_flags_alias_short_moduled = 0; - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ModuleConstsLiteralsStruct); - - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module1::alias_short_moduled related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_alias_short_moduled; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_alias_short_moduled = TypeObjectUtils::build_common_alias_body(related_flags_alias_short_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_alias_short_moduled = TypeObjectUtils::build_common_alias_body(related_flags_alias_short_moduled, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module1::alias_short_moduled related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_alias_short_moduled; - ann_custom_alias_short_moduled.reset(); - CompleteAliasBody body_alias_short_moduled = TypeObjectUtils::build_complete_alias_body(common_alias_short_moduled, member_ann_builtin_alias_short_moduled, ann_custom_alias_short_moduled); - CompleteAliasType alias_type_alias_short_moduled = TypeObjectUtils::build_complete_alias_type(alias_flags_alias_short_moduled, header_alias_short_moduled, body_alias_short_moduled); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_alias_short_moduled, type_name_alias_short_moduled.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module1::alias_short_moduled already registered in TypeObjectRegistry for a different type."); - } - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "const_module1::alias_short_moduled", type_ids_ModuleConstsLiteralsStruct); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module1::alias_short_moduled: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + const_module1::register_alias_short_moduled_type_identifier(type_ids_var2); } - StructMemberFlag member_flags_var2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var2; MemberId member_id_var2 = 0x00000003; - if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var2_ec {false}; + CommonStructMember common_var2 {TypeObjectUtils::build_common_struct_member(member_id_var2, member_flags_var2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var2, common_var2_ec))}; + if (!common_var2_ec) { - common_var2 = TypeObjectUtils::build_common_struct_member(member_id_var2, member_flags_var2, type_ids_ModuleConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ModuleConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ModuleConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var2 = TypeObjectUtils::build_common_struct_member(member_id_var2, member_flags_var2, type_ids_ModuleConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var2 member TypeIdentifier inconsistent."); return; } MemberName name_var2 = "var2"; @@ -661,35 +346,29 @@ void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( } CompleteStructType struct_type_ModuleConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_ModuleConstsLiteralsStruct, header_ModuleConstsLiteralsStruct, member_seq_ModuleConstsLiteralsStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ModuleConstsLiteralsStruct, type_name_ModuleConstsLiteralsStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ModuleConstsLiteralsStruct, type_name_ModuleConstsLiteralsStruct.to_string(), type_ids_ModuleConstsLiteralsStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "const_module1::ModuleConstsLiteralsStruct already registered in TypeObjectRegistry for a different type."); } - return_code_ModuleConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "const_module1::ModuleConstsLiteralsStruct", type_ids_ModuleConstsLiteralsStruct); - if (return_code_ModuleConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module1::ModuleConstsLiteralsStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace const_module1 namespace const_module2 { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( - TypeIdentifier& type_id) +void register_Module2ConstsLiteralsStruct_type_identifier( + TypeIdentifierPair& type_ids_Module2ConstsLiteralsStruct) { + + ReturnCode_t return_code_Module2ConstsLiteralsStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Module2ConstsLiteralsStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "const_module2::Module2ConstsLiteralsStruct", type_ids_Module2ConstsLiteralsStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Module2ConstsLiteralsStruct) { - StructTypeFlag struct_flags_Module2ConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Module2ConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Module2ConstsLiteralsStruct; - TypeIdentifierPair type_ids_Module2ConstsLiteralsStruct; QualifiedTypeName type_name_Module2ConstsLiteralsStruct = "const_module2::Module2ConstsLiteralsStruct"; eprosima::fastcdr::optional type_ann_builtin_Module2ConstsLiteralsStruct; eprosima::fastcdr::optional ann_custom_Module2ConstsLiteralsStruct; @@ -698,69 +377,33 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( header_Module2ConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Module2ConstsLiteralsStruct); CompleteStructMemberSeq member_seq_Module2ConstsLiteralsStruct; { - return_code_Module2ConstsLiteralsStruct = + TypeIdentifierPair type_ids_module2_array_literal_const_moduled; + ReturnCode_t return_code_module2_array_literal_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module2_array_literal_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_Module2ConstsLiteralsStruct); + "anonymous_array_int16_t_22", type_ids_module2_array_literal_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_moduled) { - return_code_Module2ConstsLiteralsStruct = + return_code_module2_array_literal_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Module2ConstsLiteralsStruct); + "_int16_t", type_ids_module2_array_literal_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {nullptr}; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_22_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_moduled, element_identifier_anonymous_array_int16_t_22_ec))}; + if (!element_identifier_anonymous_array_int16_t_22_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_22 = EK_COMPLETE; - if (TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module2_array_literal_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_22 = EK_BOTH; } @@ -773,68 +416,21 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_22, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_22)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22", type_ids_module2_array_literal_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_22 already registered in TypeObjectRegistry for a different type."); } } - return_code_Module2ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_Module2ConstsLiteralsStruct); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_22: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module2_array_literal_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module2_array_literal_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module2_array_literal_const_moduled; MemberId member_id_module2_array_literal_const_moduled = 0x00000000; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_moduled, member_flags_module2_array_literal_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_moduled, member_flags_module2_array_literal_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_module2_array_literal_const_moduled_ec {false}; + CommonStructMember common_module2_array_literal_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_moduled, member_flags_module2_array_literal_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_moduled, common_module2_array_literal_const_moduled_ec))}; + if (!common_module2_array_literal_const_moduled_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module2_array_literal_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module2_array_literal_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module2_array_literal_const_moduled = "module2_array_literal_const_moduled"; @@ -845,69 +441,33 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Module2ConstsLiteralsStruct, member_module2_array_literal_const_moduled); } { - return_code_Module2ConstsLiteralsStruct = + TypeIdentifierPair type_ids_module2_array_literal_const_alias_const_moduled; + ReturnCode_t return_code_module2_array_literal_const_alias_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module2_array_literal_const_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Module2ConstsLiteralsStruct); + "anonymous_array_int16_t_2", type_ids_module2_array_literal_const_alias_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_alias_const_moduled) { - return_code_Module2ConstsLiteralsStruct = + return_code_module2_array_literal_const_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Module2ConstsLiteralsStruct); + "_int16_t", type_ids_module2_array_literal_const_alias_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_alias_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_alias_const_moduled, element_identifier_anonymous_array_int16_t_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module2_array_literal_const_alias_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; } @@ -920,68 +480,21 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2", type_ids_module2_array_literal_const_alias_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); } } - return_code_Module2ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Module2ConstsLiteralsStruct); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module2_array_literal_const_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module2_array_literal_const_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module2_array_literal_const_alias_const_moduled; MemberId member_id_module2_array_literal_const_alias_const_moduled = 0x00000001; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_const_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_alias_const_moduled, member_flags_module2_array_literal_const_alias_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_const_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_alias_const_moduled, member_flags_module2_array_literal_const_alias_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_module2_array_literal_const_alias_const_moduled_ec {false}; + CommonStructMember common_module2_array_literal_const_alias_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_alias_const_moduled, member_flags_module2_array_literal_const_alias_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_alias_const_moduled, common_module2_array_literal_const_alias_const_moduled_ec))}; + if (!common_module2_array_literal_const_alias_const_moduled_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module2_array_literal_const_alias_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module2_array_literal_const_alias_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module2_array_literal_const_alias_const_moduled = "module2_array_literal_const_alias_const_moduled"; @@ -992,69 +505,33 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Module2ConstsLiteralsStruct, member_module2_array_literal_const_alias_const_moduled); } { - return_code_Module2ConstsLiteralsStruct = + TypeIdentifierPair type_ids_module2_array_literal_const_scoped_moduled; + ReturnCode_t return_code_module2_array_literal_const_scoped_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module2_array_literal_const_scoped_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_Module2ConstsLiteralsStruct); + "anonymous_array_int16_t_22", type_ids_module2_array_literal_const_scoped_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_scoped_moduled) { - return_code_Module2ConstsLiteralsStruct = + return_code_module2_array_literal_const_scoped_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Module2ConstsLiteralsStruct); + "_int16_t", type_ids_module2_array_literal_const_scoped_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_const_scoped_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {nullptr}; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_22_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_scoped_moduled, element_identifier_anonymous_array_int16_t_22_ec))}; + if (!element_identifier_anonymous_array_int16_t_22_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_22 = EK_COMPLETE; - if (TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module2_array_literal_const_scoped_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_22 = EK_BOTH; } @@ -1067,68 +544,21 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_22, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_22)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22", type_ids_module2_array_literal_const_scoped_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_22 already registered in TypeObjectRegistry for a different type."); } } - return_code_Module2ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_Module2ConstsLiteralsStruct); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_22: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module2_array_literal_const_scoped_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module2_array_literal_const_scoped_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module2_array_literal_const_scoped_moduled; MemberId member_id_module2_array_literal_const_scoped_moduled = 0x00000002; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_const_scoped_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_scoped_moduled, member_flags_module2_array_literal_const_scoped_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_module2_array_literal_const_scoped_moduled_ec {false}; + CommonStructMember common_module2_array_literal_const_scoped_moduled {TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_scoped_moduled, member_flags_module2_array_literal_const_scoped_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_const_scoped_moduled, common_module2_array_literal_const_scoped_moduled_ec))}; + if (!common_module2_array_literal_const_scoped_moduled_ec) { - common_module2_array_literal_const_scoped_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_const_scoped_moduled, member_flags_module2_array_literal_const_scoped_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module2_array_literal_const_scoped_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module2_array_literal_const_scoped_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module2_array_literal_const_scoped_moduled = "module2_array_literal_const_scoped_moduled"; @@ -1139,69 +569,33 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Module2ConstsLiteralsStruct, member_module2_array_literal_const_scoped_moduled); } { - return_code_Module2ConstsLiteralsStruct = + TypeIdentifierPair type_ids_module2_array_literal_module1_const_moduled; + ReturnCode_t return_code_module2_array_literal_module1_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_module2_array_literal_module1_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_Module2ConstsLiteralsStruct); + "anonymous_array_int16_t_11", type_ids_module2_array_literal_module1_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_module1_const_moduled) { - return_code_Module2ConstsLiteralsStruct = + return_code_module2_array_literal_module1_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Module2ConstsLiteralsStruct); + "_int16_t", type_ids_module2_array_literal_module1_const_moduled); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_module2_array_literal_module1_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_module1_const_moduled, element_identifier_anonymous_array_int16_t_11_ec))}; + if (!element_identifier_anonymous_array_int16_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_module2_array_literal_module1_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_11 = EK_BOTH; } @@ -1214,68 +608,21 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11", type_ids_module2_array_literal_module1_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_Module2ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_Module2ConstsLiteralsStruct); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_module2_array_literal_module1_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_module2_array_literal_module1_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_module2_array_literal_module1_const_moduled; MemberId member_id_module2_array_literal_module1_const_moduled = 0x00000003; - if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_module2_array_literal_module1_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_module1_const_moduled, member_flags_module2_array_literal_module1_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Module2ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Module2ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_module2_array_literal_module1_const_moduled_ec {false}; + CommonStructMember common_module2_array_literal_module1_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_module1_const_moduled, member_flags_module2_array_literal_module1_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_module2_array_literal_module1_const_moduled, common_module2_array_literal_module1_const_moduled_ec))}; + if (!common_module2_array_literal_module1_const_moduled_ec) { - common_module2_array_literal_module1_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_module2_array_literal_module1_const_moduled, member_flags_module2_array_literal_module1_const_moduled, type_ids_Module2ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure module2_array_literal_module1_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure module2_array_literal_module1_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_module2_array_literal_module1_const_moduled = "module2_array_literal_module1_const_moduled"; @@ -1287,34 +634,28 @@ void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( } CompleteStructType struct_type_Module2ConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_Module2ConstsLiteralsStruct, header_Module2ConstsLiteralsStruct, member_seq_Module2ConstsLiteralsStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Module2ConstsLiteralsStruct, type_name_Module2ConstsLiteralsStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Module2ConstsLiteralsStruct, type_name_Module2ConstsLiteralsStruct.to_string(), type_ids_Module2ConstsLiteralsStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "const_module2::Module2ConstsLiteralsStruct already registered in TypeObjectRegistry for a different type."); } - return_code_Module2ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "const_module2::Module2ConstsLiteralsStruct", type_ids_Module2ConstsLiteralsStruct); - if (return_code_Module2ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "const_module2::Module2ConstsLiteralsStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace const_module2 // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ConstsLiteralsStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ConstsLiteralsStruct) { + + ReturnCode_t return_code_ConstsLiteralsStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ConstsLiteralsStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ConstsLiteralsStruct", type_ids_ConstsLiteralsStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ConstsLiteralsStruct) { - StructTypeFlag struct_flags_ConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ConstsLiteralsStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ConstsLiteralsStruct; - TypeIdentifierPair type_ids_ConstsLiteralsStruct; QualifiedTypeName type_name_ConstsLiteralsStruct = "ConstsLiteralsStruct"; eprosima::fastcdr::optional type_ann_builtin_ConstsLiteralsStruct; eprosima::fastcdr::optional ann_custom_ConstsLiteralsStruct; @@ -1323,69 +664,33 @@ void register_ConstsLiteralsStruct_type_identifier( header_ConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ConstsLiteralsStruct); CompleteStructMemberSeq member_seq_ConstsLiteralsStruct; { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_short; + ReturnCode_t return_code_array_literal_const_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_87", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_87", type_ids_array_literal_const_short); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_short) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literal_const_short); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_87 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_87 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_87 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_87_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_87 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_short, element_identifier_anonymous_array_int16_t_87_ec))}; + if (!element_identifier_anonymous_array_int16_t_87_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_87 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_87 = EK_BOTH; } @@ -1398,68 +703,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_87, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_87)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_87")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_87", type_ids_array_literal_const_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_87 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_87", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_87: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_short; MemberId member_id_array_literal_const_short = 0x00000000; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_short_ec {false}; + CommonStructMember common_array_literal_const_short {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_short, member_flags_array_literal_const_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_short, common_array_literal_const_short_ec))}; + if (!common_array_literal_const_short_ec) { - common_array_literal_const_short = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_short, member_flags_array_literal_const_short, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_short = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_short, member_flags_array_literal_const_short, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_short member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_short = "array_literal_const_short"; @@ -1470,69 +728,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_short); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_ushort; + ReturnCode_t return_code_array_literal_const_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_43", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint16_t_43", type_ids_array_literal_const_ushort); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ushort) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ConstsLiteralsStruct); + "_uint16_t", type_ids_array_literal_const_ushort); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_43 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_43 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_43 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_43_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_43 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ushort, element_identifier_anonymous_array_uint16_t_43_ec))}; + if (!element_identifier_anonymous_array_uint16_t_43_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_43 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_ushort.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_43 = EK_BOTH; } @@ -1545,68 +767,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_43, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_43)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_43")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_43", type_ids_array_literal_const_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_43 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_43", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_43: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_ushort; MemberId member_id_array_literal_const_ushort = 0x00000001; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ushort = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ushort, member_flags_array_literal_const_ushort, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ushort = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ushort, member_flags_array_literal_const_ushort, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literal_const_ushort_ec {false}; + CommonStructMember common_array_literal_const_ushort {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ushort, member_flags_array_literal_const_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ushort, common_array_literal_const_ushort_ec))}; + if (!common_array_literal_const_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_ushort member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_ushort = "array_literal_const_ushort"; @@ -1617,69 +792,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_ushort); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_long; + ReturnCode_t return_code_array_literal_const_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_23", type_ids_ConstsLiteralsStruct); + "anonymous_array_int32_t_23", type_ids_array_literal_const_long); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_long) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ConstsLiteralsStruct); + "_int32_t", type_ids_array_literal_const_long); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_23 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_23 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_23 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_23_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_23 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_long, element_identifier_anonymous_array_int32_t_23_ec))}; + if (!element_identifier_anonymous_array_int32_t_23_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_23 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_long.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_23 = EK_BOTH; } @@ -1692,68 +831,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_23, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_23)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_23")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_23", type_ids_array_literal_const_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_23 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_23", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_23: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_long; MemberId member_id_array_literal_const_long = 0x00000002; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_long_ec {false}; + CommonStructMember common_array_literal_const_long {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_long, member_flags_array_literal_const_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_long, common_array_literal_const_long_ec))}; + if (!common_array_literal_const_long_ec) { - common_array_literal_const_long = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_long, member_flags_array_literal_const_long, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_long = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_long, member_flags_array_literal_const_long, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_long member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_long = "array_literal_const_long"; @@ -1764,69 +856,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_long); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_ulong; + ReturnCode_t return_code_array_literal_const_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_6", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint32_t_6", type_ids_array_literal_const_ulong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ulong) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ConstsLiteralsStruct); + "_uint32_t", type_ids_array_literal_const_ulong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_6 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_6 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_6 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_6_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_6 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ulong, element_identifier_anonymous_array_uint32_t_6_ec))}; + if (!element_identifier_anonymous_array_uint32_t_6_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_6 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_ulong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_6 = EK_BOTH; } @@ -1839,68 +895,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_6, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_6)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_6")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_6", type_ids_array_literal_const_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_6 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_6", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_6: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_ulong; MemberId member_id_array_literal_const_ulong = 0x00000003; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ulong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulong, member_flags_array_literal_const_ulong, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ulong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulong, member_flags_array_literal_const_ulong, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literal_const_ulong_ec {false}; + CommonStructMember common_array_literal_const_ulong {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulong, member_flags_array_literal_const_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ulong, common_array_literal_const_ulong_ec))}; + if (!common_array_literal_const_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_ulong member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_ulong = "array_literal_const_ulong"; @@ -1911,69 +920,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_ulong); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_longlong; + ReturnCode_t return_code_array_literal_const_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_8", type_ids_ConstsLiteralsStruct); + "anonymous_array_int64_t_8", type_ids_array_literal_const_longlong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_longlong) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ConstsLiteralsStruct); + "_int64_t", type_ids_array_literal_const_longlong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_8 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_8 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_8 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_8_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_8 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_longlong, element_identifier_anonymous_array_int64_t_8_ec))}; + if (!element_identifier_anonymous_array_int64_t_8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_8 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_longlong.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_8 = EK_BOTH; } @@ -1986,68 +959,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_8, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_8)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_8")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_8", type_ids_array_literal_const_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_8 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_8", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_8: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_longlong; MemberId member_id_array_literal_const_longlong = 0x00000004; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_longlong_ec {false}; + CommonStructMember common_array_literal_const_longlong {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_longlong, member_flags_array_literal_const_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_longlong, common_array_literal_const_longlong_ec))}; + if (!common_array_literal_const_longlong_ec) { - common_array_literal_const_longlong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_longlong, member_flags_array_literal_const_longlong, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_longlong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_longlong, member_flags_array_literal_const_longlong, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_longlong member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_longlong = "array_literal_const_longlong"; @@ -2058,69 +984,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_longlong); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_ulonglong; + ReturnCode_t return_code_array_literal_const_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_67", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint64_t_67", type_ids_array_literal_const_ulonglong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ulonglong) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ConstsLiteralsStruct); + "_uint64_t", type_ids_array_literal_const_ulonglong); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_67 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_67 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_67 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_67_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_67 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ulonglong, element_identifier_anonymous_array_uint64_t_67_ec))}; + if (!element_identifier_anonymous_array_uint64_t_67_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_67 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_67 = EK_BOTH; } @@ -2133,68 +1023,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_67, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_67)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_67")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_67", type_ids_array_literal_const_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_67 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_67", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_67: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_ulonglong; MemberId member_id_array_literal_const_ulonglong = 0x00000005; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulonglong, member_flags_array_literal_const_ulonglong, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulonglong, member_flags_array_literal_const_ulonglong, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literal_const_ulonglong_ec {false}; + CommonStructMember common_array_literal_const_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_ulonglong, member_flags_array_literal_const_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_ulonglong, common_array_literal_const_ulonglong_ec))}; + if (!common_array_literal_const_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_ulonglong = "array_literal_const_ulonglong"; @@ -2205,69 +1048,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_ulonglong); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_int8; + ReturnCode_t return_code_array_literal_const_int8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_int8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int8_t_53", type_ids_ConstsLiteralsStruct); + "anonymous_array_int8_t_53", type_ids_array_literal_const_int8); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int8) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_int8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int8_t", type_ids_ConstsLiteralsStruct); + "_int8_t", type_ids_array_literal_const_int8); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int8_t_53 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int8_t_53 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int8_t_53 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int8_t_53_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int8_t_53 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int8, element_identifier_anonymous_array_int8_t_53_ec))}; + if (!element_identifier_anonymous_array_int8_t_53_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int8_t_53 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_int8.type_identifier2()._d()) { equiv_kind_anonymous_array_int8_t_53 = EK_BOTH; } @@ -2280,68 +1087,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int8_t_53, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int8_t_53)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int8_t_53")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int8_t_53", type_ids_array_literal_const_int8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int8_t_53 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int8_t_53", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int8_t_53: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_int8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_int8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_int8; MemberId member_id_array_literal_const_int8 = 0x00000006; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_int8_ec {false}; + CommonStructMember common_array_literal_const_int8 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int8, member_flags_array_literal_const_int8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int8, common_array_literal_const_int8_ec))}; + if (!common_array_literal_const_int8_ec) { - common_array_literal_const_int8 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int8, member_flags_array_literal_const_int8, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_int8 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int8, member_flags_array_literal_const_int8, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_int8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_int8 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_int8 = "array_literal_const_int8"; @@ -2352,69 +1112,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_int8); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_uint8; + ReturnCode_t return_code_array_literal_const_uint8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_uint8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_11", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint8_t_11", type_ids_array_literal_const_uint8); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint8) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_uint8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint8_t", type_ids_ConstsLiteralsStruct); + "_uint8_t", type_ids_array_literal_const_uint8); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint8, element_identifier_anonymous_array_uint8_t_11_ec))}; + if (!element_identifier_anonymous_array_uint8_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_uint8.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_11 = EK_BOTH; } @@ -2427,68 +1151,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_11", type_ids_array_literal_const_uint8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_11", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_uint8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_uint8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_uint8; MemberId member_id_array_literal_const_uint8 = 0x00000007; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_uint8 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint8, member_flags_array_literal_const_uint8, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_uint8 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint8, member_flags_array_literal_const_uint8, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literal_const_uint8_ec {false}; + CommonStructMember common_array_literal_const_uint8 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint8, member_flags_array_literal_const_uint8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint8, common_array_literal_const_uint8_ec))}; + if (!common_array_literal_const_uint8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_uint8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_uint8 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_uint8 = "array_literal_const_uint8"; @@ -2499,69 +1176,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_uint8); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_int16; + ReturnCode_t return_code_array_literal_const_int16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_int16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_27", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_27", type_ids_array_literal_const_int16); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int16) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_int16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literal_const_int16); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_27 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_27 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_27 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_27_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_27 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int16, element_identifier_anonymous_array_int16_t_27_ec))}; + if (!element_identifier_anonymous_array_int16_t_27_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_27 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_int16.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_27 = EK_BOTH; } @@ -2574,68 +1215,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_27, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_27)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_27")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_27", type_ids_array_literal_const_int16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_27 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_27", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_27: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_int16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_int16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_int16; MemberId member_id_array_literal_const_int16 = 0x00000008; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_int16 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int16, member_flags_array_literal_const_int16, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_int16 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int16, member_flags_array_literal_const_int16, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literal_const_int16_ec {false}; + CommonStructMember common_array_literal_const_int16 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int16, member_flags_array_literal_const_int16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int16, common_array_literal_const_int16_ec))}; + if (!common_array_literal_const_int16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_int16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_int16 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_int16 = "array_literal_const_int16"; @@ -2646,69 +1240,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_int16); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_uint16; + ReturnCode_t return_code_array_literal_const_uint16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_uint16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_31", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint16_t_31", type_ids_array_literal_const_uint16); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint16) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_uint16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ConstsLiteralsStruct); + "_uint16_t", type_ids_array_literal_const_uint16); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_31 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_31 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_31 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_31_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_31 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint16, element_identifier_anonymous_array_uint16_t_31_ec))}; + if (!element_identifier_anonymous_array_uint16_t_31_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_31 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_uint16.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_31 = EK_BOTH; } @@ -2721,68 +1279,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_31, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_31)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_31")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_31", type_ids_array_literal_const_uint16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_31 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_31", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_31: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_uint16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_uint16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_uint16; MemberId member_id_array_literal_const_uint16 = 0x00000009; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_uint16 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint16, member_flags_array_literal_const_uint16, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_uint16_ec {false}; + CommonStructMember common_array_literal_const_uint16 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint16, member_flags_array_literal_const_uint16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint16, common_array_literal_const_uint16_ec))}; + if (!common_array_literal_const_uint16_ec) { - common_array_literal_const_uint16 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint16, member_flags_array_literal_const_uint16, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_uint16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_uint16 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_uint16 = "array_literal_const_uint16"; @@ -2793,69 +1304,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_uint16); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_int32; + ReturnCode_t return_code_array_literal_const_int32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_int32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_74", type_ids_ConstsLiteralsStruct); + "anonymous_array_int32_t_74", type_ids_array_literal_const_int32); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int32) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_int32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ConstsLiteralsStruct); + "_int32_t", type_ids_array_literal_const_int32); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int32) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_74 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_74 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_74 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_74_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_74 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int32, element_identifier_anonymous_array_int32_t_74_ec))}; + if (!element_identifier_anonymous_array_int32_t_74_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_74 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_int32.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_74 = EK_BOTH; } @@ -2868,68 +1343,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_74, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_74)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_74")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_74", type_ids_array_literal_const_int32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_74 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_74", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_74: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_int32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_int32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_int32; MemberId member_id_array_literal_const_int32 = 0x0000000a; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_int32 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int32, member_flags_array_literal_const_int32, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_int32_ec {false}; + CommonStructMember common_array_literal_const_int32 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int32, member_flags_array_literal_const_int32, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int32, common_array_literal_const_int32_ec))}; + if (!common_array_literal_const_int32_ec) { - common_array_literal_const_int32 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int32, member_flags_array_literal_const_int32, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_int32 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_int32 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_int32 = "array_literal_const_int32"; @@ -2940,69 +1368,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_int32); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_uint32; + ReturnCode_t return_code_array_literal_const_uint32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_uint32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_64", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint32_t_64", type_ids_array_literal_const_uint32); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint32) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_uint32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ConstsLiteralsStruct); + "_uint32_t", type_ids_array_literal_const_uint32); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint32) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_64 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_64 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_64 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_64_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_64 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint32, element_identifier_anonymous_array_uint32_t_64_ec))}; + if (!element_identifier_anonymous_array_uint32_t_64_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_64 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_uint32.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_64 = EK_BOTH; } @@ -3015,68 +1407,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_64, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_64)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_64")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_64", type_ids_array_literal_const_uint32)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_64 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_64", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_64: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_uint32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_uint32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_uint32; MemberId member_id_array_literal_const_uint32 = 0x0000000b; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_uint32 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint32, member_flags_array_literal_const_uint32, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_uint32_ec {false}; + CommonStructMember common_array_literal_const_uint32 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint32, member_flags_array_literal_const_uint32, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint32, common_array_literal_const_uint32_ec))}; + if (!common_array_literal_const_uint32_ec) { - common_array_literal_const_uint32 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint32, member_flags_array_literal_const_uint32, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_uint32 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_uint32 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_uint32 = "array_literal_const_uint32"; @@ -3087,69 +1432,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_uint32); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_int64; + ReturnCode_t return_code_array_literal_const_int64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_int64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_17", type_ids_ConstsLiteralsStruct); + "anonymous_array_int64_t_17", type_ids_array_literal_const_int64); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int64) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_int64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ConstsLiteralsStruct); + "_int64_t", type_ids_array_literal_const_int64); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_int64) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_17 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_17 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_17 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_17_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_17 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int64, element_identifier_anonymous_array_int64_t_17_ec))}; + if (!element_identifier_anonymous_array_int64_t_17_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_17 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_int64.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_17 = EK_BOTH; } @@ -3162,68 +1471,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_17, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_17)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_17")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_17", type_ids_array_literal_const_int64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_17 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_17", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_17: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_int64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_int64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_int64; MemberId member_id_array_literal_const_int64 = 0x0000000c; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_int64 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int64, member_flags_array_literal_const_int64, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_int64_ec {false}; + CommonStructMember common_array_literal_const_int64 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int64, member_flags_array_literal_const_int64, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_int64, common_array_literal_const_int64_ec))}; + if (!common_array_literal_const_int64_ec) { - common_array_literal_const_int64 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_int64, member_flags_array_literal_const_int64, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_int64 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_int64 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_int64 = "array_literal_const_int64"; @@ -3234,69 +1496,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_int64); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_uint64; + ReturnCode_t return_code_array_literal_const_uint64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_uint64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_19", type_ids_ConstsLiteralsStruct); + "anonymous_array_uint64_t_19", type_ids_array_literal_const_uint64); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint64) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_uint64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ConstsLiteralsStruct); + "_uint64_t", type_ids_array_literal_const_uint64); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_uint64) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_19 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_19 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_19 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_19_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_19 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint64, element_identifier_anonymous_array_uint64_t_19_ec))}; + if (!element_identifier_anonymous_array_uint64_t_19_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_19 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_uint64.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_19 = EK_BOTH; } @@ -3309,68 +1535,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_19, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_19)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_19")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_19", type_ids_array_literal_const_uint64)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_19 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_19", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_19: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_uint64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_uint64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_uint64; MemberId member_id_array_literal_const_uint64 = 0x0000000d; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_uint64 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint64, member_flags_array_literal_const_uint64, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_uint64_ec {false}; + CommonStructMember common_array_literal_const_uint64 {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint64, member_flags_array_literal_const_uint64, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_uint64, common_array_literal_const_uint64_ec))}; + if (!common_array_literal_const_uint64_ec) { - common_array_literal_const_uint64 = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_uint64, member_flags_array_literal_const_uint64, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_uint64 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_uint64 member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_uint64 = "array_literal_const_uint64"; @@ -3381,69 +1560,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_uint64); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations1_const; + ReturnCode_t return_code_array_literals_operations1_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations1_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_110", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_110", type_ids_array_literals_operations1_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations1_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations1_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations1_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations1_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_110 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_110 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_110 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_110_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_110 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations1_const, element_identifier_anonymous_array_int16_t_110_ec))}; + if (!element_identifier_anonymous_array_int16_t_110_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_110 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations1_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_110 = EK_BOTH; } @@ -3456,68 +1599,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_110, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_110)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_110")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_110", type_ids_array_literals_operations1_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_110 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_110", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_110: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations1_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations1_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations1_const; MemberId member_id_array_literals_operations1_const = 0x0000000e; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literals_operations1_const_ec {false}; + CommonStructMember common_array_literals_operations1_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations1_const, member_flags_array_literals_operations1_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations1_const, common_array_literals_operations1_const_ec))}; + if (!common_array_literals_operations1_const_ec) { - common_array_literals_operations1_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations1_const, member_flags_array_literals_operations1_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations1_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations1_const, member_flags_array_literals_operations1_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations1_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations1_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations1_const = "array_literals_operations1_const"; @@ -3528,69 +1624,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations1_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations2_const; + ReturnCode_t return_code_array_literals_operations2_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations2_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_64", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_64", type_ids_array_literals_operations2_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations2_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations2_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations2_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations2_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_64 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_64 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_64 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_64_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_64 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations2_const, element_identifier_anonymous_array_int16_t_64_ec))}; + if (!element_identifier_anonymous_array_int16_t_64_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_64 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations2_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_64 = EK_BOTH; } @@ -3603,68 +1663,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_64, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_64)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_64")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_64", type_ids_array_literals_operations2_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_64 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_64", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_64: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations2_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations2_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations2_const; MemberId member_id_array_literals_operations2_const = 0x0000000f; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literals_operations2_const_ec {false}; + CommonStructMember common_array_literals_operations2_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations2_const, member_flags_array_literals_operations2_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations2_const, common_array_literals_operations2_const_ec))}; + if (!common_array_literals_operations2_const_ec) { - common_array_literals_operations2_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations2_const, member_flags_array_literals_operations2_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations2_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations2_const, member_flags_array_literals_operations2_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations2_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations2_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations2_const = "array_literals_operations2_const"; @@ -3675,69 +1688,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations2_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations3_const; + ReturnCode_t return_code_array_literals_operations3_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations3_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_109", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_109", type_ids_array_literals_operations3_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations3_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations3_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations3_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations3_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_109 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_109 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_109 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_109_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_109 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations3_const, element_identifier_anonymous_array_int16_t_109_ec))}; + if (!element_identifier_anonymous_array_int16_t_109_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_109 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations3_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_109 = EK_BOTH; } @@ -3750,68 +1727,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_109, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_109)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_109")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_109", type_ids_array_literals_operations3_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_109 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_109", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_109: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations3_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations3_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations3_const; MemberId member_id_array_literals_operations3_const = 0x00000010; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations3_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations3_const, member_flags_array_literals_operations3_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations3_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations3_const, member_flags_array_literals_operations3_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literals_operations3_const_ec {false}; + CommonStructMember common_array_literals_operations3_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations3_const, member_flags_array_literals_operations3_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations3_const, common_array_literals_operations3_const_ec))}; + if (!common_array_literals_operations3_const_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations3_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations3_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations3_const = "array_literals_operations3_const"; @@ -3822,69 +1752,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations3_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations4_const; + ReturnCode_t return_code_array_literals_operations4_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations4_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_11", type_ids_array_literals_operations4_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations4_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations4_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations4_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations4_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations4_const, element_identifier_anonymous_array_int16_t_11_ec))}; + if (!element_identifier_anonymous_array_int16_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations4_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_11 = EK_BOTH; } @@ -3897,68 +1791,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11", type_ids_array_literals_operations4_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations4_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations4_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations4_const; MemberId member_id_array_literals_operations4_const = 0x00000011; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_literals_operations4_const_ec {false}; + CommonStructMember common_array_literals_operations4_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations4_const, member_flags_array_literals_operations4_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations4_const, common_array_literals_operations4_const_ec))}; + if (!common_array_literals_operations4_const_ec) { - common_array_literals_operations4_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations4_const, member_flags_array_literals_operations4_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations4_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations4_const, member_flags_array_literals_operations4_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations4_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations4_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations4_const = "array_literals_operations4_const"; @@ -3969,69 +1816,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations4_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations5_const; + ReturnCode_t return_code_array_literals_operations5_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations5_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2001", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_2001", type_ids_array_literals_operations5_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations5_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations5_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations5_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations5_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2001 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2001 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2001 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_2001_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2001 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations5_const, element_identifier_anonymous_array_int16_t_2001_ec))}; + if (!element_identifier_anonymous_array_int16_t_2001_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_2001 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations5_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_2001 = EK_BOTH; } @@ -4044,68 +1855,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_2001, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2001)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_2001")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_2001", type_ids_array_literals_operations5_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_2001 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2001", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2001: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations5_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations5_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations5_const; MemberId member_id_array_literals_operations5_const = 0x00000012; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations5_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations5_const, member_flags_array_literals_operations5_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations5_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations5_const, member_flags_array_literals_operations5_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literals_operations5_const_ec {false}; + CommonStructMember common_array_literals_operations5_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations5_const, member_flags_array_literals_operations5_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations5_const, common_array_literals_operations5_const_ec))}; + if (!common_array_literals_operations5_const_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations5_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations5_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations5_const = "array_literals_operations5_const"; @@ -4116,69 +1880,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations5_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations6_const; + ReturnCode_t return_code_array_literals_operations6_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations6_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_3", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_3", type_ids_array_literals_operations6_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations6_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations6_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations6_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations6_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations6_const, element_identifier_anonymous_array_int16_t_3_ec))}; + if (!element_identifier_anonymous_array_int16_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations6_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; } @@ -4191,68 +1919,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3", type_ids_array_literals_operations6_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_3", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations6_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations6_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations6_const; MemberId member_id_array_literals_operations6_const = 0x00000013; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations6_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations6_const, member_flags_array_literals_operations6_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations6_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations6_const, member_flags_array_literals_operations6_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool common_array_literals_operations6_const_ec {false}; + CommonStructMember common_array_literals_operations6_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations6_const, member_flags_array_literals_operations6_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations6_const, common_array_literals_operations6_const_ec))}; + if (!common_array_literals_operations6_const_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations6_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations6_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations6_const = "array_literals_operations6_const"; @@ -4263,69 +1944,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations6_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations7_const; + ReturnCode_t return_code_array_literals_operations7_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations7_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1914", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_1914", type_ids_array_literals_operations7_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations7_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations7_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations7_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations7_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_1914 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1914 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1914 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_1914_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_1914 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations7_const, element_identifier_anonymous_array_int16_t_1914_ec))}; + if (!element_identifier_anonymous_array_int16_t_1914_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_1914 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations7_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_1914 = EK_BOTH; } @@ -4338,68 +1983,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_1914, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_1914)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_1914")) + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_1914", type_ids_array_literals_operations7_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_1914 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1914", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_1914: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations7_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations7_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations7_const; MemberId member_id_array_literals_operations7_const = 0x00000014; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations7_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations7_const, member_flags_array_literals_operations7_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literals_operations7_const_ec {false}; + CommonStructMember common_array_literals_operations7_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations7_const, member_flags_array_literals_operations7_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations7_const, common_array_literals_operations7_const_ec))}; + if (!common_array_literals_operations7_const_ec) { - common_array_literals_operations7_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations7_const, member_flags_array_literals_operations7_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations7_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations7_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations7_const = "array_literals_operations7_const"; @@ -4410,69 +2008,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations7_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literals_operations8_const; + ReturnCode_t return_code_array_literals_operations8_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literals_operations8_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_11", type_ids_array_literals_operations8_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations8_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literals_operations8_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literals_operations8_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literals_operations8_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations8_const, element_identifier_anonymous_array_int16_t_11_ec))}; + if (!element_identifier_anonymous_array_int16_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literals_operations8_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_11 = EK_BOTH; } @@ -4485,68 +2047,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11", type_ids_array_literals_operations8_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literals_operations8_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literals_operations8_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literals_operations8_const; MemberId member_id_array_literals_operations8_const = 0x00000015; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literals_operations8_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations8_const, member_flags_array_literals_operations8_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literals_operations8_const_ec {false}; + CommonStructMember common_array_literals_operations8_const {TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations8_const, member_flags_array_literals_operations8_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literals_operations8_const, common_array_literals_operations8_const_ec))}; + if (!common_array_literals_operations8_const_ec) { - common_array_literals_operations8_const = TypeObjectUtils::build_common_struct_member(member_id_array_literals_operations8_const, member_flags_array_literals_operations8_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literals_operations8_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literals_operations8_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literals_operations8_const = "array_literals_operations8_const"; @@ -4557,69 +2072,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literals_operations8_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_inner_const_helper; + ReturnCode_t return_code_array_literal_const_inner_const_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_inner_const_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_1", type_ids_array_literal_const_inner_const_helper); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_inner_const_helper) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_inner_const_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literal_const_inner_const_helper); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_inner_const_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_1 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_1 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_1_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_1 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_inner_const_helper, element_identifier_anonymous_array_int16_t_1_ec))}; + if (!element_identifier_anonymous_array_int16_t_1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_1 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_inner_const_helper.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_1 = EK_BOTH; } @@ -4632,68 +2111,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_1, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_1)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_1")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_1", type_ids_array_literal_const_inner_const_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_1", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_1: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_inner_const_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_inner_const_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_inner_const_helper; MemberId member_id_array_literal_const_inner_const_helper = 0x00000016; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_inner_const_helper = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_inner_const_helper, member_flags_array_literal_const_inner_const_helper, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_inner_const_helper_ec {false}; + CommonStructMember common_array_literal_const_inner_const_helper {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_inner_const_helper, member_flags_array_literal_const_inner_const_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_inner_const_helper, common_array_literal_const_inner_const_helper_ec))}; + if (!common_array_literal_const_inner_const_helper_ec) { - common_array_literal_const_inner_const_helper = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_inner_const_helper, member_flags_array_literal_const_inner_const_helper, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_inner_const_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_inner_const_helper member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_inner_const_helper = "array_literal_const_inner_const_helper"; @@ -4704,69 +2136,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_inner_const_helper); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_moduled1_literal_const; + ReturnCode_t return_code_array_moduled1_literal_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_moduled1_literal_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_11", type_ids_array_moduled1_literal_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled1_literal_const) { - return_code_ConstsLiteralsStruct = + return_code_array_moduled1_literal_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_moduled1_literal_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled1_literal_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_11 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_11_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_11 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled1_literal_const, element_identifier_anonymous_array_int16_t_11_ec))}; + if (!element_identifier_anonymous_array_int16_t_11_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_11 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_moduled1_literal_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_11 = EK_BOTH; } @@ -4779,68 +2175,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_11, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_11)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_11", type_ids_array_moduled1_literal_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_11 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_11", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_11: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_moduled1_literal_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_moduled1_literal_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_moduled1_literal_const; MemberId member_id_array_moduled1_literal_const = 0x00000017; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_moduled1_literal_const = TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_const, member_flags_array_moduled1_literal_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_moduled1_literal_const_ec {false}; + CommonStructMember common_array_moduled1_literal_const {TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_const, member_flags_array_moduled1_literal_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled1_literal_const, common_array_moduled1_literal_const_ec))}; + if (!common_array_moduled1_literal_const_ec) { - common_array_moduled1_literal_const = TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_const, member_flags_array_moduled1_literal_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_moduled1_literal_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_moduled1_literal_const member TypeIdentifier inconsistent."); return; } MemberName name_array_moduled1_literal_const = "array_moduled1_literal_const"; @@ -4851,69 +2200,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_moduled1_literal_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_moduled2_literal_const; + ReturnCode_t return_code_array_moduled2_literal_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_moduled2_literal_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_22", type_ids_array_moduled2_literal_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled2_literal_const) { - return_code_ConstsLiteralsStruct = + return_code_array_moduled2_literal_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_moduled2_literal_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled2_literal_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_22 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_22_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_22 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled2_literal_const, element_identifier_anonymous_array_int16_t_22_ec))}; + if (!element_identifier_anonymous_array_int16_t_22_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_22 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_moduled2_literal_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_22 = EK_BOTH; } @@ -4926,68 +2239,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_22, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_22)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_22", type_ids_array_moduled2_literal_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_22 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_22", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_22: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_moduled2_literal_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_moduled2_literal_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_moduled2_literal_const; MemberId member_id_array_moduled2_literal_const = 0x00000018; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_moduled2_literal_const = TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_const, member_flags_array_moduled2_literal_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_moduled2_literal_const_ec {false}; + CommonStructMember common_array_moduled2_literal_const {TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_const, member_flags_array_moduled2_literal_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled2_literal_const, common_array_moduled2_literal_const_ec))}; + if (!common_array_moduled2_literal_const_ec) { - common_array_moduled2_literal_const = TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_const, member_flags_array_moduled2_literal_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_moduled2_literal_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_moduled2_literal_const member TypeIdentifier inconsistent."); return; } MemberName name_array_moduled2_literal_const = "array_moduled2_literal_const"; @@ -4998,69 +2264,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_moduled2_literal_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_literal_const_alias_const; + ReturnCode_t return_code_array_literal_const_alias_const {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_literal_const_alias_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_55", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_55", type_ids_array_literal_const_alias_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_alias_const) { - return_code_ConstsLiteralsStruct = + return_code_array_literal_const_alias_const = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_literal_const_alias_const); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_literal_const_alias_const) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_55 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_55 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_55 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_55_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_55 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_alias_const, element_identifier_anonymous_array_int16_t_55_ec))}; + if (!element_identifier_anonymous_array_int16_t_55_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_55 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_literal_const_alias_const.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_55 = EK_BOTH; } @@ -5073,68 +2303,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_55, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_55)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_55")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_55", type_ids_array_literal_const_alias_const)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_55 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_55", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_55: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_literal_const_alias_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_literal_const_alias_const = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_literal_const_alias_const; MemberId member_id_array_literal_const_alias_const = 0x00000019; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_literal_const_alias_const = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_alias_const, member_flags_array_literal_const_alias_const, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_literal_const_alias_const_ec {false}; + CommonStructMember common_array_literal_const_alias_const {TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_alias_const, member_flags_array_literal_const_alias_const, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_literal_const_alias_const, common_array_literal_const_alias_const_ec))}; + if (!common_array_literal_const_alias_const_ec) { - common_array_literal_const_alias_const = TypeObjectUtils::build_common_struct_member(member_id_array_literal_const_alias_const, member_flags_array_literal_const_alias_const, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_literal_const_alias_const member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_literal_const_alias_const member TypeIdentifier inconsistent."); return; } MemberName name_array_literal_const_alias_const = "array_literal_const_alias_const"; @@ -5145,69 +2328,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_literal_const_alias_const); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_moduled1_literal_alias_const_moduled; + ReturnCode_t return_code_array_moduled1_literal_alias_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_moduled1_literal_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_10", type_ids_array_moduled1_literal_alias_const_moduled); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled1_literal_alias_const_moduled) { - return_code_ConstsLiteralsStruct = + return_code_array_moduled1_literal_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_moduled1_literal_alias_const_moduled); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled1_literal_alias_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled1_literal_alias_const_moduled, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_moduled1_literal_alias_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -5220,68 +2367,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_array_moduled1_literal_alias_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_moduled1_literal_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_moduled1_literal_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_moduled1_literal_alias_const_moduled; MemberId member_id_array_moduled1_literal_alias_const_moduled = 0x0000001a; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_moduled1_literal_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_alias_const_moduled, member_flags_array_moduled1_literal_alias_const_moduled, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_array_moduled1_literal_alias_const_moduled_ec {false}; + CommonStructMember common_array_moduled1_literal_alias_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_alias_const_moduled, member_flags_array_moduled1_literal_alias_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled1_literal_alias_const_moduled, common_array_moduled1_literal_alias_const_moduled_ec))}; + if (!common_array_moduled1_literal_alias_const_moduled_ec) { - common_array_moduled1_literal_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_array_moduled1_literal_alias_const_moduled, member_flags_array_moduled1_literal_alias_const_moduled, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_moduled1_literal_alias_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_moduled1_literal_alias_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_array_moduled1_literal_alias_const_moduled = "array_moduled1_literal_alias_const_moduled"; @@ -5292,69 +2392,33 @@ void register_ConstsLiteralsStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ConstsLiteralsStruct, member_array_moduled1_literal_alias_const_moduled); } { - return_code_ConstsLiteralsStruct = + TypeIdentifierPair type_ids_array_moduled2_literal_alias_const_moduled; + ReturnCode_t return_code_array_moduled2_literal_alias_const_moduled {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_moduled2_literal_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_ConstsLiteralsStruct); + "anonymous_array_int16_t_2", type_ids_array_moduled2_literal_alias_const_moduled); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled2_literal_alias_const_moduled) { - return_code_ConstsLiteralsStruct = + return_code_array_moduled2_literal_alias_const_moduled = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ConstsLiteralsStruct); + "_int16_t", type_ids_array_moduled2_literal_alias_const_moduled); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_moduled2_literal_alias_const_moduled) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled2_literal_alias_const_moduled, element_identifier_anonymous_array_int16_t_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d()) + if (TK_NONE == type_ids_array_moduled2_literal_alias_const_moduled.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; } @@ -5367,68 +2431,21 @@ void register_ConstsLiteralsStruct_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2", type_ids_array_moduled2_literal_alias_const_moduled)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); } } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_moduled2_literal_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_moduled2_literal_alias_const_moduled = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_moduled2_literal_alias_const_moduled; MemberId member_id_array_moduled2_literal_alias_const_moduled = 0x0000001b; - if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() || TK_NONE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_array_moduled2_literal_alias_const_moduled_ec {false}; + CommonStructMember common_array_moduled2_literal_alias_const_moduled {TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_alias_const_moduled, member_flags_array_moduled2_literal_alias_const_moduled, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_moduled2_literal_alias_const_moduled, common_array_moduled2_literal_alias_const_moduled_ec))}; + if (!common_array_moduled2_literal_alias_const_moduled_ec) { - common_array_moduled2_literal_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_alias_const_moduled, member_flags_array_moduled2_literal_alias_const_moduled, type_ids_ConstsLiteralsStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ConstsLiteralsStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ConstsLiteralsStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_moduled2_literal_alias_const_moduled = TypeObjectUtils::build_common_struct_member(member_id_array_moduled2_literal_alias_const_moduled, member_flags_array_moduled2_literal_alias_const_moduled, type_ids_ConstsLiteralsStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_moduled2_literal_alias_const_moduled member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_moduled2_literal_alias_const_moduled member TypeIdentifier inconsistent."); return; } MemberName name_array_moduled2_literal_alias_const_moduled = "array_moduled2_literal_alias_const_moduled"; @@ -5440,21 +2457,11 @@ void register_ConstsLiteralsStruct_type_identifier( } CompleteStructType struct_type_ConstsLiteralsStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_ConstsLiteralsStruct, header_ConstsLiteralsStruct, member_seq_ConstsLiteralsStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ConstsLiteralsStruct, type_name_ConstsLiteralsStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ConstsLiteralsStruct, type_name_ConstsLiteralsStruct.to_string(), type_ids_ConstsLiteralsStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ConstsLiteralsStruct already registered in TypeObjectRegistry for a different type."); } - return_code_ConstsLiteralsStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ConstsLiteralsStruct", type_ids_ConstsLiteralsStruct); - if (return_code_ConstsLiteralsStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ConstsLiteralsStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/constantsTypeObjectSupport.hpp b/test/dds-types-test/constantsTypeObjectSupport.hpp index 0eaf7fa07cd..0a6df72fe5f 100644 --- a/test/dds-types-test/constantsTypeObjectSupport.hpp +++ b/test/dds-types-test/constantsTypeObjectSupport.hpp @@ -36,16 +36,41 @@ #define eProsima_user_DllExport #endif // _WIN32 +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + /** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. + * @brief Register alias_short related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_constants_type_objects(); +eProsima_user_DllExport void register_alias_short_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace const_module1 { /** - * @brief Register const_module1_ModuleConstsLiteralsStruct related TypeIdentifier. + * @brief Register alias_short_moduled related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_alias_short_moduled_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + + + +/** + * @brief Register ModuleConstsLiteralsStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -54,13 +79,13 @@ namespace const_module1 { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_const_module1_ModuleConstsLiteralsStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_ModuleConstsLiteralsStruct_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace const_module1 namespace const_module2 { /** - * @brief Register const_module2_Module2ConstsLiteralsStruct related TypeIdentifier. + * @brief Register Module2ConstsLiteralsStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -69,8 +94,8 @@ namespace const_module2 { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_const_module2_Module2ConstsLiteralsStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_Module2ConstsLiteralsStruct_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace const_module2 /** @@ -84,7 +109,7 @@ eProsima_user_DllExport void register_const_module2_Module2ConstsLiteralsStruct_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ConstsLiteralsStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/declarationsPubSubTypes.cxx b/test/dds-types-test/declarationsPubSubTypes.cxx index 145ef25add4..1ec7beb5034 100644 --- a/test/dds-types-test/declarationsPubSubTypes.cxx +++ b/test/dds-types-test/declarationsPubSubTypes.cxx @@ -217,7 +217,7 @@ bool ForwardDeclarationsRecursiveStructPubSubType::getKey( return true; } -void ForwardDeclarationsRecursiveStructPubSubType::register_type_object_representation() const +void ForwardDeclarationsRecursiveStructPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -412,7 +412,7 @@ bool ForwardStructPubSubType::getKey( return true; } -void ForwardStructPubSubType::register_type_object_representation() const +void ForwardStructPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -607,7 +607,7 @@ namespace declarations_module { return true; } - void ForwardStructPubSubType::register_type_object_representation() const + void ForwardStructPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -803,7 +803,7 @@ bool ModuledForwardDeclarationsRecursiveStructPubSubType::getKey( return true; } -void ModuledForwardDeclarationsRecursiveStructPubSubType::register_type_object_representation() const +void ModuledForwardDeclarationsRecursiveStructPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -998,7 +998,7 @@ namespace declarations_module { return true; } - void ModuledForwardStructPubSubType::register_type_object_representation() const + void ModuledForwardStructPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1196,7 +1196,7 @@ bool ModuledCommonNameStructurePubSubType::getKey( return true; } -void ModuledCommonNameStructurePubSubType::register_type_object_representation() const +void ModuledCommonNameStructurePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); diff --git a/test/dds-types-test/declarationsPubSubTypes.h b/test/dds-types-test/declarationsPubSubTypes.h index a74817b54a8..f2fcc7a2e7f 100644 --- a/test/dds-types-test/declarationsPubSubTypes.h +++ b/test/dds-types-test/declarationsPubSubTypes.h @@ -94,7 +94,7 @@ class ForwardDeclarationsRecursiveStructPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -186,7 +186,7 @@ class ForwardStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -283,7 +283,7 @@ namespace declarations_module void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -375,7 +375,7 @@ class ModuledForwardDeclarationsRecursiveStructPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -468,7 +468,7 @@ namespace declarations_module void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -562,7 +562,7 @@ class ModuledCommonNameStructurePubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/enumerationsPubSubTypes.cxx b/test/dds-types-test/enumerationsPubSubTypes.cxx index 5205c4a7436..32f82c08045 100644 --- a/test/dds-types-test/enumerationsPubSubTypes.cxx +++ b/test/dds-types-test/enumerationsPubSubTypes.cxx @@ -222,9 +222,9 @@ bool EnumStructurePubSubType::getKey( return true; } -void EnumStructurePubSubType::register_type_object_representation() const +void EnumStructurePubSubType::register_type_object_representation() { - register_enumerations_type_objects(); + register_EnumStructure_type_identifier(type_identifiers_); } BitMaskStructurePubSubType::BitMaskStructurePubSubType() @@ -415,9 +415,9 @@ bool BitMaskStructurePubSubType::getKey( return true; } -void BitMaskStructurePubSubType::register_type_object_representation() const +void BitMaskStructurePubSubType::register_type_object_representation() { - register_enumerations_type_objects(); + register_BitMaskStructure_type_identifier(type_identifiers_); } BoundedBitMaskStructurePubSubType::BoundedBitMaskStructurePubSubType() @@ -608,9 +608,9 @@ bool BoundedBitMaskStructurePubSubType::getKey( return true; } -void BoundedBitMaskStructurePubSubType::register_type_object_representation() const +void BoundedBitMaskStructurePubSubType::register_type_object_representation() { - register_enumerations_type_objects(); + register_BoundedBitMaskStructure_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/enumerationsPubSubTypes.h b/test/dds-types-test/enumerationsPubSubTypes.h index f8240453128..0aba598f784 100644 --- a/test/dds-types-test/enumerationsPubSubTypes.h +++ b/test/dds-types-test/enumerationsPubSubTypes.h @@ -93,7 +93,7 @@ class EnumStructurePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -184,7 +184,7 @@ class BitMaskStructurePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -275,7 +275,7 @@ class BoundedBitMaskStructurePubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/enumerationsTypeObjectSupport.cxx b/test/dds-types-test/enumerationsTypeObjectSupport.cxx index a79cc32e0cf..72b0f3dd5c1 100644 --- a/test/dds-types-test/enumerationsTypeObjectSupport.cxx +++ b/test/dds-types-test/enumerationsTypeObjectSupport.cxx @@ -39,38 +39,79 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_enumerations_type_objects() +namespace Test { +void register_InnerEnumHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerEnumHelper) { - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_EnumStructure_type_identifier(type_id); - - register_BitMaskStructure_type_identifier(type_id); - - register_BoundedBitMaskStructure_type_identifier(type_id); - - }); + ReturnCode_t return_code_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Test::InnerEnumHelper", type_ids_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerEnumHelper) + { + EnumTypeFlag enum_flags_InnerEnumHelper = 0; + BitBound bit_bound_InnerEnumHelper = 32; + CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); + QualifiedTypeName type_name_InnerEnumHelper = "Test::InnerEnumHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; + eprosima::fastcdr::optional ann_custom_InnerEnumHelper; + CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); + CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); + CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; + { + EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; + CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); + } + { + EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; + CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); + } + { + EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; + CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); + } + CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, + literal_seq_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string(), type_ids_InnerEnumHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Test::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); + } + } } - -namespace Test { } // namespace Test // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_EnumStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_EnumStructure) { + + ReturnCode_t return_code_EnumStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_EnumStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "EnumStructure", type_ids_EnumStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_EnumStructure) { - StructTypeFlag struct_flags_EnumStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_EnumStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_EnumStructure; - TypeIdentifierPair type_ids_EnumStructure; QualifiedTypeName type_name_EnumStructure = "EnumStructure"; eprosima::fastcdr::optional type_ann_builtin_EnumStructure; eprosima::fastcdr::optional ann_custom_EnumStructure; @@ -79,115 +120,24 @@ void register_EnumStructure_type_identifier( header_EnumStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_EnumStructure); CompleteStructMemberSeq member_seq_EnumStructure; { - return_code_EnumStructure = + TypeIdentifierPair type_ids_var_InnerEnumHelper; + ReturnCode_t return_code_var_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerEnumHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_EnumStructure); + "InnerEnumHelper", type_ids_var_InnerEnumHelper); - if (return_code_EnumStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerEnumHelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_EnumStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_EnumStructure); - if (return_code_EnumStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_InnerEnumHelper); } - StructMemberFlag member_flags_var_InnerEnumHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerEnumHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerEnumHelper; MemberId member_id_var_InnerEnumHelper = 0x00000000; - if (EK_COMPLETE == type_ids_EnumStructure.type_identifier1()._d() || TK_NONE == type_ids_EnumStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerEnumHelper_ec {false}; + CommonStructMember common_var_InnerEnumHelper {TypeObjectUtils::build_common_struct_member(member_id_var_InnerEnumHelper, member_flags_var_InnerEnumHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerEnumHelper, common_var_InnerEnumHelper_ec))}; + if (!common_var_InnerEnumHelper_ec) { - common_var_InnerEnumHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerEnumHelper, member_flags_var_InnerEnumHelper, type_ids_EnumStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EnumStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerEnumHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerEnumHelper, member_flags_var_InnerEnumHelper, type_ids_EnumStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerEnumHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerEnumHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerEnumHelper = "var_InnerEnumHelper"; @@ -198,115 +148,24 @@ void register_EnumStructure_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_EnumStructure, member_var_InnerEnumHelper); } { - return_code_EnumStructure = + TypeIdentifierPair type_ids_var_scoped_InnerEnumHelper; + ReturnCode_t return_code_var_scoped_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_scoped_InnerEnumHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Test::InnerEnumHelper", type_ids_EnumStructure); + "Test::InnerEnumHelper", type_ids_var_scoped_InnerEnumHelper); - if (return_code_EnumStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_scoped_InnerEnumHelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "Test::InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Test::InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_EnumStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Test::InnerEnumHelper", type_ids_EnumStructure); - if (return_code_EnumStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Test::InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + Test::register_InnerEnumHelper_type_identifier(type_ids_var_scoped_InnerEnumHelper); } - StructMemberFlag member_flags_var_scoped_InnerEnumHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_scoped_InnerEnumHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_scoped_InnerEnumHelper; MemberId member_id_var_scoped_InnerEnumHelper = 0x00000001; - if (EK_COMPLETE == type_ids_EnumStructure.type_identifier1()._d() || TK_NONE == type_ids_EnumStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EnumStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EnumStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_scoped_InnerEnumHelper = TypeObjectUtils::build_common_struct_member(member_id_var_scoped_InnerEnumHelper, member_flags_var_scoped_InnerEnumHelper, type_ids_EnumStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_EnumStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_EnumStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_EnumStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_EnumStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_scoped_InnerEnumHelper_ec {false}; + CommonStructMember common_var_scoped_InnerEnumHelper {TypeObjectUtils::build_common_struct_member(member_id_var_scoped_InnerEnumHelper, member_flags_var_scoped_InnerEnumHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_scoped_InnerEnumHelper, common_var_scoped_InnerEnumHelper_ec))}; + if (!common_var_scoped_InnerEnumHelper_ec) { - common_var_scoped_InnerEnumHelper = TypeObjectUtils::build_common_struct_member(member_id_var_scoped_InnerEnumHelper, member_flags_var_scoped_InnerEnumHelper, type_ids_EnumStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_scoped_InnerEnumHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_scoped_InnerEnumHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_scoped_InnerEnumHelper = "var_scoped_InnerEnumHelper"; @@ -318,32 +177,26 @@ void register_EnumStructure_type_identifier( } CompleteStructType struct_type_EnumStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_EnumStructure, header_EnumStructure, member_seq_EnumStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_EnumStructure, type_name_EnumStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_EnumStructure, type_name_EnumStructure.to_string(), type_ids_EnumStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "EnumStructure already registered in TypeObjectRegistry for a different type."); } - return_code_EnumStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "EnumStructure", type_ids_EnumStructure); - if (return_code_EnumStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "EnumStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BitMaskStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BitMaskStructure) { + + ReturnCode_t return_code_BitMaskStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BitMaskStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BitMaskStructure", type_ids_BitMaskStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BitMaskStructure) { - StructTypeFlag struct_flags_BitMaskStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BitMaskStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BitMaskStructure; - TypeIdentifierPair type_ids_BitMaskStructure; QualifiedTypeName type_name_BitMaskStructure = "BitMaskStructure"; eprosima::fastcdr::optional type_ann_builtin_BitMaskStructure; eprosima::fastcdr::optional ann_custom_BitMaskStructure; @@ -352,148 +205,24 @@ void register_BitMaskStructure_type_identifier( header_BitMaskStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BitMaskStructure); CompleteStructMemberSeq member_seq_BitMaskStructure; { - return_code_BitMaskStructure = + TypeIdentifierPair type_ids_var_InnerBitMaskHelper; + ReturnCode_t return_code_var_InnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerBitMaskHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_BitMaskStructure); + "InnerBitMaskHelper", type_ids_var_InnerBitMaskHelper); - if (return_code_BitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerBitMaskHelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_BitMaskStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_BitMaskStructure); - if (return_code_BitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_InnerBitMaskHelper); } - StructMemberFlag member_flags_var_InnerBitMaskHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerBitMaskHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerBitMaskHelper; MemberId member_id_var_InnerBitMaskHelper = 0x00000000; - if (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1()._d() || TK_NONE == type_ids_BitMaskStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitMaskStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitMaskStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitMaskHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitMaskHelper, member_flags_var_InnerBitMaskHelper, type_ids_BitMaskStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitMaskStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitMaskStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitMaskStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitMaskHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitMaskHelper, member_flags_var_InnerBitMaskHelper, type_ids_BitMaskStructure.type_identifier2()); - } - else + bool common_var_InnerBitMaskHelper_ec {false}; + CommonStructMember common_var_InnerBitMaskHelper {TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitMaskHelper, member_flags_var_InnerBitMaskHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerBitMaskHelper, common_var_InnerBitMaskHelper_ec))}; + if (!common_var_InnerBitMaskHelper_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerBitMaskHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerBitMaskHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerBitMaskHelper = "var_InnerBitMaskHelper"; @@ -505,32 +234,26 @@ void register_BitMaskStructure_type_identifier( } CompleteStructType struct_type_BitMaskStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_BitMaskStructure, header_BitMaskStructure, member_seq_BitMaskStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitMaskStructure, type_name_BitMaskStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitMaskStructure, type_name_BitMaskStructure.to_string(), type_ids_BitMaskStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BitMaskStructure already registered in TypeObjectRegistry for a different type."); } - return_code_BitMaskStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BitMaskStructure", type_ids_BitMaskStructure); - if (return_code_BitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BitMaskStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedBitMaskStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedBitMaskStructure) { + + ReturnCode_t return_code_BoundedBitMaskStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedBitMaskStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedBitMaskStructure", type_ids_BoundedBitMaskStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedBitMaskStructure) { - StructTypeFlag struct_flags_BoundedBitMaskStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedBitMaskStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedBitMaskStructure; - TypeIdentifierPair type_ids_BoundedBitMaskStructure; QualifiedTypeName type_name_BoundedBitMaskStructure = "BoundedBitMaskStructure"; eprosima::fastcdr::optional type_ann_builtin_BoundedBitMaskStructure; eprosima::fastcdr::optional ann_custom_BoundedBitMaskStructure; @@ -539,155 +262,24 @@ void register_BoundedBitMaskStructure_type_identifier( header_BoundedBitMaskStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedBitMaskStructure); CompleteStructMemberSeq member_seq_BoundedBitMaskStructure; { - return_code_BoundedBitMaskStructure = + TypeIdentifierPair type_ids_var_InnerBoundedBitMaskHelper; + ReturnCode_t return_code_var_InnerBoundedBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerBoundedBitMaskHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBoundedBitMaskHelper", type_ids_BoundedBitMaskStructure); + "InnerBoundedBitMaskHelper", type_ids_var_InnerBoundedBitMaskHelper); - if (return_code_BoundedBitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerBoundedBitMaskHelper) { - BitmaskTypeFlag bitmask_flags_InnerBoundedBitMaskHelper = 0; - BitBound bit_bound_InnerBoundedBitMaskHelper = 8; - CommonEnumeratedHeader common_InnerBoundedBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBoundedBitMaskHelper, true); - QualifiedTypeName type_name_InnerBoundedBitMaskHelper = "InnerBoundedBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBoundedBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBoundedBitMaskHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerBoundedBitMaskHelper; - eprosima::fastcdr::optional verbatim_InnerBoundedBitMaskHelper; - if (!tmp_ann_custom_InnerBoundedBitMaskHelper.empty()) - { - ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_InnerBoundedBitMaskHelper; - } - - CompleteTypeDetail detail_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBoundedBitMaskHelper, ann_custom_InnerBoundedBitMaskHelper, type_name_InnerBoundedBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBoundedBitMaskHelper, detail_InnerBoundedBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBoundedBitMaskHelper; - { - uint16_t position_bflag0 = 0; - BitflagFlag flags_bflag0 = 0; - CommonBitflag common_bflag0 = TypeObjectUtils::build_common_bitflag(position_bflag0, flags_bflag0); - eprosima::fastcdr::optional member_ann_builtin_bflag0; - ann_custom_InnerBoundedBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_bflag0; - if (!tmp_ann_custom_bflag0.empty()) - { - ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag0; - } - MemberName name_bflag0 = "bflag0"; - CompleteMemberDetail detail_bflag0 = TypeObjectUtils::build_complete_member_detail(name_bflag0, member_ann_builtin_bflag0, ann_custom_InnerBoundedBitMaskHelper); - CompleteBitflag bitflag_bflag0 = TypeObjectUtils::build_complete_bitflag(common_bflag0, detail_bflag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag0); - } - { - uint16_t position_bflag1 = 1; - BitflagFlag flags_bflag1 = 0; - CommonBitflag common_bflag1 = TypeObjectUtils::build_common_bitflag(position_bflag1, flags_bflag1); - eprosima::fastcdr::optional member_ann_builtin_bflag1; - ann_custom_InnerBoundedBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_bflag1; - if (!tmp_ann_custom_bflag1.empty()) - { - ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag1; - } - MemberName name_bflag1 = "bflag1"; - CompleteMemberDetail detail_bflag1 = TypeObjectUtils::build_complete_member_detail(name_bflag1, member_ann_builtin_bflag1, ann_custom_InnerBoundedBitMaskHelper); - CompleteBitflag bitflag_bflag1 = TypeObjectUtils::build_complete_bitflag(common_bflag1, detail_bflag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag1); - } - { - uint16_t position_bflag4 = 4; - BitflagFlag flags_bflag4 = 0; - CommonBitflag common_bflag4 = TypeObjectUtils::build_common_bitflag(position_bflag4, flags_bflag4); - eprosima::fastcdr::optional member_ann_builtin_bflag4; - ann_custom_InnerBoundedBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_bflag4; - if (!tmp_ann_custom_bflag4.empty()) - { - ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag4; - } - MemberName name_bflag4 = "bflag4"; - CompleteMemberDetail detail_bflag4 = TypeObjectUtils::build_complete_member_detail(name_bflag4, member_ann_builtin_bflag4, ann_custom_InnerBoundedBitMaskHelper); - CompleteBitflag bitflag_bflag4 = TypeObjectUtils::build_complete_bitflag(common_bflag4, detail_bflag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag4); - } - { - uint16_t position_bflag6 = 6; - BitflagFlag flags_bflag6 = 0; - CommonBitflag common_bflag6 = TypeObjectUtils::build_common_bitflag(position_bflag6, flags_bflag6); - eprosima::fastcdr::optional member_ann_builtin_bflag6; - ann_custom_InnerBoundedBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_bflag6; - if (!tmp_ann_custom_bflag6.empty()) - { - ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag6; - } - MemberName name_bflag6 = "bflag6"; - CompleteMemberDetail detail_bflag6 = TypeObjectUtils::build_complete_member_detail(name_bflag6, member_ann_builtin_bflag6, ann_custom_InnerBoundedBitMaskHelper); - CompleteBitflag bitflag_bflag6 = TypeObjectUtils::build_complete_bitflag(common_bflag6, detail_bflag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag6); - } - CompleteBitmaskType bitmask_type_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBoundedBitMaskHelper, header_InnerBoundedBitMaskHelper, flag_seq_InnerBoundedBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBoundedBitMaskHelper, type_name_InnerBoundedBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBoundedBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_BoundedBitMaskStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBoundedBitMaskHelper", type_ids_BoundedBitMaskStructure); - if (return_code_BoundedBitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBoundedBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBoundedBitMaskHelper_type_identifier(type_ids_var_InnerBoundedBitMaskHelper); } - StructMemberFlag member_flags_var_InnerBoundedBitMaskHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerBoundedBitMaskHelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerBoundedBitMaskHelper; MemberId member_id_var_InnerBoundedBitMaskHelper = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1()._d() || TK_NONE == type_ids_BoundedBitMaskStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBitMaskStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBoundedBitMaskHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBoundedBitMaskHelper, member_flags_var_InnerBoundedBitMaskHelper, type_ids_BoundedBitMaskStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBitMaskStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBitMaskStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBoundedBitMaskHelper = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBoundedBitMaskHelper, member_flags_var_InnerBoundedBitMaskHelper, type_ids_BoundedBitMaskStructure.type_identifier2()); - } - else + bool common_var_InnerBoundedBitMaskHelper_ec {false}; + CommonStructMember common_var_InnerBoundedBitMaskHelper {TypeObjectUtils::build_common_struct_member(member_id_var_InnerBoundedBitMaskHelper, member_flags_var_InnerBoundedBitMaskHelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerBoundedBitMaskHelper, common_var_InnerBoundedBitMaskHelper_ec))}; + if (!common_var_InnerBoundedBitMaskHelper_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerBoundedBitMaskHelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerBoundedBitMaskHelper member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerBoundedBitMaskHelper = "var_InnerBoundedBitMaskHelper"; @@ -699,21 +291,11 @@ void register_BoundedBitMaskStructure_type_identifier( } CompleteStructType struct_type_BoundedBitMaskStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedBitMaskStructure, header_BoundedBitMaskStructure, member_seq_BoundedBitMaskStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBitMaskStructure, type_name_BoundedBitMaskStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBitMaskStructure, type_name_BoundedBitMaskStructure.to_string(), type_ids_BoundedBitMaskStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedBitMaskStructure already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedBitMaskStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedBitMaskStructure", type_ids_BoundedBitMaskStructure); - if (return_code_BoundedBitMaskStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedBitMaskStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/enumerationsTypeObjectSupport.hpp b/test/dds-types-test/enumerationsTypeObjectSupport.hpp index bbff6692a89..08acc9b2f36 100644 --- a/test/dds-types-test/enumerationsTypeObjectSupport.hpp +++ b/test/dds-types-test/enumerationsTypeObjectSupport.hpp @@ -36,14 +36,22 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_enumerations_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC namespace Test { +/** + * @brief Register InnerEnumHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerEnumHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + } // namespace Test /** * @brief Register EnumStructure related TypeIdentifier. @@ -56,7 +64,7 @@ namespace Test { * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_EnumStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BitMaskStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -68,7 +76,7 @@ eProsima_user_DllExport void register_EnumStructure_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BitMaskStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedBitMaskStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -80,7 +88,7 @@ eProsima_user_DllExport void register_BitMaskStructure_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedBitMaskStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/externalPubSubTypes.cxx b/test/dds-types-test/externalPubSubTypes.cxx index df77ed204e7..7376fe0a2d5 100644 --- a/test/dds-types-test/externalPubSubTypes.cxx +++ b/test/dds-types-test/externalPubSubTypes.cxx @@ -217,7 +217,7 @@ bool short_externalPubSubType::getKey( return true; } -void short_externalPubSubType::register_type_object_representation() const +void short_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -411,7 +411,7 @@ bool ushort_externalPubSubType::getKey( return true; } -void ushort_externalPubSubType::register_type_object_representation() const +void ushort_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -605,7 +605,7 @@ bool long_externalPubSubType::getKey( return true; } -void long_externalPubSubType::register_type_object_representation() const +void long_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -799,7 +799,7 @@ bool ulong_externalPubSubType::getKey( return true; } -void ulong_externalPubSubType::register_type_object_representation() const +void ulong_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -993,7 +993,7 @@ bool longlong_externalPubSubType::getKey( return true; } -void longlong_externalPubSubType::register_type_object_representation() const +void longlong_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1187,7 +1187,7 @@ bool ulonglong_externalPubSubType::getKey( return true; } -void ulonglong_externalPubSubType::register_type_object_representation() const +void ulonglong_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1381,7 +1381,7 @@ bool float_externalPubSubType::getKey( return true; } -void float_externalPubSubType::register_type_object_representation() const +void float_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1575,7 +1575,7 @@ bool double_externalPubSubType::getKey( return true; } -void double_externalPubSubType::register_type_object_representation() const +void double_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1769,7 +1769,7 @@ bool longdouble_externalPubSubType::getKey( return true; } -void longdouble_externalPubSubType::register_type_object_representation() const +void longdouble_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -1963,7 +1963,7 @@ bool boolean_externalPubSubType::getKey( return true; } -void boolean_externalPubSubType::register_type_object_representation() const +void boolean_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2157,7 +2157,7 @@ bool octet_externalPubSubType::getKey( return true; } -void octet_externalPubSubType::register_type_object_representation() const +void octet_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2351,7 +2351,7 @@ bool char_externalPubSubType::getKey( return true; } -void char_externalPubSubType::register_type_object_representation() const +void char_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2545,7 +2545,7 @@ bool wchar_externalPubSubType::getKey( return true; } -void wchar_externalPubSubType::register_type_object_representation() const +void wchar_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2739,7 +2739,7 @@ bool sequence_short_externalPubSubType::getKey( return true; } -void sequence_short_externalPubSubType::register_type_object_representation() const +void sequence_short_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -2933,7 +2933,7 @@ bool string_unbounded_externalPubSubType::getKey( return true; } -void string_unbounded_externalPubSubType::register_type_object_representation() const +void string_unbounded_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3127,7 +3127,7 @@ bool string_bounded_externalPubSubType::getKey( return true; } -void string_bounded_externalPubSubType::register_type_object_representation() const +void string_bounded_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3321,7 +3321,7 @@ bool map_short_externalPubSubType::getKey( return true; } -void map_short_externalPubSubType::register_type_object_representation() const +void map_short_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3515,7 +3515,7 @@ bool array_short_externalPubSubType::getKey( return true; } -void array_short_externalPubSubType::register_type_object_representation() const +void array_short_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3709,7 +3709,7 @@ bool struct_externalPubSubType::getKey( return true; } -void struct_externalPubSubType::register_type_object_representation() const +void struct_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -3903,7 +3903,7 @@ bool InnerStructExternalPubSubType::getKey( return true; } -void InnerStructExternalPubSubType::register_type_object_representation() const +void InnerStructExternalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4097,7 +4097,7 @@ bool ext_struct_externalPubSubType::getKey( return true; } -void ext_struct_externalPubSubType::register_type_object_representation() const +void ext_struct_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4291,7 +4291,7 @@ bool ext_and_inner_struct_externalPubSubType::getKey( return true; } -void ext_and_inner_struct_externalPubSubType::register_type_object_representation() const +void ext_and_inner_struct_externalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4485,7 +4485,7 @@ bool struct_external_optionalPubSubType::getKey( return true; } -void struct_external_optionalPubSubType::register_type_object_representation() const +void struct_external_optionalPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4680,7 +4680,7 @@ bool recursive_union_containerPubSubType::getKey( return true; } -void recursive_union_containerPubSubType::register_type_object_representation() const +void recursive_union_containerPubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -4875,7 +4875,7 @@ bool recursive_test_1PubSubType::getKey( return true; } -void recursive_test_1PubSubType::register_type_object_representation() const +void recursive_test_1PubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5071,7 +5071,7 @@ bool recursive_structurePubSubType::getKey( return true; } -void recursive_structurePubSubType::register_type_object_representation() const +void recursive_structurePubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); @@ -5265,7 +5265,7 @@ bool recursive_test_2PubSubType::getKey( return true; } -void recursive_test_2PubSubType::register_type_object_representation() const +void recursive_test_2PubSubType::register_type_object_representation() { EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION, "TypeObject type representation support disabled in generated code"); diff --git a/test/dds-types-test/externalPubSubTypes.h b/test/dds-types-test/externalPubSubTypes.h index c54876468dc..6f5486b3a27 100644 --- a/test/dds-types-test/externalPubSubTypes.h +++ b/test/dds-types-test/externalPubSubTypes.h @@ -90,7 +90,7 @@ class short_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class ushort_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class long_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class ulong_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class longlong_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class ulonglong_externalPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class float_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class double_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class longdouble_externalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class boolean_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class octet_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class char_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class wchar_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class sequence_short_externalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class string_unbounded_externalPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class string_bounded_externalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class map_short_externalPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class array_short_externalPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class struct_externalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class InnerStructExternalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class ext_struct_externalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class ext_and_inner_struct_externalPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class struct_external_optionalPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2184,7 +2184,7 @@ class recursive_union_containerPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2276,7 +2276,7 @@ class recursive_test_1PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2369,7 +2369,7 @@ class recursive_structurePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2460,7 +2460,7 @@ class recursive_test_2PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/finalPubSubTypes.cxx b/test/dds-types-test/finalPubSubTypes.cxx index 6aa1b6acc55..24db7726388 100644 --- a/test/dds-types-test/finalPubSubTypes.cxx +++ b/test/dds-types-test/finalPubSubTypes.cxx @@ -219,9 +219,9 @@ bool FinalShortStructPubSubType::getKey( return true; } -void FinalShortStructPubSubType::register_type_object_representation() const +void FinalShortStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalShortStruct_type_identifier(type_identifiers_); } FinalUShortStructPubSubType::FinalUShortStructPubSubType() @@ -412,9 +412,9 @@ bool FinalUShortStructPubSubType::getKey( return true; } -void FinalUShortStructPubSubType::register_type_object_representation() const +void FinalUShortStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalUShortStruct_type_identifier(type_identifiers_); } FinalLongStructPubSubType::FinalLongStructPubSubType() @@ -605,9 +605,9 @@ bool FinalLongStructPubSubType::getKey( return true; } -void FinalLongStructPubSubType::register_type_object_representation() const +void FinalLongStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalLongStruct_type_identifier(type_identifiers_); } FinalULongStructPubSubType::FinalULongStructPubSubType() @@ -798,9 +798,9 @@ bool FinalULongStructPubSubType::getKey( return true; } -void FinalULongStructPubSubType::register_type_object_representation() const +void FinalULongStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalULongStruct_type_identifier(type_identifiers_); } FinalLongLongStructPubSubType::FinalLongLongStructPubSubType() @@ -991,9 +991,9 @@ bool FinalLongLongStructPubSubType::getKey( return true; } -void FinalLongLongStructPubSubType::register_type_object_representation() const +void FinalLongLongStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalLongLongStruct_type_identifier(type_identifiers_); } FinalULongLongStructPubSubType::FinalULongLongStructPubSubType() @@ -1184,9 +1184,9 @@ bool FinalULongLongStructPubSubType::getKey( return true; } -void FinalULongLongStructPubSubType::register_type_object_representation() const +void FinalULongLongStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalULongLongStruct_type_identifier(type_identifiers_); } FinalFloatStructPubSubType::FinalFloatStructPubSubType() @@ -1377,9 +1377,9 @@ bool FinalFloatStructPubSubType::getKey( return true; } -void FinalFloatStructPubSubType::register_type_object_representation() const +void FinalFloatStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalFloatStruct_type_identifier(type_identifiers_); } FinalDoubleStructPubSubType::FinalDoubleStructPubSubType() @@ -1570,9 +1570,9 @@ bool FinalDoubleStructPubSubType::getKey( return true; } -void FinalDoubleStructPubSubType::register_type_object_representation() const +void FinalDoubleStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalDoubleStruct_type_identifier(type_identifiers_); } FinalLongDoubleStructPubSubType::FinalLongDoubleStructPubSubType() @@ -1763,9 +1763,9 @@ bool FinalLongDoubleStructPubSubType::getKey( return true; } -void FinalLongDoubleStructPubSubType::register_type_object_representation() const +void FinalLongDoubleStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalLongDoubleStruct_type_identifier(type_identifiers_); } FinalBooleanStructPubSubType::FinalBooleanStructPubSubType() @@ -1956,9 +1956,9 @@ bool FinalBooleanStructPubSubType::getKey( return true; } -void FinalBooleanStructPubSubType::register_type_object_representation() const +void FinalBooleanStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalBooleanStruct_type_identifier(type_identifiers_); } FinalOctetStructPubSubType::FinalOctetStructPubSubType() @@ -2149,9 +2149,9 @@ bool FinalOctetStructPubSubType::getKey( return true; } -void FinalOctetStructPubSubType::register_type_object_representation() const +void FinalOctetStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalOctetStruct_type_identifier(type_identifiers_); } FinalCharStructPubSubType::FinalCharStructPubSubType() @@ -2342,9 +2342,9 @@ bool FinalCharStructPubSubType::getKey( return true; } -void FinalCharStructPubSubType::register_type_object_representation() const +void FinalCharStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalCharStruct_type_identifier(type_identifiers_); } FinalWCharStructPubSubType::FinalWCharStructPubSubType() @@ -2535,9 +2535,9 @@ bool FinalWCharStructPubSubType::getKey( return true; } -void FinalWCharStructPubSubType::register_type_object_representation() const +void FinalWCharStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalWCharStruct_type_identifier(type_identifiers_); } FinalUnionStructPubSubType::FinalUnionStructPubSubType() @@ -2728,9 +2728,9 @@ bool FinalUnionStructPubSubType::getKey( return true; } -void FinalUnionStructPubSubType::register_type_object_representation() const +void FinalUnionStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalUnionStruct_type_identifier(type_identifiers_); } FinalEmptyStructPubSubType::FinalEmptyStructPubSubType() @@ -2921,9 +2921,9 @@ bool FinalEmptyStructPubSubType::getKey( return true; } -void FinalEmptyStructPubSubType::register_type_object_representation() const +void FinalEmptyStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalEmptyStruct_type_identifier(type_identifiers_); } FinalEmptyInheritanceStructPubSubType::FinalEmptyInheritanceStructPubSubType() @@ -3114,9 +3114,9 @@ bool FinalEmptyInheritanceStructPubSubType::getKey( return true; } -void FinalEmptyInheritanceStructPubSubType::register_type_object_representation() const +void FinalEmptyInheritanceStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalEmptyInheritanceStruct_type_identifier(type_identifiers_); } FinalInheritanceStructPubSubType::FinalInheritanceStructPubSubType() @@ -3307,9 +3307,9 @@ bool FinalInheritanceStructPubSubType::getKey( return true; } -void FinalInheritanceStructPubSubType::register_type_object_representation() const +void FinalInheritanceStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalInheritanceStruct_type_identifier(type_identifiers_); } InheritanceEmptyStructPubSubType::InheritanceEmptyStructPubSubType() @@ -3500,9 +3500,9 @@ bool InheritanceEmptyStructPubSubType::getKey( return true; } -void InheritanceEmptyStructPubSubType::register_type_object_representation() const +void InheritanceEmptyStructPubSubType::register_type_object_representation() { - register_final_type_objects(); + register_InheritanceEmptyStruct_type_identifier(type_identifiers_); } FinalExtensibilityInheritancePubSubType::FinalExtensibilityInheritancePubSubType() @@ -3693,9 +3693,9 @@ bool FinalExtensibilityInheritancePubSubType::getKey( return true; } -void FinalExtensibilityInheritancePubSubType::register_type_object_representation() const +void FinalExtensibilityInheritancePubSubType::register_type_object_representation() { - register_final_type_objects(); + register_FinalExtensibilityInheritance_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/finalPubSubTypes.h b/test/dds-types-test/finalPubSubTypes.h index f49ffd64d28..d33b90f4dbe 100644 --- a/test/dds-types-test/finalPubSubTypes.h +++ b/test/dds-types-test/finalPubSubTypes.h @@ -123,7 +123,7 @@ class FinalShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -269,7 +269,7 @@ class FinalUShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -415,7 +415,7 @@ class FinalLongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -561,7 +561,7 @@ class FinalULongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -707,7 +707,7 @@ class FinalLongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -853,7 +853,7 @@ class FinalULongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -999,7 +999,7 @@ class FinalFloatStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1145,7 +1145,7 @@ class FinalDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1291,7 +1291,7 @@ class FinalLongDoubleStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1437,7 +1437,7 @@ class FinalBooleanStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1583,7 +1583,7 @@ class FinalOctetStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1729,7 +1729,7 @@ class FinalCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1875,7 +1875,7 @@ class FinalWCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1988,7 +1988,7 @@ class FinalUnionStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2079,7 +2079,7 @@ class FinalEmptyStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2188,7 +2188,7 @@ class FinalEmptyInheritanceStructPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2279,7 +2279,7 @@ class FinalInheritanceStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2370,7 +2370,7 @@ class InheritanceEmptyStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2516,7 +2516,7 @@ class FinalExtensibilityInheritancePubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/finalTypeObjectSupport.cxx b/test/dds-types-test/finalTypeObjectSupport.cxx index 383c9119caf..c601af1a522 100644 --- a/test/dds-types-test/finalTypeObjectSupport.cxx +++ b/test/dds-types-test/finalTypeObjectSupport.cxx @@ -39,68 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_final_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_FinalShortStruct_type_identifier(type_id); - - register_FinalUShortStruct_type_identifier(type_id); - - register_FinalLongStruct_type_identifier(type_id); - - register_FinalULongStruct_type_identifier(type_id); - - register_FinalLongLongStruct_type_identifier(type_id); - - register_FinalULongLongStruct_type_identifier(type_id); - - register_FinalFloatStruct_type_identifier(type_id); - - register_FinalDoubleStruct_type_identifier(type_id); - - register_FinalLongDoubleStruct_type_identifier(type_id); - - register_FinalBooleanStruct_type_identifier(type_id); - - register_FinalOctetStruct_type_identifier(type_id); - - register_FinalCharStruct_type_identifier(type_id); - - register_FinalWCharStruct_type_identifier(type_id); - - register_FinalUnionStruct_type_identifier(type_id); - - register_FinalEmptyStruct_type_identifier(type_id); - - register_FinalEmptyInheritanceStruct_type_identifier(type_id); - - register_FinalInheritanceStruct_type_identifier(type_id); - - register_InheritanceEmptyStruct_type_identifier(type_id); - - register_FinalExtensibilityInheritance_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalShortStruct) { + + ReturnCode_t return_code_FinalShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalShortStruct", type_ids_FinalShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalShortStruct) { StructTypeFlag struct_flags_FinalShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalShortStruct; - TypeIdentifierPair type_ids_FinalShortStruct; QualifiedTypeName type_name_FinalShortStruct = "FinalShortStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalShortStruct; eprosima::fastcdr::optional ann_custom_FinalShortStruct; @@ -116,62 +67,26 @@ void register_FinalShortStruct_type_identifier( header_FinalShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalShortStruct); CompleteStructMemberSeq member_seq_FinalShortStruct; { - return_code_FinalShortStruct = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FinalShortStruct); + "_int16_t", type_ids_var_short); - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -183,32 +98,26 @@ void register_FinalShortStruct_type_identifier( } CompleteStructType struct_type_FinalShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalShortStruct, header_FinalShortStruct, member_seq_FinalShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalShortStruct, type_name_FinalShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalShortStruct, type_name_FinalShortStruct.to_string(), type_ids_FinalShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalShortStruct", type_ids_FinalShortStruct); - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalUShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalUShortStruct) { + + ReturnCode_t return_code_FinalUShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalUShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalUShortStruct", type_ids_FinalUShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalUShortStruct) { StructTypeFlag struct_flags_FinalUShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalUShortStruct; - TypeIdentifierPair type_ids_FinalUShortStruct; QualifiedTypeName type_name_FinalUShortStruct = "FinalUShortStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalUShortStruct; eprosima::fastcdr::optional ann_custom_FinalUShortStruct; @@ -224,62 +133,26 @@ void register_FinalUShortStruct_type_identifier( header_FinalUShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalUShortStruct); CompleteStructMemberSeq member_seq_FinalUShortStruct; { - return_code_FinalUShortStruct = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_FinalUShortStruct); + "_uint16_t", type_ids_var_ushort); - if (return_code_FinalUShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_FinalUShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_FinalUShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -291,32 +164,26 @@ void register_FinalUShortStruct_type_identifier( } CompleteStructType struct_type_FinalUShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalUShortStruct, header_FinalUShortStruct, member_seq_FinalUShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalUShortStruct, type_name_FinalUShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalUShortStruct, type_name_FinalUShortStruct.to_string(), type_ids_FinalUShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalUShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalUShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalUShortStruct", type_ids_FinalUShortStruct); - if (return_code_FinalUShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalUShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalLongStruct) { + + ReturnCode_t return_code_FinalLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalLongStruct", type_ids_FinalLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalLongStruct) { StructTypeFlag struct_flags_FinalLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalLongStruct; - TypeIdentifierPair type_ids_FinalLongStruct; QualifiedTypeName type_name_FinalLongStruct = "FinalLongStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalLongStruct; eprosima::fastcdr::optional ann_custom_FinalLongStruct; @@ -332,62 +199,26 @@ void register_FinalLongStruct_type_identifier( header_FinalLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalLongStruct); CompleteStructMemberSeq member_seq_FinalLongStruct; { - return_code_FinalLongStruct = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FinalLongStruct); + "_int32_t", type_ids_var_long); - if (return_code_FinalLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_FinalLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_FinalLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -399,32 +230,26 @@ void register_FinalLongStruct_type_identifier( } CompleteStructType struct_type_FinalLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalLongStruct, header_FinalLongStruct, member_seq_FinalLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongStruct, type_name_FinalLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongStruct, type_name_FinalLongStruct.to_string(), type_ids_FinalLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalLongStruct", type_ids_FinalLongStruct); - if (return_code_FinalLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalULongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalULongStruct) { + + ReturnCode_t return_code_FinalULongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalULongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalULongStruct", type_ids_FinalULongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalULongStruct) { StructTypeFlag struct_flags_FinalULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalULongStruct; - TypeIdentifierPair type_ids_FinalULongStruct; QualifiedTypeName type_name_FinalULongStruct = "FinalULongStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalULongStruct; eprosima::fastcdr::optional ann_custom_FinalULongStruct; @@ -440,62 +265,26 @@ void register_FinalULongStruct_type_identifier( header_FinalULongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalULongStruct); CompleteStructMemberSeq member_seq_FinalULongStruct; { - return_code_FinalULongStruct = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_FinalULongStruct); + "_uint32_t", type_ids_var_ulong); - if (return_code_FinalULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_FinalULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_FinalULongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -507,32 +296,26 @@ void register_FinalULongStruct_type_identifier( } CompleteStructType struct_type_FinalULongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalULongStruct, header_FinalULongStruct, member_seq_FinalULongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalULongStruct, type_name_FinalULongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalULongStruct, type_name_FinalULongStruct.to_string(), type_ids_FinalULongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalULongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalULongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalULongStruct", type_ids_FinalULongStruct); - if (return_code_FinalULongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalULongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalLongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalLongLongStruct) { + + ReturnCode_t return_code_FinalLongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalLongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalLongLongStruct", type_ids_FinalLongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalLongLongStruct) { StructTypeFlag struct_flags_FinalLongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalLongLongStruct; - TypeIdentifierPair type_ids_FinalLongLongStruct; QualifiedTypeName type_name_FinalLongLongStruct = "FinalLongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalLongLongStruct; eprosima::fastcdr::optional ann_custom_FinalLongLongStruct; @@ -548,62 +331,26 @@ void register_FinalLongLongStruct_type_identifier( header_FinalLongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalLongLongStruct); CompleteStructMemberSeq member_seq_FinalLongLongStruct; { - return_code_FinalLongLongStruct = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FinalLongLongStruct); + "_int64_t", type_ids_var_longlong); - if (return_code_FinalLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_FinalLongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_FinalLongLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -615,32 +362,26 @@ void register_FinalLongLongStruct_type_identifier( } CompleteStructType struct_type_FinalLongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalLongLongStruct, header_FinalLongLongStruct, member_seq_FinalLongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongLongStruct, type_name_FinalLongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongLongStruct, type_name_FinalLongLongStruct.to_string(), type_ids_FinalLongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalLongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalLongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalLongLongStruct", type_ids_FinalLongLongStruct); - if (return_code_FinalLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalLongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalULongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalULongLongStruct) { + + ReturnCode_t return_code_FinalULongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalULongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalULongLongStruct", type_ids_FinalULongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalULongLongStruct) { StructTypeFlag struct_flags_FinalULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalULongLongStruct; - TypeIdentifierPair type_ids_FinalULongLongStruct; QualifiedTypeName type_name_FinalULongLongStruct = "FinalULongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalULongLongStruct; eprosima::fastcdr::optional ann_custom_FinalULongLongStruct; @@ -656,62 +397,26 @@ void register_FinalULongLongStruct_type_identifier( header_FinalULongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalULongLongStruct); CompleteStructMemberSeq member_seq_FinalULongLongStruct; { - return_code_FinalULongLongStruct = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_FinalULongLongStruct); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_FinalULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_FinalULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_FinalULongLongStruct.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -723,32 +428,26 @@ void register_FinalULongLongStruct_type_identifier( } CompleteStructType struct_type_FinalULongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalULongLongStruct, header_FinalULongLongStruct, member_seq_FinalULongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalULongLongStruct, type_name_FinalULongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalULongLongStruct, type_name_FinalULongLongStruct.to_string(), type_ids_FinalULongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalULongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalULongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalULongLongStruct", type_ids_FinalULongLongStruct); - if (return_code_FinalULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalULongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalFloatStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalFloatStruct) { + + ReturnCode_t return_code_FinalFloatStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalFloatStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalFloatStruct", type_ids_FinalFloatStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalFloatStruct) { StructTypeFlag struct_flags_FinalFloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalFloatStruct; - TypeIdentifierPair type_ids_FinalFloatStruct; QualifiedTypeName type_name_FinalFloatStruct = "FinalFloatStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalFloatStruct; eprosima::fastcdr::optional ann_custom_FinalFloatStruct; @@ -764,62 +463,26 @@ void register_FinalFloatStruct_type_identifier( header_FinalFloatStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalFloatStruct); CompleteStructMemberSeq member_seq_FinalFloatStruct; { - return_code_FinalFloatStruct = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_FinalFloatStruct); + "_float", type_ids_var_float); - if (return_code_FinalFloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_FinalFloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalFloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_FinalFloatStruct.type_identifier2()); - } - else + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -831,32 +494,26 @@ void register_FinalFloatStruct_type_identifier( } CompleteStructType struct_type_FinalFloatStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalFloatStruct, header_FinalFloatStruct, member_seq_FinalFloatStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalFloatStruct, type_name_FinalFloatStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalFloatStruct, type_name_FinalFloatStruct.to_string(), type_ids_FinalFloatStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalFloatStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalFloatStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalFloatStruct", type_ids_FinalFloatStruct); - if (return_code_FinalFloatStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalFloatStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalDoubleStruct) { + + ReturnCode_t return_code_FinalDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalDoubleStruct", type_ids_FinalDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalDoubleStruct) { StructTypeFlag struct_flags_FinalDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalDoubleStruct; - TypeIdentifierPair type_ids_FinalDoubleStruct; QualifiedTypeName type_name_FinalDoubleStruct = "FinalDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalDoubleStruct; eprosima::fastcdr::optional ann_custom_FinalDoubleStruct; @@ -872,62 +529,26 @@ void register_FinalDoubleStruct_type_identifier( header_FinalDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalDoubleStruct); CompleteStructMemberSeq member_seq_FinalDoubleStruct; { - return_code_FinalDoubleStruct = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_FinalDoubleStruct); + "_double", type_ids_var_double); - if (return_code_FinalDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_FinalDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_FinalDoubleStruct.type_identifier2()); - } - else + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -939,32 +560,26 @@ void register_FinalDoubleStruct_type_identifier( } CompleteStructType struct_type_FinalDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalDoubleStruct, header_FinalDoubleStruct, member_seq_FinalDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalDoubleStruct, type_name_FinalDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalDoubleStruct, type_name_FinalDoubleStruct.to_string(), type_ids_FinalDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalDoubleStruct", type_ids_FinalDoubleStruct); - if (return_code_FinalDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalLongDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalLongDoubleStruct) { + + ReturnCode_t return_code_FinalLongDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalLongDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalLongDoubleStruct", type_ids_FinalLongDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalLongDoubleStruct) { StructTypeFlag struct_flags_FinalLongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalLongDoubleStruct; - TypeIdentifierPair type_ids_FinalLongDoubleStruct; QualifiedTypeName type_name_FinalLongDoubleStruct = "FinalLongDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalLongDoubleStruct; eprosima::fastcdr::optional ann_custom_FinalLongDoubleStruct; @@ -980,62 +595,26 @@ void register_FinalLongDoubleStruct_type_identifier( header_FinalLongDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalLongDoubleStruct); CompleteStructMemberSeq member_seq_FinalLongDoubleStruct; { - return_code_FinalLongDoubleStruct = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_FinalLongDoubleStruct); + "_longdouble", type_ids_var_longdouble); - if (return_code_FinalLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_FinalLongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalLongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_FinalLongDoubleStruct.type_identifier2()); - } - else + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -1047,32 +626,26 @@ void register_FinalLongDoubleStruct_type_identifier( } CompleteStructType struct_type_FinalLongDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalLongDoubleStruct, header_FinalLongDoubleStruct, member_seq_FinalLongDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongDoubleStruct, type_name_FinalLongDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalLongDoubleStruct, type_name_FinalLongDoubleStruct.to_string(), type_ids_FinalLongDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalLongDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalLongDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalLongDoubleStruct", type_ids_FinalLongDoubleStruct); - if (return_code_FinalLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalLongDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalBooleanStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalBooleanStruct) { + + ReturnCode_t return_code_FinalBooleanStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalBooleanStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalBooleanStruct", type_ids_FinalBooleanStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalBooleanStruct) { StructTypeFlag struct_flags_FinalBooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalBooleanStruct; - TypeIdentifierPair type_ids_FinalBooleanStruct; QualifiedTypeName type_name_FinalBooleanStruct = "FinalBooleanStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalBooleanStruct; eprosima::fastcdr::optional ann_custom_FinalBooleanStruct; @@ -1088,62 +661,26 @@ void register_FinalBooleanStruct_type_identifier( header_FinalBooleanStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalBooleanStruct); CompleteStructMemberSeq member_seq_FinalBooleanStruct; { - return_code_FinalBooleanStruct = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_FinalBooleanStruct); + "_bool", type_ids_var_boolean); - if (return_code_FinalBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_FinalBooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalBooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_FinalBooleanStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1155,32 +692,26 @@ void register_FinalBooleanStruct_type_identifier( } CompleteStructType struct_type_FinalBooleanStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalBooleanStruct, header_FinalBooleanStruct, member_seq_FinalBooleanStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalBooleanStruct, type_name_FinalBooleanStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalBooleanStruct, type_name_FinalBooleanStruct.to_string(), type_ids_FinalBooleanStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalBooleanStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalBooleanStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalBooleanStruct", type_ids_FinalBooleanStruct); - if (return_code_FinalBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalBooleanStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalOctetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalOctetStruct) { + + ReturnCode_t return_code_FinalOctetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalOctetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalOctetStruct", type_ids_FinalOctetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalOctetStruct) { StructTypeFlag struct_flags_FinalOctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalOctetStruct; - TypeIdentifierPair type_ids_FinalOctetStruct; QualifiedTypeName type_name_FinalOctetStruct = "FinalOctetStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalOctetStruct; eprosima::fastcdr::optional ann_custom_FinalOctetStruct; @@ -1196,62 +727,26 @@ void register_FinalOctetStruct_type_identifier( header_FinalOctetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalOctetStruct); CompleteStructMemberSeq member_seq_FinalOctetStruct; { - return_code_FinalOctetStruct = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FinalOctetStruct); + "_byte", type_ids_var_octet); - if (return_code_FinalOctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_FinalOctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalOctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_FinalOctetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -1263,32 +758,26 @@ void register_FinalOctetStruct_type_identifier( } CompleteStructType struct_type_FinalOctetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalOctetStruct, header_FinalOctetStruct, member_seq_FinalOctetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalOctetStruct, type_name_FinalOctetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalOctetStruct, type_name_FinalOctetStruct.to_string(), type_ids_FinalOctetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalOctetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalOctetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalOctetStruct", type_ids_FinalOctetStruct); - if (return_code_FinalOctetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalOctetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalCharStruct) { + + ReturnCode_t return_code_FinalCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalCharStruct", type_ids_FinalCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalCharStruct) { StructTypeFlag struct_flags_FinalCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalCharStruct; - TypeIdentifierPair type_ids_FinalCharStruct; QualifiedTypeName type_name_FinalCharStruct = "FinalCharStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalCharStruct; eprosima::fastcdr::optional ann_custom_FinalCharStruct; @@ -1304,62 +793,26 @@ void register_FinalCharStruct_type_identifier( header_FinalCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalCharStruct); CompleteStructMemberSeq member_seq_FinalCharStruct; { - return_code_FinalCharStruct = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_FinalCharStruct); + "_char", type_ids_var_char8); - if (return_code_FinalCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_FinalCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_FinalCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -1371,32 +824,26 @@ void register_FinalCharStruct_type_identifier( } CompleteStructType struct_type_FinalCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalCharStruct, header_FinalCharStruct, member_seq_FinalCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalCharStruct, type_name_FinalCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalCharStruct, type_name_FinalCharStruct.to_string(), type_ids_FinalCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalCharStruct", type_ids_FinalCharStruct); - if (return_code_FinalCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalWCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalWCharStruct) { + + ReturnCode_t return_code_FinalWCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalWCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalWCharStruct", type_ids_FinalWCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalWCharStruct) { StructTypeFlag struct_flags_FinalWCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalWCharStruct; - TypeIdentifierPair type_ids_FinalWCharStruct; QualifiedTypeName type_name_FinalWCharStruct = "FinalWCharStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalWCharStruct; eprosima::fastcdr::optional ann_custom_FinalWCharStruct; @@ -1412,62 +859,26 @@ void register_FinalWCharStruct_type_identifier( header_FinalWCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalWCharStruct); CompleteStructMemberSeq member_seq_FinalWCharStruct; { - return_code_FinalWCharStruct = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_FinalWCharStruct); + "_wchar_t", type_ids_var_char16); - if (return_code_FinalWCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_FinalWCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalWCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_FinalWCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -1479,32 +890,26 @@ void register_FinalWCharStruct_type_identifier( } CompleteStructType struct_type_FinalWCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalWCharStruct, header_FinalWCharStruct, member_seq_FinalWCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalWCharStruct, type_name_FinalWCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalWCharStruct, type_name_FinalWCharStruct.to_string(), type_ids_FinalWCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalWCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalWCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalWCharStruct", type_ids_FinalWCharStruct); - if (return_code_FinalWCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalWCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalUnionStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalUnionStruct) { + + ReturnCode_t return_code_FinalUnionStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalUnionStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalUnionStruct", type_ids_FinalUnionStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalUnionStruct) { StructTypeFlag struct_flags_FinalUnionStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalUnionStruct; - TypeIdentifierPair type_ids_FinalUnionStruct; QualifiedTypeName type_name_FinalUnionStruct = "FinalUnionStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalUnionStruct; eprosima::fastcdr::optional ann_custom_FinalUnionStruct; @@ -1520,339 +925,24 @@ void register_FinalUnionStruct_type_identifier( header_FinalUnionStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalUnionStruct); CompleteStructMemberSeq member_seq_FinalUnionStruct; { - return_code_FinalUnionStruct = + TypeIdentifierPair type_ids_var_union; + ReturnCode_t return_code_var_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_FinalUnionStruct); + "InnerUnionHelper", type_ids_var_union); - if (return_code_FinalUnionStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_FinalUnionStruct = return_code_InnerUnionHelper; - type_ids_FinalUnionStruct = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_union); } - StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union; MemberId member_id_var_union = 0x00000000; - if (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_union_ec {false}; + CommonStructMember common_var_union {TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union, common_var_union_ec))}; + if (!common_var_union_ec) { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_FinalUnionStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalUnionStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_FinalUnionStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union member TypeIdentifier inconsistent."); return; } MemberName name_var_union = "var_union"; @@ -1864,32 +954,26 @@ void register_FinalUnionStruct_type_identifier( } CompleteStructType struct_type_FinalUnionStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalUnionStruct, header_FinalUnionStruct, member_seq_FinalUnionStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalUnionStruct, type_name_FinalUnionStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalUnionStruct, type_name_FinalUnionStruct.to_string(), type_ids_FinalUnionStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalUnionStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalUnionStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalUnionStruct", type_ids_FinalUnionStruct); - if (return_code_FinalUnionStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalUnionStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalEmptyStruct) { + + ReturnCode_t return_code_FinalEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalEmptyStruct", type_ids_FinalEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalEmptyStruct) { StructTypeFlag struct_flags_FinalEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalEmptyStruct; - TypeIdentifierPair type_ids_FinalEmptyStruct; QualifiedTypeName type_name_FinalEmptyStruct = "FinalEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalEmptyStruct; eprosima::fastcdr::optional ann_custom_FinalEmptyStruct; @@ -1906,77 +990,33 @@ void register_FinalEmptyStruct_type_identifier( CompleteStructMemberSeq member_seq_FinalEmptyStruct; CompleteStructType struct_type_FinalEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalEmptyStruct, header_FinalEmptyStruct, member_seq_FinalEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalEmptyStruct, type_name_FinalEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalEmptyStruct, type_name_FinalEmptyStruct.to_string(), type_ids_FinalEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalEmptyStruct", type_ids_FinalEmptyStruct); - if (return_code_FinalEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalEmptyInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalEmptyInheritanceStruct) { + + ReturnCode_t return_code_FinalEmptyInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalEmptyInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalEmptyInheritanceStruct", type_ids_FinalEmptyInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalEmptyInheritanceStruct) { StructTypeFlag struct_flags_FinalEmptyInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalEmptyInheritanceStruct; - TypeIdentifierPair type_ids_FinalEmptyInheritanceStruct; return_code_FinalEmptyInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "FinalEmptyStruct", type_ids_FinalEmptyInheritanceStruct); if (return_code_FinalEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_FinalEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, - false, false); - ReturnCode_t return_code_FinalEmptyStruct; - TypeIdentifierPair type_ids_FinalEmptyStruct; - QualifiedTypeName type_name_FinalEmptyStruct = "FinalEmptyStruct"; - eprosima::fastcdr::optional type_ann_builtin_FinalEmptyStruct; - eprosima::fastcdr::optional ann_custom_FinalEmptyStruct; - AppliedAnnotationSeq tmp_ann_custom_FinalEmptyStruct; - eprosima::fastcdr::optional verbatim_FinalEmptyStruct; - if (!tmp_ann_custom_FinalEmptyStruct.empty()) - { - ann_custom_FinalEmptyStruct = tmp_ann_custom_FinalEmptyStruct; - } - - CompleteTypeDetail detail_FinalEmptyStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_FinalEmptyStruct, ann_custom_FinalEmptyStruct, type_name_FinalEmptyStruct.to_string()); - CompleteStructHeader header_FinalEmptyStruct; - header_FinalEmptyStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalEmptyStruct); - CompleteStructMemberSeq member_seq_FinalEmptyStruct; - CompleteStructType struct_type_FinalEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalEmptyStruct, header_FinalEmptyStruct, member_seq_FinalEmptyStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalEmptyStruct, type_name_FinalEmptyStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalEmptyStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_FinalEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalEmptyStruct", type_ids_FinalEmptyStruct); - if (return_code_FinalEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_FinalEmptyInheritanceStruct = return_code_FinalEmptyStruct; - type_ids_FinalEmptyInheritanceStruct = type_ids_FinalEmptyStruct; - } +::register_FinalEmptyStruct_type_identifier(type_ids_FinalEmptyInheritanceStruct); } QualifiedTypeName type_name_FinalEmptyInheritanceStruct = "FinalEmptyInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalEmptyInheritanceStruct; @@ -2002,84 +1042,38 @@ void register_FinalEmptyInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalEmptyInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_FinalEmptyInheritanceStruct; { - return_code_FinalEmptyInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_FinalEmptyInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_FinalEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_FinalEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_FinalEmptyInheritanceStruct); - if (return_code_FinalEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000000; - if (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_FinalEmptyInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalEmptyInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_FinalEmptyInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2091,143 +1085,33 @@ void register_FinalEmptyInheritanceStruct_type_identifier( } CompleteStructType struct_type_FinalEmptyInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalEmptyInheritanceStruct, header_FinalEmptyInheritanceStruct, member_seq_FinalEmptyInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalEmptyInheritanceStruct, type_name_FinalEmptyInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalEmptyInheritanceStruct, type_name_FinalEmptyInheritanceStruct.to_string(), type_ids_FinalEmptyInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalEmptyInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalEmptyInheritanceStruct", type_ids_FinalEmptyInheritanceStruct); - if (return_code_FinalEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalEmptyInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalInheritanceStruct) { + + ReturnCode_t return_code_FinalInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalInheritanceStruct", type_ids_FinalInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalInheritanceStruct) { StructTypeFlag struct_flags_FinalInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalInheritanceStruct; - TypeIdentifierPair type_ids_FinalInheritanceStruct; return_code_FinalInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "FinalShortStruct", type_ids_FinalInheritanceStruct); if (return_code_FinalInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_FinalShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, - false, false); - ReturnCode_t return_code_FinalShortStruct; - TypeIdentifierPair type_ids_FinalShortStruct; - QualifiedTypeName type_name_FinalShortStruct = "FinalShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_FinalShortStruct; - eprosima::fastcdr::optional ann_custom_FinalShortStruct; - AppliedAnnotationSeq tmp_ann_custom_FinalShortStruct; - eprosima::fastcdr::optional verbatim_FinalShortStruct; - if (!tmp_ann_custom_FinalShortStruct.empty()) - { - ann_custom_FinalShortStruct = tmp_ann_custom_FinalShortStruct; - } - - CompleteTypeDetail detail_FinalShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_FinalShortStruct, ann_custom_FinalShortStruct, type_name_FinalShortStruct.to_string()); - CompleteStructHeader header_FinalShortStruct; - header_FinalShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalShortStruct); - CompleteStructMemberSeq member_seq_FinalShortStruct; - { - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FinalShortStruct); - - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_FinalShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_FinalShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_FinalShortStruct, member_var_short); - } - CompleteStructType struct_type_FinalShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalShortStruct, header_FinalShortStruct, member_seq_FinalShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalShortStruct, type_name_FinalShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalShortStruct", type_ids_FinalShortStruct); - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_FinalInheritanceStruct = return_code_FinalShortStruct; - type_ids_FinalInheritanceStruct = type_ids_FinalShortStruct; - } +::register_FinalShortStruct_type_identifier(type_ids_FinalInheritanceStruct); } QualifiedTypeName type_name_FinalInheritanceStruct = "FinalInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_FinalInheritanceStruct; @@ -2253,84 +1137,38 @@ void register_FinalInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_FinalInheritanceStruct; { - return_code_FinalInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_FinalInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_FinalInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_FinalInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_FinalInheritanceStruct); - if (return_code_FinalInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000001; - if (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_FinalInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_FinalInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2342,143 +1180,33 @@ void register_FinalInheritanceStruct_type_identifier( } CompleteStructType struct_type_FinalInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalInheritanceStruct, header_FinalInheritanceStruct, member_seq_FinalInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalInheritanceStruct, type_name_FinalInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalInheritanceStruct, type_name_FinalInheritanceStruct.to_string(), type_ids_FinalInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FinalInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalInheritanceStruct", type_ids_FinalInheritanceStruct); - if (return_code_FinalInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InheritanceEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InheritanceEmptyStruct) { + + ReturnCode_t return_code_InheritanceEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InheritanceEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InheritanceEmptyStruct", type_ids_InheritanceEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InheritanceEmptyStruct) { StructTypeFlag struct_flags_InheritanceEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_InheritanceEmptyStruct; - TypeIdentifierPair type_ids_InheritanceEmptyStruct; return_code_InheritanceEmptyStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "FinalShortStruct", type_ids_InheritanceEmptyStruct); if (return_code_InheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_FinalShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, - false, false); - ReturnCode_t return_code_FinalShortStruct; - TypeIdentifierPair type_ids_FinalShortStruct; - QualifiedTypeName type_name_FinalShortStruct = "FinalShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_FinalShortStruct; - eprosima::fastcdr::optional ann_custom_FinalShortStruct; - AppliedAnnotationSeq tmp_ann_custom_FinalShortStruct; - eprosima::fastcdr::optional verbatim_FinalShortStruct; - if (!tmp_ann_custom_FinalShortStruct.empty()) - { - ann_custom_FinalShortStruct = tmp_ann_custom_FinalShortStruct; - } - - CompleteTypeDetail detail_FinalShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_FinalShortStruct, ann_custom_FinalShortStruct, type_name_FinalShortStruct.to_string()); - CompleteStructHeader header_FinalShortStruct; - header_FinalShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalShortStruct); - CompleteStructMemberSeq member_seq_FinalShortStruct; - { - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FinalShortStruct); - - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_FinalShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_FinalShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_FinalShortStruct, member_var_short); - } - CompleteStructType struct_type_FinalShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalShortStruct, header_FinalShortStruct, member_seq_FinalShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalShortStruct, type_name_FinalShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalShortStruct", type_ids_FinalShortStruct); - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InheritanceEmptyStruct = return_code_FinalShortStruct; - type_ids_InheritanceEmptyStruct = type_ids_FinalShortStruct; - } +::register_FinalShortStruct_type_identifier(type_ids_InheritanceEmptyStruct); } QualifiedTypeName type_name_InheritanceEmptyStruct = "InheritanceEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_InheritanceEmptyStruct; @@ -2504,149 +1232,38 @@ void register_InheritanceEmptyStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InheritanceEmptyStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InheritanceEmptyStruct; CompleteStructType struct_type_InheritanceEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_InheritanceEmptyStruct, header_InheritanceEmptyStruct, member_seq_InheritanceEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InheritanceEmptyStruct, type_name_InheritanceEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InheritanceEmptyStruct, type_name_InheritanceEmptyStruct.to_string(), type_ids_InheritanceEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InheritanceEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_InheritanceEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InheritanceEmptyStruct", type_ids_InheritanceEmptyStruct); - if (return_code_InheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InheritanceEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FinalExtensibilityInheritance_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FinalExtensibilityInheritance) { + + ReturnCode_t return_code_FinalExtensibilityInheritance {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FinalExtensibilityInheritance = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FinalExtensibilityInheritance", type_ids_FinalExtensibilityInheritance); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FinalExtensibilityInheritance) { - StructTypeFlag struct_flags_FinalExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_FinalExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); - ReturnCode_t return_code_FinalExtensibilityInheritance; - TypeIdentifierPair type_ids_FinalExtensibilityInheritance; return_code_FinalExtensibilityInheritance = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "FinalShortStruct", type_ids_FinalExtensibilityInheritance); if (return_code_FinalExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_FinalShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, - false, false); - ReturnCode_t return_code_FinalShortStruct; - TypeIdentifierPair type_ids_FinalShortStruct; - QualifiedTypeName type_name_FinalShortStruct = "FinalShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_FinalShortStruct; - eprosima::fastcdr::optional ann_custom_FinalShortStruct; - AppliedAnnotationSeq tmp_ann_custom_FinalShortStruct; - eprosima::fastcdr::optional verbatim_FinalShortStruct; - if (!tmp_ann_custom_FinalShortStruct.empty()) - { - ann_custom_FinalShortStruct = tmp_ann_custom_FinalShortStruct; - } - - CompleteTypeDetail detail_FinalShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_FinalShortStruct, ann_custom_FinalShortStruct, type_name_FinalShortStruct.to_string()); - CompleteStructHeader header_FinalShortStruct; - header_FinalShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FinalShortStruct); - CompleteStructMemberSeq member_seq_FinalShortStruct; - { - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FinalShortStruct); - - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1()._d() || TK_NONE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_FinalShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_FinalShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_FinalShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_FinalShortStruct, member_var_short); - } - CompleteStructType struct_type_FinalShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalShortStruct, header_FinalShortStruct, member_seq_FinalShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalShortStruct, type_name_FinalShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_FinalShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalShortStruct", type_ids_FinalShortStruct); - if (return_code_FinalShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_FinalExtensibilityInheritance = return_code_FinalShortStruct; - type_ids_FinalExtensibilityInheritance = type_ids_FinalShortStruct; - } +::register_FinalShortStruct_type_identifier(type_ids_FinalExtensibilityInheritance); } QualifiedTypeName type_name_FinalExtensibilityInheritance = "FinalExtensibilityInheritance"; eprosima::fastcdr::optional type_ann_builtin_FinalExtensibilityInheritance; @@ -2665,67 +1282,30 @@ void register_FinalExtensibilityInheritance_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalExtensibilityInheritance Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_FinalExtensibilityInheritance; { - return_code_FinalExtensibilityInheritance = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FinalExtensibilityInheritance); + "_int32_t", type_ids_var_long); - if (return_code_FinalExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000001; - if (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() || TK_NONE == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_FinalExtensibilityInheritance.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FinalExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FinalExtensibilityInheritance.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_FinalExtensibilityInheritance.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -2737,21 +1317,11 @@ void register_FinalExtensibilityInheritance_type_identifier( } CompleteStructType struct_type_FinalExtensibilityInheritance = TypeObjectUtils::build_complete_struct_type(struct_flags_FinalExtensibilityInheritance, header_FinalExtensibilityInheritance, member_seq_FinalExtensibilityInheritance); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalExtensibilityInheritance, type_name_FinalExtensibilityInheritance.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FinalExtensibilityInheritance, type_name_FinalExtensibilityInheritance.to_string(), type_ids_FinalExtensibilityInheritance)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FinalExtensibilityInheritance already registered in TypeObjectRegistry for a different type."); } - return_code_FinalExtensibilityInheritance = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FinalExtensibilityInheritance", type_ids_FinalExtensibilityInheritance); - if (return_code_FinalExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FinalExtensibilityInheritance: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/finalTypeObjectSupport.hpp b/test/dds-types-test/finalTypeObjectSupport.hpp index b2345a5073c..71618ed5a24 100644 --- a/test/dds-types-test/finalTypeObjectSupport.hpp +++ b/test/dds-types-test/finalTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_final_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_final_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalUShortStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_FinalShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalUShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_FinalUShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalULongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_FinalLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalULongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalLongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_FinalULongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalLongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalULongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_FinalLongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalULongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalFloatStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_FinalULongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalFloatStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_FinalFloatStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalLongDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_FinalDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalLongDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalBooleanStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_FinalLongDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalBooleanStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalOctetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_FinalBooleanStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalOctetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_FinalOctetStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalWCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_FinalCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalWCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalUnionStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_FinalWCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalUnionStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_FinalUnionStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalEmptyInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_FinalEmptyStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalEmptyInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_FinalEmptyInheritanceStruct_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InheritanceEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_FinalInheritanceStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InheritanceEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FinalExtensibilityInheritance related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_InheritanceEmptyStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FinalExtensibilityInheritance_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.cxx b/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.cxx index 5e553595a73..f8dbe9da934 100644 --- a/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.cxx +++ b/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.cxx @@ -219,9 +219,9 @@ bool InnerStructureHelperPubSubType::getKey( return true; } -void InnerStructureHelperPubSubType::register_type_object_representation() const +void InnerStructureHelperPubSubType::register_type_object_representation() { - register_basic_inner_types_type_objects(); + register_InnerStructureHelper_type_identifier(type_identifiers_); } InnerEmptyStructureHelperPubSubType::InnerEmptyStructureHelperPubSubType() @@ -412,9 +412,9 @@ bool InnerEmptyStructureHelperPubSubType::getKey( return true; } -void InnerEmptyStructureHelperPubSubType::register_type_object_representation() const +void InnerEmptyStructureHelperPubSubType::register_type_object_representation() { - register_basic_inner_types_type_objects(); + register_InnerEmptyStructureHelper_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.h b/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.h index 8d632a8c491..fc6c933a90a 100644 --- a/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.h +++ b/test/dds-types-test/helpers/basic_inner_typesPubSubTypes.h @@ -90,7 +90,7 @@ class InnerStructureHelperPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class InnerEmptyStructureHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.cxx b/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.cxx index 9944079f52c..35dbe23e632 100644 --- a/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.cxx +++ b/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.cxx @@ -38,31 +38,315 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_basic_inner_types_type_objects() +void register_InnerEnumHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerEnumHelper) { - static std::once_flag once_flag; - std::call_once(once_flag, []() + ReturnCode_t return_code_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerEnumHelper", type_ids_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerEnumHelper) + { + EnumTypeFlag enum_flags_InnerEnumHelper = 0; + BitBound bit_bound_InnerEnumHelper = 32; + CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); + QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; + eprosima::fastcdr::optional ann_custom_InnerEnumHelper; + CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); + CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); + CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; + { + EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; + CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); + } + { + EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; + CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); + } + { + EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); + eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; + ann_custom_InnerEnumHelper.reset(); + MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; + CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); + CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); + } + CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, + literal_seq_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string(), type_ids_InnerEnumHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerBitMaskHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerBitMaskHelper) +{ + ReturnCode_t return_code_InnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitMaskHelper", type_ids_InnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerBitMaskHelper) + { + BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; + BitBound bit_bound_InnerBitMaskHelper = 32; + CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); + QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; + eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; + CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); + CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); + CompleteBitflagSeq flag_seq_InnerBitMaskHelper; + { + uint16_t position_flag0 = 0; + BitflagFlag flags_flag0 = 0; + CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); + eprosima::fastcdr::optional member_ann_builtin_flag0; + ann_custom_InnerBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_flag0; + if (!tmp_ann_custom_flag0.empty()) { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); + ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; + } + MemberName name_flag0 = "flag0"; + CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); + CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); + } + { + uint16_t position_flag1 = 1; + BitflagFlag flags_flag1 = 0; + CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); + eprosima::fastcdr::optional member_ann_builtin_flag1; + ann_custom_InnerBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_flag1; + if (!tmp_ann_custom_flag1.empty()) + { + ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; + } + MemberName name_flag1 = "flag1"; + CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); + CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); + } + { + uint16_t position_flag4 = 4; + BitflagFlag flags_flag4 = 0; + CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); + eprosima::fastcdr::optional member_ann_builtin_flag4; + ann_custom_InnerBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_flag4; + if (!tmp_ann_custom_flag4.empty()) + { + ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; + } + MemberName name_flag4 = "flag4"; + CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); + CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); + } + { + uint16_t position_flag6 = 6; + BitflagFlag flags_flag6 = 0; + CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); + eprosima::fastcdr::optional member_ann_builtin_flag6; + ann_custom_InnerBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_flag6; + if (!tmp_ann_custom_flag6.empty()) + { + ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; + } + MemberName name_flag6 = "flag6"; + CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); + CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); + } + CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, + type_name_InnerBitMaskHelper.to_string(), type_ids_InnerBitMaskHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerBoundedBitMaskHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerBoundedBitMaskHelper) +{ + ReturnCode_t return_code_InnerBoundedBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerBoundedBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBoundedBitMaskHelper", type_ids_InnerBoundedBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerBoundedBitMaskHelper) + { + BitmaskTypeFlag bitmask_flags_InnerBoundedBitMaskHelper = 0; + BitBound bit_bound_InnerBoundedBitMaskHelper = 8; + CommonEnumeratedHeader common_InnerBoundedBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBoundedBitMaskHelper, true); + QualifiedTypeName type_name_InnerBoundedBitMaskHelper = "InnerBoundedBitMaskHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerBoundedBitMaskHelper; + eprosima::fastcdr::optional ann_custom_InnerBoundedBitMaskHelper; + AppliedAnnotationSeq tmp_ann_custom_InnerBoundedBitMaskHelper; + eprosima::fastcdr::optional verbatim_InnerBoundedBitMaskHelper; + if (!tmp_ann_custom_InnerBoundedBitMaskHelper.empty()) + { + ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_InnerBoundedBitMaskHelper; + } + CompleteTypeDetail detail_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBoundedBitMaskHelper, ann_custom_InnerBoundedBitMaskHelper, type_name_InnerBoundedBitMaskHelper.to_string()); + CompleteEnumeratedHeader header_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBoundedBitMaskHelper, detail_InnerBoundedBitMaskHelper, true); + CompleteBitflagSeq flag_seq_InnerBoundedBitMaskHelper; + { + uint16_t position_bflag0 = 0; + BitflagFlag flags_bflag0 = 0; + CommonBitflag common_bflag0 = TypeObjectUtils::build_common_bitflag(position_bflag0, flags_bflag0); + eprosima::fastcdr::optional member_ann_builtin_bflag0; + ann_custom_InnerBoundedBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_bflag0; + if (!tmp_ann_custom_bflag0.empty()) + { + ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag0; + } + MemberName name_bflag0 = "bflag0"; + CompleteMemberDetail detail_bflag0 = TypeObjectUtils::build_complete_member_detail(name_bflag0, member_ann_builtin_bflag0, ann_custom_InnerBoundedBitMaskHelper); + CompleteBitflag bitflag_bflag0 = TypeObjectUtils::build_complete_bitflag(common_bflag0, detail_bflag0); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag0); + } + { + uint16_t position_bflag1 = 1; + BitflagFlag flags_bflag1 = 0; + CommonBitflag common_bflag1 = TypeObjectUtils::build_common_bitflag(position_bflag1, flags_bflag1); + eprosima::fastcdr::optional member_ann_builtin_bflag1; + ann_custom_InnerBoundedBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_bflag1; + if (!tmp_ann_custom_bflag1.empty()) + { + ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag1; + } + MemberName name_bflag1 = "bflag1"; + CompleteMemberDetail detail_bflag1 = TypeObjectUtils::build_complete_member_detail(name_bflag1, member_ann_builtin_bflag1, ann_custom_InnerBoundedBitMaskHelper); + CompleteBitflag bitflag_bflag1 = TypeObjectUtils::build_complete_bitflag(common_bflag1, detail_bflag1); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag1); + } + { + uint16_t position_bflag4 = 4; + BitflagFlag flags_bflag4 = 0; + CommonBitflag common_bflag4 = TypeObjectUtils::build_common_bitflag(position_bflag4, flags_bflag4); + eprosima::fastcdr::optional member_ann_builtin_bflag4; + ann_custom_InnerBoundedBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_bflag4; + if (!tmp_ann_custom_bflag4.empty()) + { + ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag4; + } + MemberName name_bflag4 = "bflag4"; + CompleteMemberDetail detail_bflag4 = TypeObjectUtils::build_complete_member_detail(name_bflag4, member_ann_builtin_bflag4, ann_custom_InnerBoundedBitMaskHelper); + CompleteBitflag bitflag_bflag4 = TypeObjectUtils::build_complete_bitflag(common_bflag4, detail_bflag4); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag4); + } + { + uint16_t position_bflag6 = 6; + BitflagFlag flags_bflag6 = 0; + CommonBitflag common_bflag6 = TypeObjectUtils::build_common_bitflag(position_bflag6, flags_bflag6); + eprosima::fastcdr::optional member_ann_builtin_bflag6; + ann_custom_InnerBoundedBitMaskHelper.reset(); + AppliedAnnotationSeq tmp_ann_custom_bflag6; + if (!tmp_ann_custom_bflag6.empty()) + { + ann_custom_InnerBoundedBitMaskHelper = tmp_ann_custom_bflag6; + } + MemberName name_bflag6 = "bflag6"; + CompleteMemberDetail detail_bflag6 = TypeObjectUtils::build_complete_member_detail(name_bflag6, member_ann_builtin_bflag6, ann_custom_InnerBoundedBitMaskHelper); + CompleteBitflag bitflag_bflag6 = TypeObjectUtils::build_complete_bitflag(common_bflag6, detail_bflag6); + TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBoundedBitMaskHelper, bitflag_bflag6); + } + CompleteBitmaskType bitmask_type_InnerBoundedBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBoundedBitMaskHelper, header_InnerBoundedBitMaskHelper, flag_seq_InnerBoundedBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBoundedBitMaskHelper, + type_name_InnerBoundedBitMaskHelper.to_string(), type_ids_InnerBoundedBitMaskHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerBoundedBitMaskHelper already registered in TypeObjectRegistry for a different type."); + } + } +}void register_InnerAliasHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerAliasHelper) +{ + ReturnCode_t return_code_InnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerAliasHelper", type_ids_InnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerAliasHelper) + { + AliasTypeFlag alias_flags_InnerAliasHelper = 0; + QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; + eprosima::fastcdr::optional ann_custom_InnerAliasHelper; + CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); + CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); + AliasMemberFlag related_flags_InnerAliasHelper = 0; + return_code_InnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_InnerAliasHelper); - }); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerAliasHelper) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool common_InnerAliasHelper_ec {false}; + CommonAliasBody common_InnerAliasHelper {TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InnerAliasHelper, common_InnerAliasHelper_ec))}; + if (!common_InnerAliasHelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerAliasHelper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; + ann_custom_InnerAliasHelper.reset(); + CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, + member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); + CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, + header_InnerAliasHelper, body_InnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, + type_name_InnerAliasHelper.to_string(), type_ids_InnerAliasHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); + } + } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructureHelper) { + + ReturnCode_t return_code_InnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelper", type_ids_InnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructureHelper) { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; eprosima::fastcdr::optional ann_custom_InnerStructureHelper; @@ -78,62 +362,26 @@ void register_InnerStructureHelper_type_identifier( header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); CompleteStructMemberSeq member_seq_InnerStructureHelper; { - return_code_InnerStructureHelper = + TypeIdentifierPair type_ids_field1; + ReturnCode_t return_code_field1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_field1 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); + "_int32_t", type_ids_field1); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_field1) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_field1; MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else + bool common_field1_ec {false}; + CommonStructMember common_field1 {TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_field1, common_field1_ec))}; + if (!common_field1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure field1 member TypeIdentifier inconsistent."); return; } MemberName name_field1 = "field1"; @@ -144,62 +392,26 @@ void register_InnerStructureHelper_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); } { - return_code_InnerStructureHelper = + TypeIdentifierPair type_ids_field2; + ReturnCode_t return_code_field2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_field2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); + "_float", type_ids_field2); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_field2) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_field2; MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else + bool common_field2_ec {false}; + CommonStructMember common_field2 {TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_field2, common_field2_ec))}; + if (!common_field2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure field2 member TypeIdentifier inconsistent."); return; } MemberName name_field2 = "field2"; @@ -211,32 +423,26 @@ void register_InnerStructureHelper_type_identifier( } CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_ids_InnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerEmptyStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerEmptyStructureHelper) { + + ReturnCode_t return_code_InnerEmptyStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerEmptyStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerEmptyStructureHelper) { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; @@ -253,31 +459,24 @@ void register_InnerEmptyStructureHelper_type_identifier( CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_ids_InnerEmptyStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerUnionHelper) { + ReturnCode_t return_code_InnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerUnionHelper", type_ids_InnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerUnionHelper) { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, true, false); QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; @@ -291,7 +490,7 @@ void register_InnerUnionHelper_type_identifier( CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_InnerUnionHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -301,7 +500,6 @@ void register_InnerUnionHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_InnerUnionHelper; @@ -317,7 +515,6 @@ void register_InnerUnionHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_InnerUnionHelper.reset(); @@ -330,62 +527,24 @@ void register_InnerUnionHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerUnionHelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_longValue; TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else + bool common_longValue_ec {false}; + CommonUnionMember common_longValue {TypeObjectUtils::build_common_union_member(member_id_longValue, + member_flags_longValue, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InnerUnionHelper, + common_longValue_ec), label_seq_longValue)}; + if (!common_longValue_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union longValue member TypeIdentifier inconsistent."); return; } MemberName name_longValue = "longValue"; @@ -400,62 +559,24 @@ void register_InnerUnionHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_float", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerUnionHelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_floatValue; TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else + bool common_floatValue_ec {false}; + CommonUnionMember common_floatValue {TypeObjectUtils::build_common_union_member(member_id_floatValue, + member_flags_floatValue, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InnerUnionHelper, + common_floatValue_ec), label_seq_floatValue)}; + if (!common_floatValue_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union floatValue member TypeIdentifier inconsistent."); return; } MemberName name_floatValue = "floatValue"; @@ -470,61 +591,23 @@ void register_InnerUnionHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerUnionHelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false); UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else + bool common_shortValue_ec {false}; + CommonUnionMember common_shortValue {TypeObjectUtils::build_common_union_member(member_id_shortValue, + member_flags_shortValue, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_InnerUnionHelper, + common_shortValue_ec), label_seq_shortValue)}; + if (!common_shortValue_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union shortValue member TypeIdentifier inconsistent."); return; } MemberName name_shortValue = "shortValue"; @@ -537,21 +620,575 @@ void register_InnerUnionHelper_type_identifier( CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, member_seq_InnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_ids_InnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_InnerUnionHelper = + } +} +void register_InnerBitsetHelper_type_identifier( + TypeIdentifierPair& type_ids_InnerBitsetHelper) +{ + ReturnCode_t return_code_InnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelper", type_ids_InnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerBitsetHelper) + { + BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; + QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; + eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; + eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; + CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); + CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); + CompleteBitfieldSeq field_seq_InnerBitsetHelper; + { + uint16_t position_a = 0; + BitsetMemberFlag flags_a = 0; + uint8_t bitcount_a = 3; + TypeKind holder_type_a = TK_BYTE; + CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); + eprosima::fastcdr::optional member_ann_builtin_a; + ann_custom_InnerBitsetHelper.reset(); + MemberName name_a = "a"; + CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); + CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); + } + { + uint16_t position_b = 3; + BitsetMemberFlag flags_b = 0; + uint8_t bitcount_b = 1; + TypeKind holder_type_b = TK_BOOLEAN; + CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); + eprosima::fastcdr::optional member_ann_builtin_b; + ann_custom_InnerBitsetHelper.reset(); + MemberName name_b = "b"; + CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); + CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); + } + { + uint16_t position_c = 8; + BitsetMemberFlag flags_c = 0; + uint8_t bitcount_c = 10; + TypeKind holder_type_c = TK_UINT16; + CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); + eprosima::fastcdr::optional member_ann_builtin_c; + ann_custom_InnerBitsetHelper.reset(); + MemberName name_c = "c"; + CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); + CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); + } + { + uint16_t position_d = 21; + BitsetMemberFlag flags_d = 0; + uint8_t bitcount_d = 12; + TypeKind holder_type_d = TK_INT16; + CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); + eprosima::fastcdr::optional member_ann_builtin_d; + ann_custom_InnerBitsetHelper.reset(); + MemberName name_d = "d"; + CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); + CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); + } + CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, + type_name_InnerBitsetHelper.to_string(), type_ids_InnerBitsetHelper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); + } + } +}void register_Inner_alias_bounded_string_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_bounded_string_helper) +{ + ReturnCode_t return_code_Inner_alias_bounded_string_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_bounded_string_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_string_helper", type_ids_Inner_alias_bounded_string_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_string_helper) + { + AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; + QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; + eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; + eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; + CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); + CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); + AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; + return_code_Inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + "anonymous_string_10", type_ids_Inner_alias_bounded_string_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_string_helper) + { + { + SBound bound = static_cast(10); + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_10", type_ids_Inner_alias_bounded_string_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_Inner_alias_bounded_string_helper_ec {false}; + CommonAliasBody common_Inner_alias_bounded_string_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_bounded_string_helper, common_Inner_alias_bounded_string_helper_ec))}; + if (!common_Inner_alias_bounded_string_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; + ann_custom_Inner_alias_bounded_string_helper.reset(); + CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, + member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); + CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, + header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, + type_name_Inner_alias_bounded_string_helper.to_string(), type_ids_Inner_alias_bounded_string_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_Inner_alias_bounded_wstring_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_bounded_wstring_helper) +{ + ReturnCode_t return_code_Inner_alias_bounded_wstring_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_bounded_wstring_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_wstring_helper", type_ids_Inner_alias_bounded_wstring_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_wstring_helper) + { + AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; + QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; + eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; + eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; + CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); + CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); + AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; + return_code_Inner_alias_bounded_wstring_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_wstring_10", type_ids_Inner_alias_bounded_wstring_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_bounded_wstring_helper) + { + { + SBound bound = static_cast(10); + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_wstring_10", type_ids_Inner_alias_bounded_wstring_helper, true)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_Inner_alias_bounded_wstring_helper_ec {false}; + CommonAliasBody common_Inner_alias_bounded_wstring_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_bounded_wstring_helper, common_Inner_alias_bounded_wstring_helper_ec))}; + if (!common_Inner_alias_bounded_wstring_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; + ann_custom_Inner_alias_bounded_wstring_helper.reset(); + CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, + member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); + CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, + header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, + type_name_Inner_alias_bounded_wstring_helper.to_string(), type_ids_Inner_alias_bounded_wstring_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_Inner_alias_array_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_array_helper) +{ + ReturnCode_t return_code_Inner_alias_array_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_array_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_array_helper", type_ids_Inner_alias_array_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_array_helper) + { + AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; + QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; + eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; + eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; + CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); + CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); + AliasMemberFlag related_flags_Inner_alias_array_helper = 0; + return_code_Inner_alias_array_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_2", type_ids_Inner_alias_array_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_array_helper) + { + return_code_Inner_alias_array_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Inner_alias_array_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_array_helper) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_array_int16_t_2_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_array_helper, element_identifier_anonymous_array_int16_t_2_ec))}; + if (!element_identifier_anonymous_array_int16_t_2_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; + if (TK_NONE == type_ids_Inner_alias_array_helper.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2", type_ids_Inner_alias_array_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_Inner_alias_array_helper_ec {false}; + CommonAliasBody common_Inner_alias_array_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_array_helper, common_Inner_alias_array_helper_ec))}; + if (!common_Inner_alias_array_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inner_alias_array_helper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; + ann_custom_Inner_alias_array_helper.reset(); + CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, + member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); + CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, + header_Inner_alias_array_helper, body_Inner_alias_array_helper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, + type_name_Inner_alias_array_helper.to_string(), type_ids_Inner_alias_array_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_Inner_alias_sequence_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_sequence_helper) +{ + ReturnCode_t return_code_Inner_alias_sequence_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_sequence_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_sequence_helper", type_ids_Inner_alias_sequence_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_sequence_helper) + { + AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; + QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; + eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; + eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; + CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); + CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); + AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; + return_code_Inner_alias_sequence_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_Inner_alias_sequence_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_sequence_helper) + { + return_code_Inner_alias_sequence_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_Inner_alias_sequence_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_sequence_helper) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_sequence_helper, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_Inner_alias_sequence_helper.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_Inner_alias_sequence_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_Inner_alias_sequence_helper_ec {false}; + CommonAliasBody common_Inner_alias_sequence_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_sequence_helper, common_Inner_alias_sequence_helper_ec))}; + if (!common_Inner_alias_sequence_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; + ann_custom_Inner_alias_sequence_helper.reset(); + CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, + member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); + CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, + header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, + type_name_Inner_alias_sequence_helper.to_string(), type_ids_Inner_alias_sequence_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_Inner_alias_map_helper_type_identifier( + TypeIdentifierPair& type_ids_Inner_alias_map_helper) +{ + ReturnCode_t return_code_Inner_alias_map_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Inner_alias_map_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_map_helper", type_ids_Inner_alias_map_helper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_map_helper) + { + AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; + QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; + eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; + eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; + CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); + CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); + AliasMemberFlag related_flags_Inner_alias_map_helper = 0; + return_code_Inner_alias_map_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_int32_t_int32_t_unbounded", type_ids_Inner_alias_map_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_map_helper) + { + return_code_Inner_alias_map_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Inner_alias_map_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_map_helper) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Map element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_map_helper, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_Inner_alias_map_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_Inner_alias_map_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Inner_alias_map_helper) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Map key TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_map_helper, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); + return; + } + EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; + if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || + (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || + (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) + { + equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; + } + CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; + CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); + { + SBound bound = 0; + PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, + eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_Inner_alias_map_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + } + bool common_Inner_alias_map_helper_ec {false}; + CommonAliasBody common_Inner_alias_map_helper {TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Inner_alias_map_helper, common_Inner_alias_map_helper_ec))}; + if (!common_Inner_alias_map_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Inner_alias_map_helper related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; + ann_custom_Inner_alias_map_helper.reset(); + CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, + member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); + CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, + header_Inner_alias_map_helper, body_Inner_alias_map_helper); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, + type_name_Inner_alias_map_helper.to_string(), type_ids_Inner_alias_map_helper)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_inner_structure_helper_alias_type_identifier( + TypeIdentifierPair& type_ids_inner_structure_helper_alias) +{ + ReturnCode_t return_code_inner_structure_helper_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_inner_structure_helper_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "inner_structure_helper_alias", type_ids_inner_structure_helper_alias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_inner_structure_helper_alias) + { + AliasTypeFlag alias_flags_inner_structure_helper_alias = 0; + QualifiedTypeName type_name_inner_structure_helper_alias = "inner_structure_helper_alias"; + eprosima::fastcdr::optional type_ann_builtin_inner_structure_helper_alias; + eprosima::fastcdr::optional ann_custom_inner_structure_helper_alias; + CompleteTypeDetail detail_inner_structure_helper_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias, type_name_inner_structure_helper_alias.to_string()); + CompleteAliasHeader header_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_header(detail_inner_structure_helper_alias); + AliasMemberFlag related_flags_inner_structure_helper_alias = 0; + return_code_inner_structure_helper_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelper", type_ids_inner_structure_helper_alias); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_inner_structure_helper_alias) + { + ::register_InnerStructureHelper_type_identifier(type_ids_inner_structure_helper_alias); + } + bool common_inner_structure_helper_alias_ec {false}; + CommonAliasBody common_inner_structure_helper_alias {TypeObjectUtils::build_common_alias_body(related_flags_inner_structure_helper_alias, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_inner_structure_helper_alias, common_inner_structure_helper_alias_ec))}; + if (!common_inner_structure_helper_alias_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "inner_structure_helper_alias related TypeIdentifier inconsistent."); + return; + } + eprosima::fastcdr::optional member_ann_builtin_inner_structure_helper_alias; + ann_custom_inner_structure_helper_alias.reset(); + CompleteAliasBody body_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_body(common_inner_structure_helper_alias, + member_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias); + CompleteAliasType alias_type_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_inner_structure_helper_alias, + header_inner_structure_helper_alias, body_inner_structure_helper_alias); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_inner_structure_helper_alias, + type_name_inner_structure_helper_alias.to_string(), type_ids_inner_structure_helper_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); + "inner_structure_helper_alias already registered in TypeObjectRegistry for a different type."); + } + } +} + +void register_inner_bitset_helper_alias_type_identifier( + TypeIdentifierPair& type_ids_inner_bitset_helper_alias) +{ + ReturnCode_t return_code_inner_bitset_helper_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_inner_bitset_helper_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "inner_bitset_helper_alias", type_ids_inner_bitset_helper_alias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_inner_bitset_helper_alias) + { + AliasTypeFlag alias_flags_inner_bitset_helper_alias = 0; + QualifiedTypeName type_name_inner_bitset_helper_alias = "inner_bitset_helper_alias"; + eprosima::fastcdr::optional type_ann_builtin_inner_bitset_helper_alias; + eprosima::fastcdr::optional ann_custom_inner_bitset_helper_alias; + CompleteTypeDetail detail_inner_bitset_helper_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_inner_bitset_helper_alias, ann_custom_inner_bitset_helper_alias, type_name_inner_bitset_helper_alias.to_string()); + CompleteAliasHeader header_inner_bitset_helper_alias = TypeObjectUtils::build_complete_alias_header(detail_inner_bitset_helper_alias); + AliasMemberFlag related_flags_inner_bitset_helper_alias = 0; + return_code_inner_bitset_helper_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelper", type_ids_inner_bitset_helper_alias); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_inner_bitset_helper_alias) + { + ::register_InnerBitsetHelper_type_identifier(type_ids_inner_bitset_helper_alias); + } + bool common_inner_bitset_helper_alias_ec {false}; + CommonAliasBody common_inner_bitset_helper_alias {TypeObjectUtils::build_common_alias_body(related_flags_inner_bitset_helper_alias, + TypeObjectUtils::retrieve_complete_type_identifier(type_ids_inner_bitset_helper_alias, common_inner_bitset_helper_alias_ec))}; + if (!common_inner_bitset_helper_alias_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "inner_bitset_helper_alias related TypeIdentifier inconsistent."); return; } + eprosima::fastcdr::optional member_ann_builtin_inner_bitset_helper_alias; + ann_custom_inner_bitset_helper_alias.reset(); + CompleteAliasBody body_inner_bitset_helper_alias = TypeObjectUtils::build_complete_alias_body(common_inner_bitset_helper_alias, + member_ann_builtin_inner_bitset_helper_alias, ann_custom_inner_bitset_helper_alias); + CompleteAliasType alias_type_inner_bitset_helper_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_inner_bitset_helper_alias, + header_inner_bitset_helper_alias, body_inner_bitset_helper_alias); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_alias_type_object(alias_type_inner_bitset_helper_alias, + type_name_inner_bitset_helper_alias.to_string(), type_ids_inner_bitset_helper_alias)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "inner_bitset_helper_alias already registered in TypeObjectRegistry for a different type."); + } } } + diff --git a/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.hpp b/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.hpp index a7e0cfb97c1..3846a5fa21d 100644 --- a/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.hpp +++ b/test/dds-types-test/helpers/basic_inner_typesTypeObjectSupport.hpp @@ -35,12 +35,57 @@ #define eProsima_user_DllExport #endif // _WIN32 +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register InnerEnumHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerEnumHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. + * @brief Register InnerBitMaskHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerBitMaskHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerBoundedBitMaskHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerBoundedBitMaskHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerAliasHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_basic_inner_types_type_objects(); +eProsima_user_DllExport void register_InnerAliasHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** * @brief Register InnerStructureHelper related TypeIdentifier. @@ -53,7 +98,7 @@ eProsima_user_DllExport void register_basic_inner_types_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerEmptyStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +110,7 @@ eProsima_user_DllExport void register_InnerStructureHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerEmptyStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -77,7 +122,117 @@ eProsima_user_DllExport void register_InnerEmptyStructureHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerBitsetHelper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerBitsetHelper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register Inner_alias_bounded_string_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Inner_alias_bounded_string_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register Inner_alias_bounded_wstring_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Inner_alias_bounded_wstring_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register Inner_alias_array_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Inner_alias_array_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register Inner_alias_sequence_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Inner_alias_sequence_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register Inner_alias_map_helper related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Inner_alias_map_helper_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register inner_structure_helper_alias related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_inner_structure_helper_alias_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +/** + * @brief Register inner_bitset_helper_alias related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_inner_bitset_helper_alias_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/inheritancePubSubTypes.cxx b/test/dds-types-test/inheritancePubSubTypes.cxx index 0533b3d8de9..60d1fd03024 100644 --- a/test/dds-types-test/inheritancePubSubTypes.cxx +++ b/test/dds-types-test/inheritancePubSubTypes.cxx @@ -219,9 +219,9 @@ bool InnerStructureHelperChildPubSubType::getKey( return true; } -void InnerStructureHelperChildPubSubType::register_type_object_representation() const +void InnerStructureHelperChildPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_InnerStructureHelperChild_type_identifier(type_identifiers_); } InnerStructureHelperChildChildPubSubType::InnerStructureHelperChildChildPubSubType() @@ -412,9 +412,9 @@ bool InnerStructureHelperChildChildPubSubType::getKey( return true; } -void InnerStructureHelperChildChildPubSubType::register_type_object_representation() const +void InnerStructureHelperChildChildPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_InnerStructureHelperChildChild_type_identifier(type_identifiers_); } InnerStructureHelperEmptyChildPubSubType::InnerStructureHelperEmptyChildPubSubType() @@ -605,9 +605,9 @@ bool InnerStructureHelperEmptyChildPubSubType::getKey( return true; } -void InnerStructureHelperEmptyChildPubSubType::register_type_object_representation() const +void InnerStructureHelperEmptyChildPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_InnerStructureHelperEmptyChild_type_identifier(type_identifiers_); } InnerStructureHelperEmptyChildChildPubSubType::InnerStructureHelperEmptyChildChildPubSubType() @@ -798,9 +798,9 @@ bool InnerStructureHelperEmptyChildChildPubSubType::getKey( return true; } -void InnerStructureHelperEmptyChildChildPubSubType::register_type_object_representation() const +void InnerStructureHelperEmptyChildChildPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_InnerStructureHelperEmptyChildChild_type_identifier(type_identifiers_); } InnerEmptyStructureHelperChildPubSubType::InnerEmptyStructureHelperChildPubSubType() @@ -991,9 +991,9 @@ bool InnerEmptyStructureHelperChildPubSubType::getKey( return true; } -void InnerEmptyStructureHelperChildPubSubType::register_type_object_representation() const +void InnerEmptyStructureHelperChildPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_InnerEmptyStructureHelperChild_type_identifier(type_identifiers_); } StructAliasInheritanceStructPubSubType::StructAliasInheritanceStructPubSubType() @@ -1184,9 +1184,9 @@ bool StructAliasInheritanceStructPubSubType::getKey( return true; } -void StructAliasInheritanceStructPubSubType::register_type_object_representation() const +void StructAliasInheritanceStructPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_StructAliasInheritanceStruct_type_identifier(type_identifiers_); } StructuresInheritanceStructPubSubType::StructuresInheritanceStructPubSubType() @@ -1377,9 +1377,9 @@ bool StructuresInheritanceStructPubSubType::getKey( return true; } -void StructuresInheritanceStructPubSubType::register_type_object_representation() const +void StructuresInheritanceStructPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_StructuresInheritanceStruct_type_identifier(type_identifiers_); } @@ -1573,9 +1573,9 @@ bool BitsetsChildInheritanceStructPubSubType::getKey( return true; } -void BitsetsChildInheritanceStructPubSubType::register_type_object_representation() const +void BitsetsChildInheritanceStructPubSubType::register_type_object_representation() { - register_inheritance_type_objects(); + register_BitsetsChildInheritanceStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/inheritancePubSubTypes.h b/test/dds-types-test/inheritancePubSubTypes.h index 9e9e2ebfa9a..3facbd34834 100644 --- a/test/dds-types-test/inheritancePubSubTypes.h +++ b/test/dds-types-test/inheritancePubSubTypes.h @@ -90,7 +90,7 @@ class InnerStructureHelperChildPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class InnerStructureHelperChildChildPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class InnerStructureHelperEmptyChildPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class InnerStructureHelperEmptyChildChildPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class InnerEmptyStructureHelperChildPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class StructAliasInheritanceStructPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class StructuresInheritanceStructPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -730,7 +730,7 @@ class BitsetsChildInheritanceStructPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/inheritanceTypeObjectSupport.cxx b/test/dds-types-test/inheritanceTypeObjectSupport.cxx index 64b5caaed6d..9dbab17bc21 100644 --- a/test/dds-types-test/inheritanceTypeObjectSupport.cxx +++ b/test/dds-types-test/inheritanceTypeObjectSupport.cxx @@ -39,223 +39,26 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_inheritance_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_InnerStructureHelperChild_type_identifier(type_id); - - register_InnerStructureHelperChildChild_type_identifier(type_id); - - register_InnerStructureHelperEmptyChild_type_identifier(type_id); - - register_InnerStructureHelperEmptyChildChild_type_identifier(type_id); - - register_InnerEmptyStructureHelperChild_type_identifier(type_id); - - register_StructAliasInheritanceStruct_type_identifier(type_id); - - register_StructuresInheritanceStruct_type_identifier(type_id); - - register_BitsetsChildInheritanceStruct_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructureHelperChild_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructureHelperChild) { + + ReturnCode_t return_code_InnerStructureHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructureHelperChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelperChild", type_ids_InnerStructureHelperChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructureHelperChild) { - StructTypeFlag struct_flags_InnerStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerStructureHelperChild; - TypeIdentifierPair type_ids_InnerStructureHelperChild; return_code_InnerStructureHelperChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelper", type_ids_InnerStructureHelperChild); if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperChild = type_ids_InnerStructureHelper; - } +::register_InnerStructureHelper_type_identifier(type_ids_InnerStructureHelperChild); } QualifiedTypeName type_name_InnerStructureHelperChild = "InnerStructureHelperChild"; eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChild; @@ -274,67 +77,30 @@ void register_InnerStructureHelperChild_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InnerStructureHelperChild; { - return_code_InnerStructureHelperChild = + TypeIdentifierPair type_ids_var_child_longlong; + ReturnCode_t return_code_var_child_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_child_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChild); + "_int64_t", type_ids_var_child_longlong); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_child_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_child_longlong; MemberId member_id_var_child_longlong = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_child_longlong_ec {false}; + CommonStructMember common_var_child_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_child_longlong, common_var_child_longlong_ec))}; + if (!common_var_child_longlong_ec) { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_child_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_child_longlong = "var_child_longlong"; @@ -345,62 +111,26 @@ void register_InnerStructureHelperChild_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_longlong); } { - return_code_InnerStructureHelperChild = + TypeIdentifierPair type_ids_var_child_ulonglong; + ReturnCode_t return_code_var_child_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_child_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChild); + "_uint64_t", type_ids_var_child_ulonglong); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_child_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_child_ulonglong; MemberId member_id_var_child_ulonglong = 0x00000003; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_child_ulonglong_ec {false}; + CommonStructMember common_var_child_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_child_ulonglong, common_var_child_ulonglong_ec))}; + if (!common_var_child_ulonglong_ec) { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_child_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_child_ulonglong = "var_child_ulonglong"; @@ -412,394 +142,33 @@ void register_InnerStructureHelperChild_type_identifier( } CompleteStructType struct_type_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChild, header_InnerStructureHelperChild, member_seq_InnerStructureHelperChild); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string(), type_ids_InnerStructureHelperChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperChild already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_InnerStructureHelperChild); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructureHelperChildChild_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructureHelperChildChild) { + + ReturnCode_t return_code_InnerStructureHelperChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructureHelperChildChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelperChildChild", type_ids_InnerStructureHelperChildChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructureHelperChildChild) { - StructTypeFlag struct_flags_InnerStructureHelperChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructureHelperChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerStructureHelperChildChild; - TypeIdentifierPair type_ids_InnerStructureHelperChildChild; return_code_InnerStructureHelperChildChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelperChild", type_ids_InnerStructureHelperChildChild); if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_InnerStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperChild; - TypeIdentifierPair type_ids_InnerStructureHelperChild; - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperChild = "InnerStructureHelperChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperChild; - CompleteTypeDetail detail_InnerStructureHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperChild, ann_custom_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string()); - CompleteStructHeader header_InnerStructureHelperChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier1(), detail_InnerStructureHelperChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier2(), detail_InnerStructureHelperChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperChild; - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_longlong; - MemberId member_id_var_child_longlong = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_longlong = "var_child_longlong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_longlong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_longlong = TypeObjectUtils::build_complete_member_detail(name_var_child_longlong, member_ann_builtin_var_child_longlong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_longlong = TypeObjectUtils::build_complete_struct_member(common_var_child_longlong, detail_var_child_longlong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_longlong); - } - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_ulonglong; - MemberId member_id_var_child_ulonglong = 0x00000003; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_ulonglong = "var_child_ulonglong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_ulonglong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_ulonglong = TypeObjectUtils::build_complete_member_detail(name_var_child_ulonglong, member_ann_builtin_var_child_ulonglong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_ulonglong = TypeObjectUtils::build_complete_struct_member(common_var_child_ulonglong, detail_var_child_ulonglong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_ulonglong); - } - CompleteStructType struct_type_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChild, header_InnerStructureHelperChild, member_seq_InnerStructureHelperChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_InnerStructureHelperChild); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChildChild = return_code_InnerStructureHelperChild; - type_ids_InnerStructureHelperChildChild = type_ids_InnerStructureHelperChild; - } +::register_InnerStructureHelperChild_type_identifier(type_ids_InnerStructureHelperChildChild); } QualifiedTypeName type_name_InnerStructureHelperChildChild = "InnerStructureHelperChildChild"; eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChildChild; @@ -818,67 +187,30 @@ void register_InnerStructureHelperChildChild_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperChildChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InnerStructureHelperChildChild; { - return_code_InnerStructureHelperChildChild = + TypeIdentifierPair type_ids_var_child_childlonglong2; + ReturnCode_t return_code_var_child_childlonglong2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_child_childlonglong2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChildChild); + "_int64_t", type_ids_var_child_childlonglong2); - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_child_childlonglong2) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_child_childlonglong2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_child_childlonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_child_childlonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_child_childlonglong2; MemberId member_id_var_child_childlonglong2 = 0x00000004; - if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_child_childlonglong2_ec {false}; + CommonStructMember common_var_child_childlonglong2 {TypeObjectUtils::build_common_struct_member(member_id_var_child_childlonglong2, member_flags_var_child_childlonglong2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_child_childlonglong2, common_var_child_childlonglong2_ec))}; + if (!common_var_child_childlonglong2_ec) { - common_var_child_childlonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_child_childlonglong2, member_flags_var_child_childlonglong2, type_ids_InnerStructureHelperChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_childlonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_child_childlonglong2, member_flags_var_child_childlonglong2, type_ids_InnerStructureHelperChildChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_childlonglong2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_child_childlonglong2 member TypeIdentifier inconsistent."); return; } MemberName name_var_child_childlonglong2 = "var_child_childlonglong2"; @@ -889,62 +221,26 @@ void register_InnerStructureHelperChildChild_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChildChild, member_var_child_childlonglong2); } { - return_code_InnerStructureHelperChildChild = + TypeIdentifierPair type_ids_var_childchild_ulonglong2; + ReturnCode_t return_code_var_childchild_ulonglong2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_childchild_ulonglong2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChildChild); + "_uint64_t", type_ids_var_childchild_ulonglong2); - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_childchild_ulonglong2) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_childchild_ulonglong2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_childchild_ulonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_childchild_ulonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_childchild_ulonglong2; MemberId member_id_var_childchild_ulonglong2 = 0x00000005; - if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_childchild_ulonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_childchild_ulonglong2, member_flags_var_childchild_ulonglong2, type_ids_InnerStructureHelperChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_childchild_ulonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_childchild_ulonglong2, member_flags_var_childchild_ulonglong2, type_ids_InnerStructureHelperChildChild.type_identifier2()); - } - else + bool common_var_childchild_ulonglong2_ec {false}; + CommonStructMember common_var_childchild_ulonglong2 {TypeObjectUtils::build_common_struct_member(member_id_var_childchild_ulonglong2, member_flags_var_childchild_ulonglong2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_childchild_ulonglong2, common_var_childchild_ulonglong2_ec))}; + if (!common_var_childchild_ulonglong2_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_childchild_ulonglong2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_childchild_ulonglong2 member TypeIdentifier inconsistent."); return; } MemberName name_var_childchild_ulonglong2 = "var_childchild_ulonglong2"; @@ -956,209 +252,33 @@ void register_InnerStructureHelperChildChild_type_identifier( } CompleteStructType struct_type_InnerStructureHelperChildChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChildChild, header_InnerStructureHelperChildChild, member_seq_InnerStructureHelperChildChild); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChildChild, type_name_InnerStructureHelperChildChild.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChildChild, type_name_InnerStructureHelperChildChild.to_string(), type_ids_InnerStructureHelperChildChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperChildChild already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructureHelperChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChildChild", type_ids_InnerStructureHelperChildChild); - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChildChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructureHelperEmptyChild_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructureHelperEmptyChild) { + + ReturnCode_t return_code_InnerStructureHelperEmptyChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructureHelperEmptyChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructureHelperEmptyChild) { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChild; return_code_InnerStructureHelperEmptyChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelper", type_ids_InnerStructureHelperEmptyChild); if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperEmptyChild = type_ids_InnerStructureHelper; - } +::register_InnerStructureHelper_type_identifier(type_ids_InnerStructureHelperEmptyChild); } QualifiedTypeName type_name_InnerStructureHelperEmptyChild = "InnerStructureHelperEmptyChild"; eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChild; @@ -1177,268 +297,38 @@ void register_InnerStructureHelperEmptyChild_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperEmptyChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChild; CompleteStructType struct_type_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChild, header_InnerStructureHelperEmptyChild, member_seq_InnerStructureHelperEmptyChild); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string(), type_ids_InnerStructureHelperEmptyChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperEmptyChild already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChild); - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructureHelperEmptyChildChild_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructureHelperEmptyChildChild) { + + ReturnCode_t return_code_InnerStructureHelperEmptyChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructureHelperEmptyChildChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructureHelperEmptyChildChild", type_ids_InnerStructureHelperEmptyChildChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructureHelperEmptyChildChild) { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChildChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChildChild; return_code_InnerStructureHelperEmptyChildChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChildChild); if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChild; - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperEmptyChild); - - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperEmptyChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperEmptyChild = "InnerStructureHelperEmptyChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperEmptyChild; - CompleteTypeDetail detail_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperEmptyChild, ann_custom_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string()); - CompleteStructHeader header_InnerStructureHelperEmptyChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier1()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier1(), detail_InnerStructureHelperEmptyChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier2()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier2(), detail_InnerStructureHelperEmptyChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChild; - CompleteStructType struct_type_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChild, header_InnerStructureHelperEmptyChild, member_seq_InnerStructureHelperEmptyChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChild); - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChildChild = return_code_InnerStructureHelperEmptyChild; - type_ids_InnerStructureHelperEmptyChildChild = type_ids_InnerStructureHelperEmptyChild; - } +::register_InnerStructureHelperEmptyChild_type_identifier(type_ids_InnerStructureHelperEmptyChildChild); } QualifiedTypeName type_name_InnerStructureHelperEmptyChildChild = "InnerStructureHelperEmptyChildChild"; eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChildChild; @@ -1457,67 +347,30 @@ void register_InnerStructureHelperEmptyChildChild_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperEmptyChildChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChildChild; { - return_code_InnerStructureHelperEmptyChildChild = + TypeIdentifierPair type_ids_var_char; + ReturnCode_t return_code_var_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_InnerStructureHelperEmptyChildChild); + "_char", type_ids_var_char); - if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char; MemberId member_id_var_char = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_char_ec {false}; + CommonStructMember common_var_char {TypeObjectUtils::build_common_struct_member(member_id_var_char, member_flags_var_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char, common_var_char_ec))}; + if (!common_var_char_ec) { - common_var_char = TypeObjectUtils::build_common_struct_member(member_id_var_char, member_flags_var_char, type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char = TypeObjectUtils::build_common_struct_member(member_id_var_char, member_flags_var_char, type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char member TypeIdentifier inconsistent."); return; } MemberName name_var_char = "var_char"; @@ -1529,77 +382,33 @@ void register_InnerStructureHelperEmptyChildChild_type_identifier( } CompleteStructType struct_type_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChildChild, header_InnerStructureHelperEmptyChildChild, member_seq_InnerStructureHelperEmptyChildChild); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChildChild, type_name_InnerStructureHelperEmptyChildChild.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChildChild, type_name_InnerStructureHelperEmptyChildChild.to_string(), type_ids_InnerStructureHelperEmptyChildChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructureHelperEmptyChildChild already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructureHelperEmptyChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChildChild", type_ids_InnerStructureHelperEmptyChildChild); - if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChildChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerEmptyStructureHelperChild_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerEmptyStructureHelperChild) { + + ReturnCode_t return_code_InnerEmptyStructureHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerEmptyStructureHelperChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerEmptyStructureHelperChild", type_ids_InnerEmptyStructureHelperChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerEmptyStructureHelperChild) { - StructTypeFlag struct_flags_InnerEmptyStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerEmptyStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerEmptyStructureHelperChild; - TypeIdentifierPair type_ids_InnerEmptyStructureHelperChild; return_code_InnerEmptyStructureHelperChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelperChild); if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerEmptyStructureHelperChild = return_code_InnerEmptyStructureHelper; - type_ids_InnerEmptyStructureHelperChild = type_ids_InnerEmptyStructureHelper; - } +::register_InnerEmptyStructureHelper_type_identifier(type_ids_InnerEmptyStructureHelperChild); } QualifiedTypeName type_name_InnerEmptyStructureHelperChild = "InnerEmptyStructureHelperChild"; eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelperChild; @@ -1618,67 +427,30 @@ void register_InnerEmptyStructureHelperChild_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerEmptyStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InnerEmptyStructureHelperChild; { - return_code_InnerEmptyStructureHelperChild = + TypeIdentifierPair type_ids_var_child_longlong; + ReturnCode_t return_code_var_child_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_child_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerEmptyStructureHelperChild); + "_int64_t", type_ids_var_child_longlong); - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_child_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_child_longlong; MemberId member_id_var_child_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerEmptyStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_child_longlong_ec {false}; + CommonStructMember common_var_child_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_child_longlong, common_var_child_longlong_ec))}; + if (!common_var_child_longlong_ec) { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerEmptyStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_child_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_child_longlong = "var_child_longlong"; @@ -1689,62 +461,26 @@ void register_InnerEmptyStructureHelperChild_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_InnerEmptyStructureHelperChild, member_var_child_longlong); } { - return_code_InnerEmptyStructureHelperChild = + TypeIdentifierPair type_ids_var_child_ulonglong; + ReturnCode_t return_code_var_child_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_child_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerEmptyStructureHelperChild); + "_uint64_t", type_ids_var_child_ulonglong); - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_child_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_child_ulonglong; MemberId member_id_var_child_ulonglong = 0x00000001; - if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerEmptyStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_child_ulonglong_ec {false}; + CommonStructMember common_var_child_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_child_ulonglong, common_var_child_ulonglong_ec))}; + if (!common_var_child_ulonglong_ec) { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerEmptyStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_child_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_child_ulonglong = "var_child_ulonglong"; @@ -1756,287 +492,33 @@ void register_InnerEmptyStructureHelperChild_type_identifier( } CompleteStructType struct_type_InnerEmptyStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelperChild, header_InnerEmptyStructureHelperChild, member_seq_InnerEmptyStructureHelperChild); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelperChild, type_name_InnerEmptyStructureHelperChild.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelperChild, type_name_InnerEmptyStructureHelperChild.to_string(), type_ids_InnerEmptyStructureHelperChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerEmptyStructureHelperChild already registered in TypeObjectRegistry for a different type."); } - return_code_InnerEmptyStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelperChild", type_ids_InnerEmptyStructureHelperChild); - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructAliasInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructAliasInheritanceStruct) { + + ReturnCode_t return_code_StructAliasInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructAliasInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructAliasInheritanceStruct", type_ids_StructAliasInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructAliasInheritanceStruct) { - StructTypeFlag struct_flags_StructAliasInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructAliasInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructAliasInheritanceStruct; - TypeIdentifierPair type_ids_StructAliasInheritanceStruct; return_code_StructAliasInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "inner_structure_helper_alias", type_ids_StructAliasInheritanceStruct); if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - AliasTypeFlag alias_flags_inner_structure_helper_alias = 0; - QualifiedTypeName type_name_inner_structure_helper_alias = "inner_structure_helper_alias"; - eprosima::fastcdr::optional type_ann_builtin_inner_structure_helper_alias; - eprosima::fastcdr::optional ann_custom_inner_structure_helper_alias; - CompleteTypeDetail detail_inner_structure_helper_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias, type_name_inner_structure_helper_alias.to_string()); - CompleteAliasHeader header_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_header(detail_inner_structure_helper_alias); - AliasMemberFlag related_flags_inner_structure_helper_alias = 0; - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_StructAliasInheritanceStruct); - - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructAliasInheritanceStruct = return_code_InnerStructureHelper; - type_ids_StructAliasInheritanceStruct = type_ids_InnerStructureHelper; - } - } - CommonAliasBody common_inner_structure_helper_alias; - if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inner_structure_helper_alias = TypeObjectUtils::build_common_alias_body(related_flags_inner_structure_helper_alias, type_ids_StructAliasInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inner_structure_helper_alias = TypeObjectUtils::build_common_alias_body(related_flags_inner_structure_helper_alias, type_ids_StructAliasInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_inner_structure_helper_alias; - ann_custom_inner_structure_helper_alias.reset(); - CompleteAliasBody body_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_body(common_inner_structure_helper_alias, member_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias); - CompleteAliasType alias_type_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_inner_structure_helper_alias, header_inner_structure_helper_alias, body_inner_structure_helper_alias); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_inner_structure_helper_alias, type_name_inner_structure_helper_alias.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "inner_structure_helper_alias", type_ids_StructAliasInheritanceStruct); - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } +::register_inner_structure_helper_alias_type_identifier(type_ids_StructAliasInheritanceStruct); } QualifiedTypeName type_name_StructAliasInheritanceStruct = "StructAliasInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_StructAliasInheritanceStruct; @@ -2055,67 +537,30 @@ void register_StructAliasInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructAliasInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_StructAliasInheritanceStruct; { - return_code_StructAliasInheritanceStruct = + TypeIdentifierPair type_ids_new_member; + ReturnCode_t return_code_new_member {eprosima::fastdds::dds::RETCODE_OK}; + return_code_new_member = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructAliasInheritanceStruct); + "_int16_t", type_ids_new_member); - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_new_member) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "new_member Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_new_member = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_new_member = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_new_member; MemberId member_id_new_member = 0x00000002; - if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_new_member_ec {false}; + CommonStructMember common_new_member {TypeObjectUtils::build_common_struct_member(member_id_new_member, member_flags_new_member, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_new_member, common_new_member_ec))}; + if (!common_new_member_ec) { - common_new_member = TypeObjectUtils::build_common_struct_member(member_id_new_member, member_flags_new_member, type_ids_StructAliasInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_new_member = TypeObjectUtils::build_common_struct_member(member_id_new_member, member_flags_new_member, type_ids_StructAliasInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure new_member member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure new_member member TypeIdentifier inconsistent."); return; } MemberName name_new_member = "new_member"; @@ -2127,32 +572,26 @@ void register_StructAliasInheritanceStruct_type_identifier( } CompleteStructType struct_type_StructAliasInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_StructAliasInheritanceStruct, header_StructAliasInheritanceStruct, member_seq_StructAliasInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAliasInheritanceStruct, type_name_StructAliasInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAliasInheritanceStruct, type_name_StructAliasInheritanceStruct.to_string(), type_ids_StructAliasInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructAliasInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAliasInheritanceStruct", type_ids_StructAliasInheritanceStruct); - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAliasInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructuresInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructuresInheritanceStruct) { + + ReturnCode_t return_code_StructuresInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructuresInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructuresInheritanceStruct", type_ids_StructuresInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructuresInheritanceStruct) { - StructTypeFlag struct_flags_StructuresInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructuresInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructuresInheritanceStruct; - TypeIdentifierPair type_ids_StructuresInheritanceStruct; QualifiedTypeName type_name_StructuresInheritanceStruct = "StructuresInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_StructuresInheritanceStruct; eprosima::fastcdr::optional ann_custom_StructuresInheritanceStruct; @@ -2161,414 +600,24 @@ void register_StructuresInheritanceStruct_type_identifier( header_StructuresInheritanceStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructuresInheritanceStruct); CompleteStructMemberSeq member_seq_StructuresInheritanceStruct; { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerStructureHelperChild; + ReturnCode_t return_code_var_InnerStructureHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerStructureHelperChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_StructuresInheritanceStruct); + "InnerStructureHelperChild", type_ids_var_InnerStructureHelperChild); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerStructureHelperChild) { - { - StructTypeFlag struct_flags_InnerStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperChild; - TypeIdentifierPair type_ids_InnerStructureHelperChild; - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperChild = "InnerStructureHelperChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperChild; - CompleteTypeDetail detail_InnerStructureHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperChild, ann_custom_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string()); - CompleteStructHeader header_InnerStructureHelperChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier1(), detail_InnerStructureHelperChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier2(), detail_InnerStructureHelperChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperChild; - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_longlong; - MemberId member_id_var_child_longlong = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_longlong = "var_child_longlong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_longlong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_longlong = TypeObjectUtils::build_complete_member_detail(name_var_child_longlong, member_ann_builtin_var_child_longlong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_longlong = TypeObjectUtils::build_complete_struct_member(common_var_child_longlong, detail_var_child_longlong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_longlong); - } - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_ulonglong; - MemberId member_id_var_child_ulonglong = 0x00000003; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_ulonglong = "var_child_ulonglong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_ulonglong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_ulonglong = TypeObjectUtils::build_complete_member_detail(name_var_child_ulonglong, member_ann_builtin_var_child_ulonglong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_ulonglong = TypeObjectUtils::build_complete_struct_member(common_var_child_ulonglong, detail_var_child_ulonglong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_ulonglong); - } - CompleteStructType struct_type_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChild, header_InnerStructureHelperChild, member_seq_InnerStructureHelperChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_InnerStructureHelperChild); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_InnerStructureHelperChild; - type_ids_StructuresInheritanceStruct = type_ids_InnerStructureHelperChild; - } + ::register_InnerStructureHelperChild_type_identifier(type_ids_var_InnerStructureHelperChild); } - StructMemberFlag member_flags_var_InnerStructureHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerStructureHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerStructureHelperChild; MemberId member_id_var_InnerStructureHelperChild = 0x00000000; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerStructureHelperChild_ec {false}; + CommonStructMember common_var_InnerStructureHelperChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChild, member_flags_var_InnerStructureHelperChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerStructureHelperChild, common_var_InnerStructureHelperChild_ec))}; + if (!common_var_InnerStructureHelperChild_ec) { - common_var_InnerStructureHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChild, member_flags_var_InnerStructureHelperChild, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerStructureHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChild, member_flags_var_InnerStructureHelperChild, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerStructureHelperChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerStructureHelperChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerStructureHelperChild = "var_InnerStructureHelperChild"; @@ -2579,599 +628,24 @@ void register_StructuresInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructuresInheritanceStruct, member_var_InnerStructureHelperChild); } { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerStructureHelperChildChild; + ReturnCode_t return_code_var_InnerStructureHelperChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerStructureHelperChildChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChildChild", type_ids_StructuresInheritanceStruct); + "InnerStructureHelperChildChild", type_ids_var_InnerStructureHelperChildChild); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerStructureHelperChildChild) { - { - StructTypeFlag struct_flags_InnerStructureHelperChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperChildChild; - TypeIdentifierPair type_ids_InnerStructureHelperChildChild; - return_code_InnerStructureHelperChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_InnerStructureHelperChildChild); - - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperChild; - TypeIdentifierPair type_ids_InnerStructureHelperChild; - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperChild = "InnerStructureHelperChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperChild; - CompleteTypeDetail detail_InnerStructureHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperChild, ann_custom_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string()); - CompleteStructHeader header_InnerStructureHelperChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier1(), detail_InnerStructureHelperChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d()) - { - header_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChild.type_identifier2(), detail_InnerStructureHelperChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperChild; - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_longlong; - MemberId member_id_var_child_longlong = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_longlong = "var_child_longlong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_longlong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_longlong = TypeObjectUtils::build_complete_member_detail(name_var_child_longlong, member_ann_builtin_var_child_longlong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_longlong = TypeObjectUtils::build_complete_struct_member(common_var_child_longlong, detail_var_child_longlong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_longlong); - } - { - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChild); - - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_ulonglong; - MemberId member_id_var_child_ulonglong = 0x00000003; - if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_ulonglong = "var_child_ulonglong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_ulonglong; - ann_custom_InnerStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_ulonglong = TypeObjectUtils::build_complete_member_detail(name_var_child_ulonglong, member_ann_builtin_var_child_ulonglong, ann_custom_InnerStructureHelperChild); - CompleteStructMember member_var_child_ulonglong = TypeObjectUtils::build_complete_struct_member(common_var_child_ulonglong, detail_var_child_ulonglong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChild, member_var_child_ulonglong); - } - CompleteStructType struct_type_InnerStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChild, header_InnerStructureHelperChild, member_seq_InnerStructureHelperChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChild, type_name_InnerStructureHelperChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChild", type_ids_InnerStructureHelperChild); - if (return_code_InnerStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperChildChild = return_code_InnerStructureHelperChild; - type_ids_InnerStructureHelperChildChild = type_ids_InnerStructureHelperChild; - } - } - QualifiedTypeName type_name_InnerStructureHelperChildChild = "InnerStructureHelperChildChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperChildChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperChildChild; - CompleteTypeDetail detail_InnerStructureHelperChildChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperChildChild, ann_custom_InnerStructureHelperChildChild, type_name_InnerStructureHelperChildChild.to_string()); - CompleteStructHeader header_InnerStructureHelperChildChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d()) - { - header_InnerStructureHelperChildChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChildChild.type_identifier1(), detail_InnerStructureHelperChildChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d()) - { - header_InnerStructureHelperChildChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperChildChild.type_identifier2(), detail_InnerStructureHelperChildChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChildChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperChildChild; - { - return_code_InnerStructureHelperChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerStructureHelperChildChild); - - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_childlonglong2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_childlonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_childlonglong2; - MemberId member_id_var_child_childlonglong2 = 0x00000004; - if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_childlonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_child_childlonglong2, member_flags_var_child_childlonglong2, type_ids_InnerStructureHelperChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_childlonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_child_childlonglong2, member_flags_var_child_childlonglong2, type_ids_InnerStructureHelperChildChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_childlonglong2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_childlonglong2 = "var_child_childlonglong2"; - eprosima::fastcdr::optional member_ann_builtin_var_child_childlonglong2; - ann_custom_InnerStructureHelperChildChild.reset(); - CompleteMemberDetail detail_var_child_childlonglong2 = TypeObjectUtils::build_complete_member_detail(name_var_child_childlonglong2, member_ann_builtin_var_child_childlonglong2, ann_custom_InnerStructureHelperChildChild); - CompleteStructMember member_var_child_childlonglong2 = TypeObjectUtils::build_complete_struct_member(common_var_child_childlonglong2, detail_var_child_childlonglong2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChildChild, member_var_child_childlonglong2); - } - { - return_code_InnerStructureHelperChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerStructureHelperChildChild); - - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_childchild_ulonglong2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_childchild_ulonglong2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_childchild_ulonglong2; - MemberId member_id_var_childchild_ulonglong2 = 0x00000005; - if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_childchild_ulonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_childchild_ulonglong2, member_flags_var_childchild_ulonglong2, type_ids_InnerStructureHelperChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_childchild_ulonglong2 = TypeObjectUtils::build_common_struct_member(member_id_var_childchild_ulonglong2, member_flags_var_childchild_ulonglong2, type_ids_InnerStructureHelperChildChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_childchild_ulonglong2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_childchild_ulonglong2 = "var_childchild_ulonglong2"; - eprosima::fastcdr::optional member_ann_builtin_var_childchild_ulonglong2; - ann_custom_InnerStructureHelperChildChild.reset(); - CompleteMemberDetail detail_var_childchild_ulonglong2 = TypeObjectUtils::build_complete_member_detail(name_var_childchild_ulonglong2, member_ann_builtin_var_childchild_ulonglong2, ann_custom_InnerStructureHelperChildChild); - CompleteStructMember member_var_childchild_ulonglong2 = TypeObjectUtils::build_complete_struct_member(common_var_childchild_ulonglong2, detail_var_childchild_ulonglong2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperChildChild, member_var_childchild_ulonglong2); - } - CompleteStructType struct_type_InnerStructureHelperChildChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperChildChild, header_InnerStructureHelperChildChild, member_seq_InnerStructureHelperChildChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperChildChild, type_name_InnerStructureHelperChildChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChildChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperChildChild", type_ids_InnerStructureHelperChildChild); - if (return_code_InnerStructureHelperChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperChildChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_InnerStructureHelperChildChild; - type_ids_StructuresInheritanceStruct = type_ids_InnerStructureHelperChildChild; - } + ::register_InnerStructureHelperChildChild_type_identifier(type_ids_var_InnerStructureHelperChildChild); } - StructMemberFlag member_flags_var_InnerStructureHelperChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerStructureHelperChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerStructureHelperChildChild; MemberId member_id_var_InnerStructureHelperChildChild = 0x00000001; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerStructureHelperChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChildChild, member_flags_var_InnerStructureHelperChildChild, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerStructureHelperChildChild_ec {false}; + CommonStructMember common_var_InnerStructureHelperChildChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChildChild, member_flags_var_InnerStructureHelperChildChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerStructureHelperChildChild, common_var_InnerStructureHelperChildChild_ec))}; + if (!common_var_InnerStructureHelperChildChild_ec) { - common_var_InnerStructureHelperChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperChildChild, member_flags_var_InnerStructureHelperChildChild, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerStructureHelperChildChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerStructureHelperChildChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerStructureHelperChildChild = "var_InnerStructureHelperChildChild"; @@ -3182,282 +656,24 @@ void register_StructuresInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructuresInheritanceStruct, member_var_InnerStructureHelperChildChild); } { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerStructureHelperEmptyChild; + ReturnCode_t return_code_var_InnerStructureHelperEmptyChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerStructureHelperEmptyChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_StructuresInheritanceStruct); + "InnerStructureHelperEmptyChild", type_ids_var_InnerStructureHelperEmptyChild); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerStructureHelperEmptyChild) { - { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChild; - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperEmptyChild); - - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperEmptyChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperEmptyChild = "InnerStructureHelperEmptyChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperEmptyChild; - CompleteTypeDetail detail_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperEmptyChild, ann_custom_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string()); - CompleteStructHeader header_InnerStructureHelperEmptyChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier1()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier1(), detail_InnerStructureHelperEmptyChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier2()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier2(), detail_InnerStructureHelperEmptyChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChild; - CompleteStructType struct_type_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChild, header_InnerStructureHelperEmptyChild, member_seq_InnerStructureHelperEmptyChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChild); - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_InnerStructureHelperEmptyChild; - type_ids_StructuresInheritanceStruct = type_ids_InnerStructureHelperEmptyChild; - } + ::register_InnerStructureHelperEmptyChild_type_identifier(type_ids_var_InnerStructureHelperEmptyChild); } - StructMemberFlag member_flags_var_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerStructureHelperEmptyChild; MemberId member_id_var_InnerStructureHelperEmptyChild = 0x00000002; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerStructureHelperEmptyChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChild, member_flags_var_InnerStructureHelperEmptyChild, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerStructureHelperEmptyChild_ec {false}; + CommonStructMember common_var_InnerStructureHelperEmptyChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChild, member_flags_var_InnerStructureHelperEmptyChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerStructureHelperEmptyChild, common_var_InnerStructureHelperEmptyChild_ec))}; + if (!common_var_InnerStructureHelperEmptyChild_ec) { - common_var_InnerStructureHelperEmptyChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChild, member_flags_var_InnerStructureHelperEmptyChild, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerStructureHelperEmptyChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerStructureHelperEmptyChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerStructureHelperEmptyChild = "var_InnerStructureHelperEmptyChild"; @@ -3468,401 +684,24 @@ void register_StructuresInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructuresInheritanceStruct, member_var_InnerStructureHelperEmptyChild); } { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerStructureHelperEmptyChildChild; + ReturnCode_t return_code_var_InnerStructureHelperEmptyChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerStructureHelperEmptyChildChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChildChild", type_ids_StructuresInheritanceStruct); + "InnerStructureHelperEmptyChildChild", type_ids_var_InnerStructureHelperEmptyChildChild); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerStructureHelperEmptyChildChild) { - { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChildChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChildChild; - return_code_InnerStructureHelperEmptyChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChildChild); - - if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelperEmptyChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructureHelperEmptyChild; - TypeIdentifierPair type_ids_InnerStructureHelperEmptyChild; - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelperEmptyChild); - - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChild = return_code_InnerStructureHelper; - type_ids_InnerStructureHelperEmptyChild = type_ids_InnerStructureHelper; - } - } - QualifiedTypeName type_name_InnerStructureHelperEmptyChild = "InnerStructureHelperEmptyChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperEmptyChild; - CompleteTypeDetail detail_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperEmptyChild, ann_custom_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string()); - CompleteStructHeader header_InnerStructureHelperEmptyChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier1()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier1(), detail_InnerStructureHelperEmptyChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChild.type_identifier2()._d()) - { - header_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChild.type_identifier2(), detail_InnerStructureHelperEmptyChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChild; - CompleteStructType struct_type_InnerStructureHelperEmptyChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChild, header_InnerStructureHelperEmptyChild, member_seq_InnerStructureHelperEmptyChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChild, type_name_InnerStructureHelperEmptyChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperEmptyChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChild", type_ids_InnerStructureHelperEmptyChild); - if (return_code_InnerStructureHelperEmptyChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerStructureHelperEmptyChildChild = return_code_InnerStructureHelperEmptyChild; - type_ids_InnerStructureHelperEmptyChildChild = type_ids_InnerStructureHelperEmptyChild; - } - } - QualifiedTypeName type_name_InnerStructureHelperEmptyChildChild = "InnerStructureHelperEmptyChildChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelperEmptyChildChild; - eprosima::fastcdr::optional ann_custom_InnerStructureHelperEmptyChildChild; - CompleteTypeDetail detail_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelperEmptyChildChild, ann_custom_InnerStructureHelperEmptyChildChild, type_name_InnerStructureHelperEmptyChildChild.to_string()); - CompleteStructHeader header_InnerStructureHelperEmptyChildChild; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d()) - { - header_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChildChild.type_identifier1(), detail_InnerStructureHelperEmptyChildChild); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d()) - { - header_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerStructureHelperEmptyChildChild.type_identifier2(), detail_InnerStructureHelperEmptyChildChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChildChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerStructureHelperEmptyChildChild; - { - return_code_InnerStructureHelperEmptyChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_InnerStructureHelperEmptyChildChild); - - if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_char; - MemberId member_id_var_char = 0x00000002; - if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char = TypeObjectUtils::build_common_struct_member(member_id_var_char, member_flags_var_char, type_ids_InnerStructureHelperEmptyChildChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelperEmptyChildChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char = TypeObjectUtils::build_common_struct_member(member_id_var_char, member_flags_var_char, type_ids_InnerStructureHelperEmptyChildChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char = "var_char"; - eprosima::fastcdr::optional member_ann_builtin_var_char; - ann_custom_InnerStructureHelperEmptyChildChild.reset(); - CompleteMemberDetail detail_var_char = TypeObjectUtils::build_complete_member_detail(name_var_char, member_ann_builtin_var_char, ann_custom_InnerStructureHelperEmptyChildChild); - CompleteStructMember member_var_char = TypeObjectUtils::build_complete_struct_member(common_var_char, detail_var_char); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelperEmptyChildChild, member_var_char); - } - CompleteStructType struct_type_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelperEmptyChildChild, header_InnerStructureHelperEmptyChildChild, member_seq_InnerStructureHelperEmptyChildChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelperEmptyChildChild, type_name_InnerStructureHelperEmptyChildChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChildChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelperEmptyChildChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelperEmptyChildChild", type_ids_InnerStructureHelperEmptyChildChild); - if (return_code_InnerStructureHelperEmptyChildChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelperEmptyChildChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_InnerStructureHelperEmptyChildChild; - type_ids_StructuresInheritanceStruct = type_ids_InnerStructureHelperEmptyChildChild; - } + ::register_InnerStructureHelperEmptyChildChild_type_identifier(type_ids_var_InnerStructureHelperEmptyChildChild); } - StructMemberFlag member_flags_var_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerStructureHelperEmptyChildChild; MemberId member_id_var_InnerStructureHelperEmptyChildChild = 0x00000003; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerStructureHelperEmptyChildChild_ec {false}; + CommonStructMember common_var_InnerStructureHelperEmptyChildChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChildChild, member_flags_var_InnerStructureHelperEmptyChildChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerStructureHelperEmptyChildChild, common_var_InnerStructureHelperEmptyChildChild_ec))}; + if (!common_var_InnerStructureHelperEmptyChildChild_ec) { - common_var_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChildChild, member_flags_var_InnerStructureHelperEmptyChildChild, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerStructureHelperEmptyChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerStructureHelperEmptyChildChild, member_flags_var_InnerStructureHelperEmptyChildChild, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerStructureHelperEmptyChildChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerStructureHelperEmptyChildChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerStructureHelperEmptyChildChild = "var_InnerStructureHelperEmptyChildChild"; @@ -3873,282 +712,24 @@ void register_StructuresInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructuresInheritanceStruct, member_var_InnerStructureHelperEmptyChildChild); } { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerEmptyStructureHelperChild; + ReturnCode_t return_code_var_InnerEmptyStructureHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerEmptyStructureHelperChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelperChild", type_ids_StructuresInheritanceStruct); + "InnerEmptyStructureHelperChild", type_ids_var_InnerEmptyStructureHelperChild); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerEmptyStructureHelperChild) { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelperChild = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerEmptyStructureHelperChild; - TypeIdentifierPair type_ids_InnerEmptyStructureHelperChild; - return_code_InnerEmptyStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelperChild); - - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InnerEmptyStructureHelperChild = return_code_InnerEmptyStructureHelper; - type_ids_InnerEmptyStructureHelperChild = type_ids_InnerEmptyStructureHelper; - } - } - QualifiedTypeName type_name_InnerEmptyStructureHelperChild = "InnerEmptyStructureHelperChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelperChild; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelperChild; - CompleteTypeDetail detail_InnerEmptyStructureHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelperChild, ann_custom_InnerEmptyStructureHelperChild, type_name_InnerEmptyStructureHelperChild.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelperChild; - if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d()) - { - header_InnerEmptyStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerEmptyStructureHelperChild.type_identifier1(), detail_InnerEmptyStructureHelperChild); - } - else if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d()) - { - header_InnerEmptyStructureHelperChild = TypeObjectUtils::build_complete_struct_header(type_ids_InnerEmptyStructureHelperChild.type_identifier2(), detail_InnerEmptyStructureHelperChild); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelperChild Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelperChild; - { - return_code_InnerEmptyStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_InnerEmptyStructureHelperChild); - - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_longlong; - MemberId member_id_var_child_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerEmptyStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_child_longlong, member_flags_var_child_longlong, type_ids_InnerEmptyStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_longlong = "var_child_longlong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_longlong; - ann_custom_InnerEmptyStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_longlong = TypeObjectUtils::build_complete_member_detail(name_var_child_longlong, member_ann_builtin_var_child_longlong, ann_custom_InnerEmptyStructureHelperChild); - CompleteStructMember member_var_child_longlong = TypeObjectUtils::build_complete_struct_member(common_var_child_longlong, detail_var_child_longlong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerEmptyStructureHelperChild, member_var_child_longlong); - } - { - return_code_InnerEmptyStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_InnerEmptyStructureHelperChild); - - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_child_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_child_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_child_ulonglong; - MemberId member_id_var_child_ulonglong = 0x00000001; - if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() || TK_NONE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerEmptyStructureHelperChild.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerEmptyStructureHelperChild.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerEmptyStructureHelperChild.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_child_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_child_ulonglong, member_flags_var_child_ulonglong, type_ids_InnerEmptyStructureHelperChild.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_child_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_child_ulonglong = "var_child_ulonglong"; - eprosima::fastcdr::optional member_ann_builtin_var_child_ulonglong; - ann_custom_InnerEmptyStructureHelperChild.reset(); - CompleteMemberDetail detail_var_child_ulonglong = TypeObjectUtils::build_complete_member_detail(name_var_child_ulonglong, member_ann_builtin_var_child_ulonglong, ann_custom_InnerEmptyStructureHelperChild); - CompleteStructMember member_var_child_ulonglong = TypeObjectUtils::build_complete_struct_member(common_var_child_ulonglong, detail_var_child_ulonglong); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerEmptyStructureHelperChild, member_var_child_ulonglong); - } - CompleteStructType struct_type_InnerEmptyStructureHelperChild = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelperChild, header_InnerEmptyStructureHelperChild, member_seq_InnerEmptyStructureHelperChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelperChild, type_name_InnerEmptyStructureHelperChild.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelperChild already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelperChild = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelperChild", type_ids_InnerEmptyStructureHelperChild); - if (return_code_InnerEmptyStructureHelperChild != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelperChild: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_InnerEmptyStructureHelperChild; - type_ids_StructuresInheritanceStruct = type_ids_InnerEmptyStructureHelperChild; - } + ::register_InnerEmptyStructureHelperChild_type_identifier(type_ids_var_InnerEmptyStructureHelperChild); } - StructMemberFlag member_flags_var_InnerEmptyStructureHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerEmptyStructureHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerEmptyStructureHelperChild; MemberId member_id_var_InnerEmptyStructureHelperChild = 0x00000004; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerEmptyStructureHelperChild_ec {false}; + CommonStructMember common_var_InnerEmptyStructureHelperChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerEmptyStructureHelperChild, member_flags_var_InnerEmptyStructureHelperChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerEmptyStructureHelperChild, common_var_InnerEmptyStructureHelperChild_ec))}; + if (!common_var_InnerEmptyStructureHelperChild_ec) { - common_var_InnerEmptyStructureHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerEmptyStructureHelperChild, member_flags_var_InnerEmptyStructureHelperChild, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerEmptyStructureHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerEmptyStructureHelperChild, member_flags_var_InnerEmptyStructureHelperChild, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerEmptyStructureHelperChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerEmptyStructureHelperChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerEmptyStructureHelperChild = "var_InnerEmptyStructureHelperChild"; @@ -4159,426 +740,24 @@ void register_StructuresInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructuresInheritanceStruct, member_var_InnerEmptyStructureHelperChild); } { - return_code_StructuresInheritanceStruct = + TypeIdentifierPair type_ids_var_StructAliasInheritanceStruct; + ReturnCode_t return_code_var_StructAliasInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructAliasInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAliasInheritanceStruct", type_ids_StructuresInheritanceStruct); + "StructAliasInheritanceStruct", type_ids_var_StructAliasInheritanceStruct); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructAliasInheritanceStruct) { - { - StructTypeFlag struct_flags_StructAliasInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructAliasInheritanceStruct; - TypeIdentifierPair type_ids_StructAliasInheritanceStruct; - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "inner_structure_helper_alias", type_ids_StructAliasInheritanceStruct); - - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_inner_structure_helper_alias = 0; - QualifiedTypeName type_name_inner_structure_helper_alias = "inner_structure_helper_alias"; - eprosima::fastcdr::optional type_ann_builtin_inner_structure_helper_alias; - eprosima::fastcdr::optional ann_custom_inner_structure_helper_alias; - CompleteTypeDetail detail_inner_structure_helper_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias, type_name_inner_structure_helper_alias.to_string()); - CompleteAliasHeader header_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_header(detail_inner_structure_helper_alias); - AliasMemberFlag related_flags_inner_structure_helper_alias = 0; - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_StructAliasInheritanceStruct); - - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructAliasInheritanceStruct = return_code_InnerStructureHelper; - type_ids_StructAliasInheritanceStruct = type_ids_InnerStructureHelper; - } - } - CommonAliasBody common_inner_structure_helper_alias; - if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_inner_structure_helper_alias = TypeObjectUtils::build_common_alias_body(related_flags_inner_structure_helper_alias, type_ids_StructAliasInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_inner_structure_helper_alias = TypeObjectUtils::build_common_alias_body(related_flags_inner_structure_helper_alias, type_ids_StructAliasInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_inner_structure_helper_alias; - ann_custom_inner_structure_helper_alias.reset(); - CompleteAliasBody body_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_body(common_inner_structure_helper_alias, member_ann_builtin_inner_structure_helper_alias, ann_custom_inner_structure_helper_alias); - CompleteAliasType alias_type_inner_structure_helper_alias = TypeObjectUtils::build_complete_alias_type(alias_flags_inner_structure_helper_alias, header_inner_structure_helper_alias, body_inner_structure_helper_alias); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_inner_structure_helper_alias, type_name_inner_structure_helper_alias.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "inner_structure_helper_alias", type_ids_StructAliasInheritanceStruct); - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "inner_structure_helper_alias: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - QualifiedTypeName type_name_StructAliasInheritanceStruct = "StructAliasInheritanceStruct"; - eprosima::fastcdr::optional type_ann_builtin_StructAliasInheritanceStruct; - eprosima::fastcdr::optional ann_custom_StructAliasInheritanceStruct; - CompleteTypeDetail detail_StructAliasInheritanceStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructAliasInheritanceStruct, ann_custom_StructAliasInheritanceStruct, type_name_StructAliasInheritanceStruct.to_string()); - CompleteStructHeader header_StructAliasInheritanceStruct; - if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d()) - { - header_StructAliasInheritanceStruct = TypeObjectUtils::build_complete_struct_header(type_ids_StructAliasInheritanceStruct.type_identifier1(), detail_StructAliasInheritanceStruct); - } - else if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d()) - { - header_StructAliasInheritanceStruct = TypeObjectUtils::build_complete_struct_header(type_ids_StructAliasInheritanceStruct.type_identifier2(), detail_StructAliasInheritanceStruct); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAliasInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_StructAliasInheritanceStruct; - { - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructAliasInheritanceStruct); - - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "new_member Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_new_member = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_new_member; - MemberId member_id_new_member = 0x00000002; - if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_new_member = TypeObjectUtils::build_common_struct_member(member_id_new_member, member_flags_new_member, type_ids_StructAliasInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAliasInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAliasInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_new_member = TypeObjectUtils::build_common_struct_member(member_id_new_member, member_flags_new_member, type_ids_StructAliasInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure new_member member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_new_member = "new_member"; - eprosima::fastcdr::optional member_ann_builtin_new_member; - ann_custom_StructAliasInheritanceStruct.reset(); - CompleteMemberDetail detail_new_member = TypeObjectUtils::build_complete_member_detail(name_new_member, member_ann_builtin_new_member, ann_custom_StructAliasInheritanceStruct); - CompleteStructMember member_new_member = TypeObjectUtils::build_complete_struct_member(common_new_member, detail_new_member); - TypeObjectUtils::add_complete_struct_member(member_seq_StructAliasInheritanceStruct, member_new_member); - } - CompleteStructType struct_type_StructAliasInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_StructAliasInheritanceStruct, header_StructAliasInheritanceStruct, member_seq_StructAliasInheritanceStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAliasInheritanceStruct, type_name_StructAliasInheritanceStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAliasInheritanceStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAliasInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAliasInheritanceStruct", type_ids_StructAliasInheritanceStruct); - if (return_code_StructAliasInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAliasInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructuresInheritanceStruct = return_code_StructAliasInheritanceStruct; - type_ids_StructuresInheritanceStruct = type_ids_StructAliasInheritanceStruct; - } + ::register_StructAliasInheritanceStruct_type_identifier(type_ids_var_StructAliasInheritanceStruct); } - StructMemberFlag member_flags_var_StructAliasInheritanceStruct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructAliasInheritanceStruct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructAliasInheritanceStruct; MemberId member_id_var_StructAliasInheritanceStruct = 0x00000005; - if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructAliasInheritanceStruct = TypeObjectUtils::build_common_struct_member(member_id_var_StructAliasInheritanceStruct, member_flags_var_StructAliasInheritanceStruct, type_ids_StructuresInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructuresInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructuresInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructAliasInheritanceStruct = TypeObjectUtils::build_common_struct_member(member_id_var_StructAliasInheritanceStruct, member_flags_var_StructAliasInheritanceStruct, type_ids_StructuresInheritanceStruct.type_identifier2()); - } - else + bool common_var_StructAliasInheritanceStruct_ec {false}; + CommonStructMember common_var_StructAliasInheritanceStruct {TypeObjectUtils::build_common_struct_member(member_id_var_StructAliasInheritanceStruct, member_flags_var_StructAliasInheritanceStruct, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructAliasInheritanceStruct, common_var_StructAliasInheritanceStruct_ec))}; + if (!common_var_StructAliasInheritanceStruct_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructAliasInheritanceStruct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructAliasInheritanceStruct member TypeIdentifier inconsistent."); return; } MemberName name_var_StructAliasInheritanceStruct = "var_StructAliasInheritanceStruct"; @@ -4590,32 +769,309 @@ void register_StructuresInheritanceStruct_type_identifier( } CompleteStructType struct_type_StructuresInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_StructuresInheritanceStruct, header_StructuresInheritanceStruct, member_seq_StructuresInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructuresInheritanceStruct, type_name_StructuresInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructuresInheritanceStruct, type_name_StructuresInheritanceStruct.to_string(), type_ids_StructuresInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructuresInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_StructuresInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructuresInheritanceStruct", type_ids_StructuresInheritanceStruct); - if (return_code_StructuresInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + } +} +void register_InnerBitsetHelperChild_type_identifier( + TypeIdentifierPair& type_ids_InnerBitsetHelperChild) +{ + ReturnCode_t return_code_InnerBitsetHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerBitsetHelperChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelperChild", type_ids_InnerBitsetHelperChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerBitsetHelperChild) + { + BitsetTypeFlag bitset_flags_InnerBitsetHelperChild = 0; + QualifiedTypeName type_name_InnerBitsetHelperChild = "InnerBitsetHelperChild"; + eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelperChild; + eprosima::fastcdr::optional ann_custom_InnerBitsetHelperChild; + CompleteTypeDetail detail_InnerBitsetHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelperChild, ann_custom_InnerBitsetHelperChild, type_name_InnerBitsetHelperChild.to_string()); + CompleteBitsetHeader header_InnerBitsetHelperChild = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelperChild); + CompleteBitfieldSeq field_seq_InnerBitsetHelperChild; + { + uint16_t position_a = 0; + BitsetMemberFlag flags_a = 0; + uint8_t bitcount_a = 3; + TypeKind holder_type_a = TK_BYTE; + CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); + eprosima::fastcdr::optional member_ann_builtin_a; + ann_custom_InnerBitsetHelperChild.reset(); + MemberName name_a = "a"; + CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelperChild); + CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_a); + } + { + uint16_t position_b = 3; + BitsetMemberFlag flags_b = 0; + uint8_t bitcount_b = 1; + TypeKind holder_type_b = TK_BOOLEAN; + CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); + eprosima::fastcdr::optional member_ann_builtin_b; + ann_custom_InnerBitsetHelperChild.reset(); + MemberName name_b = "b"; + CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelperChild); + CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_b); + } + { + uint16_t position_c = 8; + BitsetMemberFlag flags_c = 0; + uint8_t bitcount_c = 10; + TypeKind holder_type_c = TK_UINT16; + CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); + eprosima::fastcdr::optional member_ann_builtin_c; + ann_custom_InnerBitsetHelperChild.reset(); + MemberName name_c = "c"; + CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelperChild); + CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_c); + } + { + uint16_t position_d = 21; + BitsetMemberFlag flags_d = 0; + uint8_t bitcount_d = 12; + TypeKind holder_type_d = TK_INT16; + CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); + eprosima::fastcdr::optional member_ann_builtin_d; + ann_custom_InnerBitsetHelperChild.reset(); + MemberName name_d = "d"; + CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelperChild); + CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_d); + } + { + uint16_t position_child_w = 33; + BitsetMemberFlag flags_child_w = 0; + uint8_t bitcount_child_w = 17; + TypeKind holder_type_child_w = TK_UINT32; + CommonBitfield common_child_w = TypeObjectUtils::build_common_bitfield(position_child_w, flags_child_w, bitcount_child_w, holder_type_child_w); + eprosima::fastcdr::optional member_ann_builtin_child_w; + ann_custom_InnerBitsetHelperChild.reset(); + MemberName name_child_w = "child_w"; + CompleteMemberDetail detail_child_w = TypeObjectUtils::build_complete_member_detail(name_child_w, member_ann_builtin_child_w, ann_custom_InnerBitsetHelperChild); + CompleteBitfield bitfield_child_w = TypeObjectUtils::build_complete_bitfield(common_child_w, detail_child_w); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_child_w); + } + CompleteBitsetType bitset_type_InnerBitsetHelperChild = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelperChild, header_InnerBitsetHelperChild, field_seq_InnerBitsetHelperChild); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelperChild, + type_name_InnerBitsetHelperChild.to_string(), type_ids_InnerBitsetHelperChild)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructuresInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "InnerBitsetHelperChild already registered in TypeObjectRegistry for a different type."); } } -} -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +}void register_InnerBitsetHelperChildChild_type_identifier( + TypeIdentifierPair& type_ids_InnerBitsetHelperChildChild) +{ + ReturnCode_t return_code_InnerBitsetHelperChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerBitsetHelperChildChild = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelperChildChild", type_ids_InnerBitsetHelperChildChild); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerBitsetHelperChildChild) + { + BitsetTypeFlag bitset_flags_InnerBitsetHelperChildChild = 0; + QualifiedTypeName type_name_InnerBitsetHelperChildChild = "InnerBitsetHelperChildChild"; + eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelperChildChild; + eprosima::fastcdr::optional ann_custom_InnerBitsetHelperChildChild; + CompleteTypeDetail detail_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelperChildChild, ann_custom_InnerBitsetHelperChildChild, type_name_InnerBitsetHelperChildChild.to_string()); + CompleteBitsetHeader header_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelperChildChild); + CompleteBitfieldSeq field_seq_InnerBitsetHelperChildChild; + { + uint16_t position_a = 0; + BitsetMemberFlag flags_a = 0; + uint8_t bitcount_a = 3; + TypeKind holder_type_a = TK_BYTE; + CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); + eprosima::fastcdr::optional member_ann_builtin_a; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_a = "a"; + CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_a); + } + { + uint16_t position_b = 3; + BitsetMemberFlag flags_b = 0; + uint8_t bitcount_b = 1; + TypeKind holder_type_b = TK_BOOLEAN; + CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); + eprosima::fastcdr::optional member_ann_builtin_b; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_b = "b"; + CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_b); + } + { + uint16_t position_c = 8; + BitsetMemberFlag flags_c = 0; + uint8_t bitcount_c = 10; + TypeKind holder_type_c = TK_UINT16; + CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); + eprosima::fastcdr::optional member_ann_builtin_c; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_c = "c"; + CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_c); + } + { + uint16_t position_d = 21; + BitsetMemberFlag flags_d = 0; + uint8_t bitcount_d = 12; + TypeKind holder_type_d = TK_INT16; + CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); + eprosima::fastcdr::optional member_ann_builtin_d; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_d = "d"; + CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_d); + } + { + uint16_t position_child_w = 33; + BitsetMemberFlag flags_child_w = 0; + uint8_t bitcount_child_w = 17; + TypeKind holder_type_child_w = TK_UINT32; + CommonBitfield common_child_w = TypeObjectUtils::build_common_bitfield(position_child_w, flags_child_w, bitcount_child_w, holder_type_child_w); + eprosima::fastcdr::optional member_ann_builtin_child_w; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_child_w = "child_w"; + CompleteMemberDetail detail_child_w = TypeObjectUtils::build_complete_member_detail(name_child_w, member_ann_builtin_child_w, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_child_w = TypeObjectUtils::build_complete_bitfield(common_child_w, detail_child_w); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_child_w); + } + { + uint16_t position_childchild_z = 50; + BitsetMemberFlag flags_childchild_z = 0; + uint8_t bitcount_childchild_z = 14; + TypeKind holder_type_childchild_z = TK_UINT16; + CommonBitfield common_childchild_z = TypeObjectUtils::build_common_bitfield(position_childchild_z, flags_childchild_z, bitcount_childchild_z, holder_type_childchild_z); + eprosima::fastcdr::optional member_ann_builtin_childchild_z; + ann_custom_InnerBitsetHelperChildChild.reset(); + MemberName name_childchild_z = "childchild_z"; + CompleteMemberDetail detail_childchild_z = TypeObjectUtils::build_complete_member_detail(name_childchild_z, member_ann_builtin_childchild_z, ann_custom_InnerBitsetHelperChildChild); + CompleteBitfield bitfield_childchild_z = TypeObjectUtils::build_complete_bitfield(common_childchild_z, detail_childchild_z); + TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_childchild_z); + } + CompleteBitsetType bitset_type_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelperChildChild, header_InnerBitsetHelperChildChild, field_seq_InnerBitsetHelperChildChild); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelperChildChild, + type_name_InnerBitsetHelperChildChild.to_string(), type_ids_InnerBitsetHelperChildChild)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "InnerBitsetHelperChildChild already registered in TypeObjectRegistry for a different type."); + } + } +}void register_BitsetAliasInheritanceBitset_type_identifier( + TypeIdentifierPair& type_ids_BitsetAliasInheritanceBitset) +{ + ReturnCode_t return_code_BitsetAliasInheritanceBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BitsetAliasInheritanceBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BitsetAliasInheritanceBitset", type_ids_BitsetAliasInheritanceBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BitsetAliasInheritanceBitset) + { + BitsetTypeFlag bitset_flags_BitsetAliasInheritanceBitset = 0; + QualifiedTypeName type_name_BitsetAliasInheritanceBitset = "BitsetAliasInheritanceBitset"; + eprosima::fastcdr::optional type_ann_builtin_BitsetAliasInheritanceBitset; + eprosima::fastcdr::optional ann_custom_BitsetAliasInheritanceBitset; + CompleteTypeDetail detail_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BitsetAliasInheritanceBitset, ann_custom_BitsetAliasInheritanceBitset, type_name_BitsetAliasInheritanceBitset.to_string()); + CompleteBitsetHeader header_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_bitset_header(detail_BitsetAliasInheritanceBitset); + CompleteBitfieldSeq field_seq_BitsetAliasInheritanceBitset; + { + uint16_t position_a = 0; + BitsetMemberFlag flags_a = 0; + uint8_t bitcount_a = 3; + TypeKind holder_type_a = TK_BYTE; + CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); + eprosima::fastcdr::optional member_ann_builtin_a; + ann_custom_BitsetAliasInheritanceBitset.reset(); + MemberName name_a = "a"; + CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_BitsetAliasInheritanceBitset); + CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); + TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_a); + } + { + uint16_t position_b = 3; + BitsetMemberFlag flags_b = 0; + uint8_t bitcount_b = 1; + TypeKind holder_type_b = TK_BOOLEAN; + CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); + eprosima::fastcdr::optional member_ann_builtin_b; + ann_custom_BitsetAliasInheritanceBitset.reset(); + MemberName name_b = "b"; + CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_BitsetAliasInheritanceBitset); + CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); + TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_b); + } + { + uint16_t position_c = 8; + BitsetMemberFlag flags_c = 0; + uint8_t bitcount_c = 10; + TypeKind holder_type_c = TK_UINT16; + CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); + eprosima::fastcdr::optional member_ann_builtin_c; + ann_custom_BitsetAliasInheritanceBitset.reset(); + MemberName name_c = "c"; + CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_BitsetAliasInheritanceBitset); + CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); + TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_c); + } + { + uint16_t position_d = 21; + BitsetMemberFlag flags_d = 0; + uint8_t bitcount_d = 12; + TypeKind holder_type_d = TK_INT16; + CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); + eprosima::fastcdr::optional member_ann_builtin_d; + ann_custom_BitsetAliasInheritanceBitset.reset(); + MemberName name_d = "d"; + CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_BitsetAliasInheritanceBitset); + CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); + TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_d); + } + { + uint16_t position_new_bitfield = 33; + BitsetMemberFlag flags_new_bitfield = 0; + uint8_t bitcount_new_bitfield = 10; + TypeKind holder_type_new_bitfield = TK_UINT16; + CommonBitfield common_new_bitfield = TypeObjectUtils::build_common_bitfield(position_new_bitfield, flags_new_bitfield, bitcount_new_bitfield, holder_type_new_bitfield); + eprosima::fastcdr::optional member_ann_builtin_new_bitfield; + ann_custom_BitsetAliasInheritanceBitset.reset(); + MemberName name_new_bitfield = "new_bitfield"; + CompleteMemberDetail detail_new_bitfield = TypeObjectUtils::build_complete_member_detail(name_new_bitfield, member_ann_builtin_new_bitfield, ann_custom_BitsetAliasInheritanceBitset); + CompleteBitfield bitfield_new_bitfield = TypeObjectUtils::build_complete_bitfield(common_new_bitfield, detail_new_bitfield); + TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_new_bitfield); + } + CompleteBitsetType bitset_type_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_bitset_type(bitset_flags_BitsetAliasInheritanceBitset, header_BitsetAliasInheritanceBitset, field_seq_BitsetAliasInheritanceBitset); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_BitsetAliasInheritanceBitset, + type_name_BitsetAliasInheritanceBitset.to_string(), type_ids_BitsetAliasInheritanceBitset)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "BitsetAliasInheritanceBitset already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BitsetsChildInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BitsetsChildInheritanceStruct) { + + ReturnCode_t return_code_BitsetsChildInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BitsetsChildInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BitsetsChildInheritanceStruct", type_ids_BitsetsChildInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BitsetsChildInheritanceStruct) { - StructTypeFlag struct_flags_BitsetsChildInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BitsetsChildInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BitsetsChildInheritanceStruct; - TypeIdentifierPair type_ids_BitsetsChildInheritanceStruct; QualifiedTypeName type_name_BitsetsChildInheritanceStruct = "BitsetsChildInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_BitsetsChildInheritanceStruct; eprosima::fastcdr::optional ann_custom_BitsetsChildInheritanceStruct; @@ -4624,147 +1080,24 @@ void register_BitsetsChildInheritanceStruct_type_identifier( header_BitsetsChildInheritanceStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BitsetsChildInheritanceStruct); CompleteStructMemberSeq member_seq_BitsetsChildInheritanceStruct; { - return_code_BitsetsChildInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerBitsetHelperChild; + ReturnCode_t return_code_var_InnerBitsetHelperChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerBitsetHelperChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelperChild", type_ids_BitsetsChildInheritanceStruct); + "InnerBitsetHelperChild", type_ids_var_InnerBitsetHelperChild); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerBitsetHelperChild) { - BitsetTypeFlag bitset_flags_InnerBitsetHelperChild = 0; - QualifiedTypeName type_name_InnerBitsetHelperChild = "InnerBitsetHelperChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelperChild; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelperChild; - CompleteTypeDetail detail_InnerBitsetHelperChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelperChild, ann_custom_InnerBitsetHelperChild, type_name_InnerBitsetHelperChild.to_string()); - CompleteBitsetHeader header_InnerBitsetHelperChild = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelperChild); - CompleteBitfieldSeq field_seq_InnerBitsetHelperChild; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelperChild.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelperChild); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelperChild.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelperChild); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelperChild.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelperChild); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelperChild.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelperChild); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_d); - } - { - uint16_t position_child_w = 33; - BitsetMemberFlag flags_child_w = 0; - uint8_t bitcount_child_w = 17; - TypeKind holder_type_child_w = TK_UINT32; - CommonBitfield common_child_w = TypeObjectUtils::build_common_bitfield(position_child_w, flags_child_w, bitcount_child_w, holder_type_child_w); - eprosima::fastcdr::optional member_ann_builtin_child_w; - ann_custom_InnerBitsetHelperChild.reset(); - MemberName name_child_w = "child_w"; - CompleteMemberDetail detail_child_w = TypeObjectUtils::build_complete_member_detail(name_child_w, member_ann_builtin_child_w, ann_custom_InnerBitsetHelperChild); - CompleteBitfield bitfield_child_w = TypeObjectUtils::build_complete_bitfield(common_child_w, detail_child_w); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChild, bitfield_child_w); - } - CompleteBitsetType bitset_type_InnerBitsetHelperChild = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelperChild, header_InnerBitsetHelperChild, field_seq_InnerBitsetHelperChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelperChild, type_name_InnerBitsetHelperChild.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelperChild already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetsChildInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelperChild", type_ids_BitsetsChildInheritanceStruct); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelperChild: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelperChild_type_identifier(type_ids_var_InnerBitsetHelperChild); } - StructMemberFlag member_flags_var_InnerBitsetHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerBitsetHelperChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerBitsetHelperChild; MemberId member_id_var_InnerBitsetHelperChild = 0x00000000; - if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitsetHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChild, member_flags_var_InnerBitsetHelperChild, type_ids_BitsetsChildInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerBitsetHelperChild_ec {false}; + CommonStructMember common_var_InnerBitsetHelperChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChild, member_flags_var_InnerBitsetHelperChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerBitsetHelperChild, common_var_InnerBitsetHelperChild_ec))}; + if (!common_var_InnerBitsetHelperChild_ec) { - common_var_InnerBitsetHelperChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChild, member_flags_var_InnerBitsetHelperChild, type_ids_BitsetsChildInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerBitsetHelperChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerBitsetHelperChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerBitsetHelperChild = "var_InnerBitsetHelperChild"; @@ -4775,160 +1108,24 @@ void register_BitsetsChildInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetsChildInheritanceStruct, member_var_InnerBitsetHelperChild); } { - return_code_BitsetsChildInheritanceStruct = + TypeIdentifierPair type_ids_var_InnerBitsetHelperChildChild; + ReturnCode_t return_code_var_InnerBitsetHelperChildChild {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_InnerBitsetHelperChildChild = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelperChildChild", type_ids_BitsetsChildInheritanceStruct); + "InnerBitsetHelperChildChild", type_ids_var_InnerBitsetHelperChildChild); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_InnerBitsetHelperChildChild) { - BitsetTypeFlag bitset_flags_InnerBitsetHelperChildChild = 0; - QualifiedTypeName type_name_InnerBitsetHelperChildChild = "InnerBitsetHelperChildChild"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelperChildChild; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelperChildChild; - CompleteTypeDetail detail_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelperChildChild, ann_custom_InnerBitsetHelperChildChild, type_name_InnerBitsetHelperChildChild.to_string()); - CompleteBitsetHeader header_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelperChildChild); - CompleteBitfieldSeq field_seq_InnerBitsetHelperChildChild; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_d); - } - { - uint16_t position_child_w = 33; - BitsetMemberFlag flags_child_w = 0; - uint8_t bitcount_child_w = 17; - TypeKind holder_type_child_w = TK_UINT32; - CommonBitfield common_child_w = TypeObjectUtils::build_common_bitfield(position_child_w, flags_child_w, bitcount_child_w, holder_type_child_w); - eprosima::fastcdr::optional member_ann_builtin_child_w; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_child_w = "child_w"; - CompleteMemberDetail detail_child_w = TypeObjectUtils::build_complete_member_detail(name_child_w, member_ann_builtin_child_w, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_child_w = TypeObjectUtils::build_complete_bitfield(common_child_w, detail_child_w); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_child_w); - } - { - uint16_t position_childchild_z = 50; - BitsetMemberFlag flags_childchild_z = 0; - uint8_t bitcount_childchild_z = 14; - TypeKind holder_type_childchild_z = TK_UINT16; - CommonBitfield common_childchild_z = TypeObjectUtils::build_common_bitfield(position_childchild_z, flags_childchild_z, bitcount_childchild_z, holder_type_childchild_z); - eprosima::fastcdr::optional member_ann_builtin_childchild_z; - ann_custom_InnerBitsetHelperChildChild.reset(); - MemberName name_childchild_z = "childchild_z"; - CompleteMemberDetail detail_childchild_z = TypeObjectUtils::build_complete_member_detail(name_childchild_z, member_ann_builtin_childchild_z, ann_custom_InnerBitsetHelperChildChild); - CompleteBitfield bitfield_childchild_z = TypeObjectUtils::build_complete_bitfield(common_childchild_z, detail_childchild_z); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelperChildChild, bitfield_childchild_z); - } - CompleteBitsetType bitset_type_InnerBitsetHelperChildChild = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelperChildChild, header_InnerBitsetHelperChildChild, field_seq_InnerBitsetHelperChildChild); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelperChildChild, type_name_InnerBitsetHelperChildChild.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelperChildChild already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetsChildInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelperChildChild", type_ids_BitsetsChildInheritanceStruct); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelperChildChild: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelperChildChild_type_identifier(type_ids_var_InnerBitsetHelperChildChild); } - StructMemberFlag member_flags_var_InnerBitsetHelperChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_InnerBitsetHelperChildChild = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_InnerBitsetHelperChildChild; MemberId member_id_var_InnerBitsetHelperChildChild = 0x00000001; - if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_InnerBitsetHelperChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChildChild, member_flags_var_InnerBitsetHelperChildChild, type_ids_BitsetsChildInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_InnerBitsetHelperChildChild_ec {false}; + CommonStructMember common_var_InnerBitsetHelperChildChild {TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChildChild, member_flags_var_InnerBitsetHelperChildChild, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_InnerBitsetHelperChildChild, common_var_InnerBitsetHelperChildChild_ec))}; + if (!common_var_InnerBitsetHelperChildChild_ec) { - common_var_InnerBitsetHelperChildChild = TypeObjectUtils::build_common_struct_member(member_id_var_InnerBitsetHelperChildChild, member_flags_var_InnerBitsetHelperChildChild, type_ids_BitsetsChildInheritanceStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_InnerBitsetHelperChildChild member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_InnerBitsetHelperChildChild member TypeIdentifier inconsistent."); return; } MemberName name_var_InnerBitsetHelperChildChild = "var_InnerBitsetHelperChildChild"; @@ -4939,147 +1136,24 @@ void register_BitsetsChildInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BitsetsChildInheritanceStruct, member_var_InnerBitsetHelperChildChild); } { - return_code_BitsetsChildInheritanceStruct = + TypeIdentifierPair type_ids_var_BitsetAliasInheritanceBitset; + ReturnCode_t return_code_var_BitsetAliasInheritanceBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_BitsetAliasInheritanceBitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BitsetAliasInheritanceBitset", type_ids_BitsetsChildInheritanceStruct); + "BitsetAliasInheritanceBitset", type_ids_var_BitsetAliasInheritanceBitset); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_BitsetAliasInheritanceBitset) { - BitsetTypeFlag bitset_flags_BitsetAliasInheritanceBitset = 0; - QualifiedTypeName type_name_BitsetAliasInheritanceBitset = "BitsetAliasInheritanceBitset"; - eprosima::fastcdr::optional type_ann_builtin_BitsetAliasInheritanceBitset; - eprosima::fastcdr::optional ann_custom_BitsetAliasInheritanceBitset; - CompleteTypeDetail detail_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BitsetAliasInheritanceBitset, ann_custom_BitsetAliasInheritanceBitset, type_name_BitsetAliasInheritanceBitset.to_string()); - CompleteBitsetHeader header_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_bitset_header(detail_BitsetAliasInheritanceBitset); - CompleteBitfieldSeq field_seq_BitsetAliasInheritanceBitset; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_BitsetAliasInheritanceBitset.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_BitsetAliasInheritanceBitset); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_BitsetAliasInheritanceBitset.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_BitsetAliasInheritanceBitset); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_BitsetAliasInheritanceBitset.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_BitsetAliasInheritanceBitset); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_BitsetAliasInheritanceBitset.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_BitsetAliasInheritanceBitset); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_d); - } - { - uint16_t position_new_bitfield = 33; - BitsetMemberFlag flags_new_bitfield = 0; - uint8_t bitcount_new_bitfield = 10; - TypeKind holder_type_new_bitfield = TK_UINT16; - CommonBitfield common_new_bitfield = TypeObjectUtils::build_common_bitfield(position_new_bitfield, flags_new_bitfield, bitcount_new_bitfield, holder_type_new_bitfield); - eprosima::fastcdr::optional member_ann_builtin_new_bitfield; - ann_custom_BitsetAliasInheritanceBitset.reset(); - MemberName name_new_bitfield = "new_bitfield"; - CompleteMemberDetail detail_new_bitfield = TypeObjectUtils::build_complete_member_detail(name_new_bitfield, member_ann_builtin_new_bitfield, ann_custom_BitsetAliasInheritanceBitset); - CompleteBitfield bitfield_new_bitfield = TypeObjectUtils::build_complete_bitfield(common_new_bitfield, detail_new_bitfield); - TypeObjectUtils::add_complete_bitfield(field_seq_BitsetAliasInheritanceBitset, bitfield_new_bitfield); - } - CompleteBitsetType bitset_type_BitsetAliasInheritanceBitset = TypeObjectUtils::build_complete_bitset_type(bitset_flags_BitsetAliasInheritanceBitset, header_BitsetAliasInheritanceBitset, field_seq_BitsetAliasInheritanceBitset); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_BitsetAliasInheritanceBitset, type_name_BitsetAliasInheritanceBitset.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BitsetAliasInheritanceBitset already registered in TypeObjectRegistry for a different type."); - } - return_code_BitsetsChildInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BitsetAliasInheritanceBitset", type_ids_BitsetsChildInheritanceStruct); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BitsetAliasInheritanceBitset: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_BitsetAliasInheritanceBitset_type_identifier(type_ids_var_BitsetAliasInheritanceBitset); } - StructMemberFlag member_flags_var_BitsetAliasInheritanceBitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_BitsetAliasInheritanceBitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_BitsetAliasInheritanceBitset; MemberId member_id_var_BitsetAliasInheritanceBitset = 0x00000002; - if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_BitsetAliasInheritanceBitset = TypeObjectUtils::build_common_struct_member(member_id_var_BitsetAliasInheritanceBitset, member_flags_var_BitsetAliasInheritanceBitset, type_ids_BitsetsChildInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BitsetsChildInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BitsetsChildInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_BitsetAliasInheritanceBitset = TypeObjectUtils::build_common_struct_member(member_id_var_BitsetAliasInheritanceBitset, member_flags_var_BitsetAliasInheritanceBitset, type_ids_BitsetsChildInheritanceStruct.type_identifier2()); - } - else + bool common_var_BitsetAliasInheritanceBitset_ec {false}; + CommonStructMember common_var_BitsetAliasInheritanceBitset {TypeObjectUtils::build_common_struct_member(member_id_var_BitsetAliasInheritanceBitset, member_flags_var_BitsetAliasInheritanceBitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_BitsetAliasInheritanceBitset, common_var_BitsetAliasInheritanceBitset_ec))}; + if (!common_var_BitsetAliasInheritanceBitset_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_BitsetAliasInheritanceBitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_BitsetAliasInheritanceBitset member TypeIdentifier inconsistent."); return; } MemberName name_var_BitsetAliasInheritanceBitset = "var_BitsetAliasInheritanceBitset"; @@ -5091,21 +1165,11 @@ void register_BitsetsChildInheritanceStruct_type_identifier( } CompleteStructType struct_type_BitsetsChildInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BitsetsChildInheritanceStruct, header_BitsetsChildInheritanceStruct, member_seq_BitsetsChildInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitsetsChildInheritanceStruct, type_name_BitsetsChildInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BitsetsChildInheritanceStruct, type_name_BitsetsChildInheritanceStruct.to_string(), type_ids_BitsetsChildInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BitsetsChildInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_BitsetsChildInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BitsetsChildInheritanceStruct", type_ids_BitsetsChildInheritanceStruct); - if (return_code_BitsetsChildInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BitsetsChildInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/inheritanceTypeObjectSupport.hpp b/test/dds-types-test/inheritanceTypeObjectSupport.hpp index f67e9424fef..24923bd2e3c 100644 --- a/test/dds-types-test/inheritanceTypeObjectSupport.hpp +++ b/test/dds-types-test/inheritanceTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_inheritance_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_inheritance_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructureHelperChild_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerStructureHelperChildChild related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_InnerStructureHelperChild_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructureHelperChildChild_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerStructureHelperEmptyChild related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_InnerStructureHelperChildChild_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructureHelperEmptyChild_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerStructureHelperEmptyChildChild related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_InnerStructureHelperEmptyChild_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructureHelperEmptyChildChild_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerEmptyStructureHelperChild related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_InnerStructureHelperEmptyChildChild_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerEmptyStructureHelperChild_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructAliasInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_InnerEmptyStructureHelperChild_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructAliasInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructuresInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,43 @@ eProsima_user_DllExport void register_StructAliasInheritanceStruct_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructuresInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerBitsetHelperChild related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerBitsetHelperChild_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register InnerBitsetHelperChildChild related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_InnerBitsetHelperChildChild_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register BitsetAliasInheritanceBitset related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_BitsetAliasInheritanceBitset_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BitsetsChildInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +169,7 @@ eProsima_user_DllExport void register_StructuresInheritanceStruct_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BitsetsChildInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/keyPubSubTypes.cxx b/test/dds-types-test/keyPubSubTypes.cxx index c2dca649abe..caa75672bca 100644 --- a/test/dds-types-test/keyPubSubTypes.cxx +++ b/test/dds-types-test/keyPubSubTypes.cxx @@ -219,9 +219,9 @@ bool KeyedShortStructPubSubType::getKey( return true; } -void KeyedShortStructPubSubType::register_type_object_representation() const +void KeyedShortStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedShortStruct_type_identifier(type_identifiers_); } KeyedUShortStructPubSubType::KeyedUShortStructPubSubType() @@ -412,9 +412,9 @@ bool KeyedUShortStructPubSubType::getKey( return true; } -void KeyedUShortStructPubSubType::register_type_object_representation() const +void KeyedUShortStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedUShortStruct_type_identifier(type_identifiers_); } KeyedLongStructPubSubType::KeyedLongStructPubSubType() @@ -605,9 +605,9 @@ bool KeyedLongStructPubSubType::getKey( return true; } -void KeyedLongStructPubSubType::register_type_object_representation() const +void KeyedLongStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedLongStruct_type_identifier(type_identifiers_); } KeyedULongStructPubSubType::KeyedULongStructPubSubType() @@ -798,9 +798,9 @@ bool KeyedULongStructPubSubType::getKey( return true; } -void KeyedULongStructPubSubType::register_type_object_representation() const +void KeyedULongStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedULongStruct_type_identifier(type_identifiers_); } KeyedLongLongStructPubSubType::KeyedLongLongStructPubSubType() @@ -991,9 +991,9 @@ bool KeyedLongLongStructPubSubType::getKey( return true; } -void KeyedLongLongStructPubSubType::register_type_object_representation() const +void KeyedLongLongStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedLongLongStruct_type_identifier(type_identifiers_); } KeyedULongLongStructPubSubType::KeyedULongLongStructPubSubType() @@ -1184,9 +1184,9 @@ bool KeyedULongLongStructPubSubType::getKey( return true; } -void KeyedULongLongStructPubSubType::register_type_object_representation() const +void KeyedULongLongStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedULongLongStruct_type_identifier(type_identifiers_); } KeyedFloatStructPubSubType::KeyedFloatStructPubSubType() @@ -1377,9 +1377,9 @@ bool KeyedFloatStructPubSubType::getKey( return true; } -void KeyedFloatStructPubSubType::register_type_object_representation() const +void KeyedFloatStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedFloatStruct_type_identifier(type_identifiers_); } KeyedDoubleStructPubSubType::KeyedDoubleStructPubSubType() @@ -1570,9 +1570,9 @@ bool KeyedDoubleStructPubSubType::getKey( return true; } -void KeyedDoubleStructPubSubType::register_type_object_representation() const +void KeyedDoubleStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedDoubleStruct_type_identifier(type_identifiers_); } KeyedLongDoubleStructPubSubType::KeyedLongDoubleStructPubSubType() @@ -1763,9 +1763,9 @@ bool KeyedLongDoubleStructPubSubType::getKey( return true; } -void KeyedLongDoubleStructPubSubType::register_type_object_representation() const +void KeyedLongDoubleStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedLongDoubleStruct_type_identifier(type_identifiers_); } KeyedBooleanStructPubSubType::KeyedBooleanStructPubSubType() @@ -1956,9 +1956,9 @@ bool KeyedBooleanStructPubSubType::getKey( return true; } -void KeyedBooleanStructPubSubType::register_type_object_representation() const +void KeyedBooleanStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedBooleanStruct_type_identifier(type_identifiers_); } KeyedOctetStructPubSubType::KeyedOctetStructPubSubType() @@ -2149,9 +2149,9 @@ bool KeyedOctetStructPubSubType::getKey( return true; } -void KeyedOctetStructPubSubType::register_type_object_representation() const +void KeyedOctetStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedOctetStruct_type_identifier(type_identifiers_); } KeyedCharStructPubSubType::KeyedCharStructPubSubType() @@ -2342,9 +2342,9 @@ bool KeyedCharStructPubSubType::getKey( return true; } -void KeyedCharStructPubSubType::register_type_object_representation() const +void KeyedCharStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedCharStruct_type_identifier(type_identifiers_); } KeyedWCharStructPubSubType::KeyedWCharStructPubSubType() @@ -2535,9 +2535,9 @@ bool KeyedWCharStructPubSubType::getKey( return true; } -void KeyedWCharStructPubSubType::register_type_object_representation() const +void KeyedWCharStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedWCharStruct_type_identifier(type_identifiers_); } KeyedEmptyStructPubSubType::KeyedEmptyStructPubSubType() @@ -2728,9 +2728,9 @@ bool KeyedEmptyStructPubSubType::getKey( return true; } -void KeyedEmptyStructPubSubType::register_type_object_representation() const +void KeyedEmptyStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedEmptyStruct_type_identifier(type_identifiers_); } KeyedEmptyInheritanceStructPubSubType::KeyedEmptyInheritanceStructPubSubType() @@ -2921,9 +2921,9 @@ bool KeyedEmptyInheritanceStructPubSubType::getKey( return true; } -void KeyedEmptyInheritanceStructPubSubType::register_type_object_representation() const +void KeyedEmptyInheritanceStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedEmptyInheritanceStruct_type_identifier(type_identifiers_); } KeyedInheritanceStructPubSubType::KeyedInheritanceStructPubSubType() @@ -3114,9 +3114,9 @@ bool KeyedInheritanceStructPubSubType::getKey( return true; } -void KeyedInheritanceStructPubSubType::register_type_object_representation() const +void KeyedInheritanceStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_KeyedInheritanceStruct_type_identifier(type_identifiers_); } InheritanceKeyedEmptyStructPubSubType::InheritanceKeyedEmptyStructPubSubType() @@ -3307,9 +3307,9 @@ bool InheritanceKeyedEmptyStructPubSubType::getKey( return true; } -void InheritanceKeyedEmptyStructPubSubType::register_type_object_representation() const +void InheritanceKeyedEmptyStructPubSubType::register_type_object_representation() { - register_key_type_objects(); + register_InheritanceKeyedEmptyStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/keyPubSubTypes.h b/test/dds-types-test/keyPubSubTypes.h index bfe71c4d8c2..7bd07d08e75 100644 --- a/test/dds-types-test/keyPubSubTypes.h +++ b/test/dds-types-test/keyPubSubTypes.h @@ -89,7 +89,7 @@ class KeyedShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -180,7 +180,7 @@ class KeyedUShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -271,7 +271,7 @@ class KeyedLongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -362,7 +362,7 @@ class KeyedULongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -453,7 +453,7 @@ class KeyedLongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -544,7 +544,7 @@ class KeyedULongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -635,7 +635,7 @@ class KeyedFloatStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -726,7 +726,7 @@ class KeyedDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -817,7 +817,7 @@ class KeyedLongDoubleStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -908,7 +908,7 @@ class KeyedBooleanStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -999,7 +999,7 @@ class KeyedOctetStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1090,7 +1090,7 @@ class KeyedCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1181,7 +1181,7 @@ class KeyedWCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1272,7 +1272,7 @@ class KeyedEmptyStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1363,7 +1363,7 @@ class KeyedEmptyInheritanceStructPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1454,7 +1454,7 @@ class KeyedInheritanceStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1545,7 +1545,7 @@ class InheritanceKeyedEmptyStructPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/keyTypeObjectSupport.cxx b/test/dds-types-test/keyTypeObjectSupport.cxx index 1d525ef7f61..0b395cc6858 100644 --- a/test/dds-types-test/keyTypeObjectSupport.cxx +++ b/test/dds-types-test/keyTypeObjectSupport.cxx @@ -38,58 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_key_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_KeyedShortStruct_type_identifier(type_id); - - register_KeyedUShortStruct_type_identifier(type_id); - - register_KeyedLongStruct_type_identifier(type_id); - - register_KeyedULongStruct_type_identifier(type_id); - - register_KeyedLongLongStruct_type_identifier(type_id); - - register_KeyedULongLongStruct_type_identifier(type_id); - - register_KeyedFloatStruct_type_identifier(type_id); - - register_KeyedDoubleStruct_type_identifier(type_id); - - register_KeyedLongDoubleStruct_type_identifier(type_id); - - register_KeyedBooleanStruct_type_identifier(type_id); - - register_KeyedOctetStruct_type_identifier(type_id); - - register_KeyedCharStruct_type_identifier(type_id); - - register_KeyedWCharStruct_type_identifier(type_id); - - register_KeyedEmptyStruct_type_identifier(type_id); - - register_KeyedEmptyInheritanceStruct_type_identifier(type_id); - - register_KeyedInheritanceStruct_type_identifier(type_id); - - register_InheritanceKeyedEmptyStruct_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedShortStruct) { + + ReturnCode_t return_code_KeyedShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedShortStruct", type_ids_KeyedShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedShortStruct) { - StructTypeFlag struct_flags_KeyedShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedShortStruct; - TypeIdentifierPair type_ids_KeyedShortStruct; QualifiedTypeName type_name_KeyedShortStruct = "KeyedShortStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedShortStruct; eprosima::fastcdr::optional ann_custom_KeyedShortStruct; @@ -98,62 +59,26 @@ void register_KeyedShortStruct_type_identifier( header_KeyedShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedShortStruct); CompleteStructMemberSeq member_seq_KeyedShortStruct; { - return_code_KeyedShortStruct = + TypeIdentifierPair type_ids_key_short; + ReturnCode_t return_code_key_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); + "_int16_t", type_ids_key_short); - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_short; MemberId member_id_key_short = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else + bool common_key_short_ec {false}; + CommonStructMember common_key_short {TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_short, common_key_short_ec))}; + if (!common_key_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_short member TypeIdentifier inconsistent."); return; } MemberName name_key_short = "key_short"; @@ -177,62 +102,26 @@ void register_KeyedShortStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedShortStruct, member_key_short); } { - return_code_KeyedShortStruct = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); + "_int16_t", type_ids_var_short); - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -244,32 +133,26 @@ void register_KeyedShortStruct_type_identifier( } CompleteStructType struct_type_KeyedShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedShortStruct, header_KeyedShortStruct, member_seq_KeyedShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedShortStruct, type_name_KeyedShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedShortStruct, type_name_KeyedShortStruct.to_string(), type_ids_KeyedShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedShortStruct", type_ids_KeyedShortStruct); - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedUShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedUShortStruct) { + + ReturnCode_t return_code_KeyedUShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedUShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedUShortStruct", type_ids_KeyedUShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedUShortStruct) { - StructTypeFlag struct_flags_KeyedUShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedUShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedUShortStruct; - TypeIdentifierPair type_ids_KeyedUShortStruct; QualifiedTypeName type_name_KeyedUShortStruct = "KeyedUShortStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedUShortStruct; eprosima::fastcdr::optional ann_custom_KeyedUShortStruct; @@ -278,62 +161,26 @@ void register_KeyedUShortStruct_type_identifier( header_KeyedUShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedUShortStruct); CompleteStructMemberSeq member_seq_KeyedUShortStruct; { - return_code_KeyedUShortStruct = + TypeIdentifierPair type_ids_key_ushort; + ReturnCode_t return_code_key_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_KeyedUShortStruct); + "_uint16_t", type_ids_key_ushort); - if (return_code_KeyedUShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_ushort; MemberId member_id_key_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_ushort = TypeObjectUtils::build_common_struct_member(member_id_key_ushort, member_flags_key_ushort, type_ids_KeyedUShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_ushort = TypeObjectUtils::build_common_struct_member(member_id_key_ushort, member_flags_key_ushort, type_ids_KeyedUShortStruct.type_identifier2()); - } - else + bool common_key_ushort_ec {false}; + CommonStructMember common_key_ushort {TypeObjectUtils::build_common_struct_member(member_id_key_ushort, member_flags_key_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_ushort, common_key_ushort_ec))}; + if (!common_key_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_ushort member TypeIdentifier inconsistent."); return; } MemberName name_key_ushort = "key_ushort"; @@ -357,62 +204,26 @@ void register_KeyedUShortStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedUShortStruct, member_key_ushort); } { - return_code_KeyedUShortStruct = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_KeyedUShortStruct); + "_uint16_t", type_ids_var_ushort); - if (return_code_KeyedUShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_KeyedUShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedUShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_KeyedUShortStruct.type_identifier2()); - } - else + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -424,32 +235,26 @@ void register_KeyedUShortStruct_type_identifier( } CompleteStructType struct_type_KeyedUShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedUShortStruct, header_KeyedUShortStruct, member_seq_KeyedUShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedUShortStruct, type_name_KeyedUShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedUShortStruct, type_name_KeyedUShortStruct.to_string(), type_ids_KeyedUShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedUShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedUShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedUShortStruct", type_ids_KeyedUShortStruct); - if (return_code_KeyedUShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedUShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedLongStruct) { + + ReturnCode_t return_code_KeyedLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedLongStruct", type_ids_KeyedLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedLongStruct) { - StructTypeFlag struct_flags_KeyedLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedLongStruct; - TypeIdentifierPair type_ids_KeyedLongStruct; QualifiedTypeName type_name_KeyedLongStruct = "KeyedLongStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedLongStruct; eprosima::fastcdr::optional ann_custom_KeyedLongStruct; @@ -458,62 +263,26 @@ void register_KeyedLongStruct_type_identifier( header_KeyedLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedLongStruct); CompleteStructMemberSeq member_seq_KeyedLongStruct; { - return_code_KeyedLongStruct = + TypeIdentifierPair type_ids_key_long; + ReturnCode_t return_code_key_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_KeyedLongStruct); + "_int32_t", type_ids_key_long); - if (return_code_KeyedLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_long; MemberId member_id_key_long = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_long = TypeObjectUtils::build_common_struct_member(member_id_key_long, member_flags_key_long, type_ids_KeyedLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_long = TypeObjectUtils::build_common_struct_member(member_id_key_long, member_flags_key_long, type_ids_KeyedLongStruct.type_identifier2()); - } - else + bool common_key_long_ec {false}; + CommonStructMember common_key_long {TypeObjectUtils::build_common_struct_member(member_id_key_long, member_flags_key_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_long, common_key_long_ec))}; + if (!common_key_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_long member TypeIdentifier inconsistent."); return; } MemberName name_key_long = "key_long"; @@ -537,62 +306,26 @@ void register_KeyedLongStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedLongStruct, member_key_long); } { - return_code_KeyedLongStruct = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_KeyedLongStruct); + "_int32_t", type_ids_var_long); - if (return_code_KeyedLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_KeyedLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_KeyedLongStruct.type_identifier2()); - } - else + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -604,32 +337,26 @@ void register_KeyedLongStruct_type_identifier( } CompleteStructType struct_type_KeyedLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedLongStruct, header_KeyedLongStruct, member_seq_KeyedLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongStruct, type_name_KeyedLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongStruct, type_name_KeyedLongStruct.to_string(), type_ids_KeyedLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedLongStruct", type_ids_KeyedLongStruct); - if (return_code_KeyedLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedULongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedULongStruct) { + + ReturnCode_t return_code_KeyedULongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedULongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedULongStruct", type_ids_KeyedULongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedULongStruct) { - StructTypeFlag struct_flags_KeyedULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedULongStruct; - TypeIdentifierPair type_ids_KeyedULongStruct; QualifiedTypeName type_name_KeyedULongStruct = "KeyedULongStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedULongStruct; eprosima::fastcdr::optional ann_custom_KeyedULongStruct; @@ -638,62 +365,26 @@ void register_KeyedULongStruct_type_identifier( header_KeyedULongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedULongStruct); CompleteStructMemberSeq member_seq_KeyedULongStruct; { - return_code_KeyedULongStruct = + TypeIdentifierPair type_ids_key_ulong; + ReturnCode_t return_code_key_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_KeyedULongStruct); + "_uint32_t", type_ids_key_ulong); - if (return_code_KeyedULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_ulong; MemberId member_id_key_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_ulong = TypeObjectUtils::build_common_struct_member(member_id_key_ulong, member_flags_key_ulong, type_ids_KeyedULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_ulong = TypeObjectUtils::build_common_struct_member(member_id_key_ulong, member_flags_key_ulong, type_ids_KeyedULongStruct.type_identifier2()); - } - else + bool common_key_ulong_ec {false}; + CommonStructMember common_key_ulong {TypeObjectUtils::build_common_struct_member(member_id_key_ulong, member_flags_key_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_ulong, common_key_ulong_ec))}; + if (!common_key_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_ulong member TypeIdentifier inconsistent."); return; } MemberName name_key_ulong = "key_ulong"; @@ -717,62 +408,26 @@ void register_KeyedULongStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedULongStruct, member_key_ulong); } { - return_code_KeyedULongStruct = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_KeyedULongStruct); + "_uint32_t", type_ids_var_ulong); - if (return_code_KeyedULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_KeyedULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_KeyedULongStruct.type_identifier2()); - } - else + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -784,32 +439,26 @@ void register_KeyedULongStruct_type_identifier( } CompleteStructType struct_type_KeyedULongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedULongStruct, header_KeyedULongStruct, member_seq_KeyedULongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedULongStruct, type_name_KeyedULongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedULongStruct, type_name_KeyedULongStruct.to_string(), type_ids_KeyedULongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedULongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedULongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedULongStruct", type_ids_KeyedULongStruct); - if (return_code_KeyedULongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedULongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedLongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedLongLongStruct) { + + ReturnCode_t return_code_KeyedLongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedLongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedLongLongStruct", type_ids_KeyedLongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedLongLongStruct) { - StructTypeFlag struct_flags_KeyedLongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedLongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedLongLongStruct; - TypeIdentifierPair type_ids_KeyedLongLongStruct; QualifiedTypeName type_name_KeyedLongLongStruct = "KeyedLongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedLongLongStruct; eprosima::fastcdr::optional ann_custom_KeyedLongLongStruct; @@ -818,62 +467,26 @@ void register_KeyedLongLongStruct_type_identifier( header_KeyedLongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedLongLongStruct); CompleteStructMemberSeq member_seq_KeyedLongLongStruct; { - return_code_KeyedLongLongStruct = + TypeIdentifierPair type_ids_key_longlong; + ReturnCode_t return_code_key_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_KeyedLongLongStruct); + "_int64_t", type_ids_key_longlong); - if (return_code_KeyedLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_longlong; MemberId member_id_key_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_longlong = TypeObjectUtils::build_common_struct_member(member_id_key_longlong, member_flags_key_longlong, type_ids_KeyedLongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_longlong = TypeObjectUtils::build_common_struct_member(member_id_key_longlong, member_flags_key_longlong, type_ids_KeyedLongLongStruct.type_identifier2()); - } - else + bool common_key_longlong_ec {false}; + CommonStructMember common_key_longlong {TypeObjectUtils::build_common_struct_member(member_id_key_longlong, member_flags_key_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_longlong, common_key_longlong_ec))}; + if (!common_key_longlong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_longlong member TypeIdentifier inconsistent."); return; } MemberName name_key_longlong = "key_longlong"; @@ -897,62 +510,26 @@ void register_KeyedLongLongStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedLongLongStruct, member_key_longlong); } { - return_code_KeyedLongLongStruct = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_KeyedLongLongStruct); + "_int64_t", type_ids_var_longlong); - if (return_code_KeyedLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_KeyedLongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_KeyedLongLongStruct.type_identifier2()); - } - else + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -964,32 +541,26 @@ void register_KeyedLongLongStruct_type_identifier( } CompleteStructType struct_type_KeyedLongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedLongLongStruct, header_KeyedLongLongStruct, member_seq_KeyedLongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongLongStruct, type_name_KeyedLongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongLongStruct, type_name_KeyedLongLongStruct.to_string(), type_ids_KeyedLongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedLongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedLongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedLongLongStruct", type_ids_KeyedLongLongStruct); - if (return_code_KeyedLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedLongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedULongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedULongLongStruct) { + + ReturnCode_t return_code_KeyedULongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedULongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedULongLongStruct", type_ids_KeyedULongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedULongLongStruct) { - StructTypeFlag struct_flags_KeyedULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedULongLongStruct; - TypeIdentifierPair type_ids_KeyedULongLongStruct; QualifiedTypeName type_name_KeyedULongLongStruct = "KeyedULongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedULongLongStruct; eprosima::fastcdr::optional ann_custom_KeyedULongLongStruct; @@ -998,62 +569,26 @@ void register_KeyedULongLongStruct_type_identifier( header_KeyedULongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedULongLongStruct); CompleteStructMemberSeq member_seq_KeyedULongLongStruct; { - return_code_KeyedULongLongStruct = + TypeIdentifierPair type_ids_key_ulonglong; + ReturnCode_t return_code_key_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_KeyedULongLongStruct); + "_uint64_t", type_ids_key_ulonglong); - if (return_code_KeyedULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_ulonglong; MemberId member_id_key_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_key_ulonglong, member_flags_key_ulonglong, type_ids_KeyedULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_key_ulonglong, member_flags_key_ulonglong, type_ids_KeyedULongLongStruct.type_identifier2()); - } - else + bool common_key_ulonglong_ec {false}; + CommonStructMember common_key_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_key_ulonglong, member_flags_key_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_ulonglong, common_key_ulonglong_ec))}; + if (!common_key_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_key_ulonglong = "key_ulonglong"; @@ -1077,62 +612,26 @@ void register_KeyedULongLongStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedULongLongStruct, member_key_ulonglong); } { - return_code_KeyedULongLongStruct = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_KeyedULongLongStruct); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_KeyedULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_KeyedULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_KeyedULongLongStruct.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -1144,32 +643,26 @@ void register_KeyedULongLongStruct_type_identifier( } CompleteStructType struct_type_KeyedULongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedULongLongStruct, header_KeyedULongLongStruct, member_seq_KeyedULongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedULongLongStruct, type_name_KeyedULongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedULongLongStruct, type_name_KeyedULongLongStruct.to_string(), type_ids_KeyedULongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedULongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedULongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedULongLongStruct", type_ids_KeyedULongLongStruct); - if (return_code_KeyedULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedULongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedFloatStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedFloatStruct) { + + ReturnCode_t return_code_KeyedFloatStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedFloatStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedFloatStruct", type_ids_KeyedFloatStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedFloatStruct) { - StructTypeFlag struct_flags_KeyedFloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedFloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedFloatStruct; - TypeIdentifierPair type_ids_KeyedFloatStruct; QualifiedTypeName type_name_KeyedFloatStruct = "KeyedFloatStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedFloatStruct; eprosima::fastcdr::optional ann_custom_KeyedFloatStruct; @@ -1178,62 +671,26 @@ void register_KeyedFloatStruct_type_identifier( header_KeyedFloatStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedFloatStruct); CompleteStructMemberSeq member_seq_KeyedFloatStruct; { - return_code_KeyedFloatStruct = + TypeIdentifierPair type_ids_key_float; + ReturnCode_t return_code_key_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_KeyedFloatStruct); + "_float", type_ids_key_float); - if (return_code_KeyedFloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_float; MemberId member_id_key_float = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_float = TypeObjectUtils::build_common_struct_member(member_id_key_float, member_flags_key_float, type_ids_KeyedFloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_float = TypeObjectUtils::build_common_struct_member(member_id_key_float, member_flags_key_float, type_ids_KeyedFloatStruct.type_identifier2()); - } - else + bool common_key_float_ec {false}; + CommonStructMember common_key_float {TypeObjectUtils::build_common_struct_member(member_id_key_float, member_flags_key_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_float, common_key_float_ec))}; + if (!common_key_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_float member TypeIdentifier inconsistent."); return; } MemberName name_key_float = "key_float"; @@ -1257,62 +714,26 @@ void register_KeyedFloatStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedFloatStruct, member_key_float); } { - return_code_KeyedFloatStruct = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_KeyedFloatStruct); + "_float", type_ids_var_float); - if (return_code_KeyedFloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_KeyedFloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedFloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_KeyedFloatStruct.type_identifier2()); - } - else + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -1324,32 +745,26 @@ void register_KeyedFloatStruct_type_identifier( } CompleteStructType struct_type_KeyedFloatStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedFloatStruct, header_KeyedFloatStruct, member_seq_KeyedFloatStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedFloatStruct, type_name_KeyedFloatStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedFloatStruct, type_name_KeyedFloatStruct.to_string(), type_ids_KeyedFloatStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedFloatStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedFloatStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedFloatStruct", type_ids_KeyedFloatStruct); - if (return_code_KeyedFloatStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedFloatStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedDoubleStruct) { + + ReturnCode_t return_code_KeyedDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedDoubleStruct", type_ids_KeyedDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedDoubleStruct) { - StructTypeFlag struct_flags_KeyedDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedDoubleStruct; - TypeIdentifierPair type_ids_KeyedDoubleStruct; QualifiedTypeName type_name_KeyedDoubleStruct = "KeyedDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedDoubleStruct; eprosima::fastcdr::optional ann_custom_KeyedDoubleStruct; @@ -1358,62 +773,26 @@ void register_KeyedDoubleStruct_type_identifier( header_KeyedDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedDoubleStruct); CompleteStructMemberSeq member_seq_KeyedDoubleStruct; { - return_code_KeyedDoubleStruct = + TypeIdentifierPair type_ids_key_double; + ReturnCode_t return_code_key_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_KeyedDoubleStruct); + "_double", type_ids_key_double); - if (return_code_KeyedDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_double; MemberId member_id_key_double = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_double = TypeObjectUtils::build_common_struct_member(member_id_key_double, member_flags_key_double, type_ids_KeyedDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_double = TypeObjectUtils::build_common_struct_member(member_id_key_double, member_flags_key_double, type_ids_KeyedDoubleStruct.type_identifier2()); - } - else + bool common_key_double_ec {false}; + CommonStructMember common_key_double {TypeObjectUtils::build_common_struct_member(member_id_key_double, member_flags_key_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_double, common_key_double_ec))}; + if (!common_key_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_double member TypeIdentifier inconsistent."); return; } MemberName name_key_double = "key_double"; @@ -1437,62 +816,26 @@ void register_KeyedDoubleStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedDoubleStruct, member_key_double); } { - return_code_KeyedDoubleStruct = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_KeyedDoubleStruct); + "_double", type_ids_var_double); - if (return_code_KeyedDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_KeyedDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_KeyedDoubleStruct.type_identifier2()); - } - else + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -1504,32 +847,26 @@ void register_KeyedDoubleStruct_type_identifier( } CompleteStructType struct_type_KeyedDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedDoubleStruct, header_KeyedDoubleStruct, member_seq_KeyedDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedDoubleStruct, type_name_KeyedDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedDoubleStruct, type_name_KeyedDoubleStruct.to_string(), type_ids_KeyedDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedDoubleStruct", type_ids_KeyedDoubleStruct); - if (return_code_KeyedDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedLongDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedLongDoubleStruct) { + + ReturnCode_t return_code_KeyedLongDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedLongDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedLongDoubleStruct", type_ids_KeyedLongDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedLongDoubleStruct) { - StructTypeFlag struct_flags_KeyedLongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedLongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedLongDoubleStruct; - TypeIdentifierPair type_ids_KeyedLongDoubleStruct; QualifiedTypeName type_name_KeyedLongDoubleStruct = "KeyedLongDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedLongDoubleStruct; eprosima::fastcdr::optional ann_custom_KeyedLongDoubleStruct; @@ -1538,62 +875,26 @@ void register_KeyedLongDoubleStruct_type_identifier( header_KeyedLongDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedLongDoubleStruct); CompleteStructMemberSeq member_seq_KeyedLongDoubleStruct; { - return_code_KeyedLongDoubleStruct = + TypeIdentifierPair type_ids_key_longdouble; + ReturnCode_t return_code_key_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_KeyedLongDoubleStruct); + "_longdouble", type_ids_key_longdouble); - if (return_code_KeyedLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_longdouble; MemberId member_id_key_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_longdouble = TypeObjectUtils::build_common_struct_member(member_id_key_longdouble, member_flags_key_longdouble, type_ids_KeyedLongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_longdouble = TypeObjectUtils::build_common_struct_member(member_id_key_longdouble, member_flags_key_longdouble, type_ids_KeyedLongDoubleStruct.type_identifier2()); - } - else + bool common_key_longdouble_ec {false}; + CommonStructMember common_key_longdouble {TypeObjectUtils::build_common_struct_member(member_id_key_longdouble, member_flags_key_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_longdouble, common_key_longdouble_ec))}; + if (!common_key_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_key_longdouble = "key_longdouble"; @@ -1617,62 +918,26 @@ void register_KeyedLongDoubleStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedLongDoubleStruct, member_key_longdouble); } { - return_code_KeyedLongDoubleStruct = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_KeyedLongDoubleStruct); + "_longdouble", type_ids_var_longdouble); - if (return_code_KeyedLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_KeyedLongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedLongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_KeyedLongDoubleStruct.type_identifier2()); - } - else + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -1684,32 +949,26 @@ void register_KeyedLongDoubleStruct_type_identifier( } CompleteStructType struct_type_KeyedLongDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedLongDoubleStruct, header_KeyedLongDoubleStruct, member_seq_KeyedLongDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongDoubleStruct, type_name_KeyedLongDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedLongDoubleStruct, type_name_KeyedLongDoubleStruct.to_string(), type_ids_KeyedLongDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedLongDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedLongDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedLongDoubleStruct", type_ids_KeyedLongDoubleStruct); - if (return_code_KeyedLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedLongDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedBooleanStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedBooleanStruct) { + + ReturnCode_t return_code_KeyedBooleanStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedBooleanStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedBooleanStruct", type_ids_KeyedBooleanStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedBooleanStruct) { - StructTypeFlag struct_flags_KeyedBooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedBooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedBooleanStruct; - TypeIdentifierPair type_ids_KeyedBooleanStruct; QualifiedTypeName type_name_KeyedBooleanStruct = "KeyedBooleanStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedBooleanStruct; eprosima::fastcdr::optional ann_custom_KeyedBooleanStruct; @@ -1718,62 +977,26 @@ void register_KeyedBooleanStruct_type_identifier( header_KeyedBooleanStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedBooleanStruct); CompleteStructMemberSeq member_seq_KeyedBooleanStruct; { - return_code_KeyedBooleanStruct = + TypeIdentifierPair type_ids_key_boolean; + ReturnCode_t return_code_key_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_KeyedBooleanStruct); + "_bool", type_ids_key_boolean); - if (return_code_KeyedBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_boolean; MemberId member_id_key_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_boolean = TypeObjectUtils::build_common_struct_member(member_id_key_boolean, member_flags_key_boolean, type_ids_KeyedBooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_boolean = TypeObjectUtils::build_common_struct_member(member_id_key_boolean, member_flags_key_boolean, type_ids_KeyedBooleanStruct.type_identifier2()); - } - else + bool common_key_boolean_ec {false}; + CommonStructMember common_key_boolean {TypeObjectUtils::build_common_struct_member(member_id_key_boolean, member_flags_key_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_boolean, common_key_boolean_ec))}; + if (!common_key_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_boolean member TypeIdentifier inconsistent."); return; } MemberName name_key_boolean = "key_boolean"; @@ -1797,62 +1020,26 @@ void register_KeyedBooleanStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedBooleanStruct, member_key_boolean); } { - return_code_KeyedBooleanStruct = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_KeyedBooleanStruct); + "_bool", type_ids_var_boolean); - if (return_code_KeyedBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_KeyedBooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedBooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_KeyedBooleanStruct.type_identifier2()); - } - else + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1864,32 +1051,26 @@ void register_KeyedBooleanStruct_type_identifier( } CompleteStructType struct_type_KeyedBooleanStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedBooleanStruct, header_KeyedBooleanStruct, member_seq_KeyedBooleanStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedBooleanStruct, type_name_KeyedBooleanStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedBooleanStruct, type_name_KeyedBooleanStruct.to_string(), type_ids_KeyedBooleanStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedBooleanStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedBooleanStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedBooleanStruct", type_ids_KeyedBooleanStruct); - if (return_code_KeyedBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedBooleanStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedOctetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedOctetStruct) { + + ReturnCode_t return_code_KeyedOctetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedOctetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedOctetStruct", type_ids_KeyedOctetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedOctetStruct) { - StructTypeFlag struct_flags_KeyedOctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedOctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedOctetStruct; - TypeIdentifierPair type_ids_KeyedOctetStruct; QualifiedTypeName type_name_KeyedOctetStruct = "KeyedOctetStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedOctetStruct; eprosima::fastcdr::optional ann_custom_KeyedOctetStruct; @@ -1898,62 +1079,26 @@ void register_KeyedOctetStruct_type_identifier( header_KeyedOctetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedOctetStruct); CompleteStructMemberSeq member_seq_KeyedOctetStruct; { - return_code_KeyedOctetStruct = + TypeIdentifierPair type_ids_key_octet; + ReturnCode_t return_code_key_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_KeyedOctetStruct); + "_byte", type_ids_key_octet); - if (return_code_KeyedOctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_octet; MemberId member_id_key_octet = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_octet = TypeObjectUtils::build_common_struct_member(member_id_key_octet, member_flags_key_octet, type_ids_KeyedOctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_octet = TypeObjectUtils::build_common_struct_member(member_id_key_octet, member_flags_key_octet, type_ids_KeyedOctetStruct.type_identifier2()); - } - else + bool common_key_octet_ec {false}; + CommonStructMember common_key_octet {TypeObjectUtils::build_common_struct_member(member_id_key_octet, member_flags_key_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_octet, common_key_octet_ec))}; + if (!common_key_octet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_octet member TypeIdentifier inconsistent."); return; } MemberName name_key_octet = "key_octet"; @@ -1977,62 +1122,26 @@ void register_KeyedOctetStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedOctetStruct, member_key_octet); } { - return_code_KeyedOctetStruct = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_KeyedOctetStruct); + "_byte", type_ids_var_octet); - if (return_code_KeyedOctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_KeyedOctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedOctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_KeyedOctetStruct.type_identifier2()); - } - else + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -2044,32 +1153,26 @@ void register_KeyedOctetStruct_type_identifier( } CompleteStructType struct_type_KeyedOctetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedOctetStruct, header_KeyedOctetStruct, member_seq_KeyedOctetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedOctetStruct, type_name_KeyedOctetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedOctetStruct, type_name_KeyedOctetStruct.to_string(), type_ids_KeyedOctetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedOctetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedOctetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedOctetStruct", type_ids_KeyedOctetStruct); - if (return_code_KeyedOctetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedOctetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedCharStruct) { + + ReturnCode_t return_code_KeyedCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedCharStruct", type_ids_KeyedCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedCharStruct) { - StructTypeFlag struct_flags_KeyedCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedCharStruct; - TypeIdentifierPair type_ids_KeyedCharStruct; QualifiedTypeName type_name_KeyedCharStruct = "KeyedCharStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedCharStruct; eprosima::fastcdr::optional ann_custom_KeyedCharStruct; @@ -2078,62 +1181,26 @@ void register_KeyedCharStruct_type_identifier( header_KeyedCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedCharStruct); CompleteStructMemberSeq member_seq_KeyedCharStruct; { - return_code_KeyedCharStruct = + TypeIdentifierPair type_ids_key_char8; + ReturnCode_t return_code_key_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_KeyedCharStruct); + "_char", type_ids_key_char8); - if (return_code_KeyedCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_char8; MemberId member_id_key_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_char8 = TypeObjectUtils::build_common_struct_member(member_id_key_char8, member_flags_key_char8, type_ids_KeyedCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_char8 = TypeObjectUtils::build_common_struct_member(member_id_key_char8, member_flags_key_char8, type_ids_KeyedCharStruct.type_identifier2()); - } - else + bool common_key_char8_ec {false}; + CommonStructMember common_key_char8 {TypeObjectUtils::build_common_struct_member(member_id_key_char8, member_flags_key_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_char8, common_key_char8_ec))}; + if (!common_key_char8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_char8 member TypeIdentifier inconsistent."); return; } MemberName name_key_char8 = "key_char8"; @@ -2157,62 +1224,26 @@ void register_KeyedCharStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCharStruct, member_key_char8); } { - return_code_KeyedCharStruct = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_KeyedCharStruct); + "_char", type_ids_var_char8); - if (return_code_KeyedCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_KeyedCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_KeyedCharStruct.type_identifier2()); - } - else + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -2224,32 +1255,26 @@ void register_KeyedCharStruct_type_identifier( } CompleteStructType struct_type_KeyedCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedCharStruct, header_KeyedCharStruct, member_seq_KeyedCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedCharStruct, type_name_KeyedCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedCharStruct, type_name_KeyedCharStruct.to_string(), type_ids_KeyedCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedCharStruct", type_ids_KeyedCharStruct); - if (return_code_KeyedCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedWCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedWCharStruct) { + + ReturnCode_t return_code_KeyedWCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedWCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedWCharStruct", type_ids_KeyedWCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedWCharStruct) { - StructTypeFlag struct_flags_KeyedWCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedWCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedWCharStruct; - TypeIdentifierPair type_ids_KeyedWCharStruct; QualifiedTypeName type_name_KeyedWCharStruct = "KeyedWCharStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedWCharStruct; eprosima::fastcdr::optional ann_custom_KeyedWCharStruct; @@ -2258,62 +1283,26 @@ void register_KeyedWCharStruct_type_identifier( header_KeyedWCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedWCharStruct); CompleteStructMemberSeq member_seq_KeyedWCharStruct; { - return_code_KeyedWCharStruct = + TypeIdentifierPair type_ids_key_char16; + ReturnCode_t return_code_key_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_KeyedWCharStruct); + "_wchar_t", type_ids_key_char16); - if (return_code_KeyedWCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_char16; MemberId member_id_key_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_char16 = TypeObjectUtils::build_common_struct_member(member_id_key_char16, member_flags_key_char16, type_ids_KeyedWCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_char16 = TypeObjectUtils::build_common_struct_member(member_id_key_char16, member_flags_key_char16, type_ids_KeyedWCharStruct.type_identifier2()); - } - else + bool common_key_char16_ec {false}; + CommonStructMember common_key_char16 {TypeObjectUtils::build_common_struct_member(member_id_key_char16, member_flags_key_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_char16, common_key_char16_ec))}; + if (!common_key_char16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_char16 member TypeIdentifier inconsistent."); return; } MemberName name_key_char16 = "key_char16"; @@ -2337,62 +1326,26 @@ void register_KeyedWCharStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedWCharStruct, member_key_char16); } { - return_code_KeyedWCharStruct = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_KeyedWCharStruct); + "_wchar_t", type_ids_var_char16); - if (return_code_KeyedWCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_KeyedWCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedWCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_KeyedWCharStruct.type_identifier2()); - } - else + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -2404,32 +1357,26 @@ void register_KeyedWCharStruct_type_identifier( } CompleteStructType struct_type_KeyedWCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedWCharStruct, header_KeyedWCharStruct, member_seq_KeyedWCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedWCharStruct, type_name_KeyedWCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedWCharStruct, type_name_KeyedWCharStruct.to_string(), type_ids_KeyedWCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedWCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedWCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedWCharStruct", type_ids_KeyedWCharStruct); - if (return_code_KeyedWCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedWCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedEmptyStruct) { + + ReturnCode_t return_code_KeyedEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedEmptyStruct", type_ids_KeyedEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedEmptyStruct) { - StructTypeFlag struct_flags_KeyedEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedEmptyStruct; - TypeIdentifierPair type_ids_KeyedEmptyStruct; QualifiedTypeName type_name_KeyedEmptyStruct = "KeyedEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedEmptyStruct; eprosima::fastcdr::optional ann_custom_KeyedEmptyStruct; @@ -2438,62 +1385,26 @@ void register_KeyedEmptyStruct_type_identifier( header_KeyedEmptyStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedEmptyStruct); CompleteStructMemberSeq member_seq_KeyedEmptyStruct; { - return_code_KeyedEmptyStruct = + TypeIdentifierPair type_ids_key_short; + ReturnCode_t return_code_key_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedEmptyStruct); + "_int16_t", type_ids_key_short); - if (return_code_KeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "key_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, true, false); - CommonStructMember common_key_short; MemberId member_id_key_short = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedEmptyStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedEmptyStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedEmptyStruct.type_identifier2()); - } - else + bool common_key_short_ec {false}; + CommonStructMember common_key_short {TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_short, common_key_short_ec))}; + if (!common_key_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_short member TypeIdentifier inconsistent."); return; } MemberName name_key_short = "key_short"; @@ -2518,149 +1429,33 @@ void register_KeyedEmptyStruct_type_identifier( } CompleteStructType struct_type_KeyedEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedEmptyStruct, header_KeyedEmptyStruct, member_seq_KeyedEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedEmptyStruct, type_name_KeyedEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedEmptyStruct, type_name_KeyedEmptyStruct.to_string(), type_ids_KeyedEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedEmptyStruct", type_ids_KeyedEmptyStruct); - if (return_code_KeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedEmptyInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedEmptyInheritanceStruct) { + + ReturnCode_t return_code_KeyedEmptyInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedEmptyInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedEmptyInheritanceStruct", type_ids_KeyedEmptyInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedEmptyInheritanceStruct) { - StructTypeFlag struct_flags_KeyedEmptyInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedEmptyInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedEmptyInheritanceStruct; - TypeIdentifierPair type_ids_KeyedEmptyInheritanceStruct; return_code_KeyedEmptyInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "KeyedEmptyStruct", type_ids_KeyedEmptyInheritanceStruct); if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_KeyedEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_KeyedEmptyStruct; - TypeIdentifierPair type_ids_KeyedEmptyStruct; - QualifiedTypeName type_name_KeyedEmptyStruct = "KeyedEmptyStruct"; - eprosima::fastcdr::optional type_ann_builtin_KeyedEmptyStruct; - eprosima::fastcdr::optional ann_custom_KeyedEmptyStruct; - CompleteTypeDetail detail_KeyedEmptyStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_KeyedEmptyStruct, ann_custom_KeyedEmptyStruct, type_name_KeyedEmptyStruct.to_string()); - CompleteStructHeader header_KeyedEmptyStruct; - header_KeyedEmptyStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedEmptyStruct); - CompleteStructMemberSeq member_seq_KeyedEmptyStruct; - { - return_code_KeyedEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedEmptyStruct); - - if (return_code_KeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "key_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_key_short; - MemberId member_id_key_short = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedEmptyStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedEmptyStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedEmptyStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_key_short = "key_short"; - eprosima::fastcdr::optional member_ann_builtin_key_short; - ann_custom_KeyedEmptyStruct.reset(); - AppliedAnnotationSeq tmp_ann_custom_key_short; - eprosima::fastcdr::optional unit_key_short; - eprosima::fastcdr::optional min_key_short; - eprosima::fastcdr::optional max_key_short; - eprosima::fastcdr::optional hash_id_key_short; - if (unit_key_short.has_value() || min_key_short.has_value() || max_key_short.has_value() || hash_id_key_short.has_value()) - { - member_ann_builtin_key_short = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_short, min_key_short, max_key_short, hash_id_key_short); - } - if (!tmp_ann_custom_key_short.empty()) - { - ann_custom_KeyedEmptyStruct = tmp_ann_custom_key_short; - } - CompleteMemberDetail detail_key_short = TypeObjectUtils::build_complete_member_detail(name_key_short, member_ann_builtin_key_short, ann_custom_KeyedEmptyStruct); - CompleteStructMember member_key_short = TypeObjectUtils::build_complete_struct_member(common_key_short, detail_key_short); - TypeObjectUtils::add_complete_struct_member(member_seq_KeyedEmptyStruct, member_key_short); - } - CompleteStructType struct_type_KeyedEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedEmptyStruct, header_KeyedEmptyStruct, member_seq_KeyedEmptyStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedEmptyStruct, type_name_KeyedEmptyStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedEmptyStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_KeyedEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedEmptyStruct", type_ids_KeyedEmptyStruct); - if (return_code_KeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_KeyedEmptyInheritanceStruct = return_code_KeyedEmptyStruct; - type_ids_KeyedEmptyInheritanceStruct = type_ids_KeyedEmptyStruct; - } +::register_KeyedEmptyStruct_type_identifier(type_ids_KeyedEmptyInheritanceStruct); } QualifiedTypeName type_name_KeyedEmptyInheritanceStruct = "KeyedEmptyInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedEmptyInheritanceStruct; @@ -2679,84 +1474,38 @@ void register_KeyedEmptyInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedEmptyInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_KeyedEmptyInheritanceStruct; { - return_code_KeyedEmptyInheritanceStruct = + TypeIdentifierPair type_ids_key_str; + ReturnCode_t return_code_key_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedEmptyInheritanceStruct); + "anonymous_string_unbounded", type_ids_key_str); - if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_key_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedEmptyInheritanceStruct); - if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_key_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_key_str; MemberId member_id_key_str = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_str = TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, type_ids_KeyedEmptyInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_str = TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, type_ids_KeyedEmptyInheritanceStruct.type_identifier2()); - } - else + bool common_key_str_ec {false}; + CommonStructMember common_key_str {TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_str, common_key_str_ec))}; + if (!common_key_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_str member TypeIdentifier inconsistent."); return; } MemberName name_key_str = "key_str"; @@ -2767,79 +1516,34 @@ void register_KeyedEmptyInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedEmptyInheritanceStruct, member_key_str); } { - return_code_KeyedEmptyInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedEmptyInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedEmptyInheritanceStruct); - if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000002; - if (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_KeyedEmptyInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedEmptyInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_KeyedEmptyInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2851,215 +1555,33 @@ void register_KeyedEmptyInheritanceStruct_type_identifier( } CompleteStructType struct_type_KeyedEmptyInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedEmptyInheritanceStruct, header_KeyedEmptyInheritanceStruct, member_seq_KeyedEmptyInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedEmptyInheritanceStruct, type_name_KeyedEmptyInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedEmptyInheritanceStruct, type_name_KeyedEmptyInheritanceStruct.to_string(), type_ids_KeyedEmptyInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedEmptyInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedEmptyInheritanceStruct", type_ids_KeyedEmptyInheritanceStruct); - if (return_code_KeyedEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedEmptyInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_KeyedInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_KeyedInheritanceStruct) { + + ReturnCode_t return_code_KeyedInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_KeyedInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedInheritanceStruct", type_ids_KeyedInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_KeyedInheritanceStruct) { - StructTypeFlag struct_flags_KeyedInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_KeyedInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_KeyedInheritanceStruct; - TypeIdentifierPair type_ids_KeyedInheritanceStruct; return_code_KeyedInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "KeyedShortStruct", type_ids_KeyedInheritanceStruct); if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_KeyedShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_KeyedShortStruct; - TypeIdentifierPair type_ids_KeyedShortStruct; - QualifiedTypeName type_name_KeyedShortStruct = "KeyedShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_KeyedShortStruct; - eprosima::fastcdr::optional ann_custom_KeyedShortStruct; - CompleteTypeDetail detail_KeyedShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_KeyedShortStruct, ann_custom_KeyedShortStruct, type_name_KeyedShortStruct.to_string()); - CompleteStructHeader header_KeyedShortStruct; - header_KeyedShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedShortStruct); - CompleteStructMemberSeq member_seq_KeyedShortStruct; - { - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); - - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "key_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_key_short; - MemberId member_id_key_short = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_key_short = "key_short"; - eprosima::fastcdr::optional member_ann_builtin_key_short; - ann_custom_KeyedShortStruct.reset(); - AppliedAnnotationSeq tmp_ann_custom_key_short; - eprosima::fastcdr::optional unit_key_short; - eprosima::fastcdr::optional min_key_short; - eprosima::fastcdr::optional max_key_short; - eprosima::fastcdr::optional hash_id_key_short; - if (unit_key_short.has_value() || min_key_short.has_value() || max_key_short.has_value() || hash_id_key_short.has_value()) - { - member_ann_builtin_key_short = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_short, min_key_short, max_key_short, hash_id_key_short); - } - if (!tmp_ann_custom_key_short.empty()) - { - ann_custom_KeyedShortStruct = tmp_ann_custom_key_short; - } - CompleteMemberDetail detail_key_short = TypeObjectUtils::build_complete_member_detail(name_key_short, member_ann_builtin_key_short, ann_custom_KeyedShortStruct); - CompleteStructMember member_key_short = TypeObjectUtils::build_complete_struct_member(common_key_short, detail_key_short); - TypeObjectUtils::add_complete_struct_member(member_seq_KeyedShortStruct, member_key_short); - } - { - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); - - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_KeyedShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_KeyedShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_KeyedShortStruct, member_var_short); - } - CompleteStructType struct_type_KeyedShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedShortStruct, header_KeyedShortStruct, member_seq_KeyedShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedShortStruct, type_name_KeyedShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedShortStruct", type_ids_KeyedShortStruct); - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_KeyedInheritanceStruct = return_code_KeyedShortStruct; - type_ids_KeyedInheritanceStruct = type_ids_KeyedShortStruct; - } +::register_KeyedShortStruct_type_identifier(type_ids_KeyedInheritanceStruct); } QualifiedTypeName type_name_KeyedInheritanceStruct = "KeyedInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_KeyedInheritanceStruct; @@ -3078,84 +1600,38 @@ void register_KeyedInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_KeyedInheritanceStruct; { - return_code_KeyedInheritanceStruct = + TypeIdentifierPair type_ids_key_str; + ReturnCode_t return_code_key_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_key_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedInheritanceStruct); + "anonymous_string_unbounded", type_ids_key_str); - if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_key_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_key_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedInheritanceStruct); - if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_key_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_key_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_key_str; MemberId member_id_key_str = 0x00000002; - if (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_str = TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, type_ids_KeyedInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_str = TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, type_ids_KeyedInheritanceStruct.type_identifier2()); - } - else + bool common_key_str_ec {false}; + CommonStructMember common_key_str {TypeObjectUtils::build_common_struct_member(member_id_key_str, member_flags_key_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_key_str, common_key_str_ec))}; + if (!common_key_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure key_str member TypeIdentifier inconsistent."); return; } MemberName name_key_str = "key_str"; @@ -3166,79 +1642,34 @@ void register_KeyedInheritanceStruct_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_KeyedInheritanceStruct, member_key_str); } { - return_code_KeyedInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_KeyedInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_KeyedInheritanceStruct); - if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000003; - if (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_KeyedInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_KeyedInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -3250,215 +1681,33 @@ void register_KeyedInheritanceStruct_type_identifier( } CompleteStructType struct_type_KeyedInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedInheritanceStruct, header_KeyedInheritanceStruct, member_seq_KeyedInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedInheritanceStruct, type_name_KeyedInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedInheritanceStruct, type_name_KeyedInheritanceStruct.to_string(), type_ids_KeyedInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "KeyedInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_KeyedInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedInheritanceStruct", type_ids_KeyedInheritanceStruct); - if (return_code_KeyedInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InheritanceKeyedEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InheritanceKeyedEmptyStruct) { + + ReturnCode_t return_code_InheritanceKeyedEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InheritanceKeyedEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InheritanceKeyedEmptyStruct", type_ids_InheritanceKeyedEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InheritanceKeyedEmptyStruct) { - StructTypeFlag struct_flags_InheritanceKeyedEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InheritanceKeyedEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InheritanceKeyedEmptyStruct; - TypeIdentifierPair type_ids_InheritanceKeyedEmptyStruct; return_code_InheritanceKeyedEmptyStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "KeyedShortStruct", type_ids_InheritanceKeyedEmptyStruct); if (return_code_InheritanceKeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_KeyedShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_KeyedShortStruct; - TypeIdentifierPair type_ids_KeyedShortStruct; - QualifiedTypeName type_name_KeyedShortStruct = "KeyedShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_KeyedShortStruct; - eprosima::fastcdr::optional ann_custom_KeyedShortStruct; - CompleteTypeDetail detail_KeyedShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_KeyedShortStruct, ann_custom_KeyedShortStruct, type_name_KeyedShortStruct.to_string()); - CompleteStructHeader header_KeyedShortStruct; - header_KeyedShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedShortStruct); - CompleteStructMemberSeq member_seq_KeyedShortStruct; - { - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); - - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "key_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_key_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, true, false); - CommonStructMember common_key_short; - MemberId member_id_key_short = 0x00000000; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_key_short = TypeObjectUtils::build_common_struct_member(member_id_key_short, member_flags_key_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure key_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_key_short = "key_short"; - eprosima::fastcdr::optional member_ann_builtin_key_short; - ann_custom_KeyedShortStruct.reset(); - AppliedAnnotationSeq tmp_ann_custom_key_short; - eprosima::fastcdr::optional unit_key_short; - eprosima::fastcdr::optional min_key_short; - eprosima::fastcdr::optional max_key_short; - eprosima::fastcdr::optional hash_id_key_short; - if (unit_key_short.has_value() || min_key_short.has_value() || max_key_short.has_value() || hash_id_key_short.has_value()) - { - member_ann_builtin_key_short = TypeObjectUtils::build_applied_builtin_member_annotations(unit_key_short, min_key_short, max_key_short, hash_id_key_short); - } - if (!tmp_ann_custom_key_short.empty()) - { - ann_custom_KeyedShortStruct = tmp_ann_custom_key_short; - } - CompleteMemberDetail detail_key_short = TypeObjectUtils::build_complete_member_detail(name_key_short, member_ann_builtin_key_short, ann_custom_KeyedShortStruct); - CompleteStructMember member_key_short = TypeObjectUtils::build_complete_struct_member(common_key_short, detail_key_short); - TypeObjectUtils::add_complete_struct_member(member_seq_KeyedShortStruct, member_key_short); - } - { - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_KeyedShortStruct); - - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000001; - if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1()._d() || TK_NONE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_KeyedShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_KeyedShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_KeyedShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_KeyedShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_KeyedShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_KeyedShortStruct, member_var_short); - } - CompleteStructType struct_type_KeyedShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedShortStruct, header_KeyedShortStruct, member_seq_KeyedShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedShortStruct, type_name_KeyedShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_KeyedShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "KeyedShortStruct", type_ids_KeyedShortStruct); - if (return_code_KeyedShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "KeyedShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_InheritanceKeyedEmptyStruct = return_code_KeyedShortStruct; - type_ids_InheritanceKeyedEmptyStruct = type_ids_KeyedShortStruct; - } +::register_KeyedShortStruct_type_identifier(type_ids_InheritanceKeyedEmptyStruct); } QualifiedTypeName type_name_InheritanceKeyedEmptyStruct = "InheritanceKeyedEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_InheritanceKeyedEmptyStruct; @@ -3477,27 +1726,16 @@ void register_InheritanceKeyedEmptyStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InheritanceKeyedEmptyStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_InheritanceKeyedEmptyStruct; CompleteStructType struct_type_InheritanceKeyedEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_InheritanceKeyedEmptyStruct, header_InheritanceKeyedEmptyStruct, member_seq_InheritanceKeyedEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InheritanceKeyedEmptyStruct, type_name_InheritanceKeyedEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InheritanceKeyedEmptyStruct, type_name_InheritanceKeyedEmptyStruct.to_string(), type_ids_InheritanceKeyedEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InheritanceKeyedEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_InheritanceKeyedEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InheritanceKeyedEmptyStruct", type_ids_InheritanceKeyedEmptyStruct); - if (return_code_InheritanceKeyedEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InheritanceKeyedEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/keyTypeObjectSupport.hpp b/test/dds-types-test/keyTypeObjectSupport.hpp index d0f67e99cba..2f50c759b0b 100644 --- a/test/dds-types-test/keyTypeObjectSupport.hpp +++ b/test/dds-types-test/keyTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_key_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_key_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedUShortStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +60,7 @@ eProsima_user_DllExport void register_KeyedShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedUShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -77,7 +72,7 @@ eProsima_user_DllExport void register_KeyedUShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedULongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -89,7 +84,7 @@ eProsima_user_DllExport void register_KeyedLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedULongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedLongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -101,7 +96,7 @@ eProsima_user_DllExport void register_KeyedULongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedLongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedULongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -113,7 +108,7 @@ eProsima_user_DllExport void register_KeyedLongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedULongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedFloatStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -125,7 +120,7 @@ eProsima_user_DllExport void register_KeyedULongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedFloatStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -137,7 +132,7 @@ eProsima_user_DllExport void register_KeyedFloatStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedLongDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -149,7 +144,7 @@ eProsima_user_DllExport void register_KeyedDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedLongDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedBooleanStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -161,7 +156,7 @@ eProsima_user_DllExport void register_KeyedLongDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedBooleanStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedOctetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -173,7 +168,7 @@ eProsima_user_DllExport void register_KeyedBooleanStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedOctetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -185,7 +180,7 @@ eProsima_user_DllExport void register_KeyedOctetStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedWCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -197,7 +192,7 @@ eProsima_user_DllExport void register_KeyedCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedWCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -209,7 +204,7 @@ eProsima_user_DllExport void register_KeyedWCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedEmptyInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -221,7 +216,7 @@ eProsima_user_DllExport void register_KeyedEmptyStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedEmptyInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register KeyedInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -233,7 +228,7 @@ eProsima_user_DllExport void register_KeyedEmptyInheritanceStruct_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_KeyedInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InheritanceKeyedEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -245,7 +240,7 @@ eProsima_user_DllExport void register_KeyedInheritanceStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InheritanceKeyedEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/mapsPubSubTypes.cxx b/test/dds-types-test/mapsPubSubTypes.cxx index b9efeb013a7..4994efc2f07 100644 --- a/test/dds-types-test/mapsPubSubTypes.cxx +++ b/test/dds-types-test/mapsPubSubTypes.cxx @@ -219,9 +219,9 @@ bool MapShortShortPubSubType::getKey( return true; } -void MapShortShortPubSubType::register_type_object_representation() const +void MapShortShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortShort_type_identifier(type_identifiers_); } MapShortUShortPubSubType::MapShortUShortPubSubType() @@ -412,9 +412,9 @@ bool MapShortUShortPubSubType::getKey( return true; } -void MapShortUShortPubSubType::register_type_object_representation() const +void MapShortUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortUShort_type_identifier(type_identifiers_); } MapShortLongPubSubType::MapShortLongPubSubType() @@ -605,9 +605,9 @@ bool MapShortLongPubSubType::getKey( return true; } -void MapShortLongPubSubType::register_type_object_representation() const +void MapShortLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortLong_type_identifier(type_identifiers_); } MapShortULongPubSubType::MapShortULongPubSubType() @@ -798,9 +798,9 @@ bool MapShortULongPubSubType::getKey( return true; } -void MapShortULongPubSubType::register_type_object_representation() const +void MapShortULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortULong_type_identifier(type_identifiers_); } MapShortLongLongPubSubType::MapShortLongLongPubSubType() @@ -991,9 +991,9 @@ bool MapShortLongLongPubSubType::getKey( return true; } -void MapShortLongLongPubSubType::register_type_object_representation() const +void MapShortLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortLongLong_type_identifier(type_identifiers_); } MapShortULongLongPubSubType::MapShortULongLongPubSubType() @@ -1184,9 +1184,9 @@ bool MapShortULongLongPubSubType::getKey( return true; } -void MapShortULongLongPubSubType::register_type_object_representation() const +void MapShortULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortULongLong_type_identifier(type_identifiers_); } MapShortFloatPubSubType::MapShortFloatPubSubType() @@ -1377,9 +1377,9 @@ bool MapShortFloatPubSubType::getKey( return true; } -void MapShortFloatPubSubType::register_type_object_representation() const +void MapShortFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortFloat_type_identifier(type_identifiers_); } MapShortDoublePubSubType::MapShortDoublePubSubType() @@ -1570,9 +1570,9 @@ bool MapShortDoublePubSubType::getKey( return true; } -void MapShortDoublePubSubType::register_type_object_representation() const +void MapShortDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortDouble_type_identifier(type_identifiers_); } MapShortLongDoublePubSubType::MapShortLongDoublePubSubType() @@ -1763,9 +1763,9 @@ bool MapShortLongDoublePubSubType::getKey( return true; } -void MapShortLongDoublePubSubType::register_type_object_representation() const +void MapShortLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortLongDouble_type_identifier(type_identifiers_); } MapShortBooleanPubSubType::MapShortBooleanPubSubType() @@ -1956,9 +1956,9 @@ bool MapShortBooleanPubSubType::getKey( return true; } -void MapShortBooleanPubSubType::register_type_object_representation() const +void MapShortBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortBoolean_type_identifier(type_identifiers_); } MapShortOctetPubSubType::MapShortOctetPubSubType() @@ -2149,9 +2149,9 @@ bool MapShortOctetPubSubType::getKey( return true; } -void MapShortOctetPubSubType::register_type_object_representation() const +void MapShortOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortOctet_type_identifier(type_identifiers_); } MapShortCharPubSubType::MapShortCharPubSubType() @@ -2342,9 +2342,9 @@ bool MapShortCharPubSubType::getKey( return true; } -void MapShortCharPubSubType::register_type_object_representation() const +void MapShortCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortChar_type_identifier(type_identifiers_); } MapShortWCharPubSubType::MapShortWCharPubSubType() @@ -2535,9 +2535,9 @@ bool MapShortWCharPubSubType::getKey( return true; } -void MapShortWCharPubSubType::register_type_object_representation() const +void MapShortWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortWChar_type_identifier(type_identifiers_); } MapShortStringPubSubType::MapShortStringPubSubType() @@ -2728,9 +2728,9 @@ bool MapShortStringPubSubType::getKey( return true; } -void MapShortStringPubSubType::register_type_object_representation() const +void MapShortStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortString_type_identifier(type_identifiers_); } MapShortWStringPubSubType::MapShortWStringPubSubType() @@ -2921,9 +2921,9 @@ bool MapShortWStringPubSubType::getKey( return true; } -void MapShortWStringPubSubType::register_type_object_representation() const +void MapShortWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortWString_type_identifier(type_identifiers_); } MapShortInnerAliasBoundedStringHelperPubSubType::MapShortInnerAliasBoundedStringHelperPubSubType() @@ -3114,9 +3114,9 @@ bool MapShortInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapShortInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapShortInnerAliasBoundedWStringHelperPubSubType::MapShortInnerAliasBoundedWStringHelperPubSubType() @@ -3307,9 +3307,9 @@ bool MapShortInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapShortInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapShortInnerEnumHelperPubSubType::MapShortInnerEnumHelperPubSubType() @@ -3500,9 +3500,9 @@ bool MapShortInnerEnumHelperPubSubType::getKey( return true; } -void MapShortInnerEnumHelperPubSubType::register_type_object_representation() const +void MapShortInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerEnumHelper_type_identifier(type_identifiers_); } MapShortInnerBitMaskHelperPubSubType::MapShortInnerBitMaskHelperPubSubType() @@ -3693,9 +3693,9 @@ bool MapShortInnerBitMaskHelperPubSubType::getKey( return true; } -void MapShortInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapShortInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerBitMaskHelper_type_identifier(type_identifiers_); } MapShortInnerAliasHelperPubSubType::MapShortInnerAliasHelperPubSubType() @@ -3886,9 +3886,9 @@ bool MapShortInnerAliasHelperPubSubType::getKey( return true; } -void MapShortInnerAliasHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasHelper_type_identifier(type_identifiers_); } MapShortInnerAliasArrayHelperPubSubType::MapShortInnerAliasArrayHelperPubSubType() @@ -4079,9 +4079,9 @@ bool MapShortInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapShortInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapShortInnerAliasSequenceHelperPubSubType::MapShortInnerAliasSequenceHelperPubSubType() @@ -4272,9 +4272,9 @@ bool MapShortInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapShortInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapShortInnerAliasMapHelperPubSubType::MapShortInnerAliasMapHelperPubSubType() @@ -4465,9 +4465,9 @@ bool MapShortInnerAliasMapHelperPubSubType::getKey( return true; } -void MapShortInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapShortInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerAliasMapHelper_type_identifier(type_identifiers_); } MapShortInnerUnionHelperPubSubType::MapShortInnerUnionHelperPubSubType() @@ -4658,9 +4658,9 @@ bool MapShortInnerUnionHelperPubSubType::getKey( return true; } -void MapShortInnerUnionHelperPubSubType::register_type_object_representation() const +void MapShortInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerUnionHelper_type_identifier(type_identifiers_); } MapShortInnerStructureHelperPubSubType::MapShortInnerStructureHelperPubSubType() @@ -4851,9 +4851,9 @@ bool MapShortInnerStructureHelperPubSubType::getKey( return true; } -void MapShortInnerStructureHelperPubSubType::register_type_object_representation() const +void MapShortInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerStructureHelper_type_identifier(type_identifiers_); } MapShortInnerBitsetHelperPubSubType::MapShortInnerBitsetHelperPubSubType() @@ -5044,9 +5044,9 @@ bool MapShortInnerBitsetHelperPubSubType::getKey( return true; } -void MapShortInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapShortInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapShortInnerBitsetHelper_type_identifier(type_identifiers_); } MapUShortShortPubSubType::MapUShortShortPubSubType() @@ -5237,9 +5237,9 @@ bool MapUShortShortPubSubType::getKey( return true; } -void MapUShortShortPubSubType::register_type_object_representation() const +void MapUShortShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortShort_type_identifier(type_identifiers_); } MapUShortUShortPubSubType::MapUShortUShortPubSubType() @@ -5430,9 +5430,9 @@ bool MapUShortUShortPubSubType::getKey( return true; } -void MapUShortUShortPubSubType::register_type_object_representation() const +void MapUShortUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortUShort_type_identifier(type_identifiers_); } MapUShortLongPubSubType::MapUShortLongPubSubType() @@ -5623,9 +5623,9 @@ bool MapUShortLongPubSubType::getKey( return true; } -void MapUShortLongPubSubType::register_type_object_representation() const +void MapUShortLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortLong_type_identifier(type_identifiers_); } MapUShortULongPubSubType::MapUShortULongPubSubType() @@ -5816,9 +5816,9 @@ bool MapUShortULongPubSubType::getKey( return true; } -void MapUShortULongPubSubType::register_type_object_representation() const +void MapUShortULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortULong_type_identifier(type_identifiers_); } MapUShortLongLongPubSubType::MapUShortLongLongPubSubType() @@ -6009,9 +6009,9 @@ bool MapUShortLongLongPubSubType::getKey( return true; } -void MapUShortLongLongPubSubType::register_type_object_representation() const +void MapUShortLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortLongLong_type_identifier(type_identifiers_); } MapUShortULongLongPubSubType::MapUShortULongLongPubSubType() @@ -6202,9 +6202,9 @@ bool MapUShortULongLongPubSubType::getKey( return true; } -void MapUShortULongLongPubSubType::register_type_object_representation() const +void MapUShortULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortULongLong_type_identifier(type_identifiers_); } MapUShortFloatPubSubType::MapUShortFloatPubSubType() @@ -6395,9 +6395,9 @@ bool MapUShortFloatPubSubType::getKey( return true; } -void MapUShortFloatPubSubType::register_type_object_representation() const +void MapUShortFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortFloat_type_identifier(type_identifiers_); } MapUShortDoublePubSubType::MapUShortDoublePubSubType() @@ -6588,9 +6588,9 @@ bool MapUShortDoublePubSubType::getKey( return true; } -void MapUShortDoublePubSubType::register_type_object_representation() const +void MapUShortDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortDouble_type_identifier(type_identifiers_); } MapUShortLongDoublePubSubType::MapUShortLongDoublePubSubType() @@ -6781,9 +6781,9 @@ bool MapUShortLongDoublePubSubType::getKey( return true; } -void MapUShortLongDoublePubSubType::register_type_object_representation() const +void MapUShortLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortLongDouble_type_identifier(type_identifiers_); } MapUShortBooleanPubSubType::MapUShortBooleanPubSubType() @@ -6974,9 +6974,9 @@ bool MapUShortBooleanPubSubType::getKey( return true; } -void MapUShortBooleanPubSubType::register_type_object_representation() const +void MapUShortBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortBoolean_type_identifier(type_identifiers_); } MapUShortOctetPubSubType::MapUShortOctetPubSubType() @@ -7167,9 +7167,9 @@ bool MapUShortOctetPubSubType::getKey( return true; } -void MapUShortOctetPubSubType::register_type_object_representation() const +void MapUShortOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortOctet_type_identifier(type_identifiers_); } MapUShortCharPubSubType::MapUShortCharPubSubType() @@ -7360,9 +7360,9 @@ bool MapUShortCharPubSubType::getKey( return true; } -void MapUShortCharPubSubType::register_type_object_representation() const +void MapUShortCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortChar_type_identifier(type_identifiers_); } MapUShortWCharPubSubType::MapUShortWCharPubSubType() @@ -7553,9 +7553,9 @@ bool MapUShortWCharPubSubType::getKey( return true; } -void MapUShortWCharPubSubType::register_type_object_representation() const +void MapUShortWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortWChar_type_identifier(type_identifiers_); } MapUShortStringPubSubType::MapUShortStringPubSubType() @@ -7746,9 +7746,9 @@ bool MapUShortStringPubSubType::getKey( return true; } -void MapUShortStringPubSubType::register_type_object_representation() const +void MapUShortStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortString_type_identifier(type_identifiers_); } MapUShortWStringPubSubType::MapUShortWStringPubSubType() @@ -7939,9 +7939,9 @@ bool MapUShortWStringPubSubType::getKey( return true; } -void MapUShortWStringPubSubType::register_type_object_representation() const +void MapUShortWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortWString_type_identifier(type_identifiers_); } MapUShortInnerAliasBoundedStringHelperPubSubType::MapUShortInnerAliasBoundedStringHelperPubSubType() @@ -8132,9 +8132,9 @@ bool MapUShortInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapUShortInnerAliasBoundedWStringHelperPubSubType::MapUShortInnerAliasBoundedWStringHelperPubSubType() @@ -8325,9 +8325,9 @@ bool MapUShortInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapUShortInnerEnumHelperPubSubType::MapUShortInnerEnumHelperPubSubType() @@ -8518,9 +8518,9 @@ bool MapUShortInnerEnumHelperPubSubType::getKey( return true; } -void MapUShortInnerEnumHelperPubSubType::register_type_object_representation() const +void MapUShortInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerEnumHelper_type_identifier(type_identifiers_); } MapUShortInnerBitMaskHelperPubSubType::MapUShortInnerBitMaskHelperPubSubType() @@ -8711,9 +8711,9 @@ bool MapUShortInnerBitMaskHelperPubSubType::getKey( return true; } -void MapUShortInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapUShortInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerBitMaskHelper_type_identifier(type_identifiers_); } MapUShortInnerAliasHelperPubSubType::MapUShortInnerAliasHelperPubSubType() @@ -8904,9 +8904,9 @@ bool MapUShortInnerAliasHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasHelper_type_identifier(type_identifiers_); } MapUShortInnerAliasArrayHelperPubSubType::MapUShortInnerAliasArrayHelperPubSubType() @@ -9097,9 +9097,9 @@ bool MapUShortInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapUShortInnerAliasSequenceHelperPubSubType::MapUShortInnerAliasSequenceHelperPubSubType() @@ -9290,9 +9290,9 @@ bool MapUShortInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapUShortInnerAliasMapHelperPubSubType::MapUShortInnerAliasMapHelperPubSubType() @@ -9483,9 +9483,9 @@ bool MapUShortInnerAliasMapHelperPubSubType::getKey( return true; } -void MapUShortInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapUShortInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerAliasMapHelper_type_identifier(type_identifiers_); } MapUShortInnerUnionHelperPubSubType::MapUShortInnerUnionHelperPubSubType() @@ -9676,9 +9676,9 @@ bool MapUShortInnerUnionHelperPubSubType::getKey( return true; } -void MapUShortInnerUnionHelperPubSubType::register_type_object_representation() const +void MapUShortInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerUnionHelper_type_identifier(type_identifiers_); } MapUShortInnerStructureHelperPubSubType::MapUShortInnerStructureHelperPubSubType() @@ -9869,9 +9869,9 @@ bool MapUShortInnerStructureHelperPubSubType::getKey( return true; } -void MapUShortInnerStructureHelperPubSubType::register_type_object_representation() const +void MapUShortInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerStructureHelper_type_identifier(type_identifiers_); } MapUShortInnerBitsetHelperPubSubType::MapUShortInnerBitsetHelperPubSubType() @@ -10062,9 +10062,9 @@ bool MapUShortInnerBitsetHelperPubSubType::getKey( return true; } -void MapUShortInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapUShortInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapUShortInnerBitsetHelper_type_identifier(type_identifiers_); } MapLongShortPubSubType::MapLongShortPubSubType() @@ -10255,9 +10255,9 @@ bool MapLongShortPubSubType::getKey( return true; } -void MapLongShortPubSubType::register_type_object_representation() const +void MapLongShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongShort_type_identifier(type_identifiers_); } MapLongUShortPubSubType::MapLongUShortPubSubType() @@ -10448,9 +10448,9 @@ bool MapLongUShortPubSubType::getKey( return true; } -void MapLongUShortPubSubType::register_type_object_representation() const +void MapLongUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongUShort_type_identifier(type_identifiers_); } MapLongLongPubSubType::MapLongLongPubSubType() @@ -10641,9 +10641,9 @@ bool MapLongLongPubSubType::getKey( return true; } -void MapLongLongPubSubType::register_type_object_representation() const +void MapLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLong_type_identifier(type_identifiers_); } MapLongULongPubSubType::MapLongULongPubSubType() @@ -10834,9 +10834,9 @@ bool MapLongULongPubSubType::getKey( return true; } -void MapLongULongPubSubType::register_type_object_representation() const +void MapLongULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongULong_type_identifier(type_identifiers_); } MapLongKeyLongLongValuePubSubType::MapLongKeyLongLongValuePubSubType() @@ -11027,9 +11027,9 @@ bool MapLongKeyLongLongValuePubSubType::getKey( return true; } -void MapLongKeyLongLongValuePubSubType::register_type_object_representation() const +void MapLongKeyLongLongValuePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongKeyLongLongValue_type_identifier(type_identifiers_); } MapLongULongLongPubSubType::MapLongULongLongPubSubType() @@ -11220,9 +11220,9 @@ bool MapLongULongLongPubSubType::getKey( return true; } -void MapLongULongLongPubSubType::register_type_object_representation() const +void MapLongULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongULongLong_type_identifier(type_identifiers_); } MapLongFloatPubSubType::MapLongFloatPubSubType() @@ -11413,9 +11413,9 @@ bool MapLongFloatPubSubType::getKey( return true; } -void MapLongFloatPubSubType::register_type_object_representation() const +void MapLongFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongFloat_type_identifier(type_identifiers_); } MapLongDoublePubSubType::MapLongDoublePubSubType() @@ -11606,9 +11606,9 @@ bool MapLongDoublePubSubType::getKey( return true; } -void MapLongDoublePubSubType::register_type_object_representation() const +void MapLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongDouble_type_identifier(type_identifiers_); } MapLongKeyLongDoubleValuePubSubType::MapLongKeyLongDoubleValuePubSubType() @@ -11799,9 +11799,9 @@ bool MapLongKeyLongDoubleValuePubSubType::getKey( return true; } -void MapLongKeyLongDoubleValuePubSubType::register_type_object_representation() const +void MapLongKeyLongDoubleValuePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongKeyLongDoubleValue_type_identifier(type_identifiers_); } MapLongBooleanPubSubType::MapLongBooleanPubSubType() @@ -11992,9 +11992,9 @@ bool MapLongBooleanPubSubType::getKey( return true; } -void MapLongBooleanPubSubType::register_type_object_representation() const +void MapLongBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongBoolean_type_identifier(type_identifiers_); } MapLongOctetPubSubType::MapLongOctetPubSubType() @@ -12185,9 +12185,9 @@ bool MapLongOctetPubSubType::getKey( return true; } -void MapLongOctetPubSubType::register_type_object_representation() const +void MapLongOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongOctet_type_identifier(type_identifiers_); } MapLongCharPubSubType::MapLongCharPubSubType() @@ -12378,9 +12378,9 @@ bool MapLongCharPubSubType::getKey( return true; } -void MapLongCharPubSubType::register_type_object_representation() const +void MapLongCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongChar_type_identifier(type_identifiers_); } MapLongWCharPubSubType::MapLongWCharPubSubType() @@ -12571,9 +12571,9 @@ bool MapLongWCharPubSubType::getKey( return true; } -void MapLongWCharPubSubType::register_type_object_representation() const +void MapLongWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongWChar_type_identifier(type_identifiers_); } MapLongStringPubSubType::MapLongStringPubSubType() @@ -12764,9 +12764,9 @@ bool MapLongStringPubSubType::getKey( return true; } -void MapLongStringPubSubType::register_type_object_representation() const +void MapLongStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongString_type_identifier(type_identifiers_); } MapLongWStringPubSubType::MapLongWStringPubSubType() @@ -12957,9 +12957,9 @@ bool MapLongWStringPubSubType::getKey( return true; } -void MapLongWStringPubSubType::register_type_object_representation() const +void MapLongWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongWString_type_identifier(type_identifiers_); } MapLongInnerAliasBoundedStringHelperPubSubType::MapLongInnerAliasBoundedStringHelperPubSubType() @@ -13150,9 +13150,9 @@ bool MapLongInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapLongInnerAliasBoundedWStringHelperPubSubType::MapLongInnerAliasBoundedWStringHelperPubSubType() @@ -13343,9 +13343,9 @@ bool MapLongInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapLongInnerEnumHelperPubSubType::MapLongInnerEnumHelperPubSubType() @@ -13536,9 +13536,9 @@ bool MapLongInnerEnumHelperPubSubType::getKey( return true; } -void MapLongInnerEnumHelperPubSubType::register_type_object_representation() const +void MapLongInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerEnumHelper_type_identifier(type_identifiers_); } MapLongInnerBitMaskHelperPubSubType::MapLongInnerBitMaskHelperPubSubType() @@ -13729,9 +13729,9 @@ bool MapLongInnerBitMaskHelperPubSubType::getKey( return true; } -void MapLongInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapLongInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerBitMaskHelper_type_identifier(type_identifiers_); } MapLongInnerAliasHelperPubSubType::MapLongInnerAliasHelperPubSubType() @@ -13922,9 +13922,9 @@ bool MapLongInnerAliasHelperPubSubType::getKey( return true; } -void MapLongInnerAliasHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasHelper_type_identifier(type_identifiers_); } MapLongInnerAliasArrayHelperPubSubType::MapLongInnerAliasArrayHelperPubSubType() @@ -14115,9 +14115,9 @@ bool MapLongInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapLongInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapLongInnerAliasSequenceHelperPubSubType::MapLongInnerAliasSequenceHelperPubSubType() @@ -14308,9 +14308,9 @@ bool MapLongInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapLongInnerAliasMapHelperPubSubType::MapLongInnerAliasMapHelperPubSubType() @@ -14501,9 +14501,9 @@ bool MapLongInnerAliasMapHelperPubSubType::getKey( return true; } -void MapLongInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapLongInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerAliasMapHelper_type_identifier(type_identifiers_); } MapLongInnerUnionHelperPubSubType::MapLongInnerUnionHelperPubSubType() @@ -14694,9 +14694,9 @@ bool MapLongInnerUnionHelperPubSubType::getKey( return true; } -void MapLongInnerUnionHelperPubSubType::register_type_object_representation() const +void MapLongInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerUnionHelper_type_identifier(type_identifiers_); } MapLongInnerStructureHelperPubSubType::MapLongInnerStructureHelperPubSubType() @@ -14887,9 +14887,9 @@ bool MapLongInnerStructureHelperPubSubType::getKey( return true; } -void MapLongInnerStructureHelperPubSubType::register_type_object_representation() const +void MapLongInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerStructureHelper_type_identifier(type_identifiers_); } MapLongInnerBitsetHelperPubSubType::MapLongInnerBitsetHelperPubSubType() @@ -15080,9 +15080,9 @@ bool MapLongInnerBitsetHelperPubSubType::getKey( return true; } -void MapLongInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapLongInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongInnerBitsetHelper_type_identifier(type_identifiers_); } MapULongShortPubSubType::MapULongShortPubSubType() @@ -15273,9 +15273,9 @@ bool MapULongShortPubSubType::getKey( return true; } -void MapULongShortPubSubType::register_type_object_representation() const +void MapULongShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongShort_type_identifier(type_identifiers_); } MapULongUShortPubSubType::MapULongUShortPubSubType() @@ -15466,9 +15466,9 @@ bool MapULongUShortPubSubType::getKey( return true; } -void MapULongUShortPubSubType::register_type_object_representation() const +void MapULongUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongUShort_type_identifier(type_identifiers_); } MapULongLongPubSubType::MapULongLongPubSubType() @@ -15659,9 +15659,9 @@ bool MapULongLongPubSubType::getKey( return true; } -void MapULongLongPubSubType::register_type_object_representation() const +void MapULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLong_type_identifier(type_identifiers_); } MapULongULongPubSubType::MapULongULongPubSubType() @@ -15852,9 +15852,9 @@ bool MapULongULongPubSubType::getKey( return true; } -void MapULongULongPubSubType::register_type_object_representation() const +void MapULongULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongULong_type_identifier(type_identifiers_); } MapKeyULongValueLongLongPubSubType::MapKeyULongValueLongLongPubSubType() @@ -16045,9 +16045,9 @@ bool MapKeyULongValueLongLongPubSubType::getKey( return true; } -void MapKeyULongValueLongLongPubSubType::register_type_object_representation() const +void MapKeyULongValueLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapKeyULongValueLongLong_type_identifier(type_identifiers_); } MapULongULongLongPubSubType::MapULongULongLongPubSubType() @@ -16238,9 +16238,9 @@ bool MapULongULongLongPubSubType::getKey( return true; } -void MapULongULongLongPubSubType::register_type_object_representation() const +void MapULongULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongULongLong_type_identifier(type_identifiers_); } MapULongFloatPubSubType::MapULongFloatPubSubType() @@ -16431,9 +16431,9 @@ bool MapULongFloatPubSubType::getKey( return true; } -void MapULongFloatPubSubType::register_type_object_representation() const +void MapULongFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongFloat_type_identifier(type_identifiers_); } MapULongDoublePubSubType::MapULongDoublePubSubType() @@ -16624,9 +16624,9 @@ bool MapULongDoublePubSubType::getKey( return true; } -void MapULongDoublePubSubType::register_type_object_representation() const +void MapULongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongDouble_type_identifier(type_identifiers_); } MapKeyULongValueLongDoublePubSubType::MapKeyULongValueLongDoublePubSubType() @@ -16817,9 +16817,9 @@ bool MapKeyULongValueLongDoublePubSubType::getKey( return true; } -void MapKeyULongValueLongDoublePubSubType::register_type_object_representation() const +void MapKeyULongValueLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapKeyULongValueLongDouble_type_identifier(type_identifiers_); } MapULongBooleanPubSubType::MapULongBooleanPubSubType() @@ -17010,9 +17010,9 @@ bool MapULongBooleanPubSubType::getKey( return true; } -void MapULongBooleanPubSubType::register_type_object_representation() const +void MapULongBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongBoolean_type_identifier(type_identifiers_); } MapULongOctetPubSubType::MapULongOctetPubSubType() @@ -17203,9 +17203,9 @@ bool MapULongOctetPubSubType::getKey( return true; } -void MapULongOctetPubSubType::register_type_object_representation() const +void MapULongOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongOctet_type_identifier(type_identifiers_); } MapULongCharPubSubType::MapULongCharPubSubType() @@ -17396,9 +17396,9 @@ bool MapULongCharPubSubType::getKey( return true; } -void MapULongCharPubSubType::register_type_object_representation() const +void MapULongCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongChar_type_identifier(type_identifiers_); } MapULongWCharPubSubType::MapULongWCharPubSubType() @@ -17589,9 +17589,9 @@ bool MapULongWCharPubSubType::getKey( return true; } -void MapULongWCharPubSubType::register_type_object_representation() const +void MapULongWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongWChar_type_identifier(type_identifiers_); } MapULongStringPubSubType::MapULongStringPubSubType() @@ -17782,9 +17782,9 @@ bool MapULongStringPubSubType::getKey( return true; } -void MapULongStringPubSubType::register_type_object_representation() const +void MapULongStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongString_type_identifier(type_identifiers_); } MapULongWStringPubSubType::MapULongWStringPubSubType() @@ -17975,9 +17975,9 @@ bool MapULongWStringPubSubType::getKey( return true; } -void MapULongWStringPubSubType::register_type_object_representation() const +void MapULongWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongWString_type_identifier(type_identifiers_); } MapULongInnerAliasBoundedStringHelperPubSubType::MapULongInnerAliasBoundedStringHelperPubSubType() @@ -18168,9 +18168,9 @@ bool MapULongInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapULongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapULongInnerAliasBoundedWStringHelperPubSubType::MapULongInnerAliasBoundedWStringHelperPubSubType() @@ -18361,9 +18361,9 @@ bool MapULongInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapULongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapULongInnerEnumHelperPubSubType::MapULongInnerEnumHelperPubSubType() @@ -18554,9 +18554,9 @@ bool MapULongInnerEnumHelperPubSubType::getKey( return true; } -void MapULongInnerEnumHelperPubSubType::register_type_object_representation() const +void MapULongInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerEnumHelper_type_identifier(type_identifiers_); } MapULongInnerBitMaskHelperPubSubType::MapULongInnerBitMaskHelperPubSubType() @@ -18747,9 +18747,9 @@ bool MapULongInnerBitMaskHelperPubSubType::getKey( return true; } -void MapULongInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapULongInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerBitMaskHelper_type_identifier(type_identifiers_); } MapULongInnerAliasHelperPubSubType::MapULongInnerAliasHelperPubSubType() @@ -18940,9 +18940,9 @@ bool MapULongInnerAliasHelperPubSubType::getKey( return true; } -void MapULongInnerAliasHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasHelper_type_identifier(type_identifiers_); } MapULongInnerAliasArrayHelperPubSubType::MapULongInnerAliasArrayHelperPubSubType() @@ -19133,9 +19133,9 @@ bool MapULongInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapULongInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapULongInnerAliasSequenceHelperPubSubType::MapULongInnerAliasSequenceHelperPubSubType() @@ -19326,9 +19326,9 @@ bool MapULongInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapULongInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapULongInnerAliasMapHelperPubSubType::MapULongInnerAliasMapHelperPubSubType() @@ -19519,9 +19519,9 @@ bool MapULongInnerAliasMapHelperPubSubType::getKey( return true; } -void MapULongInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapULongInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerAliasMapHelper_type_identifier(type_identifiers_); } MapULongInnerUnionHelperPubSubType::MapULongInnerUnionHelperPubSubType() @@ -19712,9 +19712,9 @@ bool MapULongInnerUnionHelperPubSubType::getKey( return true; } -void MapULongInnerUnionHelperPubSubType::register_type_object_representation() const +void MapULongInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerUnionHelper_type_identifier(type_identifiers_); } MapULongInnerStructureHelperPubSubType::MapULongInnerStructureHelperPubSubType() @@ -19905,9 +19905,9 @@ bool MapULongInnerStructureHelperPubSubType::getKey( return true; } -void MapULongInnerStructureHelperPubSubType::register_type_object_representation() const +void MapULongInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerStructureHelper_type_identifier(type_identifiers_); } MapULongInnerBitsetHelperPubSubType::MapULongInnerBitsetHelperPubSubType() @@ -20098,9 +20098,9 @@ bool MapULongInnerBitsetHelperPubSubType::getKey( return true; } -void MapULongInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapULongInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongInnerBitsetHelper_type_identifier(type_identifiers_); } MapLongLongShortPubSubType::MapLongLongShortPubSubType() @@ -20291,9 +20291,9 @@ bool MapLongLongShortPubSubType::getKey( return true; } -void MapLongLongShortPubSubType::register_type_object_representation() const +void MapLongLongShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongShort_type_identifier(type_identifiers_); } MapLongLongUShortPubSubType::MapLongLongUShortPubSubType() @@ -20484,9 +20484,9 @@ bool MapLongLongUShortPubSubType::getKey( return true; } -void MapLongLongUShortPubSubType::register_type_object_representation() const +void MapLongLongUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongUShort_type_identifier(type_identifiers_); } MapLongLongKeyLongValuePubSubType::MapLongLongKeyLongValuePubSubType() @@ -20677,9 +20677,9 @@ bool MapLongLongKeyLongValuePubSubType::getKey( return true; } -void MapLongLongKeyLongValuePubSubType::register_type_object_representation() const +void MapLongLongKeyLongValuePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongKeyLongValue_type_identifier(type_identifiers_); } MapLongLongULongPubSubType::MapLongLongULongPubSubType() @@ -20870,9 +20870,9 @@ bool MapLongLongULongPubSubType::getKey( return true; } -void MapLongLongULongPubSubType::register_type_object_representation() const +void MapLongLongULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongULong_type_identifier(type_identifiers_); } MapLongLongLongLongPubSubType::MapLongLongLongLongPubSubType() @@ -21063,9 +21063,9 @@ bool MapLongLongLongLongPubSubType::getKey( return true; } -void MapLongLongLongLongPubSubType::register_type_object_representation() const +void MapLongLongLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongLongLong_type_identifier(type_identifiers_); } MapLongLongULongLongPubSubType::MapLongLongULongLongPubSubType() @@ -21256,9 +21256,9 @@ bool MapLongLongULongLongPubSubType::getKey( return true; } -void MapLongLongULongLongPubSubType::register_type_object_representation() const +void MapLongLongULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongULongLong_type_identifier(type_identifiers_); } MapLongLongFloatPubSubType::MapLongLongFloatPubSubType() @@ -21449,9 +21449,9 @@ bool MapLongLongFloatPubSubType::getKey( return true; } -void MapLongLongFloatPubSubType::register_type_object_representation() const +void MapLongLongFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongFloat_type_identifier(type_identifiers_); } MapLongLongKeyDoubleValuePubSubType::MapLongLongKeyDoubleValuePubSubType() @@ -21642,9 +21642,9 @@ bool MapLongLongKeyDoubleValuePubSubType::getKey( return true; } -void MapLongLongKeyDoubleValuePubSubType::register_type_object_representation() const +void MapLongLongKeyDoubleValuePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongKeyDoubleValue_type_identifier(type_identifiers_); } MapLongLongLongDoublePubSubType::MapLongLongLongDoublePubSubType() @@ -21835,9 +21835,9 @@ bool MapLongLongLongDoublePubSubType::getKey( return true; } -void MapLongLongLongDoublePubSubType::register_type_object_representation() const +void MapLongLongLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongLongDouble_type_identifier(type_identifiers_); } MapLongLongBooleanPubSubType::MapLongLongBooleanPubSubType() @@ -22028,9 +22028,9 @@ bool MapLongLongBooleanPubSubType::getKey( return true; } -void MapLongLongBooleanPubSubType::register_type_object_representation() const +void MapLongLongBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongBoolean_type_identifier(type_identifiers_); } MapLongLongOctetPubSubType::MapLongLongOctetPubSubType() @@ -22221,9 +22221,9 @@ bool MapLongLongOctetPubSubType::getKey( return true; } -void MapLongLongOctetPubSubType::register_type_object_representation() const +void MapLongLongOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongOctet_type_identifier(type_identifiers_); } MapLongLongCharPubSubType::MapLongLongCharPubSubType() @@ -22414,9 +22414,9 @@ bool MapLongLongCharPubSubType::getKey( return true; } -void MapLongLongCharPubSubType::register_type_object_representation() const +void MapLongLongCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongChar_type_identifier(type_identifiers_); } MapLongLongWCharPubSubType::MapLongLongWCharPubSubType() @@ -22607,9 +22607,9 @@ bool MapLongLongWCharPubSubType::getKey( return true; } -void MapLongLongWCharPubSubType::register_type_object_representation() const +void MapLongLongWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongWChar_type_identifier(type_identifiers_); } MapLongLongStringPubSubType::MapLongLongStringPubSubType() @@ -22800,9 +22800,9 @@ bool MapLongLongStringPubSubType::getKey( return true; } -void MapLongLongStringPubSubType::register_type_object_representation() const +void MapLongLongStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongString_type_identifier(type_identifiers_); } MapLongLongWStringPubSubType::MapLongLongWStringPubSubType() @@ -22993,9 +22993,9 @@ bool MapLongLongWStringPubSubType::getKey( return true; } -void MapLongLongWStringPubSubType::register_type_object_representation() const +void MapLongLongWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongWString_type_identifier(type_identifiers_); } MapLongLongInnerAliasBoundedStringHelperPubSubType::MapLongLongInnerAliasBoundedStringHelperPubSubType() @@ -23186,9 +23186,9 @@ bool MapLongLongInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapLongLongInnerAliasBoundedWStringHelperPubSubType::MapLongLongInnerAliasBoundedWStringHelperPubSubType() @@ -23379,9 +23379,9 @@ bool MapLongLongInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapLongLongInnerEnumHelperPubSubType::MapLongLongInnerEnumHelperPubSubType() @@ -23572,9 +23572,9 @@ bool MapLongLongInnerEnumHelperPubSubType::getKey( return true; } -void MapLongLongInnerEnumHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerEnumHelper_type_identifier(type_identifiers_); } MapLongLongInnerBitMaskHelperPubSubType::MapLongLongInnerBitMaskHelperPubSubType() @@ -23765,9 +23765,9 @@ bool MapLongLongInnerBitMaskHelperPubSubType::getKey( return true; } -void MapLongLongInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerBitMaskHelper_type_identifier(type_identifiers_); } MapLongLongInnerAliasHelperPubSubType::MapLongLongInnerAliasHelperPubSubType() @@ -23958,9 +23958,9 @@ bool MapLongLongInnerAliasHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasHelper_type_identifier(type_identifiers_); } MapLongLongInnerAliasArrayHelperPubSubType::MapLongLongInnerAliasArrayHelperPubSubType() @@ -24151,9 +24151,9 @@ bool MapLongLongInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapLongLongInnerAliasSequenceHelperPubSubType::MapLongLongInnerAliasSequenceHelperPubSubType() @@ -24344,9 +24344,9 @@ bool MapLongLongInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapLongLongInnerAliasMapHelperPubSubType::MapLongLongInnerAliasMapHelperPubSubType() @@ -24537,9 +24537,9 @@ bool MapLongLongInnerAliasMapHelperPubSubType::getKey( return true; } -void MapLongLongInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerAliasMapHelper_type_identifier(type_identifiers_); } MapLongLongInnerUnionHelperPubSubType::MapLongLongInnerUnionHelperPubSubType() @@ -24730,9 +24730,9 @@ bool MapLongLongInnerUnionHelperPubSubType::getKey( return true; } -void MapLongLongInnerUnionHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerUnionHelper_type_identifier(type_identifiers_); } MapLongLongInnerStructureHelperPubSubType::MapLongLongInnerStructureHelperPubSubType() @@ -24923,9 +24923,9 @@ bool MapLongLongInnerStructureHelperPubSubType::getKey( return true; } -void MapLongLongInnerStructureHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerStructureHelper_type_identifier(type_identifiers_); } MapLongLongInnerBitsetHelperPubSubType::MapLongLongInnerBitsetHelperPubSubType() @@ -25116,9 +25116,9 @@ bool MapLongLongInnerBitsetHelperPubSubType::getKey( return true; } -void MapLongLongInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapLongLongInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapLongLongInnerBitsetHelper_type_identifier(type_identifiers_); } MapULongLongShortPubSubType::MapULongLongShortPubSubType() @@ -25309,9 +25309,9 @@ bool MapULongLongShortPubSubType::getKey( return true; } -void MapULongLongShortPubSubType::register_type_object_representation() const +void MapULongLongShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongShort_type_identifier(type_identifiers_); } MapULongLongUShortPubSubType::MapULongLongUShortPubSubType() @@ -25502,9 +25502,9 @@ bool MapULongLongUShortPubSubType::getKey( return true; } -void MapULongLongUShortPubSubType::register_type_object_representation() const +void MapULongLongUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongUShort_type_identifier(type_identifiers_); } MapULongLongLongPubSubType::MapULongLongLongPubSubType() @@ -25695,9 +25695,9 @@ bool MapULongLongLongPubSubType::getKey( return true; } -void MapULongLongLongPubSubType::register_type_object_representation() const +void MapULongLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongLong_type_identifier(type_identifiers_); } MapULongLongULongPubSubType::MapULongLongULongPubSubType() @@ -25888,9 +25888,9 @@ bool MapULongLongULongPubSubType::getKey( return true; } -void MapULongLongULongPubSubType::register_type_object_representation() const +void MapULongLongULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongULong_type_identifier(type_identifiers_); } MapULongLongLongLongPubSubType::MapULongLongLongLongPubSubType() @@ -26081,9 +26081,9 @@ bool MapULongLongLongLongPubSubType::getKey( return true; } -void MapULongLongLongLongPubSubType::register_type_object_representation() const +void MapULongLongLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongLongLong_type_identifier(type_identifiers_); } MapULongLongULongLongPubSubType::MapULongLongULongLongPubSubType() @@ -26274,9 +26274,9 @@ bool MapULongLongULongLongPubSubType::getKey( return true; } -void MapULongLongULongLongPubSubType::register_type_object_representation() const +void MapULongLongULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongULongLong_type_identifier(type_identifiers_); } MapULongLongFloatPubSubType::MapULongLongFloatPubSubType() @@ -26467,9 +26467,9 @@ bool MapULongLongFloatPubSubType::getKey( return true; } -void MapULongLongFloatPubSubType::register_type_object_representation() const +void MapULongLongFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongFloat_type_identifier(type_identifiers_); } MapKeyULongLongValueDoublePubSubType::MapKeyULongLongValueDoublePubSubType() @@ -26660,9 +26660,9 @@ bool MapKeyULongLongValueDoublePubSubType::getKey( return true; } -void MapKeyULongLongValueDoublePubSubType::register_type_object_representation() const +void MapKeyULongLongValueDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapKeyULongLongValueDouble_type_identifier(type_identifiers_); } MapULongLongLongDoublePubSubType::MapULongLongLongDoublePubSubType() @@ -26853,9 +26853,9 @@ bool MapULongLongLongDoublePubSubType::getKey( return true; } -void MapULongLongLongDoublePubSubType::register_type_object_representation() const +void MapULongLongLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongLongDouble_type_identifier(type_identifiers_); } MapULongLongBooleanPubSubType::MapULongLongBooleanPubSubType() @@ -27046,9 +27046,9 @@ bool MapULongLongBooleanPubSubType::getKey( return true; } -void MapULongLongBooleanPubSubType::register_type_object_representation() const +void MapULongLongBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongBoolean_type_identifier(type_identifiers_); } MapULongLongOctetPubSubType::MapULongLongOctetPubSubType() @@ -27239,9 +27239,9 @@ bool MapULongLongOctetPubSubType::getKey( return true; } -void MapULongLongOctetPubSubType::register_type_object_representation() const +void MapULongLongOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongOctet_type_identifier(type_identifiers_); } MapULongLongCharPubSubType::MapULongLongCharPubSubType() @@ -27432,9 +27432,9 @@ bool MapULongLongCharPubSubType::getKey( return true; } -void MapULongLongCharPubSubType::register_type_object_representation() const +void MapULongLongCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongChar_type_identifier(type_identifiers_); } MapULongLongWCharPubSubType::MapULongLongWCharPubSubType() @@ -27625,9 +27625,9 @@ bool MapULongLongWCharPubSubType::getKey( return true; } -void MapULongLongWCharPubSubType::register_type_object_representation() const +void MapULongLongWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongWChar_type_identifier(type_identifiers_); } MapULongLongStringPubSubType::MapULongLongStringPubSubType() @@ -27818,9 +27818,9 @@ bool MapULongLongStringPubSubType::getKey( return true; } -void MapULongLongStringPubSubType::register_type_object_representation() const +void MapULongLongStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongString_type_identifier(type_identifiers_); } MapULongLongWStringPubSubType::MapULongLongWStringPubSubType() @@ -28011,9 +28011,9 @@ bool MapULongLongWStringPubSubType::getKey( return true; } -void MapULongLongWStringPubSubType::register_type_object_representation() const +void MapULongLongWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongWString_type_identifier(type_identifiers_); } MapULongLongInnerAliasBoundedStringHelperPubSubType::MapULongLongInnerAliasBoundedStringHelperPubSubType() @@ -28204,9 +28204,9 @@ bool MapULongLongInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapULongLongInnerAliasBoundedWStringHelperPubSubType::MapULongLongInnerAliasBoundedWStringHelperPubSubType() @@ -28397,9 +28397,9 @@ bool MapULongLongInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapULongLongInnerEnumHelperPubSubType::MapULongLongInnerEnumHelperPubSubType() @@ -28590,9 +28590,9 @@ bool MapULongLongInnerEnumHelperPubSubType::getKey( return true; } -void MapULongLongInnerEnumHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerEnumHelper_type_identifier(type_identifiers_); } MapULongLongInnerBitMaskHelperPubSubType::MapULongLongInnerBitMaskHelperPubSubType() @@ -28783,9 +28783,9 @@ bool MapULongLongInnerBitMaskHelperPubSubType::getKey( return true; } -void MapULongLongInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerBitMaskHelper_type_identifier(type_identifiers_); } MapULongLongInnerAliasHelperPubSubType::MapULongLongInnerAliasHelperPubSubType() @@ -28976,9 +28976,9 @@ bool MapULongLongInnerAliasHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasHelper_type_identifier(type_identifiers_); } MapULongLongInnerAliasArrayHelperPubSubType::MapULongLongInnerAliasArrayHelperPubSubType() @@ -29169,9 +29169,9 @@ bool MapULongLongInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapULongLongInnerAliasSequenceHelperPubSubType::MapULongLongInnerAliasSequenceHelperPubSubType() @@ -29362,9 +29362,9 @@ bool MapULongLongInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapULongLongInnerAliasMapHelperPubSubType::MapULongLongInnerAliasMapHelperPubSubType() @@ -29555,9 +29555,9 @@ bool MapULongLongInnerAliasMapHelperPubSubType::getKey( return true; } -void MapULongLongInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerAliasMapHelper_type_identifier(type_identifiers_); } MapULongLongInnerUnionHelperPubSubType::MapULongLongInnerUnionHelperPubSubType() @@ -29748,9 +29748,9 @@ bool MapULongLongInnerUnionHelperPubSubType::getKey( return true; } -void MapULongLongInnerUnionHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerUnionHelper_type_identifier(type_identifiers_); } MapULongLongInnerStructureHelperPubSubType::MapULongLongInnerStructureHelperPubSubType() @@ -29941,9 +29941,9 @@ bool MapULongLongInnerStructureHelperPubSubType::getKey( return true; } -void MapULongLongInnerStructureHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerStructureHelper_type_identifier(type_identifiers_); } MapULongLongInnerBitsetHelperPubSubType::MapULongLongInnerBitsetHelperPubSubType() @@ -30134,9 +30134,9 @@ bool MapULongLongInnerBitsetHelperPubSubType::getKey( return true; } -void MapULongLongInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapULongLongInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapULongLongInnerBitsetHelper_type_identifier(type_identifiers_); } MapStringShortPubSubType::MapStringShortPubSubType() @@ -30327,9 +30327,9 @@ bool MapStringShortPubSubType::getKey( return true; } -void MapStringShortPubSubType::register_type_object_representation() const +void MapStringShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringShort_type_identifier(type_identifiers_); } MapStringUShortPubSubType::MapStringUShortPubSubType() @@ -30520,9 +30520,9 @@ bool MapStringUShortPubSubType::getKey( return true; } -void MapStringUShortPubSubType::register_type_object_representation() const +void MapStringUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringUShort_type_identifier(type_identifiers_); } MapStringLongPubSubType::MapStringLongPubSubType() @@ -30713,9 +30713,9 @@ bool MapStringLongPubSubType::getKey( return true; } -void MapStringLongPubSubType::register_type_object_representation() const +void MapStringLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringLong_type_identifier(type_identifiers_); } MapStringULongPubSubType::MapStringULongPubSubType() @@ -30906,9 +30906,9 @@ bool MapStringULongPubSubType::getKey( return true; } -void MapStringULongPubSubType::register_type_object_representation() const +void MapStringULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringULong_type_identifier(type_identifiers_); } MapStringLongLongPubSubType::MapStringLongLongPubSubType() @@ -31099,9 +31099,9 @@ bool MapStringLongLongPubSubType::getKey( return true; } -void MapStringLongLongPubSubType::register_type_object_representation() const +void MapStringLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringLongLong_type_identifier(type_identifiers_); } MapStringULongLongPubSubType::MapStringULongLongPubSubType() @@ -31292,9 +31292,9 @@ bool MapStringULongLongPubSubType::getKey( return true; } -void MapStringULongLongPubSubType::register_type_object_representation() const +void MapStringULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringULongLong_type_identifier(type_identifiers_); } MapStringFloatPubSubType::MapStringFloatPubSubType() @@ -31485,9 +31485,9 @@ bool MapStringFloatPubSubType::getKey( return true; } -void MapStringFloatPubSubType::register_type_object_representation() const +void MapStringFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringFloat_type_identifier(type_identifiers_); } MapStringDoublePubSubType::MapStringDoublePubSubType() @@ -31678,9 +31678,9 @@ bool MapStringDoublePubSubType::getKey( return true; } -void MapStringDoublePubSubType::register_type_object_representation() const +void MapStringDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringDouble_type_identifier(type_identifiers_); } MapStringLongDoublePubSubType::MapStringLongDoublePubSubType() @@ -31871,9 +31871,9 @@ bool MapStringLongDoublePubSubType::getKey( return true; } -void MapStringLongDoublePubSubType::register_type_object_representation() const +void MapStringLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringLongDouble_type_identifier(type_identifiers_); } MapStringBooleanPubSubType::MapStringBooleanPubSubType() @@ -32064,9 +32064,9 @@ bool MapStringBooleanPubSubType::getKey( return true; } -void MapStringBooleanPubSubType::register_type_object_representation() const +void MapStringBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringBoolean_type_identifier(type_identifiers_); } MapStringOctetPubSubType::MapStringOctetPubSubType() @@ -32257,9 +32257,9 @@ bool MapStringOctetPubSubType::getKey( return true; } -void MapStringOctetPubSubType::register_type_object_representation() const +void MapStringOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringOctet_type_identifier(type_identifiers_); } MapStringCharPubSubType::MapStringCharPubSubType() @@ -32450,9 +32450,9 @@ bool MapStringCharPubSubType::getKey( return true; } -void MapStringCharPubSubType::register_type_object_representation() const +void MapStringCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringChar_type_identifier(type_identifiers_); } MapStringWCharPubSubType::MapStringWCharPubSubType() @@ -32643,9 +32643,9 @@ bool MapStringWCharPubSubType::getKey( return true; } -void MapStringWCharPubSubType::register_type_object_representation() const +void MapStringWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringWChar_type_identifier(type_identifiers_); } MapStringStringPubSubType::MapStringStringPubSubType() @@ -32836,9 +32836,9 @@ bool MapStringStringPubSubType::getKey( return true; } -void MapStringStringPubSubType::register_type_object_representation() const +void MapStringStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringString_type_identifier(type_identifiers_); } MapStringWStringPubSubType::MapStringWStringPubSubType() @@ -33029,9 +33029,9 @@ bool MapStringWStringPubSubType::getKey( return true; } -void MapStringWStringPubSubType::register_type_object_representation() const +void MapStringWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringWString_type_identifier(type_identifiers_); } MapStringInnerAliasBoundedStringHelperPubSubType::MapStringInnerAliasBoundedStringHelperPubSubType() @@ -33222,9 +33222,9 @@ bool MapStringInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapStringInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapStringInnerAliasBoundedWStringHelperPubSubType::MapStringInnerAliasBoundedWStringHelperPubSubType() @@ -33415,9 +33415,9 @@ bool MapStringInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapStringInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapStringInnerEnumHelperPubSubType::MapStringInnerEnumHelperPubSubType() @@ -33608,9 +33608,9 @@ bool MapStringInnerEnumHelperPubSubType::getKey( return true; } -void MapStringInnerEnumHelperPubSubType::register_type_object_representation() const +void MapStringInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerEnumHelper_type_identifier(type_identifiers_); } MapStringInnerBitMaskHelperPubSubType::MapStringInnerBitMaskHelperPubSubType() @@ -33801,9 +33801,9 @@ bool MapStringInnerBitMaskHelperPubSubType::getKey( return true; } -void MapStringInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapStringInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerBitMaskHelper_type_identifier(type_identifiers_); } MapStringInnerAliasHelperPubSubType::MapStringInnerAliasHelperPubSubType() @@ -33994,9 +33994,9 @@ bool MapStringInnerAliasHelperPubSubType::getKey( return true; } -void MapStringInnerAliasHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasHelper_type_identifier(type_identifiers_); } MapStringInnerAliasArrayHelperPubSubType::MapStringInnerAliasArrayHelperPubSubType() @@ -34187,9 +34187,9 @@ bool MapStringInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapStringInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapStringInnerAliasSequenceHelperPubSubType::MapStringInnerAliasSequenceHelperPubSubType() @@ -34380,9 +34380,9 @@ bool MapStringInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapStringInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapStringInnerAliasMapHelperPubSubType::MapStringInnerAliasMapHelperPubSubType() @@ -34573,9 +34573,9 @@ bool MapStringInnerAliasMapHelperPubSubType::getKey( return true; } -void MapStringInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapStringInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerAliasMapHelper_type_identifier(type_identifiers_); } MapStringInnerUnionHelperPubSubType::MapStringInnerUnionHelperPubSubType() @@ -34766,9 +34766,9 @@ bool MapStringInnerUnionHelperPubSubType::getKey( return true; } -void MapStringInnerUnionHelperPubSubType::register_type_object_representation() const +void MapStringInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerUnionHelper_type_identifier(type_identifiers_); } MapStringInnerStructureHelperPubSubType::MapStringInnerStructureHelperPubSubType() @@ -34959,9 +34959,9 @@ bool MapStringInnerStructureHelperPubSubType::getKey( return true; } -void MapStringInnerStructureHelperPubSubType::register_type_object_representation() const +void MapStringInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerStructureHelper_type_identifier(type_identifiers_); } MapStringInnerBitsetHelperPubSubType::MapStringInnerBitsetHelperPubSubType() @@ -35152,9 +35152,9 @@ bool MapStringInnerBitsetHelperPubSubType::getKey( return true; } -void MapStringInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapStringInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapStringInnerBitsetHelper_type_identifier(type_identifiers_); } MapWStringShortPubSubType::MapWStringShortPubSubType() @@ -35345,9 +35345,9 @@ bool MapWStringShortPubSubType::getKey( return true; } -void MapWStringShortPubSubType::register_type_object_representation() const +void MapWStringShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringShort_type_identifier(type_identifiers_); } MapWStringUShortPubSubType::MapWStringUShortPubSubType() @@ -35538,9 +35538,9 @@ bool MapWStringUShortPubSubType::getKey( return true; } -void MapWStringUShortPubSubType::register_type_object_representation() const +void MapWStringUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringUShort_type_identifier(type_identifiers_); } MapWStringLongPubSubType::MapWStringLongPubSubType() @@ -35731,9 +35731,9 @@ bool MapWStringLongPubSubType::getKey( return true; } -void MapWStringLongPubSubType::register_type_object_representation() const +void MapWStringLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringLong_type_identifier(type_identifiers_); } MapWStringULongPubSubType::MapWStringULongPubSubType() @@ -35924,9 +35924,9 @@ bool MapWStringULongPubSubType::getKey( return true; } -void MapWStringULongPubSubType::register_type_object_representation() const +void MapWStringULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringULong_type_identifier(type_identifiers_); } MapWStringLongLongPubSubType::MapWStringLongLongPubSubType() @@ -36117,9 +36117,9 @@ bool MapWStringLongLongPubSubType::getKey( return true; } -void MapWStringLongLongPubSubType::register_type_object_representation() const +void MapWStringLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringLongLong_type_identifier(type_identifiers_); } MapWStringULongLongPubSubType::MapWStringULongLongPubSubType() @@ -36310,9 +36310,9 @@ bool MapWStringULongLongPubSubType::getKey( return true; } -void MapWStringULongLongPubSubType::register_type_object_representation() const +void MapWStringULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringULongLong_type_identifier(type_identifiers_); } MapWStringFloatPubSubType::MapWStringFloatPubSubType() @@ -36503,9 +36503,9 @@ bool MapWStringFloatPubSubType::getKey( return true; } -void MapWStringFloatPubSubType::register_type_object_representation() const +void MapWStringFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringFloat_type_identifier(type_identifiers_); } MapWStringDoublePubSubType::MapWStringDoublePubSubType() @@ -36696,9 +36696,9 @@ bool MapWStringDoublePubSubType::getKey( return true; } -void MapWStringDoublePubSubType::register_type_object_representation() const +void MapWStringDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringDouble_type_identifier(type_identifiers_); } MapWStringLongDoublePubSubType::MapWStringLongDoublePubSubType() @@ -36889,9 +36889,9 @@ bool MapWStringLongDoublePubSubType::getKey( return true; } -void MapWStringLongDoublePubSubType::register_type_object_representation() const +void MapWStringLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringLongDouble_type_identifier(type_identifiers_); } MapWStringBooleanPubSubType::MapWStringBooleanPubSubType() @@ -37082,9 +37082,9 @@ bool MapWStringBooleanPubSubType::getKey( return true; } -void MapWStringBooleanPubSubType::register_type_object_representation() const +void MapWStringBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringBoolean_type_identifier(type_identifiers_); } MapWStringOctetPubSubType::MapWStringOctetPubSubType() @@ -37275,9 +37275,9 @@ bool MapWStringOctetPubSubType::getKey( return true; } -void MapWStringOctetPubSubType::register_type_object_representation() const +void MapWStringOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringOctet_type_identifier(type_identifiers_); } MapWStringCharPubSubType::MapWStringCharPubSubType() @@ -37468,9 +37468,9 @@ bool MapWStringCharPubSubType::getKey( return true; } -void MapWStringCharPubSubType::register_type_object_representation() const +void MapWStringCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringChar_type_identifier(type_identifiers_); } MapWStringWCharPubSubType::MapWStringWCharPubSubType() @@ -37661,9 +37661,9 @@ bool MapWStringWCharPubSubType::getKey( return true; } -void MapWStringWCharPubSubType::register_type_object_representation() const +void MapWStringWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringWChar_type_identifier(type_identifiers_); } MapWStringStringPubSubType::MapWStringStringPubSubType() @@ -37854,9 +37854,9 @@ bool MapWStringStringPubSubType::getKey( return true; } -void MapWStringStringPubSubType::register_type_object_representation() const +void MapWStringStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringString_type_identifier(type_identifiers_); } MapWStringWStringPubSubType::MapWStringWStringPubSubType() @@ -38047,9 +38047,9 @@ bool MapWStringWStringPubSubType::getKey( return true; } -void MapWStringWStringPubSubType::register_type_object_representation() const +void MapWStringWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringWString_type_identifier(type_identifiers_); } MapWStringInnerAliasBoundedStringHelperPubSubType::MapWStringInnerAliasBoundedStringHelperPubSubType() @@ -38240,9 +38240,9 @@ bool MapWStringInnerAliasBoundedStringHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapWStringInnerAliasBoundedWStringHelperPubSubType::MapWStringInnerAliasBoundedWStringHelperPubSubType() @@ -38433,9 +38433,9 @@ bool MapWStringInnerAliasBoundedWStringHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapWStringInnerEnumHelperPubSubType::MapWStringInnerEnumHelperPubSubType() @@ -38626,9 +38626,9 @@ bool MapWStringInnerEnumHelperPubSubType::getKey( return true; } -void MapWStringInnerEnumHelperPubSubType::register_type_object_representation() const +void MapWStringInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerEnumHelper_type_identifier(type_identifiers_); } MapWStringInnerBitMaskHelperPubSubType::MapWStringInnerBitMaskHelperPubSubType() @@ -38819,9 +38819,9 @@ bool MapWStringInnerBitMaskHelperPubSubType::getKey( return true; } -void MapWStringInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapWStringInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerBitMaskHelper_type_identifier(type_identifiers_); } MapWStringInnerAliasHelperPubSubType::MapWStringInnerAliasHelperPubSubType() @@ -39012,9 +39012,9 @@ bool MapWStringInnerAliasHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasHelper_type_identifier(type_identifiers_); } MapWStringInnerAliasArrayHelperPubSubType::MapWStringInnerAliasArrayHelperPubSubType() @@ -39205,9 +39205,9 @@ bool MapWStringInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapWStringInnerAliasSequenceHelperPubSubType::MapWStringInnerAliasSequenceHelperPubSubType() @@ -39398,9 +39398,9 @@ bool MapWStringInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapWStringInnerAliasMapHelperPubSubType::MapWStringInnerAliasMapHelperPubSubType() @@ -39591,9 +39591,9 @@ bool MapWStringInnerAliasMapHelperPubSubType::getKey( return true; } -void MapWStringInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapWStringInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerAliasMapHelper_type_identifier(type_identifiers_); } MapWStringInnerUnionHelperPubSubType::MapWStringInnerUnionHelperPubSubType() @@ -39784,9 +39784,9 @@ bool MapWStringInnerUnionHelperPubSubType::getKey( return true; } -void MapWStringInnerUnionHelperPubSubType::register_type_object_representation() const +void MapWStringInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerUnionHelper_type_identifier(type_identifiers_); } MapWStringInnerStructureHelperPubSubType::MapWStringInnerStructureHelperPubSubType() @@ -39977,9 +39977,9 @@ bool MapWStringInnerStructureHelperPubSubType::getKey( return true; } -void MapWStringInnerStructureHelperPubSubType::register_type_object_representation() const +void MapWStringInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerStructureHelper_type_identifier(type_identifiers_); } MapWStringInnerBitsetHelperPubSubType::MapWStringInnerBitsetHelperPubSubType() @@ -40170,9 +40170,9 @@ bool MapWStringInnerBitsetHelperPubSubType::getKey( return true; } -void MapWStringInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapWStringInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapWStringInnerBitsetHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperShortPubSubType::MapInnerAliasBoundedStringHelperShortPubSubType() @@ -40363,9 +40363,9 @@ bool MapInnerAliasBoundedStringHelperShortPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperShortPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperShort_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperUShortPubSubType::MapInnerAliasBoundedStringHelperUShortPubSubType() @@ -40556,9 +40556,9 @@ bool MapInnerAliasBoundedStringHelperUShortPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperUShortPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperUShort_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperLongPubSubType::MapInnerAliasBoundedStringHelperLongPubSubType() @@ -40749,9 +40749,9 @@ bool MapInnerAliasBoundedStringHelperLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperULongPubSubType::MapInnerAliasBoundedStringHelperULongPubSubType() @@ -40942,9 +40942,9 @@ bool MapInnerAliasBoundedStringHelperULongPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperULongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperULong_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperLongLongPubSubType::MapInnerAliasBoundedStringHelperLongLongPubSubType() @@ -41135,9 +41135,9 @@ bool MapInnerAliasBoundedStringHelperLongLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperLongLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperLongLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperULongLongPubSubType::MapInnerAliasBoundedStringHelperULongLongPubSubType() @@ -41328,9 +41328,9 @@ bool MapInnerAliasBoundedStringHelperULongLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperULongLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperULongLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperFloatPubSubType::MapInnerAliasBoundedStringHelperFloatPubSubType() @@ -41521,9 +41521,9 @@ bool MapInnerAliasBoundedStringHelperFloatPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperFloatPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperFloat_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperDoublePubSubType::MapInnerAliasBoundedStringHelperDoublePubSubType() @@ -41714,9 +41714,9 @@ bool MapInnerAliasBoundedStringHelperDoublePubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperDoublePubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperDouble_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperLongDoublePubSubType::MapInnerAliasBoundedStringHelperLongDoublePubSubType() @@ -41907,9 +41907,9 @@ bool MapInnerAliasBoundedStringHelperLongDoublePubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperLongDoublePubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperBooleanPubSubType::MapInnerAliasBoundedStringHelperBooleanPubSubType() @@ -42100,9 +42100,9 @@ bool MapInnerAliasBoundedStringHelperBooleanPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperBooleanPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperBoolean_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperOctetPubSubType::MapInnerAliasBoundedStringHelperOctetPubSubType() @@ -42293,9 +42293,9 @@ bool MapInnerAliasBoundedStringHelperOctetPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperOctetPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperOctet_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperCharPubSubType::MapInnerAliasBoundedStringHelperCharPubSubType() @@ -42486,9 +42486,9 @@ bool MapInnerAliasBoundedStringHelperCharPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperCharPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperChar_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperWCharPubSubType::MapInnerAliasBoundedStringHelperWCharPubSubType() @@ -42679,9 +42679,9 @@ bool MapInnerAliasBoundedStringHelperWCharPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperWCharPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperWChar_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperStringPubSubType::MapInnerAliasBoundedStringHelperStringPubSubType() @@ -42872,9 +42872,9 @@ bool MapInnerAliasBoundedStringHelperStringPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperStringPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperString_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperWStringPubSubType::MapInnerAliasBoundedStringHelperWStringPubSubType() @@ -43065,9 +43065,9 @@ bool MapInnerAliasBoundedStringHelperWStringPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperWStringPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperWString_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType() @@ -43258,9 +43258,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType::ge return true; } -void MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType() @@ -43451,9 +43451,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType::g return true; } -void MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType::MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType() @@ -43644,9 +43644,9 @@ bool MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType::MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType() @@ -43837,9 +43837,9 @@ bool MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType() @@ -44030,9 +44030,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType() @@ -44223,9 +44223,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType() @@ -44416,9 +44416,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType::MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType() @@ -44609,9 +44609,9 @@ bool MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType::MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType() @@ -44802,9 +44802,9 @@ bool MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType::MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType() @@ -44995,9 +44995,9 @@ bool MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType::MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType() @@ -45188,9 +45188,9 @@ bool MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperShortPubSubType::MapInnerAliasBoundedWStringHelperShortPubSubType() @@ -45381,9 +45381,9 @@ bool MapInnerAliasBoundedWStringHelperShortPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperShortPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperShort_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperUShortPubSubType::MapInnerAliasBoundedWStringHelperUShortPubSubType() @@ -45574,9 +45574,9 @@ bool MapInnerAliasBoundedWStringHelperUShortPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperUShortPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperUShortPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperUShort_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperLongPubSubType::MapInnerAliasBoundedWStringHelperLongPubSubType() @@ -45767,9 +45767,9 @@ bool MapInnerAliasBoundedWStringHelperLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperULongPubSubType::MapInnerAliasBoundedWStringHelperULongPubSubType() @@ -45960,9 +45960,9 @@ bool MapInnerAliasBoundedWStringHelperULongPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperULongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperULongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperULong_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperLongLongPubSubType::MapInnerAliasBoundedWStringHelperLongLongPubSubType() @@ -46153,9 +46153,9 @@ bool MapInnerAliasBoundedWStringHelperLongLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperLongLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperLongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperULongLongPubSubType::MapInnerAliasBoundedWStringHelperULongLongPubSubType() @@ -46346,9 +46346,9 @@ bool MapInnerAliasBoundedWStringHelperULongLongPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperULongLongPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperULongLongPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperFloatPubSubType::MapInnerAliasBoundedWStringHelperFloatPubSubType() @@ -46539,9 +46539,9 @@ bool MapInnerAliasBoundedWStringHelperFloatPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperFloatPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperFloatPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperFloat_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperDoublePubSubType::MapInnerAliasBoundedWStringHelperDoublePubSubType() @@ -46732,9 +46732,9 @@ bool MapInnerAliasBoundedWStringHelperDoublePubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperDoublePubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperDouble_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperLongDoublePubSubType::MapInnerAliasBoundedWStringHelperLongDoublePubSubType() @@ -46925,9 +46925,9 @@ bool MapInnerAliasBoundedWStringHelperLongDoublePubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperLongDoublePubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperLongDoublePubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperBooleanPubSubType::MapInnerAliasBoundedWStringHelperBooleanPubSubType() @@ -47118,9 +47118,9 @@ bool MapInnerAliasBoundedWStringHelperBooleanPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperBooleanPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperBooleanPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperOctetPubSubType::MapInnerAliasBoundedWStringHelperOctetPubSubType() @@ -47311,9 +47311,9 @@ bool MapInnerAliasBoundedWStringHelperOctetPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperOctetPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperOctetPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperOctet_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperCharPubSubType::MapInnerAliasBoundedWStringHelperCharPubSubType() @@ -47504,9 +47504,9 @@ bool MapInnerAliasBoundedWStringHelperCharPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperCharPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperChar_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperWCharPubSubType::MapInnerAliasBoundedWStringHelperWCharPubSubType() @@ -47697,9 +47697,9 @@ bool MapInnerAliasBoundedWStringHelperWCharPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperWCharPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperWCharPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperWChar_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperStringPubSubType::MapInnerAliasBoundedWStringHelperStringPubSubType() @@ -47890,9 +47890,9 @@ bool MapInnerAliasBoundedWStringHelperStringPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperStringPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperString_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperWStringPubSubType::MapInnerAliasBoundedWStringHelperWStringPubSubType() @@ -48083,9 +48083,9 @@ bool MapInnerAliasBoundedWStringHelperWStringPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperWStringPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperWStringPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperWString_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType() @@ -48276,9 +48276,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType::g return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType() @@ -48469,9 +48469,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType:: return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType() @@ -48662,9 +48662,9 @@ bool MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType() @@ -48855,9 +48855,9 @@ bool MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType() @@ -49048,9 +49048,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType() @@ -49241,9 +49241,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType() @@ -49434,9 +49434,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType::getKey return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType() @@ -49627,9 +49627,9 @@ bool MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType() @@ -49820,9 +49820,9 @@ bool MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType() @@ -50013,9 +50013,9 @@ bool MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identifier(type_identifiers_); } MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType::MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType() @@ -50206,9 +50206,9 @@ bool MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType::getKey( return true; } -void MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType::register_type_object_representation() const +void MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier(type_identifiers_); } BoundedSmallMapPubSubType::BoundedSmallMapPubSubType() @@ -50399,9 +50399,9 @@ bool BoundedSmallMapPubSubType::getKey( return true; } -void BoundedSmallMapPubSubType::register_type_object_representation() const +void BoundedSmallMapPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_BoundedSmallMap_type_identifier(type_identifiers_); } BoundedLargeMapPubSubType::BoundedLargeMapPubSubType() @@ -50592,9 +50592,9 @@ bool BoundedLargeMapPubSubType::getKey( return true; } -void BoundedLargeMapPubSubType::register_type_object_representation() const +void BoundedLargeMapPubSubType::register_type_object_representation() { - register_maps_type_objects(); + register_BoundedLargeMap_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/mapsPubSubTypes.h b/test/dds-types-test/mapsPubSubTypes.h index 318fdeb1be4..eb3a5981c74 100644 --- a/test/dds-types-test/mapsPubSubTypes.h +++ b/test/dds-types-test/mapsPubSubTypes.h @@ -90,7 +90,7 @@ class MapShortShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class MapShortUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class MapShortLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class MapShortULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class MapShortLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class MapShortULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class MapShortFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class MapShortDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class MapShortLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class MapShortBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class MapShortOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class MapShortCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class MapShortWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class MapShortStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class MapShortWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class MapShortInnerAliasBoundedStringHelperPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class MapShortInnerAliasBoundedWStringHelperPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class MapShortInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class MapShortInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class MapShortInnerAliasHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class MapShortInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class MapShortInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class MapShortInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class MapShortInnerUnionHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class MapShortInnerStructureHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class MapShortInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class MapUShortShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class MapUShortUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2638,7 +2638,7 @@ class MapUShortLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2729,7 +2729,7 @@ class MapUShortULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2820,7 +2820,7 @@ class MapUShortLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2911,7 +2911,7 @@ class MapUShortULongLongPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3002,7 +3002,7 @@ class MapUShortFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3093,7 +3093,7 @@ class MapUShortDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3184,7 +3184,7 @@ class MapUShortLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3275,7 +3275,7 @@ class MapUShortBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3366,7 +3366,7 @@ class MapUShortOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3457,7 +3457,7 @@ class MapUShortCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3548,7 +3548,7 @@ class MapUShortWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3639,7 +3639,7 @@ class MapUShortStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3730,7 +3730,7 @@ class MapUShortWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3821,7 +3821,7 @@ class MapUShortInnerAliasBoundedStringHelperPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3912,7 +3912,7 @@ class MapUShortInnerAliasBoundedWStringHelperPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4003,7 +4003,7 @@ class MapUShortInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4094,7 +4094,7 @@ class MapUShortInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4185,7 +4185,7 @@ class MapUShortInnerAliasHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4276,7 +4276,7 @@ class MapUShortInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4367,7 +4367,7 @@ class MapUShortInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4458,7 +4458,7 @@ class MapUShortInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4549,7 +4549,7 @@ class MapUShortInnerUnionHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4640,7 +4640,7 @@ class MapUShortInnerStructureHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4731,7 +4731,7 @@ class MapUShortInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4822,7 +4822,7 @@ class MapLongShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4913,7 +4913,7 @@ class MapLongUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5004,7 +5004,7 @@ class MapLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5095,7 +5095,7 @@ class MapLongULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5186,7 +5186,7 @@ class MapLongKeyLongLongValuePubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5277,7 +5277,7 @@ class MapLongULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5368,7 +5368,7 @@ class MapLongFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5459,7 +5459,7 @@ class MapLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5550,7 +5550,7 @@ class MapLongKeyLongDoubleValuePubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5641,7 +5641,7 @@ class MapLongBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5732,7 +5732,7 @@ class MapLongOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5823,7 +5823,7 @@ class MapLongCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5914,7 +5914,7 @@ class MapLongWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6005,7 +6005,7 @@ class MapLongStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6096,7 +6096,7 @@ class MapLongWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6187,7 +6187,7 @@ class MapLongInnerAliasBoundedStringHelperPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6278,7 +6278,7 @@ class MapLongInnerAliasBoundedWStringHelperPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6369,7 +6369,7 @@ class MapLongInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6460,7 +6460,7 @@ class MapLongInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6551,7 +6551,7 @@ class MapLongInnerAliasHelperPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6642,7 +6642,7 @@ class MapLongInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6733,7 +6733,7 @@ class MapLongInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6824,7 +6824,7 @@ class MapLongInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6915,7 +6915,7 @@ class MapLongInnerUnionHelperPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7006,7 +7006,7 @@ class MapLongInnerStructureHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7097,7 +7097,7 @@ class MapLongInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7188,7 +7188,7 @@ class MapULongShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7279,7 +7279,7 @@ class MapULongUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7370,7 +7370,7 @@ class MapULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7461,7 +7461,7 @@ class MapULongULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7552,7 +7552,7 @@ class MapKeyULongValueLongLongPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7643,7 +7643,7 @@ class MapULongULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7734,7 +7734,7 @@ class MapULongFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7825,7 +7825,7 @@ class MapULongDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7916,7 +7916,7 @@ class MapKeyULongValueLongDoublePubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8007,7 +8007,7 @@ class MapULongBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8098,7 +8098,7 @@ class MapULongOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8189,7 +8189,7 @@ class MapULongCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8280,7 +8280,7 @@ class MapULongWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8371,7 +8371,7 @@ class MapULongStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8462,7 +8462,7 @@ class MapULongWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8553,7 +8553,7 @@ class MapULongInnerAliasBoundedStringHelperPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8644,7 +8644,7 @@ class MapULongInnerAliasBoundedWStringHelperPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8735,7 +8735,7 @@ class MapULongInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8826,7 +8826,7 @@ class MapULongInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -8917,7 +8917,7 @@ class MapULongInnerAliasHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9008,7 +9008,7 @@ class MapULongInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9099,7 +9099,7 @@ class MapULongInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9190,7 +9190,7 @@ class MapULongInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9281,7 +9281,7 @@ class MapULongInnerUnionHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9372,7 +9372,7 @@ class MapULongInnerStructureHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9463,7 +9463,7 @@ class MapULongInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9554,7 +9554,7 @@ class MapLongLongShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9645,7 +9645,7 @@ class MapLongLongUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9736,7 +9736,7 @@ class MapLongLongKeyLongValuePubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9827,7 +9827,7 @@ class MapLongLongULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -9918,7 +9918,7 @@ class MapLongLongLongLongPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10009,7 +10009,7 @@ class MapLongLongULongLongPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10100,7 +10100,7 @@ class MapLongLongFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10191,7 +10191,7 @@ class MapLongLongKeyDoubleValuePubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10282,7 +10282,7 @@ class MapLongLongLongDoublePubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10373,7 +10373,7 @@ class MapLongLongBooleanPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10464,7 +10464,7 @@ class MapLongLongOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10555,7 +10555,7 @@ class MapLongLongCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10646,7 +10646,7 @@ class MapLongLongWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10737,7 +10737,7 @@ class MapLongLongStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10828,7 +10828,7 @@ class MapLongLongWStringPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -10919,7 +10919,7 @@ class MapLongLongInnerAliasBoundedStringHelperPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11010,7 +11010,7 @@ class MapLongLongInnerAliasBoundedWStringHelperPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11101,7 +11101,7 @@ class MapLongLongInnerEnumHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11192,7 +11192,7 @@ class MapLongLongInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11283,7 +11283,7 @@ class MapLongLongInnerAliasHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11374,7 +11374,7 @@ class MapLongLongInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11465,7 +11465,7 @@ class MapLongLongInnerAliasSequenceHelperPubSubType : public eprosima::fastdds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11556,7 +11556,7 @@ class MapLongLongInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11647,7 +11647,7 @@ class MapLongLongInnerUnionHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11738,7 +11738,7 @@ class MapLongLongInnerStructureHelperPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11829,7 +11829,7 @@ class MapLongLongInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -11920,7 +11920,7 @@ class MapULongLongShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12011,7 +12011,7 @@ class MapULongLongUShortPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12102,7 +12102,7 @@ class MapULongLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12193,7 +12193,7 @@ class MapULongLongULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12284,7 +12284,7 @@ class MapULongLongLongLongPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12375,7 +12375,7 @@ class MapULongLongULongLongPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12466,7 +12466,7 @@ class MapULongLongFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12557,7 +12557,7 @@ class MapKeyULongLongValueDoublePubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12648,7 +12648,7 @@ class MapULongLongLongDoublePubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12739,7 +12739,7 @@ class MapULongLongBooleanPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12830,7 +12830,7 @@ class MapULongLongOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -12921,7 +12921,7 @@ class MapULongLongCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13012,7 +13012,7 @@ class MapULongLongWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13103,7 +13103,7 @@ class MapULongLongStringPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13194,7 +13194,7 @@ class MapULongLongWStringPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13285,7 +13285,7 @@ class MapULongLongInnerAliasBoundedStringHelperPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13376,7 +13376,7 @@ class MapULongLongInnerAliasBoundedWStringHelperPubSubType : public eprosima::fa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13467,7 +13467,7 @@ class MapULongLongInnerEnumHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13558,7 +13558,7 @@ class MapULongLongInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13649,7 +13649,7 @@ class MapULongLongInnerAliasHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13740,7 +13740,7 @@ class MapULongLongInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13831,7 +13831,7 @@ class MapULongLongInnerAliasSequenceHelperPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -13922,7 +13922,7 @@ class MapULongLongInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14013,7 +14013,7 @@ class MapULongLongInnerUnionHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14104,7 +14104,7 @@ class MapULongLongInnerStructureHelperPubSubType : public eprosima::fastdds::dds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14195,7 +14195,7 @@ class MapULongLongInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14286,7 +14286,7 @@ class MapStringShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14377,7 +14377,7 @@ class MapStringUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14468,7 +14468,7 @@ class MapStringLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14559,7 +14559,7 @@ class MapStringULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14650,7 +14650,7 @@ class MapStringLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14741,7 +14741,7 @@ class MapStringULongLongPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14832,7 +14832,7 @@ class MapStringFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -14923,7 +14923,7 @@ class MapStringDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15014,7 +15014,7 @@ class MapStringLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15105,7 +15105,7 @@ class MapStringBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15196,7 +15196,7 @@ class MapStringOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15287,7 +15287,7 @@ class MapStringCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15378,7 +15378,7 @@ class MapStringWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15469,7 +15469,7 @@ class MapStringStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15560,7 +15560,7 @@ class MapStringWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15651,7 +15651,7 @@ class MapStringInnerAliasBoundedStringHelperPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15742,7 +15742,7 @@ class MapStringInnerAliasBoundedWStringHelperPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15833,7 +15833,7 @@ class MapStringInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -15924,7 +15924,7 @@ class MapStringInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16015,7 +16015,7 @@ class MapStringInnerAliasHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16106,7 +16106,7 @@ class MapStringInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16197,7 +16197,7 @@ class MapStringInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16288,7 +16288,7 @@ class MapStringInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16379,7 +16379,7 @@ class MapStringInnerUnionHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16470,7 +16470,7 @@ class MapStringInnerStructureHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16561,7 +16561,7 @@ class MapStringInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16652,7 +16652,7 @@ class MapWStringShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16743,7 +16743,7 @@ class MapWStringUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16834,7 +16834,7 @@ class MapWStringLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -16925,7 +16925,7 @@ class MapWStringULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17016,7 +17016,7 @@ class MapWStringLongLongPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17107,7 +17107,7 @@ class MapWStringULongLongPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17198,7 +17198,7 @@ class MapWStringFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17289,7 +17289,7 @@ class MapWStringDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17380,7 +17380,7 @@ class MapWStringLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17471,7 +17471,7 @@ class MapWStringBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17562,7 +17562,7 @@ class MapWStringOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17653,7 +17653,7 @@ class MapWStringCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17744,7 +17744,7 @@ class MapWStringWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17835,7 +17835,7 @@ class MapWStringStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -17926,7 +17926,7 @@ class MapWStringWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18017,7 +18017,7 @@ class MapWStringInnerAliasBoundedStringHelperPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18108,7 +18108,7 @@ class MapWStringInnerAliasBoundedWStringHelperPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18199,7 +18199,7 @@ class MapWStringInnerEnumHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18290,7 +18290,7 @@ class MapWStringInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18381,7 +18381,7 @@ class MapWStringInnerAliasHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18472,7 +18472,7 @@ class MapWStringInnerAliasArrayHelperPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18563,7 +18563,7 @@ class MapWStringInnerAliasSequenceHelperPubSubType : public eprosima::fastdds::d void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18654,7 +18654,7 @@ class MapWStringInnerAliasMapHelperPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18745,7 +18745,7 @@ class MapWStringInnerUnionHelperPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18836,7 +18836,7 @@ class MapWStringInnerStructureHelperPubSubType : public eprosima::fastdds::dds:: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -18927,7 +18927,7 @@ class MapWStringInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19018,7 +19018,7 @@ class MapInnerAliasBoundedStringHelperShortPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19109,7 +19109,7 @@ class MapInnerAliasBoundedStringHelperUShortPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19200,7 +19200,7 @@ class MapInnerAliasBoundedStringHelperLongPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19291,7 +19291,7 @@ class MapInnerAliasBoundedStringHelperULongPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19382,7 +19382,7 @@ class MapInnerAliasBoundedStringHelperLongLongPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19473,7 +19473,7 @@ class MapInnerAliasBoundedStringHelperULongLongPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19564,7 +19564,7 @@ class MapInnerAliasBoundedStringHelperFloatPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19655,7 +19655,7 @@ class MapInnerAliasBoundedStringHelperDoublePubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19746,7 +19746,7 @@ class MapInnerAliasBoundedStringHelperLongDoublePubSubType : public eprosima::fa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19837,7 +19837,7 @@ class MapInnerAliasBoundedStringHelperBooleanPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -19928,7 +19928,7 @@ class MapInnerAliasBoundedStringHelperOctetPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20019,7 +20019,7 @@ class MapInnerAliasBoundedStringHelperCharPubSubType : public eprosima::fastdds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20110,7 +20110,7 @@ class MapInnerAliasBoundedStringHelperWCharPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20201,7 +20201,7 @@ class MapInnerAliasBoundedStringHelperStringPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20292,7 +20292,7 @@ class MapInnerAliasBoundedStringHelperWStringPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20383,7 +20383,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelperPubSubType : void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20474,7 +20474,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelperPubSubType : void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20565,7 +20565,7 @@ class MapInnerAliasBoundedStringHelperInnerEnumHelperPubSubType : public eprosim void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20656,7 +20656,7 @@ class MapInnerAliasBoundedStringHelperInnerBitMaskHelperPubSubType : public epro void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20747,7 +20747,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasHelperPubSubType : public eprosi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20838,7 +20838,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasArrayHelperPubSubType : public e void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -20929,7 +20929,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasSequenceHelperPubSubType : publi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21020,7 +21020,7 @@ class MapInnerAliasBoundedStringHelperInnerAliasMapHelperPubSubType : public epr void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21111,7 +21111,7 @@ class MapInnerAliasBoundedStringHelperInnerUnionHelperPubSubType : public eprosi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21202,7 +21202,7 @@ class MapInnerAliasBoundedStringHelperInnerStructureHelperPubSubType : public ep void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21293,7 +21293,7 @@ class MapInnerAliasBoundedStringHelperInnerBitsetHelperPubSubType : public epros void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21384,7 +21384,7 @@ class MapInnerAliasBoundedWStringHelperShortPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21475,7 +21475,7 @@ class MapInnerAliasBoundedWStringHelperUShortPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21566,7 +21566,7 @@ class MapInnerAliasBoundedWStringHelperLongPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21657,7 +21657,7 @@ class MapInnerAliasBoundedWStringHelperULongPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21748,7 +21748,7 @@ class MapInnerAliasBoundedWStringHelperLongLongPubSubType : public eprosima::fas void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21839,7 +21839,7 @@ class MapInnerAliasBoundedWStringHelperULongLongPubSubType : public eprosima::fa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -21930,7 +21930,7 @@ class MapInnerAliasBoundedWStringHelperFloatPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22021,7 +22021,7 @@ class MapInnerAliasBoundedWStringHelperDoublePubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22112,7 +22112,7 @@ class MapInnerAliasBoundedWStringHelperLongDoublePubSubType : public eprosima::f void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22203,7 +22203,7 @@ class MapInnerAliasBoundedWStringHelperBooleanPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22294,7 +22294,7 @@ class MapInnerAliasBoundedWStringHelperOctetPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22385,7 +22385,7 @@ class MapInnerAliasBoundedWStringHelperCharPubSubType : public eprosima::fastdds void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22476,7 +22476,7 @@ class MapInnerAliasBoundedWStringHelperWCharPubSubType : public eprosima::fastdd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22567,7 +22567,7 @@ class MapInnerAliasBoundedWStringHelperStringPubSubType : public eprosima::fastd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22658,7 +22658,7 @@ class MapInnerAliasBoundedWStringHelperWStringPubSubType : public eprosima::fast void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22749,7 +22749,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelperPubSubType : void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22840,7 +22840,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelperPubSubType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -22931,7 +22931,7 @@ class MapInnerAliasBoundedWStringHelperInnerEnumHelperPubSubType : public eprosi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23022,7 +23022,7 @@ class MapInnerAliasBoundedWStringHelperInnerBitMaskHelperPubSubType : public epr void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23113,7 +23113,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasHelperPubSubType : public epros void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23204,7 +23204,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasArrayHelperPubSubType : public void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23295,7 +23295,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelperPubSubType : publ void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23386,7 +23386,7 @@ class MapInnerAliasBoundedWStringHelperInnerAliasMapHelperPubSubType : public ep void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23477,7 +23477,7 @@ class MapInnerAliasBoundedWStringHelperInnerUnionHelperPubSubType : public epros void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23568,7 +23568,7 @@ class MapInnerAliasBoundedWStringHelperInnerStructureHelperPubSubType : public e void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23659,7 +23659,7 @@ class MapInnerAliasBoundedWStringHelperInnerBitsetHelperPubSubType : public epro void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23750,7 +23750,7 @@ class BoundedSmallMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -23841,7 +23841,7 @@ class BoundedLargeMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/mapsTypeObjectSupport.cxx b/test/dds-types-test/mapsTypeObjectSupport.cxx index dd862038f4b..9a00c80e31e 100644 --- a/test/dds-types-test/mapsTypeObjectSupport.cxx +++ b/test/dds-types-test/mapsTypeObjectSupport.cxx @@ -39,554 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_maps_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_MapShortShort_type_identifier(type_id); - - register_MapShortUShort_type_identifier(type_id); - - register_MapShortLong_type_identifier(type_id); - - register_MapShortULong_type_identifier(type_id); - - register_MapShortLongLong_type_identifier(type_id); - - register_MapShortULongLong_type_identifier(type_id); - - register_MapShortFloat_type_identifier(type_id); - - register_MapShortDouble_type_identifier(type_id); - - register_MapShortLongDouble_type_identifier(type_id); - - register_MapShortBoolean_type_identifier(type_id); - - register_MapShortOctet_type_identifier(type_id); - - register_MapShortChar_type_identifier(type_id); - - register_MapShortWChar_type_identifier(type_id); - - register_MapShortString_type_identifier(type_id); - - register_MapShortWString_type_identifier(type_id); - - register_MapShortInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapShortInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapShortInnerEnumHelper_type_identifier(type_id); - - register_MapShortInnerBitMaskHelper_type_identifier(type_id); - - register_MapShortInnerAliasHelper_type_identifier(type_id); - - register_MapShortInnerAliasArrayHelper_type_identifier(type_id); - - register_MapShortInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapShortInnerAliasMapHelper_type_identifier(type_id); - - register_MapShortInnerUnionHelper_type_identifier(type_id); - - register_MapShortInnerStructureHelper_type_identifier(type_id); - - register_MapShortInnerBitsetHelper_type_identifier(type_id); - - register_MapUShortShort_type_identifier(type_id); - - register_MapUShortUShort_type_identifier(type_id); - - register_MapUShortLong_type_identifier(type_id); - - register_MapUShortULong_type_identifier(type_id); - - register_MapUShortLongLong_type_identifier(type_id); - - register_MapUShortULongLong_type_identifier(type_id); - - register_MapUShortFloat_type_identifier(type_id); - - register_MapUShortDouble_type_identifier(type_id); - - register_MapUShortLongDouble_type_identifier(type_id); - - register_MapUShortBoolean_type_identifier(type_id); - - register_MapUShortOctet_type_identifier(type_id); - - register_MapUShortChar_type_identifier(type_id); - - register_MapUShortWChar_type_identifier(type_id); - - register_MapUShortString_type_identifier(type_id); - - register_MapUShortWString_type_identifier(type_id); - - register_MapUShortInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapUShortInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapUShortInnerEnumHelper_type_identifier(type_id); - - register_MapUShortInnerBitMaskHelper_type_identifier(type_id); - - register_MapUShortInnerAliasHelper_type_identifier(type_id); - - register_MapUShortInnerAliasArrayHelper_type_identifier(type_id); - - register_MapUShortInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapUShortInnerAliasMapHelper_type_identifier(type_id); - - register_MapUShortInnerUnionHelper_type_identifier(type_id); - - register_MapUShortInnerStructureHelper_type_identifier(type_id); - - register_MapUShortInnerBitsetHelper_type_identifier(type_id); - - register_MapLongShort_type_identifier(type_id); - - register_MapLongUShort_type_identifier(type_id); - - register_MapLongLong_type_identifier(type_id); - - register_MapLongULong_type_identifier(type_id); - - register_MapLongKeyLongLongValue_type_identifier(type_id); - - register_MapLongULongLong_type_identifier(type_id); - - register_MapLongFloat_type_identifier(type_id); - - register_MapLongDouble_type_identifier(type_id); - - register_MapLongKeyLongDoubleValue_type_identifier(type_id); - - register_MapLongBoolean_type_identifier(type_id); - - register_MapLongOctet_type_identifier(type_id); - - register_MapLongChar_type_identifier(type_id); - - register_MapLongWChar_type_identifier(type_id); - - register_MapLongString_type_identifier(type_id); - - register_MapLongWString_type_identifier(type_id); - - register_MapLongInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapLongInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapLongInnerEnumHelper_type_identifier(type_id); - - register_MapLongInnerBitMaskHelper_type_identifier(type_id); - - register_MapLongInnerAliasHelper_type_identifier(type_id); - - register_MapLongInnerAliasArrayHelper_type_identifier(type_id); - - register_MapLongInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapLongInnerAliasMapHelper_type_identifier(type_id); - - register_MapLongInnerUnionHelper_type_identifier(type_id); - - register_MapLongInnerStructureHelper_type_identifier(type_id); - - register_MapLongInnerBitsetHelper_type_identifier(type_id); - - register_MapULongShort_type_identifier(type_id); - - register_MapULongUShort_type_identifier(type_id); - - register_MapULongLong_type_identifier(type_id); - - register_MapULongULong_type_identifier(type_id); - - register_MapKeyULongValueLongLong_type_identifier(type_id); - - register_MapULongULongLong_type_identifier(type_id); - - register_MapULongFloat_type_identifier(type_id); - - register_MapULongDouble_type_identifier(type_id); - - register_MapKeyULongValueLongDouble_type_identifier(type_id); - - register_MapULongBoolean_type_identifier(type_id); - - register_MapULongOctet_type_identifier(type_id); - - register_MapULongChar_type_identifier(type_id); - - register_MapULongWChar_type_identifier(type_id); - - register_MapULongString_type_identifier(type_id); - - register_MapULongWString_type_identifier(type_id); - - register_MapULongInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapULongInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapULongInnerEnumHelper_type_identifier(type_id); - - register_MapULongInnerBitMaskHelper_type_identifier(type_id); - - register_MapULongInnerAliasHelper_type_identifier(type_id); - - register_MapULongInnerAliasArrayHelper_type_identifier(type_id); - - register_MapULongInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapULongInnerAliasMapHelper_type_identifier(type_id); - - register_MapULongInnerUnionHelper_type_identifier(type_id); - - register_MapULongInnerStructureHelper_type_identifier(type_id); - - register_MapULongInnerBitsetHelper_type_identifier(type_id); - - register_MapLongLongShort_type_identifier(type_id); - - register_MapLongLongUShort_type_identifier(type_id); - - register_MapLongLongKeyLongValue_type_identifier(type_id); - - register_MapLongLongULong_type_identifier(type_id); - - register_MapLongLongLongLong_type_identifier(type_id); - - register_MapLongLongULongLong_type_identifier(type_id); - - register_MapLongLongFloat_type_identifier(type_id); - - register_MapLongLongKeyDoubleValue_type_identifier(type_id); - - register_MapLongLongLongDouble_type_identifier(type_id); - - register_MapLongLongBoolean_type_identifier(type_id); - - register_MapLongLongOctet_type_identifier(type_id); - - register_MapLongLongChar_type_identifier(type_id); - - register_MapLongLongWChar_type_identifier(type_id); - - register_MapLongLongString_type_identifier(type_id); - - register_MapLongLongWString_type_identifier(type_id); - - register_MapLongLongInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapLongLongInnerEnumHelper_type_identifier(type_id); - - register_MapLongLongInnerBitMaskHelper_type_identifier(type_id); - - register_MapLongLongInnerAliasHelper_type_identifier(type_id); - - register_MapLongLongInnerAliasArrayHelper_type_identifier(type_id); - - register_MapLongLongInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapLongLongInnerAliasMapHelper_type_identifier(type_id); - - register_MapLongLongInnerUnionHelper_type_identifier(type_id); - - register_MapLongLongInnerStructureHelper_type_identifier(type_id); - - register_MapLongLongInnerBitsetHelper_type_identifier(type_id); - - register_MapULongLongShort_type_identifier(type_id); - - register_MapULongLongUShort_type_identifier(type_id); - - register_MapULongLongLong_type_identifier(type_id); - - register_MapULongLongULong_type_identifier(type_id); - - register_MapULongLongLongLong_type_identifier(type_id); - - register_MapULongLongULongLong_type_identifier(type_id); - - register_MapULongLongFloat_type_identifier(type_id); - - register_MapKeyULongLongValueDouble_type_identifier(type_id); - - register_MapULongLongLongDouble_type_identifier(type_id); - - register_MapULongLongBoolean_type_identifier(type_id); - - register_MapULongLongOctet_type_identifier(type_id); - - register_MapULongLongChar_type_identifier(type_id); - - register_MapULongLongWChar_type_identifier(type_id); - - register_MapULongLongString_type_identifier(type_id); - - register_MapULongLongWString_type_identifier(type_id); - - register_MapULongLongInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapULongLongInnerEnumHelper_type_identifier(type_id); - - register_MapULongLongInnerBitMaskHelper_type_identifier(type_id); - - register_MapULongLongInnerAliasHelper_type_identifier(type_id); - - register_MapULongLongInnerAliasArrayHelper_type_identifier(type_id); - - register_MapULongLongInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapULongLongInnerAliasMapHelper_type_identifier(type_id); - - register_MapULongLongInnerUnionHelper_type_identifier(type_id); - - register_MapULongLongInnerStructureHelper_type_identifier(type_id); - - register_MapULongLongInnerBitsetHelper_type_identifier(type_id); - - register_MapStringShort_type_identifier(type_id); - - register_MapStringUShort_type_identifier(type_id); - - register_MapStringLong_type_identifier(type_id); - - register_MapStringULong_type_identifier(type_id); - - register_MapStringLongLong_type_identifier(type_id); - - register_MapStringULongLong_type_identifier(type_id); - - register_MapStringFloat_type_identifier(type_id); - - register_MapStringDouble_type_identifier(type_id); - - register_MapStringLongDouble_type_identifier(type_id); - - register_MapStringBoolean_type_identifier(type_id); - - register_MapStringOctet_type_identifier(type_id); - - register_MapStringChar_type_identifier(type_id); - - register_MapStringWChar_type_identifier(type_id); - - register_MapStringString_type_identifier(type_id); - - register_MapStringWString_type_identifier(type_id); - - register_MapStringInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapStringInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapStringInnerEnumHelper_type_identifier(type_id); - - register_MapStringInnerBitMaskHelper_type_identifier(type_id); - - register_MapStringInnerAliasHelper_type_identifier(type_id); - - register_MapStringInnerAliasArrayHelper_type_identifier(type_id); - - register_MapStringInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapStringInnerAliasMapHelper_type_identifier(type_id); - - register_MapStringInnerUnionHelper_type_identifier(type_id); - - register_MapStringInnerStructureHelper_type_identifier(type_id); - - register_MapStringInnerBitsetHelper_type_identifier(type_id); - - register_MapWStringShort_type_identifier(type_id); - - register_MapWStringUShort_type_identifier(type_id); - - register_MapWStringLong_type_identifier(type_id); - - register_MapWStringULong_type_identifier(type_id); - - register_MapWStringLongLong_type_identifier(type_id); - - register_MapWStringULongLong_type_identifier(type_id); - - register_MapWStringFloat_type_identifier(type_id); - - register_MapWStringDouble_type_identifier(type_id); - - register_MapWStringLongDouble_type_identifier(type_id); - - register_MapWStringBoolean_type_identifier(type_id); - - register_MapWStringOctet_type_identifier(type_id); - - register_MapWStringChar_type_identifier(type_id); - - register_MapWStringWChar_type_identifier(type_id); - - register_MapWStringString_type_identifier(type_id); - - register_MapWStringWString_type_identifier(type_id); - - register_MapWStringInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapWStringInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapWStringInnerEnumHelper_type_identifier(type_id); - - register_MapWStringInnerBitMaskHelper_type_identifier(type_id); - - register_MapWStringInnerAliasHelper_type_identifier(type_id); - - register_MapWStringInnerAliasArrayHelper_type_identifier(type_id); - - register_MapWStringInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapWStringInnerAliasMapHelper_type_identifier(type_id); - - register_MapWStringInnerUnionHelper_type_identifier(type_id); - - register_MapWStringInnerStructureHelper_type_identifier(type_id); - - register_MapWStringInnerBitsetHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperShort_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperUShort_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperLong_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperULong_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperLongLong_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperULongLong_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperFloat_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperDouble_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperBoolean_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperOctet_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperChar_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperWChar_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperString_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperWString_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperShort_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperUShort_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperLong_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperULong_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperFloat_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperDouble_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperOctet_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperChar_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperWChar_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperString_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperWString_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identifier(type_id); - - register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier(type_id); - - register_BoundedSmallMap_type_identifier(type_id); - - register_BoundedLargeMap_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortShort) { + + ReturnCode_t return_code_MapShortShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortShort", type_ids_MapShortShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortShort) { - StructTypeFlag struct_flags_MapShortShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortShort; - TypeIdentifierPair type_ids_MapShortShort; QualifiedTypeName type_name_MapShortShort = "MapShortShort"; eprosima::fastcdr::optional type_ann_builtin_MapShortShort; eprosima::fastcdr::optional ann_custom_MapShortShort; @@ -595,120 +60,48 @@ void register_MapShortShort_type_identifier( header_MapShortShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortShort); CompleteStructMemberSeq member_seq_MapShortShort; { - return_code_MapShortShort = + TypeIdentifierPair type_ids_var_map_short_short; + ReturnCode_t return_code_var_map_short_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int16_t_unbounded", type_ids_MapShortShort); + "anonymous_map_int16_t_int16_t_unbounded", type_ids_var_map_short_short); - if (return_code_MapShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_short) { - return_code_MapShortShort = + return_code_var_map_short_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortShort); + "_int16_t", type_ids_var_map_short_short); - if (return_code_MapShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_short, element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortShort = + return_code_var_map_short_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortShort); + "_int16_t", type_ids_var_map_short_short); - if (return_code_MapShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_short, key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_int16_t_unbounded = EK_BOTH; @@ -731,68 +124,21 @@ void register_MapShortShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_int16_t_unbounded), key_flags_anonymous_map_int16_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int16_t_unbounded", type_ids_var_map_short_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int16_t_unbounded", type_ids_MapShortShort); - if (return_code_MapShortShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_short; MemberId member_id_var_map_short_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_short, member_flags_var_map_short_short, type_ids_MapShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_short, member_flags_var_map_short_short, type_ids_MapShortShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_short_ec {false}; + CommonStructMember common_var_map_short_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_short, member_flags_var_map_short_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_short, common_var_map_short_short_ec))}; + if (!common_var_map_short_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_short = "var_map_short_short"; @@ -804,32 +150,26 @@ void register_MapShortShort_type_identifier( } CompleteStructType struct_type_MapShortShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortShort, header_MapShortShort, member_seq_MapShortShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortShort, type_name_MapShortShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortShort, type_name_MapShortShort.to_string(), type_ids_MapShortShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortShort", type_ids_MapShortShort); - if (return_code_MapShortShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortUShort) { + + ReturnCode_t return_code_MapShortUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortUShort", type_ids_MapShortUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortUShort) { - StructTypeFlag struct_flags_MapShortUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortUShort; - TypeIdentifierPair type_ids_MapShortUShort; QualifiedTypeName type_name_MapShortUShort = "MapShortUShort"; eprosima::fastcdr::optional type_ann_builtin_MapShortUShort; eprosima::fastcdr::optional ann_custom_MapShortUShort; @@ -838,120 +178,48 @@ void register_MapShortUShort_type_identifier( header_MapShortUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortUShort); CompleteStructMemberSeq member_seq_MapShortUShort; { - return_code_MapShortUShort = + TypeIdentifierPair type_ids_var_map_short_ushort; + ReturnCode_t return_code_var_map_short_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint16_t_unbounded", type_ids_MapShortUShort); + "anonymous_map_int16_t_uint16_t_unbounded", type_ids_var_map_short_ushort); - if (return_code_MapShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ushort) { - return_code_MapShortUShort = + return_code_var_map_short_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapShortUShort); + "_uint16_t", type_ids_var_map_short_ushort); - if (return_code_MapShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapShortUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ushort, element_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortUShort = + return_code_var_map_short_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortUShort); + "_int16_t", type_ids_var_map_short_ushort); - if (return_code_MapShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapShortUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ushort, key_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_uint16_t_unbounded = EK_BOTH; @@ -974,68 +242,21 @@ void register_MapShortUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_uint16_t_unbounded), key_flags_anonymous_map_int16_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint16_t_unbounded", type_ids_var_map_short_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint16_t_unbounded", type_ids_MapShortUShort); - if (return_code_MapShortUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_ushort; MemberId member_id_var_map_short_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ushort, member_flags_var_map_short_ushort, type_ids_MapShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ushort, member_flags_var_map_short_ushort, type_ids_MapShortUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_ushort_ec {false}; + CommonStructMember common_var_map_short_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ushort, member_flags_var_map_short_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ushort, common_var_map_short_ushort_ec))}; + if (!common_var_map_short_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_ushort = "var_map_short_ushort"; @@ -1047,32 +268,26 @@ void register_MapShortUShort_type_identifier( } CompleteStructType struct_type_MapShortUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortUShort, header_MapShortUShort, member_seq_MapShortUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortUShort, type_name_MapShortUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortUShort, type_name_MapShortUShort.to_string(), type_ids_MapShortUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortUShort", type_ids_MapShortUShort); - if (return_code_MapShortUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortLong) { + + ReturnCode_t return_code_MapShortLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortLong", type_ids_MapShortLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortLong) { - StructTypeFlag struct_flags_MapShortLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortLong; - TypeIdentifierPair type_ids_MapShortLong; QualifiedTypeName type_name_MapShortLong = "MapShortLong"; eprosima::fastcdr::optional type_ann_builtin_MapShortLong; eprosima::fastcdr::optional ann_custom_MapShortLong; @@ -1081,120 +296,48 @@ void register_MapShortLong_type_identifier( header_MapShortLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortLong); CompleteStructMemberSeq member_seq_MapShortLong; { - return_code_MapShortLong = + TypeIdentifierPair type_ids_var_map_short_long; + ReturnCode_t return_code_var_map_short_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int32_t_unbounded", type_ids_MapShortLong); + "anonymous_map_int16_t_int32_t_unbounded", type_ids_var_map_short_long); - if (return_code_MapShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_long) { - return_code_MapShortLong = + return_code_var_map_short_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapShortLong); + "_int32_t", type_ids_var_map_short_long); - if (return_code_MapShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_long, element_identifier_anonymous_map_int16_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortLong = + return_code_var_map_short_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortLong); + "_int16_t", type_ids_var_map_short_long); - if (return_code_MapShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_long, key_identifier_anonymous_map_int16_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_int32_t_unbounded = EK_BOTH; @@ -1217,68 +360,21 @@ void register_MapShortLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_int32_t_unbounded), key_flags_anonymous_map_int16_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int32_t_unbounded", type_ids_var_map_short_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int32_t_unbounded", type_ids_MapShortLong); - if (return_code_MapShortLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_long; MemberId member_id_var_map_short_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_long, member_flags_var_map_short_long, type_ids_MapShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_long, member_flags_var_map_short_long, type_ids_MapShortLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_long_ec {false}; + CommonStructMember common_var_map_short_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_long, member_flags_var_map_short_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_long, common_var_map_short_long_ec))}; + if (!common_var_map_short_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_long = "var_map_short_long"; @@ -1290,32 +386,26 @@ void register_MapShortLong_type_identifier( } CompleteStructType struct_type_MapShortLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortLong, header_MapShortLong, member_seq_MapShortLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLong, type_name_MapShortLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLong, type_name_MapShortLong.to_string(), type_ids_MapShortLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortLong", type_ids_MapShortLong); - if (return_code_MapShortLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortULong) { + + ReturnCode_t return_code_MapShortULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortULong", type_ids_MapShortULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortULong) { - StructTypeFlag struct_flags_MapShortULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortULong; - TypeIdentifierPair type_ids_MapShortULong; QualifiedTypeName type_name_MapShortULong = "MapShortULong"; eprosima::fastcdr::optional type_ann_builtin_MapShortULong; eprosima::fastcdr::optional ann_custom_MapShortULong; @@ -1324,120 +414,48 @@ void register_MapShortULong_type_identifier( header_MapShortULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortULong); CompleteStructMemberSeq member_seq_MapShortULong; { - return_code_MapShortULong = + TypeIdentifierPair type_ids_var_map_short_ulong; + ReturnCode_t return_code_var_map_short_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint32_t_unbounded", type_ids_MapShortULong); + "anonymous_map_int16_t_uint32_t_unbounded", type_ids_var_map_short_ulong); - if (return_code_MapShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulong) { - return_code_MapShortULong = + return_code_var_map_short_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapShortULong); + "_uint32_t", type_ids_var_map_short_ulong); - if (return_code_MapShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapShortULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulong, element_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortULong = + return_code_var_map_short_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortULong); + "_int16_t", type_ids_var_map_short_ulong); - if (return_code_MapShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapShortULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulong, key_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_uint32_t_unbounded = EK_BOTH; @@ -1460,68 +478,21 @@ void register_MapShortULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_uint32_t_unbounded), key_flags_anonymous_map_int16_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint32_t_unbounded", type_ids_var_map_short_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint32_t_unbounded", type_ids_MapShortULong); - if (return_code_MapShortULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_ulong; MemberId member_id_var_map_short_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulong, member_flags_var_map_short_ulong, type_ids_MapShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulong, member_flags_var_map_short_ulong, type_ids_MapShortULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_ulong_ec {false}; + CommonStructMember common_var_map_short_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulong, member_flags_var_map_short_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulong, common_var_map_short_ulong_ec))}; + if (!common_var_map_short_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_ulong = "var_map_short_ulong"; @@ -1533,32 +504,26 @@ void register_MapShortULong_type_identifier( } CompleteStructType struct_type_MapShortULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortULong, header_MapShortULong, member_seq_MapShortULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortULong, type_name_MapShortULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortULong, type_name_MapShortULong.to_string(), type_ids_MapShortULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortULong", type_ids_MapShortULong); - if (return_code_MapShortULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortLongLong) { + + ReturnCode_t return_code_MapShortLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortLongLong", type_ids_MapShortLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortLongLong) { - StructTypeFlag struct_flags_MapShortLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortLongLong; - TypeIdentifierPair type_ids_MapShortLongLong; QualifiedTypeName type_name_MapShortLongLong = "MapShortLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapShortLongLong; eprosima::fastcdr::optional ann_custom_MapShortLongLong; @@ -1567,120 +532,48 @@ void register_MapShortLongLong_type_identifier( header_MapShortLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortLongLong); CompleteStructMemberSeq member_seq_MapShortLongLong; { - return_code_MapShortLongLong = + TypeIdentifierPair type_ids_var_map_short_longlong; + ReturnCode_t return_code_var_map_short_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int64_t_unbounded", type_ids_MapShortLongLong); + "anonymous_map_int16_t_int64_t_unbounded", type_ids_var_map_short_longlong); - if (return_code_MapShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longlong) { - return_code_MapShortLongLong = + return_code_var_map_short_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapShortLongLong); + "_int64_t", type_ids_var_map_short_longlong); - if (return_code_MapShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapShortLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longlong, element_identifier_anonymous_map_int16_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortLongLong = + return_code_var_map_short_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortLongLong); + "_int16_t", type_ids_var_map_short_longlong); - if (return_code_MapShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapShortLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longlong, key_identifier_anonymous_map_int16_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_int64_t_unbounded = EK_BOTH; @@ -1703,68 +596,21 @@ void register_MapShortLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_int64_t_unbounded), key_flags_anonymous_map_int16_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_int64_t_unbounded", type_ids_var_map_short_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_int64_t_unbounded", type_ids_MapShortLongLong); - if (return_code_MapShortLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_longlong; MemberId member_id_var_map_short_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longlong, member_flags_var_map_short_longlong, type_ids_MapShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longlong, member_flags_var_map_short_longlong, type_ids_MapShortLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_longlong_ec {false}; + CommonStructMember common_var_map_short_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longlong, member_flags_var_map_short_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longlong, common_var_map_short_longlong_ec))}; + if (!common_var_map_short_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_longlong = "var_map_short_longlong"; @@ -1776,32 +622,26 @@ void register_MapShortLongLong_type_identifier( } CompleteStructType struct_type_MapShortLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortLongLong, header_MapShortLongLong, member_seq_MapShortLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLongLong, type_name_MapShortLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLongLong, type_name_MapShortLongLong.to_string(), type_ids_MapShortLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortLongLong", type_ids_MapShortLongLong); - if (return_code_MapShortLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortULongLong) { + + ReturnCode_t return_code_MapShortULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortULongLong", type_ids_MapShortULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortULongLong) { - StructTypeFlag struct_flags_MapShortULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortULongLong; - TypeIdentifierPair type_ids_MapShortULongLong; QualifiedTypeName type_name_MapShortULongLong = "MapShortULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapShortULongLong; eprosima::fastcdr::optional ann_custom_MapShortULongLong; @@ -1810,120 +650,48 @@ void register_MapShortULongLong_type_identifier( header_MapShortULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortULongLong); CompleteStructMemberSeq member_seq_MapShortULongLong; { - return_code_MapShortULongLong = + TypeIdentifierPair type_ids_var_map_short_ulonglong; + ReturnCode_t return_code_var_map_short_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint64_t_unbounded", type_ids_MapShortULongLong); + "anonymous_map_int16_t_uint64_t_unbounded", type_ids_var_map_short_ulonglong); - if (return_code_MapShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulonglong) { - return_code_MapShortULongLong = + return_code_var_map_short_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapShortULongLong); + "_uint64_t", type_ids_var_map_short_ulonglong); - if (return_code_MapShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapShortULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulonglong, element_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortULongLong = + return_code_var_map_short_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortULongLong); + "_int16_t", type_ids_var_map_short_ulonglong); - if (return_code_MapShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapShortULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulonglong, key_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_uint64_t_unbounded = EK_BOTH; @@ -1946,68 +714,21 @@ void register_MapShortULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_uint64_t_unbounded), key_flags_anonymous_map_int16_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint64_t_unbounded", type_ids_var_map_short_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint64_t_unbounded", type_ids_MapShortULongLong); - if (return_code_MapShortULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_ulonglong; MemberId member_id_var_map_short_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulonglong, member_flags_var_map_short_ulonglong, type_ids_MapShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulonglong, member_flags_var_map_short_ulonglong, type_ids_MapShortULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_ulonglong_ec {false}; + CommonStructMember common_var_map_short_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_ulonglong, member_flags_var_map_short_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_ulonglong, common_var_map_short_ulonglong_ec))}; + if (!common_var_map_short_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_ulonglong = "var_map_short_ulonglong"; @@ -2019,32 +740,26 @@ void register_MapShortULongLong_type_identifier( } CompleteStructType struct_type_MapShortULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortULongLong, header_MapShortULongLong, member_seq_MapShortULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortULongLong, type_name_MapShortULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortULongLong, type_name_MapShortULongLong.to_string(), type_ids_MapShortULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortULongLong", type_ids_MapShortULongLong); - if (return_code_MapShortULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortFloat) { + + ReturnCode_t return_code_MapShortFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortFloat", type_ids_MapShortFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortFloat) { - StructTypeFlag struct_flags_MapShortFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortFloat; - TypeIdentifierPair type_ids_MapShortFloat; QualifiedTypeName type_name_MapShortFloat = "MapShortFloat"; eprosima::fastcdr::optional type_ann_builtin_MapShortFloat; eprosima::fastcdr::optional ann_custom_MapShortFloat; @@ -2053,120 +768,48 @@ void register_MapShortFloat_type_identifier( header_MapShortFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortFloat); CompleteStructMemberSeq member_seq_MapShortFloat; { - return_code_MapShortFloat = + TypeIdentifierPair type_ids_var_map_short_float; + ReturnCode_t return_code_var_map_short_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_float_unbounded", type_ids_MapShortFloat); + "anonymous_map_int16_t_float_unbounded", type_ids_var_map_short_float); - if (return_code_MapShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_float) { - return_code_MapShortFloat = + return_code_var_map_short_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapShortFloat); + "_float", type_ids_var_map_short_float); - if (return_code_MapShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_float_unbounded = new TypeIdentifier(type_ids_MapShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_float_unbounded = new TypeIdentifier(type_ids_MapShortFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_float, element_identifier_anonymous_map_int16_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortFloat = + return_code_var_map_short_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortFloat); + "_int16_t", type_ids_var_map_short_float); - if (return_code_MapShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_float_unbounded = new TypeIdentifier(type_ids_MapShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_float_unbounded = new TypeIdentifier(type_ids_MapShortFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_float, key_identifier_anonymous_map_int16_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_float_unbounded = EK_BOTH; @@ -2189,68 +832,21 @@ void register_MapShortFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_float_unbounded), key_flags_anonymous_map_int16_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_float_unbounded", type_ids_var_map_short_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_float_unbounded", type_ids_MapShortFloat); - if (return_code_MapShortFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_float; MemberId member_id_var_map_short_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_float, member_flags_var_map_short_float, type_ids_MapShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_float, member_flags_var_map_short_float, type_ids_MapShortFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_float_ec {false}; + CommonStructMember common_var_map_short_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_float, member_flags_var_map_short_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_float, common_var_map_short_float_ec))}; + if (!common_var_map_short_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_float = "var_map_short_float"; @@ -2262,32 +858,26 @@ void register_MapShortFloat_type_identifier( } CompleteStructType struct_type_MapShortFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortFloat, header_MapShortFloat, member_seq_MapShortFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortFloat, type_name_MapShortFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortFloat, type_name_MapShortFloat.to_string(), type_ids_MapShortFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortFloat", type_ids_MapShortFloat); - if (return_code_MapShortFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortDouble) { + + ReturnCode_t return_code_MapShortDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortDouble", type_ids_MapShortDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortDouble) { - StructTypeFlag struct_flags_MapShortDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortDouble; - TypeIdentifierPair type_ids_MapShortDouble; QualifiedTypeName type_name_MapShortDouble = "MapShortDouble"; eprosima::fastcdr::optional type_ann_builtin_MapShortDouble; eprosima::fastcdr::optional ann_custom_MapShortDouble; @@ -2296,120 +886,48 @@ void register_MapShortDouble_type_identifier( header_MapShortDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortDouble); CompleteStructMemberSeq member_seq_MapShortDouble; { - return_code_MapShortDouble = + TypeIdentifierPair type_ids_var_map_short_double; + ReturnCode_t return_code_var_map_short_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_double_unbounded", type_ids_MapShortDouble); + "anonymous_map_int16_t_double_unbounded", type_ids_var_map_short_double); - if (return_code_MapShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_double) { - return_code_MapShortDouble = + return_code_var_map_short_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapShortDouble); + "_double", type_ids_var_map_short_double); - if (return_code_MapShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_double_unbounded = new TypeIdentifier(type_ids_MapShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_double_unbounded = new TypeIdentifier(type_ids_MapShortDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_double, element_identifier_anonymous_map_int16_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortDouble = + return_code_var_map_short_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortDouble); + "_int16_t", type_ids_var_map_short_double); - if (return_code_MapShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_double_unbounded = new TypeIdentifier(type_ids_MapShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_double_unbounded = new TypeIdentifier(type_ids_MapShortDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_double, key_identifier_anonymous_map_int16_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_double_unbounded = EK_BOTH; @@ -2432,68 +950,21 @@ void register_MapShortDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_double_unbounded), key_flags_anonymous_map_int16_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_double_unbounded", type_ids_var_map_short_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_double_unbounded", type_ids_MapShortDouble); - if (return_code_MapShortDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_double; MemberId member_id_var_map_short_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_double, member_flags_var_map_short_double, type_ids_MapShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_double, member_flags_var_map_short_double, type_ids_MapShortDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_double_ec {false}; + CommonStructMember common_var_map_short_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_double, member_flags_var_map_short_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_double, common_var_map_short_double_ec))}; + if (!common_var_map_short_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_double = "var_map_short_double"; @@ -2505,32 +976,26 @@ void register_MapShortDouble_type_identifier( } CompleteStructType struct_type_MapShortDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortDouble, header_MapShortDouble, member_seq_MapShortDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortDouble, type_name_MapShortDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortDouble, type_name_MapShortDouble.to_string(), type_ids_MapShortDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortDouble", type_ids_MapShortDouble); - if (return_code_MapShortDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortLongDouble) { + + ReturnCode_t return_code_MapShortLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortLongDouble", type_ids_MapShortLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortLongDouble) { - StructTypeFlag struct_flags_MapShortLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortLongDouble; - TypeIdentifierPair type_ids_MapShortLongDouble; QualifiedTypeName type_name_MapShortLongDouble = "MapShortLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapShortLongDouble; eprosima::fastcdr::optional ann_custom_MapShortLongDouble; @@ -2539,120 +1004,48 @@ void register_MapShortLongDouble_type_identifier( header_MapShortLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortLongDouble); CompleteStructMemberSeq member_seq_MapShortLongDouble; { - return_code_MapShortLongDouble = + TypeIdentifierPair type_ids_var_map_short_longdouble; + ReturnCode_t return_code_var_map_short_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_longdouble_unbounded", type_ids_MapShortLongDouble); + "anonymous_map_int16_t_longdouble_unbounded", type_ids_var_map_short_longdouble); - if (return_code_MapShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longdouble) { - return_code_MapShortLongDouble = + return_code_var_map_short_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapShortLongDouble); + "_longdouble", type_ids_var_map_short_longdouble); - if (return_code_MapShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapShortLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longdouble, element_identifier_anonymous_map_int16_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortLongDouble = + return_code_var_map_short_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortLongDouble); + "_int16_t", type_ids_var_map_short_longdouble); - if (return_code_MapShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapShortLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longdouble, key_identifier_anonymous_map_int16_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_longdouble_unbounded = EK_BOTH; @@ -2675,68 +1068,21 @@ void register_MapShortLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_longdouble_unbounded), key_flags_anonymous_map_int16_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_longdouble_unbounded", type_ids_var_map_short_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_longdouble_unbounded", type_ids_MapShortLongDouble); - if (return_code_MapShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_longdouble; MemberId member_id_var_map_short_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longdouble, member_flags_var_map_short_longdouble, type_ids_MapShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longdouble, member_flags_var_map_short_longdouble, type_ids_MapShortLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_longdouble_ec {false}; + CommonStructMember common_var_map_short_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_longdouble, member_flags_var_map_short_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_longdouble, common_var_map_short_longdouble_ec))}; + if (!common_var_map_short_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_longdouble = "var_map_short_longdouble"; @@ -2748,32 +1094,26 @@ void register_MapShortLongDouble_type_identifier( } CompleteStructType struct_type_MapShortLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortLongDouble, header_MapShortLongDouble, member_seq_MapShortLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLongDouble, type_name_MapShortLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortLongDouble, type_name_MapShortLongDouble.to_string(), type_ids_MapShortLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortLongDouble", type_ids_MapShortLongDouble); - if (return_code_MapShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortBoolean) { + + ReturnCode_t return_code_MapShortBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortBoolean", type_ids_MapShortBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortBoolean) { - StructTypeFlag struct_flags_MapShortBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortBoolean; - TypeIdentifierPair type_ids_MapShortBoolean; QualifiedTypeName type_name_MapShortBoolean = "MapShortBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapShortBoolean; eprosima::fastcdr::optional ann_custom_MapShortBoolean; @@ -2782,120 +1122,48 @@ void register_MapShortBoolean_type_identifier( header_MapShortBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortBoolean); CompleteStructMemberSeq member_seq_MapShortBoolean; { - return_code_MapShortBoolean = + TypeIdentifierPair type_ids_var_map_short_boolean; + ReturnCode_t return_code_var_map_short_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_bool_unbounded", type_ids_MapShortBoolean); + "anonymous_map_int16_t_bool_unbounded", type_ids_var_map_short_boolean); - if (return_code_MapShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_boolean) { - return_code_MapShortBoolean = + return_code_var_map_short_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapShortBoolean); + "_bool", type_ids_var_map_short_boolean); - if (return_code_MapShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_bool_unbounded = new TypeIdentifier(type_ids_MapShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_bool_unbounded = new TypeIdentifier(type_ids_MapShortBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_boolean, element_identifier_anonymous_map_int16_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortBoolean = + return_code_var_map_short_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortBoolean); + "_int16_t", type_ids_var_map_short_boolean); - if (return_code_MapShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_bool_unbounded = new TypeIdentifier(type_ids_MapShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_bool_unbounded = new TypeIdentifier(type_ids_MapShortBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_boolean, key_identifier_anonymous_map_int16_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_bool_unbounded = EK_BOTH; @@ -2918,68 +1186,21 @@ void register_MapShortBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_bool_unbounded), key_flags_anonymous_map_int16_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_bool_unbounded", type_ids_var_map_short_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_bool_unbounded", type_ids_MapShortBoolean); - if (return_code_MapShortBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_boolean; MemberId member_id_var_map_short_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_boolean, member_flags_var_map_short_boolean, type_ids_MapShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_boolean, member_flags_var_map_short_boolean, type_ids_MapShortBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_boolean_ec {false}; + CommonStructMember common_var_map_short_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_boolean, member_flags_var_map_short_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_boolean, common_var_map_short_boolean_ec))}; + if (!common_var_map_short_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_boolean = "var_map_short_boolean"; @@ -2991,32 +1212,26 @@ void register_MapShortBoolean_type_identifier( } CompleteStructType struct_type_MapShortBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortBoolean, header_MapShortBoolean, member_seq_MapShortBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortBoolean, type_name_MapShortBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortBoolean, type_name_MapShortBoolean.to_string(), type_ids_MapShortBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortBoolean", type_ids_MapShortBoolean); - if (return_code_MapShortBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortOctet) { + + ReturnCode_t return_code_MapShortOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortOctet", type_ids_MapShortOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortOctet) { - StructTypeFlag struct_flags_MapShortOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortOctet; - TypeIdentifierPair type_ids_MapShortOctet; QualifiedTypeName type_name_MapShortOctet = "MapShortOctet"; eprosima::fastcdr::optional type_ann_builtin_MapShortOctet; eprosima::fastcdr::optional ann_custom_MapShortOctet; @@ -3025,120 +1240,48 @@ void register_MapShortOctet_type_identifier( header_MapShortOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortOctet); CompleteStructMemberSeq member_seq_MapShortOctet; { - return_code_MapShortOctet = + TypeIdentifierPair type_ids_var_map_short_octet; + ReturnCode_t return_code_var_map_short_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint8_t_unbounded", type_ids_MapShortOctet); + "anonymous_map_int16_t_uint8_t_unbounded", type_ids_var_map_short_octet); - if (return_code_MapShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_octet) { - return_code_MapShortOctet = + return_code_var_map_short_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapShortOctet); + "_byte", type_ids_var_map_short_octet); - if (return_code_MapShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapShortOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_octet, element_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortOctet = + return_code_var_map_short_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortOctet); + "_int16_t", type_ids_var_map_short_octet); - if (return_code_MapShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapShortOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_octet, key_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_uint8_t_unbounded = EK_BOTH; @@ -3161,68 +1304,21 @@ void register_MapShortOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_uint8_t_unbounded), key_flags_anonymous_map_int16_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_uint8_t_unbounded", type_ids_var_map_short_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_uint8_t_unbounded", type_ids_MapShortOctet); - if (return_code_MapShortOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_octet; MemberId member_id_var_map_short_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_octet, member_flags_var_map_short_octet, type_ids_MapShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_octet, member_flags_var_map_short_octet, type_ids_MapShortOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_octet_ec {false}; + CommonStructMember common_var_map_short_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_octet, member_flags_var_map_short_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_octet, common_var_map_short_octet_ec))}; + if (!common_var_map_short_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_octet = "var_map_short_octet"; @@ -3234,32 +1330,26 @@ void register_MapShortOctet_type_identifier( } CompleteStructType struct_type_MapShortOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortOctet, header_MapShortOctet, member_seq_MapShortOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortOctet, type_name_MapShortOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortOctet, type_name_MapShortOctet.to_string(), type_ids_MapShortOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortOctet", type_ids_MapShortOctet); - if (return_code_MapShortOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortChar) { + + ReturnCode_t return_code_MapShortChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortChar", type_ids_MapShortChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortChar) { - StructTypeFlag struct_flags_MapShortChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortChar; - TypeIdentifierPair type_ids_MapShortChar; QualifiedTypeName type_name_MapShortChar = "MapShortChar"; eprosima::fastcdr::optional type_ann_builtin_MapShortChar; eprosima::fastcdr::optional ann_custom_MapShortChar; @@ -3268,120 +1358,48 @@ void register_MapShortChar_type_identifier( header_MapShortChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortChar); CompleteStructMemberSeq member_seq_MapShortChar; { - return_code_MapShortChar = + TypeIdentifierPair type_ids_var_map_short_char; + ReturnCode_t return_code_var_map_short_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_char_unbounded", type_ids_MapShortChar); + "anonymous_map_int16_t_char_unbounded", type_ids_var_map_short_char); - if (return_code_MapShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_char) { - return_code_MapShortChar = + return_code_var_map_short_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapShortChar); + "_char", type_ids_var_map_short_char); - if (return_code_MapShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_char_unbounded = new TypeIdentifier(type_ids_MapShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_char_unbounded = new TypeIdentifier(type_ids_MapShortChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_char, element_identifier_anonymous_map_int16_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortChar = + return_code_var_map_short_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortChar); + "_int16_t", type_ids_var_map_short_char); - if (return_code_MapShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_char_unbounded = new TypeIdentifier(type_ids_MapShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_char_unbounded = new TypeIdentifier(type_ids_MapShortChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_char, key_identifier_anonymous_map_int16_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_char_unbounded = EK_BOTH; @@ -3404,68 +1422,21 @@ void register_MapShortChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_char_unbounded), key_flags_anonymous_map_int16_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_char_unbounded", type_ids_var_map_short_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_char_unbounded", type_ids_MapShortChar); - if (return_code_MapShortChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_char; MemberId member_id_var_map_short_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_char, member_flags_var_map_short_char, type_ids_MapShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_char, member_flags_var_map_short_char, type_ids_MapShortChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_char_ec {false}; + CommonStructMember common_var_map_short_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_char, member_flags_var_map_short_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_char, common_var_map_short_char_ec))}; + if (!common_var_map_short_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_char = "var_map_short_char"; @@ -3477,32 +1448,26 @@ void register_MapShortChar_type_identifier( } CompleteStructType struct_type_MapShortChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortChar, header_MapShortChar, member_seq_MapShortChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortChar, type_name_MapShortChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortChar, type_name_MapShortChar.to_string(), type_ids_MapShortChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortChar", type_ids_MapShortChar); - if (return_code_MapShortChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortWChar) { + + ReturnCode_t return_code_MapShortWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortWChar", type_ids_MapShortWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortWChar) { - StructTypeFlag struct_flags_MapShortWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortWChar; - TypeIdentifierPair type_ids_MapShortWChar; QualifiedTypeName type_name_MapShortWChar = "MapShortWChar"; eprosima::fastcdr::optional type_ann_builtin_MapShortWChar; eprosima::fastcdr::optional ann_custom_MapShortWChar; @@ -3511,120 +1476,48 @@ void register_MapShortWChar_type_identifier( header_MapShortWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortWChar); CompleteStructMemberSeq member_seq_MapShortWChar; { - return_code_MapShortWChar = + TypeIdentifierPair type_ids_var_map_short_wchar; + ReturnCode_t return_code_var_map_short_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_wchar_t_unbounded", type_ids_MapShortWChar); + "anonymous_map_int16_t_wchar_t_unbounded", type_ids_var_map_short_wchar); - if (return_code_MapShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wchar) { - return_code_MapShortWChar = + return_code_var_map_short_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapShortWChar); + "_wchar_t", type_ids_var_map_short_wchar); - if (return_code_MapShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int16_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapShortWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wchar, element_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortWChar = + return_code_var_map_short_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortWChar); + "_int16_t", type_ids_var_map_short_wchar); - if (return_code_MapShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapShortWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wchar, key_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_wchar_t_unbounded = EK_BOTH; @@ -3647,68 +1540,21 @@ void register_MapShortWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_wchar_t_unbounded), key_flags_anonymous_map_int16_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_wchar_t_unbounded", type_ids_var_map_short_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_wchar_t_unbounded", type_ids_MapShortWChar); - if (return_code_MapShortWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_wchar; MemberId member_id_var_map_short_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wchar, member_flags_var_map_short_wchar, type_ids_MapShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wchar, member_flags_var_map_short_wchar, type_ids_MapShortWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_wchar_ec {false}; + CommonStructMember common_var_map_short_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wchar, member_flags_var_map_short_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wchar, common_var_map_short_wchar_ec))}; + if (!common_var_map_short_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_wchar = "var_map_short_wchar"; @@ -3720,32 +1566,26 @@ void register_MapShortWChar_type_identifier( } CompleteStructType struct_type_MapShortWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortWChar, header_MapShortWChar, member_seq_MapShortWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortWChar, type_name_MapShortWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortWChar, type_name_MapShortWChar.to_string(), type_ids_MapShortWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortWChar", type_ids_MapShortWChar); - if (return_code_MapShortWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortString) { + + ReturnCode_t return_code_MapShortString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortString", type_ids_MapShortString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortString) { - StructTypeFlag struct_flags_MapShortString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortString; - TypeIdentifierPair type_ids_MapShortString; QualifiedTypeName type_name_MapShortString = "MapShortString"; eprosima::fastcdr::optional type_ann_builtin_MapShortString; eprosima::fastcdr::optional ann_custom_MapShortString; @@ -3754,137 +1594,56 @@ void register_MapShortString_type_identifier( header_MapShortString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortString); CompleteStructMemberSeq member_seq_MapShortString; { - return_code_MapShortString = + TypeIdentifierPair type_ids_var_map_short_string; + ReturnCode_t return_code_var_map_short_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_string_unbounded_unbounded", type_ids_MapShortString); + "anonymous_map_int16_t_anonymous_string_unbounded_unbounded", type_ids_var_map_short_string); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_string) { - return_code_MapShortString = + return_code_var_map_short_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapShortString); + "anonymous_string_unbounded", type_ids_var_map_short_string); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_short_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapShortString); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortString.type_identifier1()._d() || TK_NONE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_string, element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortString = + return_code_var_map_short_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortString); + "_int16_t", type_ids_var_map_short_string); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortString.type_identifier1()._d() || TK_NONE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_string, key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -3907,68 +1666,21 @@ void register_MapShortString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_int16_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_string_unbounded_unbounded", type_ids_var_map_short_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_string_unbounded_unbounded", type_ids_MapShortString); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_string; MemberId member_id_var_map_short_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortString.type_identifier1()._d() || TK_NONE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_string, member_flags_var_map_short_string, type_ids_MapShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_string, member_flags_var_map_short_string, type_ids_MapShortString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_string_ec {false}; + CommonStructMember common_var_map_short_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_string, member_flags_var_map_short_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_string, common_var_map_short_string_ec))}; + if (!common_var_map_short_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_string = "var_map_short_string"; @@ -3980,32 +1692,26 @@ void register_MapShortString_type_identifier( } CompleteStructType struct_type_MapShortString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortString, header_MapShortString, member_seq_MapShortString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortString, type_name_MapShortString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortString, type_name_MapShortString.to_string(), type_ids_MapShortString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortString already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortString", type_ids_MapShortString); - if (return_code_MapShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortWString) { + + ReturnCode_t return_code_MapShortWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortWString", type_ids_MapShortWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortWString) { - StructTypeFlag struct_flags_MapShortWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortWString; - TypeIdentifierPair type_ids_MapShortWString; QualifiedTypeName type_name_MapShortWString = "MapShortWString"; eprosima::fastcdr::optional type_ann_builtin_MapShortWString; eprosima::fastcdr::optional ann_custom_MapShortWString; @@ -4014,137 +1720,56 @@ void register_MapShortWString_type_identifier( header_MapShortWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortWString); CompleteStructMemberSeq member_seq_MapShortWString; { - return_code_MapShortWString = + TypeIdentifierPair type_ids_var_map_short_wstring; + ReturnCode_t return_code_var_map_short_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded", type_ids_MapShortWString); + "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_short_wstring); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wstring) { - return_code_MapShortWString = + return_code_var_map_short_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapShortWString); + "anonymous_wstring_unbounded", type_ids_var_map_short_wstring); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_short_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapShortWString); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wstring, element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortWString = + return_code_var_map_short_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortWString); + "_int16_t", type_ids_var_map_short_wstring); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wstring, key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -4167,68 +1792,21 @@ void register_MapShortWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_short_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded", type_ids_MapShortWString); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_wstring; MemberId member_id_var_map_short_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wstring, member_flags_var_map_short_wstring, type_ids_MapShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wstring, member_flags_var_map_short_wstring, type_ids_MapShortWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_wstring_ec {false}; + CommonStructMember common_var_map_short_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_wstring, member_flags_var_map_short_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_wstring, common_var_map_short_wstring_ec))}; + if (!common_var_map_short_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_wstring = "var_map_short_wstring"; @@ -4240,32 +1818,26 @@ void register_MapShortWString_type_identifier( } CompleteStructType struct_type_MapShortWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortWString, header_MapShortWString, member_seq_MapShortWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortWString, type_name_MapShortWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortWString, type_name_MapShortWString.to_string(), type_ids_MapShortWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortWString", type_ids_MapShortWString); - if (return_code_MapShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapShortInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasBoundedStringHelper", type_ids_MapShortInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapShortInnerAliasBoundedStringHelper = "MapShortInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasBoundedStringHelper; @@ -4274,215 +1846,46 @@ void register_MapShortInnerAliasBoundedStringHelper_type_identifier( header_MapShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasBoundedStringHelper; { - return_code_MapShortInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_short_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_string_10_unbounded", type_ids_MapShortInnerAliasBoundedStringHelper); + "anonymous_map_int16_t_anonymous_string_10_unbounded", type_ids_var_map_short_inneraliasboundedstringhelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedstringhelper) { - return_code_MapShortInnerAliasBoundedStringHelper = + return_code_var_map_short_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapShortInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_short_inneraliasboundedstringhelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapShortInnerAliasBoundedStringHelper); - - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapShortInnerAliasBoundedStringHelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapShortInnerAliasBoundedStringHelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_short_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedstringhelper, element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasBoundedStringHelper = + return_code_var_map_short_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasBoundedStringHelper); + "_int16_t", type_ids_var_map_short_inneraliasboundedstringhelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedstringhelper, key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_string_10_unbounded = EK_BOTH; @@ -4505,68 +1908,21 @@ void register_MapShortInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded), key_flags_anonymous_map_int16_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_string_10_unbounded", type_ids_var_map_short_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_string_10_unbounded", type_ids_MapShortInnerAliasBoundedStringHelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliasboundedstringhelper; MemberId member_id_var_map_short_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedstringhelper, member_flags_var_map_short_inneraliasboundedstringhelper, type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedstringhelper, member_flags_var_map_short_inneraliasboundedstringhelper, type_ids_MapShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_short_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedstringhelper, member_flags_var_map_short_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedstringhelper, common_var_map_short_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_short_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliasboundedstringhelper = "var_map_short_inneraliasboundedstringhelper"; @@ -4578,32 +1934,26 @@ void register_MapShortInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasBoundedStringHelper, header_MapShortInnerAliasBoundedStringHelper, member_seq_MapShortInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasBoundedStringHelper, type_name_MapShortInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasBoundedStringHelper, type_name_MapShortInnerAliasBoundedStringHelper.to_string(), type_ids_MapShortInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasBoundedStringHelper", type_ids_MapShortInnerAliasBoundedStringHelper); - if (return_code_MapShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapShortInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasBoundedWStringHelper", type_ids_MapShortInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapShortInnerAliasBoundedWStringHelper = "MapShortInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasBoundedWStringHelper; @@ -4612,215 +1962,46 @@ void register_MapShortInnerAliasBoundedWStringHelper_type_identifier( header_MapShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasBoundedWStringHelper; { - return_code_MapShortInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_short_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_wstring_10_unbounded", type_ids_MapShortInnerAliasBoundedWStringHelper); + "anonymous_map_int16_t_anonymous_wstring_10_unbounded", type_ids_var_map_short_inneraliasboundedwstringhelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedwstringhelper) { - return_code_MapShortInnerAliasBoundedWStringHelper = + return_code_var_map_short_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapShortInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_short_inneraliasboundedwstringhelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapShortInnerAliasBoundedWStringHelper); - - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapShortInnerAliasBoundedWStringHelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapShortInnerAliasBoundedWStringHelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_short_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedwstringhelper, element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasBoundedWStringHelper = + return_code_var_map_short_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasBoundedWStringHelper); + "_int16_t", type_ids_var_map_short_inneraliasboundedwstringhelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasboundedwstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedwstringhelper, key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -4843,68 +2024,21 @@ void register_MapShortInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_int16_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_wstring_10_unbounded", type_ids_var_map_short_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_wstring_10_unbounded", type_ids_MapShortInnerAliasBoundedWStringHelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliasboundedwstringhelper; MemberId member_id_var_map_short_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedwstringhelper, member_flags_var_map_short_inneraliasboundedwstringhelper, type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedwstringhelper, member_flags_var_map_short_inneraliasboundedwstringhelper, type_ids_MapShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_short_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasboundedwstringhelper, member_flags_var_map_short_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasboundedwstringhelper, common_var_map_short_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_short_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliasboundedwstringhelper = "var_map_short_inneraliasboundedwstringhelper"; @@ -4916,32 +2050,26 @@ void register_MapShortInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasBoundedWStringHelper, header_MapShortInnerAliasBoundedWStringHelper, member_seq_MapShortInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasBoundedWStringHelper, type_name_MapShortInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasBoundedWStringHelper, type_name_MapShortInnerAliasBoundedWStringHelper.to_string(), type_ids_MapShortInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasBoundedWStringHelper", type_ids_MapShortInnerAliasBoundedWStringHelper); - if (return_code_MapShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerEnumHelper) { + + ReturnCode_t return_code_MapShortInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerEnumHelper", type_ids_MapShortInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerEnumHelper) { - StructTypeFlag struct_flags_MapShortInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerEnumHelper; - TypeIdentifierPair type_ids_MapShortInnerEnumHelper; QualifiedTypeName type_name_MapShortInnerEnumHelper = "MapShortInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerEnumHelper; @@ -4950,173 +2078,46 @@ void register_MapShortInnerEnumHelper_type_identifier( header_MapShortInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerEnumHelper); CompleteStructMemberSeq member_seq_MapShortInnerEnumHelper; { - return_code_MapShortInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_short_innerenumhelper; + ReturnCode_t return_code_var_map_short_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerEnumHelper_unbounded", type_ids_MapShortInnerEnumHelper); + "anonymous_map_int16_t_InnerEnumHelper_unbounded", type_ids_var_map_short_innerenumhelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerenumhelper) { - return_code_MapShortInnerEnumHelper = + return_code_var_map_short_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapShortInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_short_innerenumhelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapShortInnerEnumHelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_short_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerenumhelper, element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerEnumHelper = + return_code_var_map_short_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerEnumHelper); + "_int16_t", type_ids_var_map_short_innerenumhelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerenumhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerenumhelper, key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -5139,68 +2140,21 @@ void register_MapShortInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_int16_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerEnumHelper_unbounded", type_ids_var_map_short_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerEnumHelper_unbounded", type_ids_MapShortInnerEnumHelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_innerenumhelper; MemberId member_id_var_map_short_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerenumhelper, member_flags_var_map_short_innerenumhelper, type_ids_MapShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerenumhelper, member_flags_var_map_short_innerenumhelper, type_ids_MapShortInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_innerenumhelper_ec {false}; + CommonStructMember common_var_map_short_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerenumhelper, member_flags_var_map_short_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerenumhelper, common_var_map_short_innerenumhelper_ec))}; + if (!common_var_map_short_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_innerenumhelper = "var_map_short_innerenumhelper"; @@ -5212,240 +2166,74 @@ void register_MapShortInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerEnumHelper, header_MapShortInnerEnumHelper, member_seq_MapShortInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerEnumHelper, type_name_MapShortInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerEnumHelper, type_name_MapShortInnerEnumHelper.to_string(), type_ids_MapShortInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerEnumHelper", type_ids_MapShortInnerEnumHelper); - if (return_code_MapShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerBitMaskHelper) { - { - StructTypeFlag struct_flags_MapShortInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_MapShortInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapShortInnerBitMaskHelper; - QualifiedTypeName type_name_MapShortInnerBitMaskHelper = "MapShortInnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapShortInnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_MapShortInnerBitMaskHelper; - CompleteTypeDetail detail_MapShortInnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapShortInnerBitMaskHelper, ann_custom_MapShortInnerBitMaskHelper, type_name_MapShortInnerBitMaskHelper.to_string()); - CompleteStructHeader header_MapShortInnerBitMaskHelper; - header_MapShortInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerBitMaskHelper); - CompleteStructMemberSeq member_seq_MapShortInnerBitMaskHelper; - { - return_code_MapShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerBitMaskHelper_unbounded", type_ids_MapShortInnerBitMaskHelper); - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapShortInnerBitMaskHelper); - - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapShortInnerBitMaskHelper); - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ReturnCode_t return_code_MapShortInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerBitMaskHelper", type_ids_MapShortInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerBitMaskHelper) + { + StructTypeFlag struct_flags_MapShortInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_MapShortInnerBitMaskHelper = "MapShortInnerBitMaskHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapShortInnerBitMaskHelper; + eprosima::fastcdr::optional ann_custom_MapShortInnerBitMaskHelper; + CompleteTypeDetail detail_MapShortInnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapShortInnerBitMaskHelper, ann_custom_MapShortInnerBitMaskHelper, type_name_MapShortInnerBitMaskHelper.to_string()); + CompleteStructHeader header_MapShortInnerBitMaskHelper; + header_MapShortInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerBitMaskHelper); + CompleteStructMemberSeq member_seq_MapShortInnerBitMaskHelper; + { + TypeIdentifierPair type_ids_var_map_short_innerbitmaskhelper; + ReturnCode_t return_code_var_map_short_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_innerbitmaskhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_int16_t_InnerBitMaskHelper_unbounded", type_ids_var_map_short_innerbitmaskhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitmaskhelper) + { + return_code_var_map_short_innerbitmaskhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitMaskHelper", type_ids_var_map_short_innerbitmaskhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitmaskhelper) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_short_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitmaskhelper, element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerBitMaskHelper = + return_code_var_map_short_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerBitMaskHelper); + "_int16_t", type_ids_var_map_short_innerbitmaskhelper); - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitmaskhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitmaskhelper, key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -5468,68 +2256,21 @@ void register_MapShortInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_int16_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerBitMaskHelper_unbounded", type_ids_var_map_short_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerBitMaskHelper_unbounded", type_ids_MapShortInnerBitMaskHelper); - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_innerbitmaskhelper; MemberId member_id_var_map_short_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitmaskhelper, member_flags_var_map_short_innerbitmaskhelper, type_ids_MapShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitmaskhelper, member_flags_var_map_short_innerbitmaskhelper, type_ids_MapShortInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_short_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitmaskhelper, member_flags_var_map_short_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitmaskhelper, common_var_map_short_innerbitmaskhelper_ec))}; + if (!common_var_map_short_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_innerbitmaskhelper = "var_map_short_innerbitmaskhelper"; @@ -5541,32 +2282,26 @@ void register_MapShortInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerBitMaskHelper, header_MapShortInnerBitMaskHelper, member_seq_MapShortInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerBitMaskHelper, type_name_MapShortInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerBitMaskHelper, type_name_MapShortInnerBitMaskHelper.to_string(), type_ids_MapShortInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerBitMaskHelper", type_ids_MapShortInnerBitMaskHelper); - if (return_code_MapShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasHelper) { + + ReturnCode_t return_code_MapShortInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasHelper", type_ids_MapShortInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasHelper; QualifiedTypeName type_name_MapShortInnerAliasHelper = "MapShortInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasHelper; @@ -5575,198 +2310,46 @@ void register_MapShortInnerAliasHelper_type_identifier( header_MapShortInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasHelper; { - return_code_MapShortInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliashelper; + ReturnCode_t return_code_var_map_short_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerAliasHelper_unbounded", type_ids_MapShortInnerAliasHelper); + "anonymous_map_int16_t_InnerAliasHelper_unbounded", type_ids_var_map_short_inneraliashelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliashelper) { - return_code_MapShortInnerAliasHelper = + return_code_var_map_short_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapShortInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_short_inneraliashelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapShortInnerAliasHelper); - - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapShortInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapShortInnerAliasHelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_short_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliashelper, element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasHelper = + return_code_var_map_short_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasHelper); + "_int16_t", type_ids_var_map_short_inneraliashelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliashelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliashelper, key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -5789,68 +2372,21 @@ void register_MapShortInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_int16_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerAliasHelper_unbounded", type_ids_var_map_short_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerAliasHelper_unbounded", type_ids_MapShortInnerAliasHelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliashelper; MemberId member_id_var_map_short_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliashelper, member_flags_var_map_short_inneraliashelper, type_ids_MapShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliashelper, member_flags_var_map_short_inneraliashelper, type_ids_MapShortInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliashelper_ec {false}; + CommonStructMember common_var_map_short_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliashelper, member_flags_var_map_short_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliashelper, common_var_map_short_inneraliashelper_ec))}; + if (!common_var_map_short_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliashelper = "var_map_short_inneraliashelper"; @@ -5862,32 +2398,26 @@ void register_MapShortInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasHelper, header_MapShortInnerAliasHelper, member_seq_MapShortInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasHelper, type_name_MapShortInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasHelper, type_name_MapShortInnerAliasHelper.to_string(), type_ids_MapShortInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasHelper", type_ids_MapShortInnerAliasHelper); - if (return_code_MapShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapShortInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasArrayHelper", type_ids_MapShortInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasArrayHelper; QualifiedTypeName type_name_MapShortInnerAliasArrayHelper = "MapShortInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasArrayHelper; @@ -5896,279 +2426,46 @@ void register_MapShortInnerAliasArrayHelper_type_identifier( header_MapShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasArrayHelper; { - return_code_MapShortInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_short_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded", type_ids_MapShortInnerAliasArrayHelper); + "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_short_inneraliasarrayhelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasarrayhelper) { - return_code_MapShortInnerAliasArrayHelper = + return_code_var_map_short_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapShortInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_short_inneraliasarrayhelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapShortInnerAliasArrayHelper); - - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasArrayHelper); - - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapShortInnerAliasArrayHelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapShortInnerAliasArrayHelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_short_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasarrayhelper, element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasArrayHelper = + return_code_var_map_short_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasArrayHelper); + "_int16_t", type_ids_var_map_short_inneraliasarrayhelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasarrayhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasarrayhelper, key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -6191,68 +2488,21 @@ void register_MapShortInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_short_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded", type_ids_MapShortInnerAliasArrayHelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliasarrayhelper; MemberId member_id_var_map_short_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasarrayhelper, member_flags_var_map_short_inneraliasarrayhelper, type_ids_MapShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasarrayhelper, member_flags_var_map_short_inneraliasarrayhelper, type_ids_MapShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_short_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasarrayhelper, member_flags_var_map_short_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasarrayhelper, common_var_map_short_inneraliasarrayhelper_ec))}; + if (!common_var_map_short_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliasarrayhelper = "var_map_short_inneraliasarrayhelper"; @@ -6264,32 +2514,26 @@ void register_MapShortInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasArrayHelper, header_MapShortInnerAliasArrayHelper, member_seq_MapShortInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasArrayHelper, type_name_MapShortInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasArrayHelper, type_name_MapShortInnerAliasArrayHelper.to_string(), type_ids_MapShortInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasArrayHelper", type_ids_MapShortInnerAliasArrayHelper); - if (return_code_MapShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapShortInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasSequenceHelper", type_ids_MapShortInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasSequenceHelper; QualifiedTypeName type_name_MapShortInnerAliasSequenceHelper = "MapShortInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasSequenceHelper; @@ -6298,277 +2542,46 @@ void register_MapShortInnerAliasSequenceHelper_type_identifier( header_MapShortInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasSequenceHelper; { - return_code_MapShortInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliassequencehelper; + ReturnCode_t return_code_var_map_short_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapShortInnerAliasSequenceHelper); + "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_short_inneraliassequencehelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliassequencehelper) { - return_code_MapShortInnerAliasSequenceHelper = + return_code_var_map_short_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapShortInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_short_inneraliassequencehelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapShortInnerAliasSequenceHelper); - - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasSequenceHelper); - - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapShortInnerAliasSequenceHelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapShortInnerAliasSequenceHelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_short_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliassequencehelper, element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasSequenceHelper = + return_code_var_map_short_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasSequenceHelper); + "_int16_t", type_ids_var_map_short_inneraliassequencehelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliassequencehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliassequencehelper, key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -6591,68 +2604,21 @@ void register_MapShortInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_short_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapShortInnerAliasSequenceHelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliassequencehelper; MemberId member_id_var_map_short_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliassequencehelper, member_flags_var_map_short_inneraliassequencehelper, type_ids_MapShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliassequencehelper, member_flags_var_map_short_inneraliassequencehelper, type_ids_MapShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_short_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliassequencehelper, member_flags_var_map_short_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliassequencehelper, common_var_map_short_inneraliassequencehelper_ec))}; + if (!common_var_map_short_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliassequencehelper = "var_map_short_inneraliassequencehelper"; @@ -6664,32 +2630,26 @@ void register_MapShortInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasSequenceHelper, header_MapShortInnerAliasSequenceHelper, member_seq_MapShortInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasSequenceHelper, type_name_MapShortInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasSequenceHelper, type_name_MapShortInnerAliasSequenceHelper.to_string(), type_ids_MapShortInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasSequenceHelper", type_ids_MapShortInnerAliasSequenceHelper); - if (return_code_MapShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerAliasMapHelper) { + + ReturnCode_t return_code_MapShortInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerAliasMapHelper", type_ids_MapShortInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapShortInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapShortInnerAliasMapHelper; QualifiedTypeName type_name_MapShortInnerAliasMapHelper = "MapShortInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerAliasMapHelper; @@ -6698,340 +2658,46 @@ void register_MapShortInnerAliasMapHelper_type_identifier( header_MapShortInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapShortInnerAliasMapHelper; { - return_code_MapShortInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_short_inneraliasmaphelper; + ReturnCode_t return_code_var_map_short_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapShortInnerAliasMapHelper); + "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_short_inneraliasmaphelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasmaphelper) { - return_code_MapShortInnerAliasMapHelper = + return_code_var_map_short_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapShortInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_short_inneraliasmaphelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapShortInnerAliasMapHelper); - - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapShortInnerAliasMapHelper); - - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapShortInnerAliasMapHelper); - - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapShortInnerAliasMapHelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapShortInnerAliasMapHelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_short_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasmaphelper, element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerAliasMapHelper = + return_code_var_map_short_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerAliasMapHelper); + "_int16_t", type_ids_var_map_short_inneraliasmaphelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_inneraliasmaphelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasmaphelper, key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -7054,68 +2720,21 @@ void register_MapShortInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_short_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapShortInnerAliasMapHelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_inneraliasmaphelper; MemberId member_id_var_map_short_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasmaphelper, member_flags_var_map_short_inneraliasmaphelper, type_ids_MapShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasmaphelper, member_flags_var_map_short_inneraliasmaphelper, type_ids_MapShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_short_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_inneraliasmaphelper, member_flags_var_map_short_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_inneraliasmaphelper, common_var_map_short_inneraliasmaphelper_ec))}; + if (!common_var_map_short_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_inneraliasmaphelper = "var_map_short_inneraliasmaphelper"; @@ -7127,431 +2746,74 @@ void register_MapShortInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerAliasMapHelper, header_MapShortInnerAliasMapHelper, member_seq_MapShortInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasMapHelper, type_name_MapShortInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerAliasMapHelper, type_name_MapShortInnerAliasMapHelper.to_string(), type_ids_MapShortInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerAliasMapHelper", type_ids_MapShortInnerAliasMapHelper); - if (return_code_MapShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } -// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_MapShortInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) -{ - { - StructTypeFlag struct_flags_MapShortInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_MapShortInnerUnionHelper; - TypeIdentifierPair type_ids_MapShortInnerUnionHelper; - QualifiedTypeName type_name_MapShortInnerUnionHelper = "MapShortInnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapShortInnerUnionHelper; - eprosima::fastcdr::optional ann_custom_MapShortInnerUnionHelper; - CompleteTypeDetail detail_MapShortInnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapShortInnerUnionHelper, ann_custom_MapShortInnerUnionHelper, type_name_MapShortInnerUnionHelper.to_string()); - CompleteStructHeader header_MapShortInnerUnionHelper; - header_MapShortInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerUnionHelper); - CompleteStructMemberSeq member_seq_MapShortInnerUnionHelper; - { - return_code_MapShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerUnionHelper_unbounded", type_ids_MapShortInnerUnionHelper); - - if (return_code_MapShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapShortInnerUnionHelper); - - if (return_code_MapShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapShortInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapShortInnerUnionHelper = type_ids_InnerUnionHelper; - } +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_MapShortInnerUnionHelper_type_identifier( + TypeIdentifierPair& type_ids_MapShortInnerUnionHelper) +{ + + ReturnCode_t return_code_MapShortInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerUnionHelper", type_ids_MapShortInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerUnionHelper) + { + StructTypeFlag struct_flags_MapShortInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_MapShortInnerUnionHelper = "MapShortInnerUnionHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapShortInnerUnionHelper; + eprosima::fastcdr::optional ann_custom_MapShortInnerUnionHelper; + CompleteTypeDetail detail_MapShortInnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapShortInnerUnionHelper, ann_custom_MapShortInnerUnionHelper, type_name_MapShortInnerUnionHelper.to_string()); + CompleteStructHeader header_MapShortInnerUnionHelper; + header_MapShortInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerUnionHelper); + CompleteStructMemberSeq member_seq_MapShortInnerUnionHelper; + { + TypeIdentifierPair type_ids_var_map_short_innerunionhelper; + ReturnCode_t return_code_var_map_short_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_innerunionhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_int16_t_InnerUnionHelper_unbounded", type_ids_var_map_short_innerunionhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerunionhelper) + { + return_code_var_map_short_innerunionhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerUnionHelper", type_ids_var_map_short_innerunionhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerunionhelper) + { + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_short_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerunionhelper, element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerUnionHelper = + return_code_var_map_short_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerUnionHelper); + "_int16_t", type_ids_var_map_short_innerunionhelper); - if (return_code_MapShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerunionhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerunionhelper, key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -7574,68 +2836,21 @@ void register_MapShortInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_int16_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerUnionHelper_unbounded", type_ids_var_map_short_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerUnionHelper_unbounded", type_ids_MapShortInnerUnionHelper); - if (return_code_MapShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_innerunionhelper; MemberId member_id_var_map_short_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerunionhelper, member_flags_var_map_short_innerunionhelper, type_ids_MapShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerunionhelper, member_flags_var_map_short_innerunionhelper, type_ids_MapShortInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_innerunionhelper_ec {false}; + CommonStructMember common_var_map_short_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerunionhelper, member_flags_var_map_short_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerunionhelper, common_var_map_short_innerunionhelper_ec))}; + if (!common_var_map_short_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_innerunionhelper = "var_map_short_innerunionhelper"; @@ -7647,32 +2862,26 @@ void register_MapShortInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerUnionHelper, header_MapShortInnerUnionHelper, member_seq_MapShortInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerUnionHelper, type_name_MapShortInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerUnionHelper, type_name_MapShortInnerUnionHelper.to_string(), type_ids_MapShortInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerUnionHelper", type_ids_MapShortInnerUnionHelper); - if (return_code_MapShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerStructureHelper) { + + ReturnCode_t return_code_MapShortInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerStructureHelper", type_ids_MapShortInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerStructureHelper) { - StructTypeFlag struct_flags_MapShortInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerStructureHelper; - TypeIdentifierPair type_ids_MapShortInnerStructureHelper; QualifiedTypeName type_name_MapShortInnerStructureHelper = "MapShortInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerStructureHelper; @@ -7681,287 +2890,46 @@ void register_MapShortInnerStructureHelper_type_identifier( header_MapShortInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerStructureHelper); CompleteStructMemberSeq member_seq_MapShortInnerStructureHelper; { - return_code_MapShortInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_short_innerstructurehelper; + ReturnCode_t return_code_var_map_short_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerStructureHelper_unbounded", type_ids_MapShortInnerStructureHelper); + "anonymous_map_int16_t_InnerStructureHelper_unbounded", type_ids_var_map_short_innerstructurehelper); - if (return_code_MapShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerstructurehelper) { - return_code_MapShortInnerStructureHelper = + return_code_var_map_short_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapShortInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_short_innerstructurehelper); - if (return_code_MapShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapShortInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapShortInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_short_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerstructurehelper, element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerStructureHelper = + return_code_var_map_short_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerStructureHelper); + "_int16_t", type_ids_var_map_short_innerstructurehelper); - if (return_code_MapShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerstructurehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerstructurehelper, key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -7984,68 +2952,21 @@ void register_MapShortInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_int16_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerStructureHelper_unbounded", type_ids_var_map_short_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerStructureHelper_unbounded", type_ids_MapShortInnerStructureHelper); - if (return_code_MapShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_innerstructurehelper; MemberId member_id_var_map_short_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerstructurehelper, member_flags_var_map_short_innerstructurehelper, type_ids_MapShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerstructurehelper, member_flags_var_map_short_innerstructurehelper, type_ids_MapShortInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_short_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerstructurehelper, member_flags_var_map_short_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerstructurehelper, common_var_map_short_innerstructurehelper_ec))}; + if (!common_var_map_short_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_innerstructurehelper = "var_map_short_innerstructurehelper"; @@ -8057,32 +2978,26 @@ void register_MapShortInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerStructureHelper, header_MapShortInnerStructureHelper, member_seq_MapShortInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerStructureHelper, type_name_MapShortInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerStructureHelper, type_name_MapShortInnerStructureHelper.to_string(), type_ids_MapShortInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerStructureHelper", type_ids_MapShortInnerStructureHelper); - if (return_code_MapShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapShortInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapShortInnerBitsetHelper) { + + ReturnCode_t return_code_MapShortInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapShortInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapShortInnerBitsetHelper", type_ids_MapShortInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapShortInnerBitsetHelper) { - StructTypeFlag struct_flags_MapShortInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapShortInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapShortInnerBitsetHelper; - TypeIdentifierPair type_ids_MapShortInnerBitsetHelper; QualifiedTypeName type_name_MapShortInnerBitsetHelper = "MapShortInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapShortInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapShortInnerBitsetHelper; @@ -8091,192 +3006,46 @@ void register_MapShortInnerBitsetHelper_type_identifier( header_MapShortInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapShortInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapShortInnerBitsetHelper; { - return_code_MapShortInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_short_innerbitsethelper; + ReturnCode_t return_code_var_map_short_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_short_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerBitsetHelper_unbounded", type_ids_MapShortInnerBitsetHelper); + "anonymous_map_int16_t_InnerBitsetHelper_unbounded", type_ids_var_map_short_innerbitsethelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitsethelper) { - return_code_MapShortInnerBitsetHelper = + return_code_var_map_short_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapShortInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_short_innerbitsethelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapShortInnerBitsetHelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_short_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitsethelper, element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapShortInnerBitsetHelper = + return_code_var_map_short_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapShortInnerBitsetHelper); + "_int16_t", type_ids_var_map_short_innerbitsethelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_short_innerbitsethelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapShortInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitsethelper, key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int16_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -8299,68 +3068,21 @@ void register_MapShortInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_int16_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int16_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int16_t_InnerBitsetHelper_unbounded", type_ids_var_map_short_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int16_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int16_t_InnerBitsetHelper_unbounded", type_ids_MapShortInnerBitsetHelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int16_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_short_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_short_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_short_innerbitsethelper; MemberId member_id_var_map_short_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitsethelper, member_flags_var_map_short_innerbitsethelper, type_ids_MapShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_short_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitsethelper, member_flags_var_map_short_innerbitsethelper, type_ids_MapShortInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_short_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_short_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_short_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_short_innerbitsethelper, member_flags_var_map_short_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_short_innerbitsethelper, common_var_map_short_innerbitsethelper_ec))}; + if (!common_var_map_short_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_short_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_short_innerbitsethelper = "var_map_short_innerbitsethelper"; @@ -8372,32 +3094,26 @@ void register_MapShortInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapShortInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapShortInnerBitsetHelper, header_MapShortInnerBitsetHelper, member_seq_MapShortInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerBitsetHelper, type_name_MapShortInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapShortInnerBitsetHelper, type_name_MapShortInnerBitsetHelper.to_string(), type_ids_MapShortInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapShortInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapShortInnerBitsetHelper", type_ids_MapShortInnerBitsetHelper); - if (return_code_MapShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapShortInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortShort) { + + ReturnCode_t return_code_MapUShortShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortShort", type_ids_MapUShortShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortShort) { - StructTypeFlag struct_flags_MapUShortShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortShort; - TypeIdentifierPair type_ids_MapUShortShort; QualifiedTypeName type_name_MapUShortShort = "MapUShortShort"; eprosima::fastcdr::optional type_ann_builtin_MapUShortShort; eprosima::fastcdr::optional ann_custom_MapUShortShort; @@ -8406,120 +3122,48 @@ void register_MapUShortShort_type_identifier( header_MapUShortShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortShort); CompleteStructMemberSeq member_seq_MapUShortShort; { - return_code_MapUShortShort = + TypeIdentifierPair type_ids_var_map_ushort_short; + ReturnCode_t return_code_var_map_ushort_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int16_t_unbounded", type_ids_MapUShortShort); + "anonymous_map_uint16_t_int16_t_unbounded", type_ids_var_map_ushort_short); - if (return_code_MapUShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_short) { - return_code_MapUShortShort = + return_code_var_map_ushort_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapUShortShort); + "_int16_t", type_ids_var_map_ushort_short); - if (return_code_MapUShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_short, element_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortShort = + return_code_var_map_ushort_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortShort); + "_uint16_t", type_ids_var_map_ushort_short); - if (return_code_MapUShortShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_short, key_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_int16_t_unbounded = EK_BOTH; @@ -8542,68 +3186,21 @@ void register_MapUShortShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_int16_t_unbounded), key_flags_anonymous_map_uint16_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int16_t_unbounded", type_ids_var_map_ushort_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int16_t_unbounded", type_ids_MapUShortShort); - if (return_code_MapUShortShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_short; MemberId member_id_var_map_ushort_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_short, member_flags_var_map_ushort_short, type_ids_MapUShortShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_short, member_flags_var_map_ushort_short, type_ids_MapUShortShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_short_ec {false}; + CommonStructMember common_var_map_ushort_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_short, member_flags_var_map_ushort_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_short, common_var_map_ushort_short_ec))}; + if (!common_var_map_ushort_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_short = "var_map_ushort_short"; @@ -8615,32 +3212,26 @@ void register_MapUShortShort_type_identifier( } CompleteStructType struct_type_MapUShortShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortShort, header_MapUShortShort, member_seq_MapUShortShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortShort, type_name_MapUShortShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortShort, type_name_MapUShortShort.to_string(), type_ids_MapUShortShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortShort", type_ids_MapUShortShort); - if (return_code_MapUShortShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortUShort) { + + ReturnCode_t return_code_MapUShortUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortUShort", type_ids_MapUShortUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortUShort) { - StructTypeFlag struct_flags_MapUShortUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortUShort; - TypeIdentifierPair type_ids_MapUShortUShort; QualifiedTypeName type_name_MapUShortUShort = "MapUShortUShort"; eprosima::fastcdr::optional type_ann_builtin_MapUShortUShort; eprosima::fastcdr::optional ann_custom_MapUShortUShort; @@ -8649,120 +3240,48 @@ void register_MapUShortUShort_type_identifier( header_MapUShortUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortUShort); CompleteStructMemberSeq member_seq_MapUShortUShort; { - return_code_MapUShortUShort = + TypeIdentifierPair type_ids_var_map_ushort_ushort; + ReturnCode_t return_code_var_map_ushort_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint16_t_unbounded", type_ids_MapUShortUShort); + "anonymous_map_uint16_t_uint16_t_unbounded", type_ids_var_map_ushort_ushort); - if (return_code_MapUShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ushort) { - return_code_MapUShortUShort = + return_code_var_map_ushort_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortUShort); + "_uint16_t", type_ids_var_map_ushort_ushort); - if (return_code_MapUShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapUShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapUShortUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ushort, element_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortUShort = + return_code_var_map_ushort_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortUShort); + "_uint16_t", type_ids_var_map_ushort_ushort); - if (return_code_MapUShortUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapUShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapUShortUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ushort, key_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_uint16_t_unbounded = EK_BOTH; @@ -8785,68 +3304,21 @@ void register_MapUShortUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_uint16_t_unbounded), key_flags_anonymous_map_uint16_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint16_t_unbounded", type_ids_var_map_ushort_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint16_t_unbounded", type_ids_MapUShortUShort); - if (return_code_MapUShortUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_ushort; MemberId member_id_var_map_ushort_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1()._d() || TK_NONE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ushort, member_flags_var_map_ushort_ushort, type_ids_MapUShortUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ushort, member_flags_var_map_ushort_ushort, type_ids_MapUShortUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_ushort_ec {false}; + CommonStructMember common_var_map_ushort_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ushort, member_flags_var_map_ushort_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ushort, common_var_map_ushort_ushort_ec))}; + if (!common_var_map_ushort_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_ushort = "var_map_ushort_ushort"; @@ -8858,32 +3330,26 @@ void register_MapUShortUShort_type_identifier( } CompleteStructType struct_type_MapUShortUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortUShort, header_MapUShortUShort, member_seq_MapUShortUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortUShort, type_name_MapUShortUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortUShort, type_name_MapUShortUShort.to_string(), type_ids_MapUShortUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortUShort", type_ids_MapUShortUShort); - if (return_code_MapUShortUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortLong) { + + ReturnCode_t return_code_MapUShortLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortLong", type_ids_MapUShortLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortLong) { - StructTypeFlag struct_flags_MapUShortLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortLong; - TypeIdentifierPair type_ids_MapUShortLong; QualifiedTypeName type_name_MapUShortLong = "MapUShortLong"; eprosima::fastcdr::optional type_ann_builtin_MapUShortLong; eprosima::fastcdr::optional ann_custom_MapUShortLong; @@ -8892,120 +3358,48 @@ void register_MapUShortLong_type_identifier( header_MapUShortLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortLong); CompleteStructMemberSeq member_seq_MapUShortLong; { - return_code_MapUShortLong = + TypeIdentifierPair type_ids_var_map_ushort_long; + ReturnCode_t return_code_var_map_ushort_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int32_t_unbounded", type_ids_MapUShortLong); + "anonymous_map_uint16_t_int32_t_unbounded", type_ids_var_map_ushort_long); - if (return_code_MapUShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_long) { - return_code_MapUShortLong = + return_code_var_map_ushort_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapUShortLong); + "_int32_t", type_ids_var_map_ushort_long); - if (return_code_MapUShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_long, element_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortLong = + return_code_var_map_ushort_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortLong); + "_uint16_t", type_ids_var_map_ushort_long); - if (return_code_MapUShortLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_long, key_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_int32_t_unbounded = EK_BOTH; @@ -9028,68 +3422,21 @@ void register_MapUShortLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_int32_t_unbounded), key_flags_anonymous_map_uint16_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int32_t_unbounded", type_ids_var_map_ushort_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int32_t_unbounded", type_ids_MapUShortLong); - if (return_code_MapUShortLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_long; MemberId member_id_var_map_ushort_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_long, member_flags_var_map_ushort_long, type_ids_MapUShortLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_long, member_flags_var_map_ushort_long, type_ids_MapUShortLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_long_ec {false}; + CommonStructMember common_var_map_ushort_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_long, member_flags_var_map_ushort_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_long, common_var_map_ushort_long_ec))}; + if (!common_var_map_ushort_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_long = "var_map_ushort_long"; @@ -9101,32 +3448,26 @@ void register_MapUShortLong_type_identifier( } CompleteStructType struct_type_MapUShortLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortLong, header_MapUShortLong, member_seq_MapUShortLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLong, type_name_MapUShortLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLong, type_name_MapUShortLong.to_string(), type_ids_MapUShortLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortLong", type_ids_MapUShortLong); - if (return_code_MapUShortLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortULong) { + + ReturnCode_t return_code_MapUShortULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortULong", type_ids_MapUShortULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortULong) { - StructTypeFlag struct_flags_MapUShortULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortULong; - TypeIdentifierPair type_ids_MapUShortULong; QualifiedTypeName type_name_MapUShortULong = "MapUShortULong"; eprosima::fastcdr::optional type_ann_builtin_MapUShortULong; eprosima::fastcdr::optional ann_custom_MapUShortULong; @@ -9135,120 +3476,48 @@ void register_MapUShortULong_type_identifier( header_MapUShortULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortULong); CompleteStructMemberSeq member_seq_MapUShortULong; { - return_code_MapUShortULong = + TypeIdentifierPair type_ids_var_map_ushort_ulong; + ReturnCode_t return_code_var_map_ushort_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint32_t_unbounded", type_ids_MapUShortULong); + "anonymous_map_uint16_t_uint32_t_unbounded", type_ids_var_map_ushort_ulong); - if (return_code_MapUShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulong) { - return_code_MapUShortULong = + return_code_var_map_ushort_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapUShortULong); + "_uint32_t", type_ids_var_map_ushort_ulong); - if (return_code_MapUShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapUShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapUShortULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulong, element_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortULong = + return_code_var_map_ushort_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortULong); + "_uint16_t", type_ids_var_map_ushort_ulong); - if (return_code_MapUShortULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapUShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapUShortULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulong, key_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_uint32_t_unbounded = EK_BOTH; @@ -9271,68 +3540,21 @@ void register_MapUShortULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_uint32_t_unbounded), key_flags_anonymous_map_uint16_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint32_t_unbounded", type_ids_var_map_ushort_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint32_t_unbounded", type_ids_MapUShortULong); - if (return_code_MapUShortULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_ulong; MemberId member_id_var_map_ushort_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulong, member_flags_var_map_ushort_ulong, type_ids_MapUShortULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulong, member_flags_var_map_ushort_ulong, type_ids_MapUShortULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_ulong_ec {false}; + CommonStructMember common_var_map_ushort_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulong, member_flags_var_map_ushort_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulong, common_var_map_ushort_ulong_ec))}; + if (!common_var_map_ushort_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_ulong = "var_map_ushort_ulong"; @@ -9344,32 +3566,26 @@ void register_MapUShortULong_type_identifier( } CompleteStructType struct_type_MapUShortULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortULong, header_MapUShortULong, member_seq_MapUShortULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortULong, type_name_MapUShortULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortULong, type_name_MapUShortULong.to_string(), type_ids_MapUShortULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortULong", type_ids_MapUShortULong); - if (return_code_MapUShortULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortLongLong) { + + ReturnCode_t return_code_MapUShortLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortLongLong", type_ids_MapUShortLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortLongLong) { - StructTypeFlag struct_flags_MapUShortLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortLongLong; - TypeIdentifierPair type_ids_MapUShortLongLong; QualifiedTypeName type_name_MapUShortLongLong = "MapUShortLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapUShortLongLong; eprosima::fastcdr::optional ann_custom_MapUShortLongLong; @@ -9378,120 +3594,48 @@ void register_MapUShortLongLong_type_identifier( header_MapUShortLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortLongLong); CompleteStructMemberSeq member_seq_MapUShortLongLong; { - return_code_MapUShortLongLong = + TypeIdentifierPair type_ids_var_map_ushort_longlong; + ReturnCode_t return_code_var_map_ushort_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int64_t_unbounded", type_ids_MapUShortLongLong); + "anonymous_map_uint16_t_int64_t_unbounded", type_ids_var_map_ushort_longlong); - if (return_code_MapUShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longlong) { - return_code_MapUShortLongLong = + return_code_var_map_ushort_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapUShortLongLong); + "_int64_t", type_ids_var_map_ushort_longlong); - if (return_code_MapUShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapUShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapUShortLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longlong, element_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortLongLong = + return_code_var_map_ushort_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortLongLong); + "_uint16_t", type_ids_var_map_ushort_longlong); - if (return_code_MapUShortLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapUShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapUShortLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longlong, key_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_int64_t_unbounded = EK_BOTH; @@ -9514,68 +3658,21 @@ void register_MapUShortLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_int64_t_unbounded), key_flags_anonymous_map_uint16_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_int64_t_unbounded", type_ids_var_map_ushort_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_int64_t_unbounded", type_ids_MapUShortLongLong); - if (return_code_MapUShortLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_longlong; MemberId member_id_var_map_ushort_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longlong, member_flags_var_map_ushort_longlong, type_ids_MapUShortLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longlong, member_flags_var_map_ushort_longlong, type_ids_MapUShortLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_longlong_ec {false}; + CommonStructMember common_var_map_ushort_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longlong, member_flags_var_map_ushort_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longlong, common_var_map_ushort_longlong_ec))}; + if (!common_var_map_ushort_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_longlong = "var_map_ushort_longlong"; @@ -9587,32 +3684,26 @@ void register_MapUShortLongLong_type_identifier( } CompleteStructType struct_type_MapUShortLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortLongLong, header_MapUShortLongLong, member_seq_MapUShortLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLongLong, type_name_MapUShortLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLongLong, type_name_MapUShortLongLong.to_string(), type_ids_MapUShortLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortLongLong", type_ids_MapUShortLongLong); - if (return_code_MapUShortLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortULongLong) { + + ReturnCode_t return_code_MapUShortULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortULongLong", type_ids_MapUShortULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortULongLong) { - StructTypeFlag struct_flags_MapUShortULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortULongLong; - TypeIdentifierPair type_ids_MapUShortULongLong; QualifiedTypeName type_name_MapUShortULongLong = "MapUShortULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapUShortULongLong; eprosima::fastcdr::optional ann_custom_MapUShortULongLong; @@ -9621,120 +3712,48 @@ void register_MapUShortULongLong_type_identifier( header_MapUShortULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortULongLong); CompleteStructMemberSeq member_seq_MapUShortULongLong; { - return_code_MapUShortULongLong = + TypeIdentifierPair type_ids_var_map_ushort_ulonglong; + ReturnCode_t return_code_var_map_ushort_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint64_t_unbounded", type_ids_MapUShortULongLong); + "anonymous_map_uint16_t_uint64_t_unbounded", type_ids_var_map_ushort_ulonglong); - if (return_code_MapUShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulonglong) { - return_code_MapUShortULongLong = + return_code_var_map_ushort_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapUShortULongLong); + "_uint64_t", type_ids_var_map_ushort_ulonglong); - if (return_code_MapUShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapUShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapUShortULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulonglong, element_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortULongLong = + return_code_var_map_ushort_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortULongLong); + "_uint16_t", type_ids_var_map_ushort_ulonglong); - if (return_code_MapUShortULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapUShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapUShortULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulonglong, key_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_uint64_t_unbounded = EK_BOTH; @@ -9757,68 +3776,21 @@ void register_MapUShortULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_uint64_t_unbounded), key_flags_anonymous_map_uint16_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint64_t_unbounded", type_ids_var_map_ushort_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint64_t_unbounded", type_ids_MapUShortULongLong); - if (return_code_MapUShortULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_ulonglong; MemberId member_id_var_map_ushort_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulonglong, member_flags_var_map_ushort_ulonglong, type_ids_MapUShortULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulonglong, member_flags_var_map_ushort_ulonglong, type_ids_MapUShortULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_ulonglong_ec {false}; + CommonStructMember common_var_map_ushort_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_ulonglong, member_flags_var_map_ushort_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_ulonglong, common_var_map_ushort_ulonglong_ec))}; + if (!common_var_map_ushort_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_ulonglong = "var_map_ushort_ulonglong"; @@ -9830,32 +3802,26 @@ void register_MapUShortULongLong_type_identifier( } CompleteStructType struct_type_MapUShortULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortULongLong, header_MapUShortULongLong, member_seq_MapUShortULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortULongLong, type_name_MapUShortULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortULongLong, type_name_MapUShortULongLong.to_string(), type_ids_MapUShortULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortULongLong", type_ids_MapUShortULongLong); - if (return_code_MapUShortULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortFloat) { + + ReturnCode_t return_code_MapUShortFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortFloat", type_ids_MapUShortFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortFloat) { - StructTypeFlag struct_flags_MapUShortFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortFloat; - TypeIdentifierPair type_ids_MapUShortFloat; QualifiedTypeName type_name_MapUShortFloat = "MapUShortFloat"; eprosima::fastcdr::optional type_ann_builtin_MapUShortFloat; eprosima::fastcdr::optional ann_custom_MapUShortFloat; @@ -9864,120 +3830,48 @@ void register_MapUShortFloat_type_identifier( header_MapUShortFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortFloat); CompleteStructMemberSeq member_seq_MapUShortFloat; { - return_code_MapUShortFloat = + TypeIdentifierPair type_ids_var_map_ushort_float; + ReturnCode_t return_code_var_map_ushort_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_float_unbounded", type_ids_MapUShortFloat); + "anonymous_map_uint16_t_float_unbounded", type_ids_var_map_ushort_float); - if (return_code_MapUShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_float) { - return_code_MapUShortFloat = + return_code_var_map_ushort_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapUShortFloat); + "_float", type_ids_var_map_ushort_float); - if (return_code_MapUShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_float_unbounded = new TypeIdentifier(type_ids_MapUShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_float_unbounded = new TypeIdentifier(type_ids_MapUShortFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_float, element_identifier_anonymous_map_uint16_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortFloat = + return_code_var_map_ushort_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortFloat); + "_uint16_t", type_ids_var_map_ushort_float); - if (return_code_MapUShortFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_float_unbounded = new TypeIdentifier(type_ids_MapUShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_float_unbounded = new TypeIdentifier(type_ids_MapUShortFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_float, key_identifier_anonymous_map_uint16_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_float_unbounded = EK_BOTH; @@ -10000,68 +3894,21 @@ void register_MapUShortFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_float_unbounded), key_flags_anonymous_map_uint16_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_float_unbounded", type_ids_var_map_ushort_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_float_unbounded", type_ids_MapUShortFloat); - if (return_code_MapUShortFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_float; MemberId member_id_var_map_ushort_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1()._d() || TK_NONE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_float, member_flags_var_map_ushort_float, type_ids_MapUShortFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_float, member_flags_var_map_ushort_float, type_ids_MapUShortFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_float_ec {false}; + CommonStructMember common_var_map_ushort_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_float, member_flags_var_map_ushort_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_float, common_var_map_ushort_float_ec))}; + if (!common_var_map_ushort_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_float = "var_map_ushort_float"; @@ -10073,32 +3920,26 @@ void register_MapUShortFloat_type_identifier( } CompleteStructType struct_type_MapUShortFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortFloat, header_MapUShortFloat, member_seq_MapUShortFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortFloat, type_name_MapUShortFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortFloat, type_name_MapUShortFloat.to_string(), type_ids_MapUShortFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortFloat", type_ids_MapUShortFloat); - if (return_code_MapUShortFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortDouble) { + + ReturnCode_t return_code_MapUShortDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortDouble", type_ids_MapUShortDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortDouble) { - StructTypeFlag struct_flags_MapUShortDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortDouble; - TypeIdentifierPair type_ids_MapUShortDouble; QualifiedTypeName type_name_MapUShortDouble = "MapUShortDouble"; eprosima::fastcdr::optional type_ann_builtin_MapUShortDouble; eprosima::fastcdr::optional ann_custom_MapUShortDouble; @@ -10107,120 +3948,48 @@ void register_MapUShortDouble_type_identifier( header_MapUShortDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortDouble); CompleteStructMemberSeq member_seq_MapUShortDouble; { - return_code_MapUShortDouble = + TypeIdentifierPair type_ids_var_map_ushort_double; + ReturnCode_t return_code_var_map_ushort_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_double_unbounded", type_ids_MapUShortDouble); + "anonymous_map_uint16_t_double_unbounded", type_ids_var_map_ushort_double); - if (return_code_MapUShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_double) { - return_code_MapUShortDouble = + return_code_var_map_ushort_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapUShortDouble); + "_double", type_ids_var_map_ushort_double); - if (return_code_MapUShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_double_unbounded = new TypeIdentifier(type_ids_MapUShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_double_unbounded = new TypeIdentifier(type_ids_MapUShortDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_double, element_identifier_anonymous_map_uint16_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortDouble = + return_code_var_map_ushort_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortDouble); + "_uint16_t", type_ids_var_map_ushort_double); - if (return_code_MapUShortDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_double_unbounded = new TypeIdentifier(type_ids_MapUShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_double_unbounded = new TypeIdentifier(type_ids_MapUShortDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_double, key_identifier_anonymous_map_uint16_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_double_unbounded = EK_BOTH; @@ -10243,68 +4012,21 @@ void register_MapUShortDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_double_unbounded), key_flags_anonymous_map_uint16_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_double_unbounded", type_ids_var_map_ushort_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_double_unbounded", type_ids_MapUShortDouble); - if (return_code_MapUShortDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_double; MemberId member_id_var_map_ushort_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_double, member_flags_var_map_ushort_double, type_ids_MapUShortDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_double, member_flags_var_map_ushort_double, type_ids_MapUShortDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_double_ec {false}; + CommonStructMember common_var_map_ushort_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_double, member_flags_var_map_ushort_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_double, common_var_map_ushort_double_ec))}; + if (!common_var_map_ushort_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_double = "var_map_ushort_double"; @@ -10316,32 +4038,26 @@ void register_MapUShortDouble_type_identifier( } CompleteStructType struct_type_MapUShortDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortDouble, header_MapUShortDouble, member_seq_MapUShortDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortDouble, type_name_MapUShortDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortDouble, type_name_MapUShortDouble.to_string(), type_ids_MapUShortDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortDouble", type_ids_MapUShortDouble); - if (return_code_MapUShortDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortLongDouble) { + + ReturnCode_t return_code_MapUShortLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortLongDouble", type_ids_MapUShortLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortLongDouble) { - StructTypeFlag struct_flags_MapUShortLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortLongDouble; - TypeIdentifierPair type_ids_MapUShortLongDouble; QualifiedTypeName type_name_MapUShortLongDouble = "MapUShortLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapUShortLongDouble; eprosima::fastcdr::optional ann_custom_MapUShortLongDouble; @@ -10350,120 +4066,48 @@ void register_MapUShortLongDouble_type_identifier( header_MapUShortLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortLongDouble); CompleteStructMemberSeq member_seq_MapUShortLongDouble; { - return_code_MapUShortLongDouble = + TypeIdentifierPair type_ids_var_map_ushort_longdouble; + ReturnCode_t return_code_var_map_ushort_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_longdouble_unbounded", type_ids_MapUShortLongDouble); + "anonymous_map_uint16_t_longdouble_unbounded", type_ids_var_map_ushort_longdouble); - if (return_code_MapUShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longdouble) { - return_code_MapUShortLongDouble = + return_code_var_map_ushort_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapUShortLongDouble); + "_longdouble", type_ids_var_map_ushort_longdouble); - if (return_code_MapUShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapUShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapUShortLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longdouble, element_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortLongDouble = + return_code_var_map_ushort_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortLongDouble); + "_uint16_t", type_ids_var_map_ushort_longdouble); - if (return_code_MapUShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapUShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapUShortLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longdouble, key_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_longdouble_unbounded = EK_BOTH; @@ -10486,68 +4130,21 @@ void register_MapUShortLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_longdouble_unbounded), key_flags_anonymous_map_uint16_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_longdouble_unbounded", type_ids_var_map_ushort_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_longdouble_unbounded", type_ids_MapUShortLongDouble); - if (return_code_MapUShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_longdouble; MemberId member_id_var_map_ushort_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longdouble, member_flags_var_map_ushort_longdouble, type_ids_MapUShortLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longdouble, member_flags_var_map_ushort_longdouble, type_ids_MapUShortLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_longdouble_ec {false}; + CommonStructMember common_var_map_ushort_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_longdouble, member_flags_var_map_ushort_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_longdouble, common_var_map_ushort_longdouble_ec))}; + if (!common_var_map_ushort_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_longdouble = "var_map_ushort_longdouble"; @@ -10559,32 +4156,26 @@ void register_MapUShortLongDouble_type_identifier( } CompleteStructType struct_type_MapUShortLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortLongDouble, header_MapUShortLongDouble, member_seq_MapUShortLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLongDouble, type_name_MapUShortLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortLongDouble, type_name_MapUShortLongDouble.to_string(), type_ids_MapUShortLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortLongDouble", type_ids_MapUShortLongDouble); - if (return_code_MapUShortLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortBoolean) { + + ReturnCode_t return_code_MapUShortBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortBoolean", type_ids_MapUShortBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortBoolean) { - StructTypeFlag struct_flags_MapUShortBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortBoolean; - TypeIdentifierPair type_ids_MapUShortBoolean; QualifiedTypeName type_name_MapUShortBoolean = "MapUShortBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapUShortBoolean; eprosima::fastcdr::optional ann_custom_MapUShortBoolean; @@ -10593,120 +4184,48 @@ void register_MapUShortBoolean_type_identifier( header_MapUShortBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortBoolean); CompleteStructMemberSeq member_seq_MapUShortBoolean; { - return_code_MapUShortBoolean = + TypeIdentifierPair type_ids_var_map_ushort_boolean; + ReturnCode_t return_code_var_map_ushort_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_bool_unbounded", type_ids_MapUShortBoolean); + "anonymous_map_uint16_t_bool_unbounded", type_ids_var_map_ushort_boolean); - if (return_code_MapUShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_boolean) { - return_code_MapUShortBoolean = + return_code_var_map_ushort_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapUShortBoolean); + "_bool", type_ids_var_map_ushort_boolean); - if (return_code_MapUShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_bool_unbounded = new TypeIdentifier(type_ids_MapUShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_bool_unbounded = new TypeIdentifier(type_ids_MapUShortBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_boolean, element_identifier_anonymous_map_uint16_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortBoolean = + return_code_var_map_ushort_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortBoolean); + "_uint16_t", type_ids_var_map_ushort_boolean); - if (return_code_MapUShortBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_bool_unbounded = new TypeIdentifier(type_ids_MapUShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_bool_unbounded = new TypeIdentifier(type_ids_MapUShortBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_boolean, key_identifier_anonymous_map_uint16_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_bool_unbounded = EK_BOTH; @@ -10729,68 +4248,21 @@ void register_MapUShortBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_bool_unbounded), key_flags_anonymous_map_uint16_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_bool_unbounded", type_ids_var_map_ushort_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_bool_unbounded", type_ids_MapUShortBoolean); - if (return_code_MapUShortBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_boolean; MemberId member_id_var_map_ushort_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_boolean, member_flags_var_map_ushort_boolean, type_ids_MapUShortBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_boolean, member_flags_var_map_ushort_boolean, type_ids_MapUShortBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_boolean_ec {false}; + CommonStructMember common_var_map_ushort_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_boolean, member_flags_var_map_ushort_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_boolean, common_var_map_ushort_boolean_ec))}; + if (!common_var_map_ushort_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_boolean = "var_map_ushort_boolean"; @@ -10802,32 +4274,26 @@ void register_MapUShortBoolean_type_identifier( } CompleteStructType struct_type_MapUShortBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortBoolean, header_MapUShortBoolean, member_seq_MapUShortBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortBoolean, type_name_MapUShortBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortBoolean, type_name_MapUShortBoolean.to_string(), type_ids_MapUShortBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortBoolean", type_ids_MapUShortBoolean); - if (return_code_MapUShortBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortOctet) { + + ReturnCode_t return_code_MapUShortOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortOctet", type_ids_MapUShortOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortOctet) { - StructTypeFlag struct_flags_MapUShortOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortOctet; - TypeIdentifierPair type_ids_MapUShortOctet; QualifiedTypeName type_name_MapUShortOctet = "MapUShortOctet"; eprosima::fastcdr::optional type_ann_builtin_MapUShortOctet; eprosima::fastcdr::optional ann_custom_MapUShortOctet; @@ -10836,120 +4302,48 @@ void register_MapUShortOctet_type_identifier( header_MapUShortOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortOctet); CompleteStructMemberSeq member_seq_MapUShortOctet; { - return_code_MapUShortOctet = + TypeIdentifierPair type_ids_var_map_ushort_octet; + ReturnCode_t return_code_var_map_ushort_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint8_t_unbounded", type_ids_MapUShortOctet); + "anonymous_map_uint16_t_uint8_t_unbounded", type_ids_var_map_ushort_octet); - if (return_code_MapUShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_octet) { - return_code_MapUShortOctet = + return_code_var_map_ushort_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapUShortOctet); + "_byte", type_ids_var_map_ushort_octet); - if (return_code_MapUShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapUShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapUShortOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_octet, element_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortOctet = + return_code_var_map_ushort_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortOctet); + "_uint16_t", type_ids_var_map_ushort_octet); - if (return_code_MapUShortOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapUShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapUShortOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_octet, key_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_uint8_t_unbounded = EK_BOTH; @@ -10972,68 +4366,21 @@ void register_MapUShortOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_uint8_t_unbounded), key_flags_anonymous_map_uint16_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_uint8_t_unbounded", type_ids_var_map_ushort_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_uint8_t_unbounded", type_ids_MapUShortOctet); - if (return_code_MapUShortOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_octet; MemberId member_id_var_map_ushort_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1()._d() || TK_NONE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_octet, member_flags_var_map_ushort_octet, type_ids_MapUShortOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_octet, member_flags_var_map_ushort_octet, type_ids_MapUShortOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_octet_ec {false}; + CommonStructMember common_var_map_ushort_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_octet, member_flags_var_map_ushort_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_octet, common_var_map_ushort_octet_ec))}; + if (!common_var_map_ushort_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_octet = "var_map_ushort_octet"; @@ -11045,32 +4392,26 @@ void register_MapUShortOctet_type_identifier( } CompleteStructType struct_type_MapUShortOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortOctet, header_MapUShortOctet, member_seq_MapUShortOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortOctet, type_name_MapUShortOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortOctet, type_name_MapUShortOctet.to_string(), type_ids_MapUShortOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortOctet", type_ids_MapUShortOctet); - if (return_code_MapUShortOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortChar) { + + ReturnCode_t return_code_MapUShortChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortChar", type_ids_MapUShortChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortChar) { - StructTypeFlag struct_flags_MapUShortChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortChar; - TypeIdentifierPair type_ids_MapUShortChar; QualifiedTypeName type_name_MapUShortChar = "MapUShortChar"; eprosima::fastcdr::optional type_ann_builtin_MapUShortChar; eprosima::fastcdr::optional ann_custom_MapUShortChar; @@ -11079,120 +4420,48 @@ void register_MapUShortChar_type_identifier( header_MapUShortChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortChar); CompleteStructMemberSeq member_seq_MapUShortChar; { - return_code_MapUShortChar = + TypeIdentifierPair type_ids_var_map_ushort_char; + ReturnCode_t return_code_var_map_ushort_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_char_unbounded", type_ids_MapUShortChar); + "anonymous_map_uint16_t_char_unbounded", type_ids_var_map_ushort_char); - if (return_code_MapUShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_char) { - return_code_MapUShortChar = + return_code_var_map_ushort_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapUShortChar); + "_char", type_ids_var_map_ushort_char); - if (return_code_MapUShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_char_unbounded = new TypeIdentifier(type_ids_MapUShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_char_unbounded = new TypeIdentifier(type_ids_MapUShortChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_char, element_identifier_anonymous_map_uint16_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortChar = + return_code_var_map_ushort_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortChar); + "_uint16_t", type_ids_var_map_ushort_char); - if (return_code_MapUShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_char_unbounded = new TypeIdentifier(type_ids_MapUShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_char_unbounded = new TypeIdentifier(type_ids_MapUShortChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_char, key_identifier_anonymous_map_uint16_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_char_unbounded = EK_BOTH; @@ -11215,68 +4484,21 @@ void register_MapUShortChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_char_unbounded), key_flags_anonymous_map_uint16_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_char_unbounded", type_ids_var_map_ushort_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_char_unbounded", type_ids_MapUShortChar); - if (return_code_MapUShortChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_char; MemberId member_id_var_map_ushort_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_char, member_flags_var_map_ushort_char, type_ids_MapUShortChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_char, member_flags_var_map_ushort_char, type_ids_MapUShortChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_char_ec {false}; + CommonStructMember common_var_map_ushort_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_char, member_flags_var_map_ushort_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_char, common_var_map_ushort_char_ec))}; + if (!common_var_map_ushort_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_char = "var_map_ushort_char"; @@ -11287,33 +4509,27 @@ void register_MapUShortChar_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_MapUShortChar, member_var_map_ushort_char); } CompleteStructType struct_type_MapUShortChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortChar, header_MapUShortChar, member_seq_MapUShortChar); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortChar, type_name_MapUShortChar.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortChar already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortChar", type_ids_MapUShortChar); - if (return_code_MapUShortChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortChar, type_name_MapUShortChar.to_string(), type_ids_MapUShortChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "MapUShortChar already registered in TypeObjectRegistry for a different type."); } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortWChar) { + + ReturnCode_t return_code_MapUShortWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortWChar", type_ids_MapUShortWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortWChar) { - StructTypeFlag struct_flags_MapUShortWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortWChar; - TypeIdentifierPair type_ids_MapUShortWChar; QualifiedTypeName type_name_MapUShortWChar = "MapUShortWChar"; eprosima::fastcdr::optional type_ann_builtin_MapUShortWChar; eprosima::fastcdr::optional ann_custom_MapUShortWChar; @@ -11322,120 +4538,48 @@ void register_MapUShortWChar_type_identifier( header_MapUShortWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortWChar); CompleteStructMemberSeq member_seq_MapUShortWChar; { - return_code_MapUShortWChar = + TypeIdentifierPair type_ids_var_map_ushort_wchar; + ReturnCode_t return_code_var_map_ushort_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_wchar_t_unbounded", type_ids_MapUShortWChar); + "anonymous_map_uint16_t_wchar_t_unbounded", type_ids_var_map_ushort_wchar); - if (return_code_MapUShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wchar) { - return_code_MapUShortWChar = + return_code_var_map_ushort_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapUShortWChar); + "_wchar_t", type_ids_var_map_ushort_wchar); - if (return_code_MapUShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapUShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapUShortWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wchar, element_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortWChar = + return_code_var_map_ushort_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortWChar); + "_uint16_t", type_ids_var_map_ushort_wchar); - if (return_code_MapUShortWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapUShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapUShortWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wchar, key_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_wchar_t_unbounded = EK_BOTH; @@ -11458,68 +4602,21 @@ void register_MapUShortWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_wchar_t_unbounded), key_flags_anonymous_map_uint16_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_wchar_t_unbounded", type_ids_var_map_ushort_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_wchar_t_unbounded", type_ids_MapUShortWChar); - if (return_code_MapUShortWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_wchar; MemberId member_id_var_map_ushort_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wchar, member_flags_var_map_ushort_wchar, type_ids_MapUShortWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wchar, member_flags_var_map_ushort_wchar, type_ids_MapUShortWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_wchar_ec {false}; + CommonStructMember common_var_map_ushort_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wchar, member_flags_var_map_ushort_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wchar, common_var_map_ushort_wchar_ec))}; + if (!common_var_map_ushort_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_wchar = "var_map_ushort_wchar"; @@ -11531,32 +4628,26 @@ void register_MapUShortWChar_type_identifier( } CompleteStructType struct_type_MapUShortWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortWChar, header_MapUShortWChar, member_seq_MapUShortWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortWChar, type_name_MapUShortWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortWChar, type_name_MapUShortWChar.to_string(), type_ids_MapUShortWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortWChar", type_ids_MapUShortWChar); - if (return_code_MapUShortWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortString) { + + ReturnCode_t return_code_MapUShortString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortString", type_ids_MapUShortString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortString) { - StructTypeFlag struct_flags_MapUShortString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortString; - TypeIdentifierPair type_ids_MapUShortString; QualifiedTypeName type_name_MapUShortString = "MapUShortString"; eprosima::fastcdr::optional type_ann_builtin_MapUShortString; eprosima::fastcdr::optional ann_custom_MapUShortString; @@ -11565,137 +4656,56 @@ void register_MapUShortString_type_identifier( header_MapUShortString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortString); CompleteStructMemberSeq member_seq_MapUShortString; { - return_code_MapUShortString = + TypeIdentifierPair type_ids_var_map_ushort_string; + ReturnCode_t return_code_var_map_ushort_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded", type_ids_MapUShortString); + "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded", type_ids_var_map_ushort_string); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_string) { - return_code_MapUShortString = + return_code_var_map_ushort_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapUShortString); + "anonymous_string_unbounded", type_ids_var_map_ushort_string); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_ushort_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapUShortString); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_string, element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortString = + return_code_var_map_ushort_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortString); + "_uint16_t", type_ids_var_map_ushort_string); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_string, key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -11718,68 +4728,21 @@ void register_MapUShortString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded", type_ids_var_map_ushort_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded", type_ids_MapUShortString); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_string; MemberId member_id_var_map_ushort_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_string, member_flags_var_map_ushort_string, type_ids_MapUShortString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_string, member_flags_var_map_ushort_string, type_ids_MapUShortString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_string_ec {false}; + CommonStructMember common_var_map_ushort_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_string, member_flags_var_map_ushort_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_string, common_var_map_ushort_string_ec))}; + if (!common_var_map_ushort_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_string = "var_map_ushort_string"; @@ -11791,32 +4754,26 @@ void register_MapUShortString_type_identifier( } CompleteStructType struct_type_MapUShortString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortString, header_MapUShortString, member_seq_MapUShortString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortString, type_name_MapUShortString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortString, type_name_MapUShortString.to_string(), type_ids_MapUShortString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortString already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortString", type_ids_MapUShortString); - if (return_code_MapUShortString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortWString) { + + ReturnCode_t return_code_MapUShortWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortWString", type_ids_MapUShortWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortWString) { - StructTypeFlag struct_flags_MapUShortWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortWString; - TypeIdentifierPair type_ids_MapUShortWString; QualifiedTypeName type_name_MapUShortWString = "MapUShortWString"; eprosima::fastcdr::optional type_ann_builtin_MapUShortWString; eprosima::fastcdr::optional ann_custom_MapUShortWString; @@ -11825,137 +4782,56 @@ void register_MapUShortWString_type_identifier( header_MapUShortWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortWString); CompleteStructMemberSeq member_seq_MapUShortWString; { - return_code_MapUShortWString = + TypeIdentifierPair type_ids_var_map_ushort_wstring; + ReturnCode_t return_code_var_map_ushort_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded", type_ids_MapUShortWString); + "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_ushort_wstring); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wstring) { - return_code_MapUShortWString = + return_code_var_map_ushort_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapUShortWString); + "anonymous_wstring_unbounded", type_ids_var_map_ushort_wstring); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_ushort_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapUShortWString); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wstring, element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortWString = + return_code_var_map_ushort_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortWString); + "_uint16_t", type_ids_var_map_ushort_wstring); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wstring, key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -11978,68 +4854,21 @@ void register_MapUShortWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_ushort_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded", type_ids_MapUShortWString); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_wstring; MemberId member_id_var_map_ushort_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1()._d() || TK_NONE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wstring, member_flags_var_map_ushort_wstring, type_ids_MapUShortWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wstring, member_flags_var_map_ushort_wstring, type_ids_MapUShortWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_wstring_ec {false}; + CommonStructMember common_var_map_ushort_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_wstring, member_flags_var_map_ushort_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_wstring, common_var_map_ushort_wstring_ec))}; + if (!common_var_map_ushort_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_wstring = "var_map_ushort_wstring"; @@ -12051,32 +4880,26 @@ void register_MapUShortWString_type_identifier( } CompleteStructType struct_type_MapUShortWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortWString, header_MapUShortWString, member_seq_MapUShortWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortWString, type_name_MapUShortWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortWString, type_name_MapUShortWString.to_string(), type_ids_MapUShortWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortWString", type_ids_MapUShortWString); - if (return_code_MapUShortWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapUShortInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasBoundedStringHelper", type_ids_MapUShortInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapUShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapUShortInnerAliasBoundedStringHelper = "MapUShortInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasBoundedStringHelper; @@ -12085,215 +4908,46 @@ void register_MapUShortInnerAliasBoundedStringHelper_type_identifier( header_MapUShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapUShortInnerAliasBoundedStringHelper; { - return_code_MapUShortInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_ushort_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_ushort_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_string_10_unbounded", type_ids_MapUShortInnerAliasBoundedStringHelper); + "anonymous_map_uint16_t_anonymous_string_10_unbounded", type_ids_var_map_ushort_inneraliasboundedstringhelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedstringhelper) { - return_code_MapUShortInnerAliasBoundedStringHelper = + return_code_var_map_ushort_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapUShortInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_ushort_inneraliasboundedstringhelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapUShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapUShortInnerAliasBoundedStringHelper); - - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapUShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapUShortInnerAliasBoundedStringHelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapUShortInnerAliasBoundedStringHelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_ushort_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedstringhelper, element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasBoundedStringHelper = + return_code_var_map_ushort_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasBoundedStringHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliasboundedstringhelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedstringhelper, key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_string_10_unbounded = EK_BOTH; @@ -12316,68 +4970,21 @@ void register_MapUShortInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded), key_flags_anonymous_map_uint16_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_string_10_unbounded", type_ids_var_map_ushort_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_string_10_unbounded", type_ids_MapUShortInnerAliasBoundedStringHelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliasboundedstringhelper; MemberId member_id_var_map_ushort_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedstringhelper, member_flags_var_map_ushort_inneraliasboundedstringhelper, type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedstringhelper, member_flags_var_map_ushort_inneraliasboundedstringhelper, type_ids_MapUShortInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedstringhelper, member_flags_var_map_ushort_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedstringhelper, common_var_map_ushort_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_ushort_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliasboundedstringhelper = "var_map_ushort_inneraliasboundedstringhelper"; @@ -12389,32 +4996,26 @@ void register_MapUShortInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasBoundedStringHelper, header_MapUShortInnerAliasBoundedStringHelper, member_seq_MapUShortInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasBoundedStringHelper, type_name_MapUShortInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasBoundedStringHelper, type_name_MapUShortInnerAliasBoundedStringHelper.to_string(), type_ids_MapUShortInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasBoundedStringHelper", type_ids_MapUShortInnerAliasBoundedStringHelper); - if (return_code_MapUShortInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapUShortInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasBoundedWStringHelper", type_ids_MapUShortInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapUShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapUShortInnerAliasBoundedWStringHelper = "MapUShortInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasBoundedWStringHelper; @@ -12423,215 +5024,46 @@ void register_MapUShortInnerAliasBoundedWStringHelper_type_identifier( header_MapUShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapUShortInnerAliasBoundedWStringHelper; { - return_code_MapUShortInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_ushort_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_ushort_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_wstring_10_unbounded", type_ids_MapUShortInnerAliasBoundedWStringHelper); + "anonymous_map_uint16_t_anonymous_wstring_10_unbounded", type_ids_var_map_ushort_inneraliasboundedwstringhelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedwstringhelper) { - return_code_MapUShortInnerAliasBoundedWStringHelper = + return_code_var_map_ushort_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapUShortInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_ushort_inneraliasboundedwstringhelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapUShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapUShortInnerAliasBoundedWStringHelper); - - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapUShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapUShortInnerAliasBoundedWStringHelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapUShortInnerAliasBoundedWStringHelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_ushort_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedwstringhelper, element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasBoundedWStringHelper = + return_code_var_map_ushort_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasBoundedWStringHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliasboundedwstringhelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasboundedwstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedwstringhelper, key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -12654,68 +5086,21 @@ void register_MapUShortInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_uint16_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_wstring_10_unbounded", type_ids_var_map_ushort_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_wstring_10_unbounded", type_ids_MapUShortInnerAliasBoundedWStringHelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliasboundedwstringhelper; MemberId member_id_var_map_ushort_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedwstringhelper, member_flags_var_map_ushort_inneraliasboundedwstringhelper, type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedwstringhelper, member_flags_var_map_ushort_inneraliasboundedwstringhelper, type_ids_MapUShortInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasboundedwstringhelper, member_flags_var_map_ushort_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasboundedwstringhelper, common_var_map_ushort_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_ushort_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliasboundedwstringhelper = "var_map_ushort_inneraliasboundedwstringhelper"; @@ -12727,32 +5112,26 @@ void register_MapUShortInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasBoundedWStringHelper, header_MapUShortInnerAliasBoundedWStringHelper, member_seq_MapUShortInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasBoundedWStringHelper, type_name_MapUShortInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasBoundedWStringHelper, type_name_MapUShortInnerAliasBoundedWStringHelper.to_string(), type_ids_MapUShortInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasBoundedWStringHelper", type_ids_MapUShortInnerAliasBoundedWStringHelper); - if (return_code_MapUShortInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerEnumHelper) { + + ReturnCode_t return_code_MapUShortInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerEnumHelper", type_ids_MapUShortInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerEnumHelper) { - StructTypeFlag struct_flags_MapUShortInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerEnumHelper; - TypeIdentifierPair type_ids_MapUShortInnerEnumHelper; QualifiedTypeName type_name_MapUShortInnerEnumHelper = "MapUShortInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerEnumHelper; @@ -12761,173 +5140,46 @@ void register_MapUShortInnerEnumHelper_type_identifier( header_MapUShortInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerEnumHelper); CompleteStructMemberSeq member_seq_MapUShortInnerEnumHelper; { - return_code_MapUShortInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_ushort_innerenumhelper; + ReturnCode_t return_code_var_map_ushort_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerEnumHelper_unbounded", type_ids_MapUShortInnerEnumHelper); + "anonymous_map_uint16_t_InnerEnumHelper_unbounded", type_ids_var_map_ushort_innerenumhelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerenumhelper) { - return_code_MapUShortInnerEnumHelper = + return_code_var_map_ushort_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapUShortInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_ushort_innerenumhelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapUShortInnerEnumHelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_ushort_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerenumhelper, element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerEnumHelper = + return_code_var_map_ushort_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerEnumHelper); + "_uint16_t", type_ids_var_map_ushort_innerenumhelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerenumhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerenumhelper, key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -12950,68 +5202,21 @@ void register_MapUShortInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerEnumHelper_unbounded", type_ids_var_map_ushort_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerEnumHelper_unbounded", type_ids_MapUShortInnerEnumHelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_innerenumhelper; MemberId member_id_var_map_ushort_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerenumhelper, member_flags_var_map_ushort_innerenumhelper, type_ids_MapUShortInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerenumhelper, member_flags_var_map_ushort_innerenumhelper, type_ids_MapUShortInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_innerenumhelper_ec {false}; + CommonStructMember common_var_map_ushort_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerenumhelper, member_flags_var_map_ushort_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerenumhelper, common_var_map_ushort_innerenumhelper_ec))}; + if (!common_var_map_ushort_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_innerenumhelper = "var_map_ushort_innerenumhelper"; @@ -13023,32 +5228,26 @@ void register_MapUShortInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerEnumHelper, header_MapUShortInnerEnumHelper, member_seq_MapUShortInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerEnumHelper, type_name_MapUShortInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerEnumHelper, type_name_MapUShortInnerEnumHelper.to_string(), type_ids_MapUShortInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerEnumHelper", type_ids_MapUShortInnerEnumHelper); - if (return_code_MapUShortInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerBitMaskHelper) { + + ReturnCode_t return_code_MapUShortInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerBitMaskHelper", type_ids_MapUShortInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapUShortInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapUShortInnerBitMaskHelper; QualifiedTypeName type_name_MapUShortInnerBitMaskHelper = "MapUShortInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerBitMaskHelper; @@ -13057,206 +5256,46 @@ void register_MapUShortInnerBitMaskHelper_type_identifier( header_MapUShortInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapUShortInnerBitMaskHelper; { - return_code_MapUShortInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_ushort_innerbitmaskhelper; + ReturnCode_t return_code_var_map_ushort_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded", type_ids_MapUShortInnerBitMaskHelper); + "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded", type_ids_var_map_ushort_innerbitmaskhelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitmaskhelper) { - return_code_MapUShortInnerBitMaskHelper = + return_code_var_map_ushort_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapUShortInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_ushort_innerbitmaskhelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapUShortInnerBitMaskHelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_ushort_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitmaskhelper, element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerBitMaskHelper = + return_code_var_map_ushort_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerBitMaskHelper); + "_uint16_t", type_ids_var_map_ushort_innerbitmaskhelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitmaskhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitmaskhelper, key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -13279,68 +5318,21 @@ void register_MapUShortInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded", type_ids_var_map_ushort_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded", type_ids_MapUShortInnerBitMaskHelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_innerbitmaskhelper; MemberId member_id_var_map_ushort_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitmaskhelper, member_flags_var_map_ushort_innerbitmaskhelper, type_ids_MapUShortInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitmaskhelper, member_flags_var_map_ushort_innerbitmaskhelper, type_ids_MapUShortInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_ushort_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitmaskhelper, member_flags_var_map_ushort_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitmaskhelper, common_var_map_ushort_innerbitmaskhelper_ec))}; + if (!common_var_map_ushort_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_innerbitmaskhelper = "var_map_ushort_innerbitmaskhelper"; @@ -13352,32 +5344,26 @@ void register_MapUShortInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerBitMaskHelper, header_MapUShortInnerBitMaskHelper, member_seq_MapUShortInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerBitMaskHelper, type_name_MapUShortInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerBitMaskHelper, type_name_MapUShortInnerBitMaskHelper.to_string(), type_ids_MapUShortInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerBitMaskHelper", type_ids_MapUShortInnerBitMaskHelper); - if (return_code_MapUShortInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerAliasHelper) { + + ReturnCode_t return_code_MapUShortInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasHelper", type_ids_MapUShortInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasHelper) { - StructTypeFlag struct_flags_MapUShortInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerAliasHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasHelper; QualifiedTypeName type_name_MapUShortInnerAliasHelper = "MapUShortInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasHelper; @@ -13386,198 +5372,46 @@ void register_MapUShortInnerAliasHelper_type_identifier( header_MapUShortInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasHelper); CompleteStructMemberSeq member_seq_MapUShortInnerAliasHelper; { - return_code_MapUShortInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_ushort_inneraliashelper; + ReturnCode_t return_code_var_map_ushort_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerAliasHelper_unbounded", type_ids_MapUShortInnerAliasHelper); + "anonymous_map_uint16_t_InnerAliasHelper_unbounded", type_ids_var_map_ushort_inneraliashelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliashelper) { - return_code_MapUShortInnerAliasHelper = + return_code_var_map_ushort_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapUShortInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_ushort_inneraliashelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapUShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapUShortInnerAliasHelper); - - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapUShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapUShortInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapUShortInnerAliasHelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_ushort_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliashelper, element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasHelper = + return_code_var_map_ushort_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliashelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliashelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliashelper, key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -13600,68 +5434,21 @@ void register_MapUShortInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerAliasHelper_unbounded", type_ids_var_map_ushort_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerAliasHelper_unbounded", type_ids_MapUShortInnerAliasHelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliashelper; MemberId member_id_var_map_ushort_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliashelper, member_flags_var_map_ushort_inneraliashelper, type_ids_MapUShortInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliashelper, member_flags_var_map_ushort_inneraliashelper, type_ids_MapUShortInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliashelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliashelper, member_flags_var_map_ushort_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliashelper, common_var_map_ushort_inneraliashelper_ec))}; + if (!common_var_map_ushort_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliashelper = "var_map_ushort_inneraliashelper"; @@ -13673,313 +5460,74 @@ void register_MapUShortInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasHelper, header_MapUShortInnerAliasHelper, member_seq_MapUShortInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasHelper, type_name_MapUShortInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasHelper, type_name_MapUShortInnerAliasHelper.to_string(), type_ids_MapUShortInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasHelper", type_ids_MapUShortInnerAliasHelper); - if (return_code_MapUShortInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) -{ - { - StructTypeFlag struct_flags_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_MapUShortInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasArrayHelper; - QualifiedTypeName type_name_MapUShortInnerAliasArrayHelper = "MapUShortInnerAliasArrayHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasArrayHelper; - eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasArrayHelper; - CompleteTypeDetail detail_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapUShortInnerAliasArrayHelper, ann_custom_MapUShortInnerAliasArrayHelper, type_name_MapUShortInnerAliasArrayHelper.to_string()); - CompleteStructHeader header_MapUShortInnerAliasArrayHelper; - header_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasArrayHelper); - CompleteStructMemberSeq member_seq_MapUShortInnerAliasArrayHelper; - { - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded", type_ids_MapUShortInnerAliasArrayHelper); - - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapUShortInnerAliasArrayHelper); - - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapUShortInnerAliasArrayHelper); - - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapUShortInnerAliasArrayHelper); - - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapUShortInnerAliasArrayHelper); - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapUShortInnerAliasArrayHelper); - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + TypeIdentifierPair& type_ids_MapUShortInnerAliasArrayHelper) +{ + + ReturnCode_t return_code_MapUShortInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasArrayHelper", type_ids_MapUShortInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasArrayHelper) + { + StructTypeFlag struct_flags_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_MapUShortInnerAliasArrayHelper = "MapUShortInnerAliasArrayHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasArrayHelper; + eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasArrayHelper; + CompleteTypeDetail detail_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapUShortInnerAliasArrayHelper, ann_custom_MapUShortInnerAliasArrayHelper, type_name_MapUShortInnerAliasArrayHelper.to_string()); + CompleteStructHeader header_MapUShortInnerAliasArrayHelper; + header_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasArrayHelper); + CompleteStructMemberSeq member_seq_MapUShortInnerAliasArrayHelper; + { + TypeIdentifierPair type_ids_var_map_ushort_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_ushort_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliasarrayhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_ushort_inneraliasarrayhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasarrayhelper) + { + return_code_var_map_ushort_inneraliasarrayhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_array_helper", type_ids_var_map_ushort_inneraliasarrayhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasarrayhelper) + { + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_ushort_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasarrayhelper, element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasArrayHelper = + return_code_var_map_ushort_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasArrayHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliasarrayhelper); - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasarrayhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasarrayhelper, key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -14002,68 +5550,21 @@ void register_MapUShortInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_ushort_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded", type_ids_MapUShortInnerAliasArrayHelper); - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliasarrayhelper; MemberId member_id_var_map_ushort_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasarrayhelper, member_flags_var_map_ushort_inneraliasarrayhelper, type_ids_MapUShortInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasarrayhelper, member_flags_var_map_ushort_inneraliasarrayhelper, type_ids_MapUShortInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasarrayhelper, member_flags_var_map_ushort_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasarrayhelper, common_var_map_ushort_inneraliasarrayhelper_ec))}; + if (!common_var_map_ushort_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliasarrayhelper = "var_map_ushort_inneraliasarrayhelper"; @@ -14075,32 +5576,26 @@ void register_MapUShortInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasArrayHelper, header_MapUShortInnerAliasArrayHelper, member_seq_MapUShortInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasArrayHelper, type_name_MapUShortInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasArrayHelper, type_name_MapUShortInnerAliasArrayHelper.to_string(), type_ids_MapUShortInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasArrayHelper", type_ids_MapUShortInnerAliasArrayHelper); - if (return_code_MapUShortInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapUShortInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasSequenceHelper", type_ids_MapUShortInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapUShortInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasSequenceHelper; QualifiedTypeName type_name_MapUShortInnerAliasSequenceHelper = "MapUShortInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasSequenceHelper; @@ -14109,277 +5604,46 @@ void register_MapUShortInnerAliasSequenceHelper_type_identifier( header_MapUShortInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapUShortInnerAliasSequenceHelper; { - return_code_MapUShortInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_ushort_inneraliassequencehelper; + ReturnCode_t return_code_var_map_ushort_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapUShortInnerAliasSequenceHelper); + "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_ushort_inneraliassequencehelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliassequencehelper) { - return_code_MapUShortInnerAliasSequenceHelper = + return_code_var_map_ushort_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapUShortInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_ushort_inneraliassequencehelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapUShortInnerAliasSequenceHelper); - - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapUShortInnerAliasSequenceHelper); - - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapUShortInnerAliasSequenceHelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapUShortInnerAliasSequenceHelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_ushort_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliassequencehelper, element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasSequenceHelper = + return_code_var_map_ushort_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasSequenceHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliassequencehelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliassequencehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliassequencehelper, key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -14402,68 +5666,21 @@ void register_MapUShortInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_ushort_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapUShortInnerAliasSequenceHelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliassequencehelper; MemberId member_id_var_map_ushort_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliassequencehelper, member_flags_var_map_ushort_inneraliassequencehelper, type_ids_MapUShortInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliassequencehelper, member_flags_var_map_ushort_inneraliassequencehelper, type_ids_MapUShortInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliassequencehelper, member_flags_var_map_ushort_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliassequencehelper, common_var_map_ushort_inneraliassequencehelper_ec))}; + if (!common_var_map_ushort_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliassequencehelper = "var_map_ushort_inneraliassequencehelper"; @@ -14475,32 +5692,26 @@ void register_MapUShortInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasSequenceHelper, header_MapUShortInnerAliasSequenceHelper, member_seq_MapUShortInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasSequenceHelper, type_name_MapUShortInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasSequenceHelper, type_name_MapUShortInnerAliasSequenceHelper.to_string(), type_ids_MapUShortInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasSequenceHelper", type_ids_MapUShortInnerAliasSequenceHelper); - if (return_code_MapUShortInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerAliasMapHelper) { + + ReturnCode_t return_code_MapUShortInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerAliasMapHelper", type_ids_MapUShortInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapUShortInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapUShortInnerAliasMapHelper; QualifiedTypeName type_name_MapUShortInnerAliasMapHelper = "MapUShortInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerAliasMapHelper; @@ -14509,340 +5720,46 @@ void register_MapUShortInnerAliasMapHelper_type_identifier( header_MapUShortInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapUShortInnerAliasMapHelper; { - return_code_MapUShortInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_ushort_inneraliasmaphelper; + ReturnCode_t return_code_var_map_ushort_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapUShortInnerAliasMapHelper); + "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_ushort_inneraliasmaphelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasmaphelper) { - return_code_MapUShortInnerAliasMapHelper = + return_code_var_map_ushort_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapUShortInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_ushort_inneraliasmaphelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapUShortInnerAliasMapHelper); - - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapUShortInnerAliasMapHelper); - - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapUShortInnerAliasMapHelper); - - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapUShortInnerAliasMapHelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapUShortInnerAliasMapHelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_ushort_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasmaphelper, element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerAliasMapHelper = + return_code_var_map_ushort_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerAliasMapHelper); + "_uint16_t", type_ids_var_map_ushort_inneraliasmaphelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_inneraliasmaphelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasmaphelper, key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -14865,68 +5782,21 @@ void register_MapUShortInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_ushort_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapUShortInnerAliasMapHelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_inneraliasmaphelper; MemberId member_id_var_map_ushort_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasmaphelper, member_flags_var_map_ushort_inneraliasmaphelper, type_ids_MapUShortInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasmaphelper, member_flags_var_map_ushort_inneraliasmaphelper, type_ids_MapUShortInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_ushort_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_inneraliasmaphelper, member_flags_var_map_ushort_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_inneraliasmaphelper, common_var_map_ushort_inneraliasmaphelper_ec))}; + if (!common_var_map_ushort_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_inneraliasmaphelper = "var_map_ushort_inneraliasmaphelper"; @@ -14938,32 +5808,26 @@ void register_MapUShortInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerAliasMapHelper, header_MapUShortInnerAliasMapHelper, member_seq_MapUShortInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasMapHelper, type_name_MapUShortInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerAliasMapHelper, type_name_MapUShortInnerAliasMapHelper.to_string(), type_ids_MapUShortInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerAliasMapHelper", type_ids_MapUShortInnerAliasMapHelper); - if (return_code_MapUShortInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerUnionHelper) { + + ReturnCode_t return_code_MapUShortInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerUnionHelper", type_ids_MapUShortInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerUnionHelper) { - StructTypeFlag struct_flags_MapUShortInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerUnionHelper; - TypeIdentifierPair type_ids_MapUShortInnerUnionHelper; QualifiedTypeName type_name_MapUShortInnerUnionHelper = "MapUShortInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerUnionHelper; @@ -14972,397 +5836,46 @@ void register_MapUShortInnerUnionHelper_type_identifier( header_MapUShortInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerUnionHelper); CompleteStructMemberSeq member_seq_MapUShortInnerUnionHelper; { - return_code_MapUShortInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_ushort_innerunionhelper; + ReturnCode_t return_code_var_map_ushort_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerUnionHelper_unbounded", type_ids_MapUShortInnerUnionHelper); + "anonymous_map_uint16_t_InnerUnionHelper_unbounded", type_ids_var_map_ushort_innerunionhelper); - if (return_code_MapUShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerunionhelper) { - return_code_MapUShortInnerUnionHelper = + return_code_var_map_ushort_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapUShortInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_ushort_innerunionhelper); - if (return_code_MapUShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapUShortInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapUShortInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_ushort_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerunionhelper, element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerUnionHelper = + return_code_var_map_ushort_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerUnionHelper); + "_uint16_t", type_ids_var_map_ushort_innerunionhelper); - if (return_code_MapUShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerunionhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerunionhelper, key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -15385,68 +5898,21 @@ void register_MapUShortInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerUnionHelper_unbounded", type_ids_var_map_ushort_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerUnionHelper_unbounded", type_ids_MapUShortInnerUnionHelper); - if (return_code_MapUShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_innerunionhelper; MemberId member_id_var_map_ushort_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerunionhelper, member_flags_var_map_ushort_innerunionhelper, type_ids_MapUShortInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerunionhelper, member_flags_var_map_ushort_innerunionhelper, type_ids_MapUShortInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_innerunionhelper_ec {false}; + CommonStructMember common_var_map_ushort_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerunionhelper, member_flags_var_map_ushort_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerunionhelper, common_var_map_ushort_innerunionhelper_ec))}; + if (!common_var_map_ushort_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_innerunionhelper = "var_map_ushort_innerunionhelper"; @@ -15458,32 +5924,26 @@ void register_MapUShortInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerUnionHelper, header_MapUShortInnerUnionHelper, member_seq_MapUShortInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerUnionHelper, type_name_MapUShortInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerUnionHelper, type_name_MapUShortInnerUnionHelper.to_string(), type_ids_MapUShortInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerUnionHelper", type_ids_MapUShortInnerUnionHelper); - if (return_code_MapUShortInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerStructureHelper) { + + ReturnCode_t return_code_MapUShortInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerStructureHelper", type_ids_MapUShortInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerStructureHelper) { - StructTypeFlag struct_flags_MapUShortInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerStructureHelper; - TypeIdentifierPair type_ids_MapUShortInnerStructureHelper; QualifiedTypeName type_name_MapUShortInnerStructureHelper = "MapUShortInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerStructureHelper; @@ -15492,287 +5952,46 @@ void register_MapUShortInnerStructureHelper_type_identifier( header_MapUShortInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerStructureHelper); CompleteStructMemberSeq member_seq_MapUShortInnerStructureHelper; { - return_code_MapUShortInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_ushort_innerstructurehelper; + ReturnCode_t return_code_var_map_ushort_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerStructureHelper_unbounded", type_ids_MapUShortInnerStructureHelper); + "anonymous_map_uint16_t_InnerStructureHelper_unbounded", type_ids_var_map_ushort_innerstructurehelper); - if (return_code_MapUShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerstructurehelper) { - return_code_MapUShortInnerStructureHelper = + return_code_var_map_ushort_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapUShortInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_ushort_innerstructurehelper); - if (return_code_MapUShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapUShortInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapUShortInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_ushort_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerstructurehelper, element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerStructureHelper = + return_code_var_map_ushort_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerStructureHelper); + "_uint16_t", type_ids_var_map_ushort_innerstructurehelper); - if (return_code_MapUShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerstructurehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerstructurehelper, key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -15795,68 +6014,21 @@ void register_MapUShortInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerStructureHelper_unbounded", type_ids_var_map_ushort_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerStructureHelper_unbounded", type_ids_MapUShortInnerStructureHelper); - if (return_code_MapUShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_innerstructurehelper; MemberId member_id_var_map_ushort_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerstructurehelper, member_flags_var_map_ushort_innerstructurehelper, type_ids_MapUShortInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerstructurehelper, member_flags_var_map_ushort_innerstructurehelper, type_ids_MapUShortInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_ushort_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerstructurehelper, member_flags_var_map_ushort_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerstructurehelper, common_var_map_ushort_innerstructurehelper_ec))}; + if (!common_var_map_ushort_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_innerstructurehelper = "var_map_ushort_innerstructurehelper"; @@ -15868,32 +6040,26 @@ void register_MapUShortInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerStructureHelper, header_MapUShortInnerStructureHelper, member_seq_MapUShortInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerStructureHelper, type_name_MapUShortInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerStructureHelper, type_name_MapUShortInnerStructureHelper.to_string(), type_ids_MapUShortInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerStructureHelper", type_ids_MapUShortInnerStructureHelper); - if (return_code_MapUShortInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapUShortInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapUShortInnerBitsetHelper) { + + ReturnCode_t return_code_MapUShortInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapUShortInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapUShortInnerBitsetHelper", type_ids_MapUShortInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapUShortInnerBitsetHelper) { - StructTypeFlag struct_flags_MapUShortInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapUShortInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapUShortInnerBitsetHelper; - TypeIdentifierPair type_ids_MapUShortInnerBitsetHelper; QualifiedTypeName type_name_MapUShortInnerBitsetHelper = "MapUShortInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapUShortInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapUShortInnerBitsetHelper; @@ -15902,192 +6068,46 @@ void register_MapUShortInnerBitsetHelper_type_identifier( header_MapUShortInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapUShortInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapUShortInnerBitsetHelper; { - return_code_MapUShortInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_ushort_innerbitsethelper; + ReturnCode_t return_code_var_map_ushort_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ushort_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerBitsetHelper_unbounded", type_ids_MapUShortInnerBitsetHelper); + "anonymous_map_uint16_t_InnerBitsetHelper_unbounded", type_ids_var_map_ushort_innerbitsethelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitsethelper) { - return_code_MapUShortInnerBitsetHelper = + return_code_var_map_ushort_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapUShortInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_ushort_innerbitsethelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapUShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapUShortInnerBitsetHelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_ushort_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitsethelper, element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapUShortInnerBitsetHelper = + return_code_var_map_ushort_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapUShortInnerBitsetHelper); + "_uint16_t", type_ids_var_map_ushort_innerbitsethelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ushort_innerbitsethelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapUShortInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitsethelper, key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint16_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -16110,68 +6130,21 @@ void register_MapUShortInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_uint16_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint16_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint16_t_InnerBitsetHelper_unbounded", type_ids_var_map_ushort_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint16_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapUShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint16_t_InnerBitsetHelper_unbounded", type_ids_MapUShortInnerBitsetHelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint16_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ushort_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ushort_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ushort_innerbitsethelper; MemberId member_id_var_map_ushort_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitsethelper, member_flags_var_map_ushort_innerbitsethelper, type_ids_MapUShortInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapUShortInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapUShortInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ushort_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitsethelper, member_flags_var_map_ushort_innerbitsethelper, type_ids_MapUShortInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ushort_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ushort_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_ushort_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ushort_innerbitsethelper, member_flags_var_map_ushort_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ushort_innerbitsethelper, common_var_map_ushort_innerbitsethelper_ec))}; + if (!common_var_map_ushort_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ushort_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ushort_innerbitsethelper = "var_map_ushort_innerbitsethelper"; @@ -16183,32 +6156,26 @@ void register_MapUShortInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapUShortInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapUShortInnerBitsetHelper, header_MapUShortInnerBitsetHelper, member_seq_MapUShortInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerBitsetHelper, type_name_MapUShortInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapUShortInnerBitsetHelper, type_name_MapUShortInnerBitsetHelper.to_string(), type_ids_MapUShortInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapUShortInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapUShortInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapUShortInnerBitsetHelper", type_ids_MapUShortInnerBitsetHelper); - if (return_code_MapUShortInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapUShortInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongShort) { + + ReturnCode_t return_code_MapLongShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongShort", type_ids_MapLongShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongShort) { - StructTypeFlag struct_flags_MapLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongShort; - TypeIdentifierPair type_ids_MapLongShort; QualifiedTypeName type_name_MapLongShort = "MapLongShort"; eprosima::fastcdr::optional type_ann_builtin_MapLongShort; eprosima::fastcdr::optional ann_custom_MapLongShort; @@ -16217,120 +6184,48 @@ void register_MapLongShort_type_identifier( header_MapLongShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongShort); CompleteStructMemberSeq member_seq_MapLongShort; { - return_code_MapLongShort = + TypeIdentifierPair type_ids_var_map_long_short; + ReturnCode_t return_code_var_map_long_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_MapLongShort); + "anonymous_map_int32_t_int16_t_unbounded", type_ids_var_map_long_short); - if (return_code_MapLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_short) { - return_code_MapLongShort = + return_code_var_map_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongShort); + "_int16_t", type_ids_var_map_long_short); - if (return_code_MapLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_short, element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongShort = + return_code_var_map_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongShort); + "_int32_t", type_ids_var_map_long_short); - if (return_code_MapLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_short, key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int16_t_unbounded = EK_BOTH; @@ -16353,68 +6248,21 @@ void register_MapLongShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int16_t_unbounded), key_flags_anonymous_map_int32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded", type_ids_var_map_long_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_MapLongShort); - if (return_code_MapLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_short; MemberId member_id_var_map_long_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_short, member_flags_var_map_long_short, type_ids_MapLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_short, member_flags_var_map_long_short, type_ids_MapLongShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_short_ec {false}; + CommonStructMember common_var_map_long_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_short, member_flags_var_map_long_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_short, common_var_map_long_short_ec))}; + if (!common_var_map_long_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_short = "var_map_long_short"; @@ -16426,32 +6274,26 @@ void register_MapLongShort_type_identifier( } CompleteStructType struct_type_MapLongShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongShort, header_MapLongShort, member_seq_MapLongShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongShort, type_name_MapLongShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongShort, type_name_MapLongShort.to_string(), type_ids_MapLongShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongShort", type_ids_MapLongShort); - if (return_code_MapLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongUShort) { + + ReturnCode_t return_code_MapLongUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongUShort", type_ids_MapLongUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongUShort) { - StructTypeFlag struct_flags_MapLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongUShort; - TypeIdentifierPair type_ids_MapLongUShort; QualifiedTypeName type_name_MapLongUShort = "MapLongUShort"; eprosima::fastcdr::optional type_ann_builtin_MapLongUShort; eprosima::fastcdr::optional ann_custom_MapLongUShort; @@ -16460,120 +6302,48 @@ void register_MapLongUShort_type_identifier( header_MapLongUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongUShort); CompleteStructMemberSeq member_seq_MapLongUShort; { - return_code_MapLongUShort = + TypeIdentifierPair type_ids_var_map_long_ushort; + ReturnCode_t return_code_var_map_long_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint16_t_unbounded", type_ids_MapLongUShort); + "anonymous_map_int32_t_uint16_t_unbounded", type_ids_var_map_long_ushort); - if (return_code_MapLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ushort) { - return_code_MapLongUShort = + return_code_var_map_long_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapLongUShort); + "_uint16_t", type_ids_var_map_long_ushort); - if (return_code_MapLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ushort, element_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongUShort = + return_code_var_map_long_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongUShort); + "_int32_t", type_ids_var_map_long_ushort); - if (return_code_MapLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ushort, key_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_uint16_t_unbounded = EK_BOTH; @@ -16596,68 +6366,21 @@ void register_MapLongUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_uint16_t_unbounded), key_flags_anonymous_map_int32_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint16_t_unbounded", type_ids_var_map_long_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint16_t_unbounded", type_ids_MapLongUShort); - if (return_code_MapLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "anonymous_map_int32_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - StructMemberFlag member_flags_var_map_long_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_ushort; MemberId member_id_var_map_long_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ushort, member_flags_var_map_long_ushort, type_ids_MapLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ushort, member_flags_var_map_long_ushort, type_ids_MapLongUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_ushort_ec {false}; + CommonStructMember common_var_map_long_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ushort, member_flags_var_map_long_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ushort, common_var_map_long_ushort_ec))}; + if (!common_var_map_long_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_ushort = "var_map_long_ushort"; @@ -16669,32 +6392,26 @@ void register_MapLongUShort_type_identifier( } CompleteStructType struct_type_MapLongUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongUShort, header_MapLongUShort, member_seq_MapLongUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongUShort, type_name_MapLongUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongUShort, type_name_MapLongUShort.to_string(), type_ids_MapLongUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongUShort", type_ids_MapLongUShort); - if (return_code_MapLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLong) { + + ReturnCode_t return_code_MapLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLong", type_ids_MapLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLong) { - StructTypeFlag struct_flags_MapLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLong; - TypeIdentifierPair type_ids_MapLongLong; QualifiedTypeName type_name_MapLongLong = "MapLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapLongLong; eprosima::fastcdr::optional ann_custom_MapLongLong; @@ -16703,120 +6420,48 @@ void register_MapLongLong_type_identifier( header_MapLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLong); CompleteStructMemberSeq member_seq_MapLongLong; { - return_code_MapLongLong = + TypeIdentifierPair type_ids_var_map_long_long; + ReturnCode_t return_code_var_map_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongLong); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_map_long_long); - if (return_code_MapLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_long) { - return_code_MapLongLong = + return_code_var_map_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLong); + "_int32_t", type_ids_var_map_long_long); - if (return_code_MapLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_long, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLong = + return_code_var_map_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLong); + "_int32_t", type_ids_var_map_long_long); - if (return_code_MapLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_long, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -16839,68 +6484,21 @@ void register_MapLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_map_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongLong); - if (return_code_MapLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_long; MemberId member_id_var_map_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_long, member_flags_var_map_long_long, type_ids_MapLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_long, member_flags_var_map_long_long, type_ids_MapLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_long_ec {false}; + CommonStructMember common_var_map_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_long, member_flags_var_map_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_long, common_var_map_long_long_ec))}; + if (!common_var_map_long_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_long = "var_map_long_long"; @@ -16912,32 +6510,26 @@ void register_MapLongLong_type_identifier( } CompleteStructType struct_type_MapLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLong, header_MapLongLong, member_seq_MapLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLong, type_name_MapLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLong, type_name_MapLongLong.to_string(), type_ids_MapLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLong", type_ids_MapLongLong); - if (return_code_MapLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongULong) { + + ReturnCode_t return_code_MapLongULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongULong", type_ids_MapLongULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongULong) { - StructTypeFlag struct_flags_MapLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongULong; - TypeIdentifierPair type_ids_MapLongULong; QualifiedTypeName type_name_MapLongULong = "MapLongULong"; eprosima::fastcdr::optional type_ann_builtin_MapLongULong; eprosima::fastcdr::optional ann_custom_MapLongULong; @@ -16946,120 +6538,48 @@ void register_MapLongULong_type_identifier( header_MapLongULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongULong); CompleteStructMemberSeq member_seq_MapLongULong; { - return_code_MapLongULong = + TypeIdentifierPair type_ids_var_map_long_ulong; + ReturnCode_t return_code_var_map_long_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint32_t_unbounded", type_ids_MapLongULong); + "anonymous_map_int32_t_uint32_t_unbounded", type_ids_var_map_long_ulong); - if (return_code_MapLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulong) { - return_code_MapLongULong = + return_code_var_map_long_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapLongULong); + "_uint32_t", type_ids_var_map_long_ulong); - if (return_code_MapLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulong, element_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongULong = + return_code_var_map_long_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongULong); + "_int32_t", type_ids_var_map_long_ulong); - if (return_code_MapLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulong, key_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_uint32_t_unbounded = EK_BOTH; @@ -17082,68 +6602,21 @@ void register_MapLongULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_uint32_t_unbounded), key_flags_anonymous_map_int32_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint32_t_unbounded", type_ids_var_map_long_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint32_t_unbounded", type_ids_MapLongULong); - if (return_code_MapLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_ulong; MemberId member_id_var_map_long_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulong, member_flags_var_map_long_ulong, type_ids_MapLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulong, member_flags_var_map_long_ulong, type_ids_MapLongULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_ulong_ec {false}; + CommonStructMember common_var_map_long_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulong, member_flags_var_map_long_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulong, common_var_map_long_ulong_ec))}; + if (!common_var_map_long_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_ulong = "var_map_long_ulong"; @@ -17155,32 +6628,26 @@ void register_MapLongULong_type_identifier( } CompleteStructType struct_type_MapLongULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongULong, header_MapLongULong, member_seq_MapLongULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongULong, type_name_MapLongULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongULong, type_name_MapLongULong.to_string(), type_ids_MapLongULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongULong", type_ids_MapLongULong); - if (return_code_MapLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongKeyLongLongValue_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongKeyLongLongValue) { + + ReturnCode_t return_code_MapLongKeyLongLongValue {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongKeyLongLongValue = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongKeyLongLongValue", type_ids_MapLongKeyLongLongValue); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongKeyLongLongValue) { - StructTypeFlag struct_flags_MapLongKeyLongLongValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongKeyLongLongValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongKeyLongLongValue; - TypeIdentifierPair type_ids_MapLongKeyLongLongValue; QualifiedTypeName type_name_MapLongKeyLongLongValue = "MapLongKeyLongLongValue"; eprosima::fastcdr::optional type_ann_builtin_MapLongKeyLongLongValue; eprosima::fastcdr::optional ann_custom_MapLongKeyLongLongValue; @@ -17189,120 +6656,48 @@ void register_MapLongKeyLongLongValue_type_identifier( header_MapLongKeyLongLongValue = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongKeyLongLongValue); CompleteStructMemberSeq member_seq_MapLongKeyLongLongValue; { - return_code_MapLongKeyLongLongValue = + TypeIdentifierPair type_ids_var_map_long_longlong; + ReturnCode_t return_code_var_map_long_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int64_t_unbounded", type_ids_MapLongKeyLongLongValue); + "anonymous_map_int32_t_int64_t_unbounded", type_ids_var_map_long_longlong); - if (return_code_MapLongKeyLongLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longlong) { - return_code_MapLongKeyLongLongValue = + return_code_var_map_long_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongKeyLongLongValue); + "_int64_t", type_ids_var_map_long_longlong); - if (return_code_MapLongKeyLongLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongLongValue.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longlong, element_identifier_anonymous_map_int32_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongKeyLongLongValue = + return_code_var_map_long_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongKeyLongLongValue); + "_int32_t", type_ids_var_map_long_longlong); - if (return_code_MapLongKeyLongLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongLongValue.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longlong, key_identifier_anonymous_map_int32_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int64_t_unbounded = EK_BOTH; @@ -17325,68 +6720,21 @@ void register_MapLongKeyLongLongValue_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int64_t_unbounded), key_flags_anonymous_map_int32_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int64_t_unbounded", type_ids_var_map_long_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongKeyLongLongValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int64_t_unbounded", type_ids_MapLongKeyLongLongValue); - if (return_code_MapLongKeyLongLongValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_longlong; MemberId member_id_var_map_long_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longlong, member_flags_var_map_long_longlong, type_ids_MapLongKeyLongLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longlong, member_flags_var_map_long_longlong, type_ids_MapLongKeyLongLongValue.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_longlong_ec {false}; + CommonStructMember common_var_map_long_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longlong, member_flags_var_map_long_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longlong, common_var_map_long_longlong_ec))}; + if (!common_var_map_long_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_longlong = "var_map_long_longlong"; @@ -17398,32 +6746,26 @@ void register_MapLongKeyLongLongValue_type_identifier( } CompleteStructType struct_type_MapLongKeyLongLongValue = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongKeyLongLongValue, header_MapLongKeyLongLongValue, member_seq_MapLongKeyLongLongValue); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongKeyLongLongValue, type_name_MapLongKeyLongLongValue.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongKeyLongLongValue, type_name_MapLongKeyLongLongValue.to_string(), type_ids_MapLongKeyLongLongValue)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongKeyLongLongValue already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongKeyLongLongValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongKeyLongLongValue", type_ids_MapLongKeyLongLongValue); - if (return_code_MapLongKeyLongLongValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongKeyLongLongValue: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongULongLong) { + + ReturnCode_t return_code_MapLongULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongULongLong", type_ids_MapLongULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongULongLong) { - StructTypeFlag struct_flags_MapLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongULongLong; - TypeIdentifierPair type_ids_MapLongULongLong; QualifiedTypeName type_name_MapLongULongLong = "MapLongULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapLongULongLong; eprosima::fastcdr::optional ann_custom_MapLongULongLong; @@ -17432,120 +6774,48 @@ void register_MapLongULongLong_type_identifier( header_MapLongULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongULongLong); CompleteStructMemberSeq member_seq_MapLongULongLong; { - return_code_MapLongULongLong = + TypeIdentifierPair type_ids_var_map_long_ulonglong; + ReturnCode_t return_code_var_map_long_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint64_t_unbounded", type_ids_MapLongULongLong); + "anonymous_map_int32_t_uint64_t_unbounded", type_ids_var_map_long_ulonglong); - if (return_code_MapLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulonglong) { - return_code_MapLongULongLong = + return_code_var_map_long_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapLongULongLong); + "_uint64_t", type_ids_var_map_long_ulonglong); - if (return_code_MapLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulonglong, element_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongULongLong = + return_code_var_map_long_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongULongLong); + "_int32_t", type_ids_var_map_long_ulonglong); - if (return_code_MapLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulonglong, key_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_uint64_t_unbounded = EK_BOTH; @@ -17568,68 +6838,21 @@ void register_MapLongULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_uint64_t_unbounded), key_flags_anonymous_map_int32_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint64_t_unbounded", type_ids_var_map_long_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint64_t_unbounded", type_ids_MapLongULongLong); - if (return_code_MapLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_ulonglong; MemberId member_id_var_map_long_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulonglong, member_flags_var_map_long_ulonglong, type_ids_MapLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulonglong, member_flags_var_map_long_ulonglong, type_ids_MapLongULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_ulonglong_ec {false}; + CommonStructMember common_var_map_long_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_ulonglong, member_flags_var_map_long_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_ulonglong, common_var_map_long_ulonglong_ec))}; + if (!common_var_map_long_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_ulonglong = "var_map_long_ulonglong"; @@ -17641,32 +6864,26 @@ void register_MapLongULongLong_type_identifier( } CompleteStructType struct_type_MapLongULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongULongLong, header_MapLongULongLong, member_seq_MapLongULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongULongLong, type_name_MapLongULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongULongLong, type_name_MapLongULongLong.to_string(), type_ids_MapLongULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongULongLong", type_ids_MapLongULongLong); - if (return_code_MapLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongFloat) { + + ReturnCode_t return_code_MapLongFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongFloat", type_ids_MapLongFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongFloat) { - StructTypeFlag struct_flags_MapLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongFloat; - TypeIdentifierPair type_ids_MapLongFloat; QualifiedTypeName type_name_MapLongFloat = "MapLongFloat"; eprosima::fastcdr::optional type_ann_builtin_MapLongFloat; eprosima::fastcdr::optional ann_custom_MapLongFloat; @@ -17675,120 +6892,48 @@ void register_MapLongFloat_type_identifier( header_MapLongFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongFloat); CompleteStructMemberSeq member_seq_MapLongFloat; { - return_code_MapLongFloat = + TypeIdentifierPair type_ids_var_map_long_float; + ReturnCode_t return_code_var_map_long_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_float_unbounded", type_ids_MapLongFloat); + "anonymous_map_int32_t_float_unbounded", type_ids_var_map_long_float); - if (return_code_MapLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_float) { - return_code_MapLongFloat = + return_code_var_map_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapLongFloat); + "_float", type_ids_var_map_long_float); - if (return_code_MapLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_float_unbounded = new TypeIdentifier(type_ids_MapLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_float_unbounded = new TypeIdentifier(type_ids_MapLongFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_float, element_identifier_anonymous_map_int32_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongFloat = + return_code_var_map_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongFloat); + "_int32_t", type_ids_var_map_long_float); - if (return_code_MapLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_float_unbounded = new TypeIdentifier(type_ids_MapLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_float_unbounded = new TypeIdentifier(type_ids_MapLongFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_float, key_identifier_anonymous_map_int32_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_float_unbounded = EK_BOTH; @@ -17811,68 +6956,21 @@ void register_MapLongFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_float_unbounded), key_flags_anonymous_map_int32_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_float_unbounded", type_ids_var_map_long_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_float_unbounded", type_ids_MapLongFloat); - if (return_code_MapLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_float; MemberId member_id_var_map_long_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_float, member_flags_var_map_long_float, type_ids_MapLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_float, member_flags_var_map_long_float, type_ids_MapLongFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_float_ec {false}; + CommonStructMember common_var_map_long_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_float, member_flags_var_map_long_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_float, common_var_map_long_float_ec))}; + if (!common_var_map_long_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_float = "var_map_long_float"; @@ -17884,32 +6982,26 @@ void register_MapLongFloat_type_identifier( } CompleteStructType struct_type_MapLongFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongFloat, header_MapLongFloat, member_seq_MapLongFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongFloat, type_name_MapLongFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongFloat, type_name_MapLongFloat.to_string(), type_ids_MapLongFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongFloat", type_ids_MapLongFloat); - if (return_code_MapLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongDouble) { + + ReturnCode_t return_code_MapLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongDouble", type_ids_MapLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongDouble) { - StructTypeFlag struct_flags_MapLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongDouble; - TypeIdentifierPair type_ids_MapLongDouble; QualifiedTypeName type_name_MapLongDouble = "MapLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapLongDouble; eprosima::fastcdr::optional ann_custom_MapLongDouble; @@ -17918,120 +7010,48 @@ void register_MapLongDouble_type_identifier( header_MapLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongDouble); CompleteStructMemberSeq member_seq_MapLongDouble; { - return_code_MapLongDouble = + TypeIdentifierPair type_ids_var_map_long_double; + ReturnCode_t return_code_var_map_long_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_double_unbounded", type_ids_MapLongDouble); + "anonymous_map_int32_t_double_unbounded", type_ids_var_map_long_double); - if (return_code_MapLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_double) { - return_code_MapLongDouble = + return_code_var_map_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapLongDouble); + "_double", type_ids_var_map_long_double); - if (return_code_MapLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_double_unbounded = new TypeIdentifier(type_ids_MapLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_double_unbounded = new TypeIdentifier(type_ids_MapLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_double, element_identifier_anonymous_map_int32_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongDouble = + return_code_var_map_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongDouble); + "_int32_t", type_ids_var_map_long_double); - if (return_code_MapLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_double_unbounded = new TypeIdentifier(type_ids_MapLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_double_unbounded = new TypeIdentifier(type_ids_MapLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_double, key_identifier_anonymous_map_int32_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_double_unbounded = EK_BOTH; @@ -18054,68 +7074,21 @@ void register_MapLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_double_unbounded), key_flags_anonymous_map_int32_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_double_unbounded", type_ids_var_map_long_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_double_unbounded", type_ids_MapLongDouble); - if (return_code_MapLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_double; MemberId member_id_var_map_long_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_double, member_flags_var_map_long_double, type_ids_MapLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_double, member_flags_var_map_long_double, type_ids_MapLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_double_ec {false}; + CommonStructMember common_var_map_long_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_double, member_flags_var_map_long_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_double, common_var_map_long_double_ec))}; + if (!common_var_map_long_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_double = "var_map_long_double"; @@ -18127,32 +7100,26 @@ void register_MapLongDouble_type_identifier( } CompleteStructType struct_type_MapLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongDouble, header_MapLongDouble, member_seq_MapLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongDouble, type_name_MapLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongDouble, type_name_MapLongDouble.to_string(), type_ids_MapLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongDouble", type_ids_MapLongDouble); - if (return_code_MapLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongKeyLongDoubleValue_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongKeyLongDoubleValue) { + + ReturnCode_t return_code_MapLongKeyLongDoubleValue {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongKeyLongDoubleValue = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongKeyLongDoubleValue", type_ids_MapLongKeyLongDoubleValue); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongKeyLongDoubleValue) { - StructTypeFlag struct_flags_MapLongKeyLongDoubleValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongKeyLongDoubleValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongKeyLongDoubleValue; - TypeIdentifierPair type_ids_MapLongKeyLongDoubleValue; QualifiedTypeName type_name_MapLongKeyLongDoubleValue = "MapLongKeyLongDoubleValue"; eprosima::fastcdr::optional type_ann_builtin_MapLongKeyLongDoubleValue; eprosima::fastcdr::optional ann_custom_MapLongKeyLongDoubleValue; @@ -18161,120 +7128,48 @@ void register_MapLongKeyLongDoubleValue_type_identifier( header_MapLongKeyLongDoubleValue = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongKeyLongDoubleValue); CompleteStructMemberSeq member_seq_MapLongKeyLongDoubleValue; { - return_code_MapLongKeyLongDoubleValue = + TypeIdentifierPair type_ids_var_map_long_longdouble; + ReturnCode_t return_code_var_map_long_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_longdouble_unbounded", type_ids_MapLongKeyLongDoubleValue); + "anonymous_map_int32_t_longdouble_unbounded", type_ids_var_map_long_longdouble); - if (return_code_MapLongKeyLongDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longdouble) { - return_code_MapLongKeyLongDoubleValue = + return_code_var_map_long_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapLongKeyLongDoubleValue); + "_longdouble", type_ids_var_map_long_longdouble); - if (return_code_MapLongKeyLongDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongDoubleValue.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longdouble, element_identifier_anonymous_map_int32_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongKeyLongDoubleValue = + return_code_var_map_long_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongKeyLongDoubleValue); + "_int32_t", type_ids_var_map_long_longdouble); - if (return_code_MapLongKeyLongDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongKeyLongDoubleValue.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longdouble, key_identifier_anonymous_map_int32_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_longdouble_unbounded = EK_BOTH; @@ -18297,68 +7192,21 @@ void register_MapLongKeyLongDoubleValue_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_longdouble_unbounded), key_flags_anonymous_map_int32_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_longdouble_unbounded", type_ids_var_map_long_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongKeyLongDoubleValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_longdouble_unbounded", type_ids_MapLongKeyLongDoubleValue); - if (return_code_MapLongKeyLongDoubleValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_longdouble; MemberId member_id_var_map_long_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longdouble, member_flags_var_map_long_longdouble, type_ids_MapLongKeyLongDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongKeyLongDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongKeyLongDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longdouble, member_flags_var_map_long_longdouble, type_ids_MapLongKeyLongDoubleValue.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_longdouble_ec {false}; + CommonStructMember common_var_map_long_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_longdouble, member_flags_var_map_long_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_longdouble, common_var_map_long_longdouble_ec))}; + if (!common_var_map_long_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_longdouble = "var_map_long_longdouble"; @@ -18370,32 +7218,26 @@ void register_MapLongKeyLongDoubleValue_type_identifier( } CompleteStructType struct_type_MapLongKeyLongDoubleValue = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongKeyLongDoubleValue, header_MapLongKeyLongDoubleValue, member_seq_MapLongKeyLongDoubleValue); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongKeyLongDoubleValue, type_name_MapLongKeyLongDoubleValue.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongKeyLongDoubleValue, type_name_MapLongKeyLongDoubleValue.to_string(), type_ids_MapLongKeyLongDoubleValue)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongKeyLongDoubleValue already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongKeyLongDoubleValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongKeyLongDoubleValue", type_ids_MapLongKeyLongDoubleValue); - if (return_code_MapLongKeyLongDoubleValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongKeyLongDoubleValue: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongBoolean) { + + ReturnCode_t return_code_MapLongBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongBoolean", type_ids_MapLongBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongBoolean) { - StructTypeFlag struct_flags_MapLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongBoolean; - TypeIdentifierPair type_ids_MapLongBoolean; QualifiedTypeName type_name_MapLongBoolean = "MapLongBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapLongBoolean; eprosima::fastcdr::optional ann_custom_MapLongBoolean; @@ -18404,120 +7246,48 @@ void register_MapLongBoolean_type_identifier( header_MapLongBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongBoolean); CompleteStructMemberSeq member_seq_MapLongBoolean; { - return_code_MapLongBoolean = + TypeIdentifierPair type_ids_var_map_long_boolean; + ReturnCode_t return_code_var_map_long_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_bool_unbounded", type_ids_MapLongBoolean); + "anonymous_map_int32_t_bool_unbounded", type_ids_var_map_long_boolean); - if (return_code_MapLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_boolean) { - return_code_MapLongBoolean = + return_code_var_map_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapLongBoolean); + "_bool", type_ids_var_map_long_boolean); - if (return_code_MapLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_boolean, element_identifier_anonymous_map_int32_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongBoolean = + return_code_var_map_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongBoolean); + "_int32_t", type_ids_var_map_long_boolean); - if (return_code_MapLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_boolean, key_identifier_anonymous_map_int32_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_bool_unbounded = EK_BOTH; @@ -18540,68 +7310,21 @@ void register_MapLongBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_bool_unbounded), key_flags_anonymous_map_int32_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_bool_unbounded", type_ids_var_map_long_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_bool_unbounded", type_ids_MapLongBoolean); - if (return_code_MapLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_boolean; MemberId member_id_var_map_long_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_boolean, member_flags_var_map_long_boolean, type_ids_MapLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_boolean, member_flags_var_map_long_boolean, type_ids_MapLongBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_boolean_ec {false}; + CommonStructMember common_var_map_long_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_boolean, member_flags_var_map_long_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_boolean, common_var_map_long_boolean_ec))}; + if (!common_var_map_long_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_boolean = "var_map_long_boolean"; @@ -18613,32 +7336,26 @@ void register_MapLongBoolean_type_identifier( } CompleteStructType struct_type_MapLongBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongBoolean, header_MapLongBoolean, member_seq_MapLongBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongBoolean, type_name_MapLongBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongBoolean, type_name_MapLongBoolean.to_string(), type_ids_MapLongBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongBoolean", type_ids_MapLongBoolean); - if (return_code_MapLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongOctet) { + + ReturnCode_t return_code_MapLongOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongOctet", type_ids_MapLongOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongOctet) { - StructTypeFlag struct_flags_MapLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongOctet; - TypeIdentifierPair type_ids_MapLongOctet; QualifiedTypeName type_name_MapLongOctet = "MapLongOctet"; eprosima::fastcdr::optional type_ann_builtin_MapLongOctet; eprosima::fastcdr::optional ann_custom_MapLongOctet; @@ -18647,120 +7364,48 @@ void register_MapLongOctet_type_identifier( header_MapLongOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongOctet); CompleteStructMemberSeq member_seq_MapLongOctet; { - return_code_MapLongOctet = + TypeIdentifierPair type_ids_var_map_long_octet; + ReturnCode_t return_code_var_map_long_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint8_t_unbounded", type_ids_MapLongOctet); + "anonymous_map_int32_t_uint8_t_unbounded", type_ids_var_map_long_octet); - if (return_code_MapLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_octet) { - return_code_MapLongOctet = + return_code_var_map_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapLongOctet); + "_byte", type_ids_var_map_long_octet); - if (return_code_MapLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_octet, element_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongOctet = + return_code_var_map_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongOctet); + "_int32_t", type_ids_var_map_long_octet); - if (return_code_MapLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_octet, key_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_uint8_t_unbounded = EK_BOTH; @@ -18783,68 +7428,21 @@ void register_MapLongOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_uint8_t_unbounded), key_flags_anonymous_map_int32_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_uint8_t_unbounded", type_ids_var_map_long_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_uint8_t_unbounded", type_ids_MapLongOctet); - if (return_code_MapLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_octet; MemberId member_id_var_map_long_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_octet, member_flags_var_map_long_octet, type_ids_MapLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_octet, member_flags_var_map_long_octet, type_ids_MapLongOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_octet_ec {false}; + CommonStructMember common_var_map_long_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_octet, member_flags_var_map_long_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_octet, common_var_map_long_octet_ec))}; + if (!common_var_map_long_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_octet = "var_map_long_octet"; @@ -18856,32 +7454,26 @@ void register_MapLongOctet_type_identifier( } CompleteStructType struct_type_MapLongOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongOctet, header_MapLongOctet, member_seq_MapLongOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongOctet, type_name_MapLongOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongOctet, type_name_MapLongOctet.to_string(), type_ids_MapLongOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongOctet", type_ids_MapLongOctet); - if (return_code_MapLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongChar) { + + ReturnCode_t return_code_MapLongChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongChar", type_ids_MapLongChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongChar) { - StructTypeFlag struct_flags_MapLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongChar; - TypeIdentifierPair type_ids_MapLongChar; QualifiedTypeName type_name_MapLongChar = "MapLongChar"; eprosima::fastcdr::optional type_ann_builtin_MapLongChar; eprosima::fastcdr::optional ann_custom_MapLongChar; @@ -18890,120 +7482,48 @@ void register_MapLongChar_type_identifier( header_MapLongChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongChar); CompleteStructMemberSeq member_seq_MapLongChar; { - return_code_MapLongChar = + TypeIdentifierPair type_ids_var_map_long_char; + ReturnCode_t return_code_var_map_long_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_char_unbounded", type_ids_MapLongChar); + "anonymous_map_int32_t_char_unbounded", type_ids_var_map_long_char); - if (return_code_MapLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_char) { - return_code_MapLongChar = + return_code_var_map_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapLongChar); + "_char", type_ids_var_map_long_char); - if (return_code_MapLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_char_unbounded = new TypeIdentifier(type_ids_MapLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_char_unbounded = new TypeIdentifier(type_ids_MapLongChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_char, element_identifier_anonymous_map_int32_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongChar = + return_code_var_map_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongChar); + "_int32_t", type_ids_var_map_long_char); - if (return_code_MapLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_char_unbounded = new TypeIdentifier(type_ids_MapLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_char_unbounded = new TypeIdentifier(type_ids_MapLongChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_char, key_identifier_anonymous_map_int32_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_char_unbounded = EK_BOTH; @@ -19026,68 +7546,21 @@ void register_MapLongChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_char_unbounded), key_flags_anonymous_map_int32_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_char_unbounded", type_ids_var_map_long_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_char_unbounded", type_ids_MapLongChar); - if (return_code_MapLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_char; MemberId member_id_var_map_long_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_char, member_flags_var_map_long_char, type_ids_MapLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_char, member_flags_var_map_long_char, type_ids_MapLongChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_char_ec {false}; + CommonStructMember common_var_map_long_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_char, member_flags_var_map_long_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_char, common_var_map_long_char_ec))}; + if (!common_var_map_long_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_char = "var_map_long_char"; @@ -19099,32 +7572,26 @@ void register_MapLongChar_type_identifier( } CompleteStructType struct_type_MapLongChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongChar, header_MapLongChar, member_seq_MapLongChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongChar, type_name_MapLongChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongChar, type_name_MapLongChar.to_string(), type_ids_MapLongChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongChar", type_ids_MapLongChar); - if (return_code_MapLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongWChar) { + + ReturnCode_t return_code_MapLongWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongWChar", type_ids_MapLongWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongWChar) { - StructTypeFlag struct_flags_MapLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongWChar; - TypeIdentifierPair type_ids_MapLongWChar; QualifiedTypeName type_name_MapLongWChar = "MapLongWChar"; eprosima::fastcdr::optional type_ann_builtin_MapLongWChar; eprosima::fastcdr::optional ann_custom_MapLongWChar; @@ -19133,120 +7600,48 @@ void register_MapLongWChar_type_identifier( header_MapLongWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongWChar); CompleteStructMemberSeq member_seq_MapLongWChar; { - return_code_MapLongWChar = + TypeIdentifierPair type_ids_var_map_long_wchar; + ReturnCode_t return_code_var_map_long_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_wchar_t_unbounded", type_ids_MapLongWChar); + "anonymous_map_int32_t_wchar_t_unbounded", type_ids_var_map_long_wchar); - if (return_code_MapLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wchar) { - return_code_MapLongWChar = + return_code_var_map_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapLongWChar); + "_wchar_t", type_ids_var_map_long_wchar); - if (return_code_MapLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wchar, element_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongWChar = + return_code_var_map_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongWChar); + "_int32_t", type_ids_var_map_long_wchar); - if (return_code_MapLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wchar, key_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_wchar_t_unbounded = EK_BOTH; @@ -19269,68 +7664,21 @@ void register_MapLongWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_wchar_t_unbounded), key_flags_anonymous_map_int32_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_wchar_t_unbounded", type_ids_var_map_long_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_wchar_t_unbounded", type_ids_MapLongWChar); - if (return_code_MapLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_wchar; MemberId member_id_var_map_long_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wchar, member_flags_var_map_long_wchar, type_ids_MapLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wchar, member_flags_var_map_long_wchar, type_ids_MapLongWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_wchar_ec {false}; + CommonStructMember common_var_map_long_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wchar, member_flags_var_map_long_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wchar, common_var_map_long_wchar_ec))}; + if (!common_var_map_long_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_wchar = "var_map_long_wchar"; @@ -19342,32 +7690,26 @@ void register_MapLongWChar_type_identifier( } CompleteStructType struct_type_MapLongWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongWChar, header_MapLongWChar, member_seq_MapLongWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongWChar, type_name_MapLongWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongWChar, type_name_MapLongWChar.to_string(), type_ids_MapLongWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongWChar", type_ids_MapLongWChar); - if (return_code_MapLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongString) { + + ReturnCode_t return_code_MapLongString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongString", type_ids_MapLongString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongString) { - StructTypeFlag struct_flags_MapLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongString; - TypeIdentifierPair type_ids_MapLongString; QualifiedTypeName type_name_MapLongString = "MapLongString"; eprosima::fastcdr::optional type_ann_builtin_MapLongString; eprosima::fastcdr::optional ann_custom_MapLongString; @@ -19376,137 +7718,56 @@ void register_MapLongString_type_identifier( header_MapLongString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongString); CompleteStructMemberSeq member_seq_MapLongString; { - return_code_MapLongString = + TypeIdentifierPair type_ids_var_map_long_string; + ReturnCode_t return_code_var_map_long_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_unbounded", type_ids_MapLongString); + "anonymous_map_int32_t_anonymous_string_unbounded_unbounded", type_ids_var_map_long_string); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_string) { - return_code_MapLongString = + return_code_var_map_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapLongString); + "anonymous_string_unbounded", type_ids_var_map_long_string); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_long_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapLongString); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_string, element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongString = + return_code_var_map_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongString); + "_int32_t", type_ids_var_map_long_string); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_string, key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -19529,68 +7790,21 @@ void register_MapLongString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_int32_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_unbounded", type_ids_var_map_long_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_unbounded", type_ids_MapLongString); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_string; MemberId member_id_var_map_long_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_string, member_flags_var_map_long_string, type_ids_MapLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_string, member_flags_var_map_long_string, type_ids_MapLongString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_string_ec {false}; + CommonStructMember common_var_map_long_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_string, member_flags_var_map_long_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_string, common_var_map_long_string_ec))}; + if (!common_var_map_long_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_string = "var_map_long_string"; @@ -19602,32 +7816,26 @@ void register_MapLongString_type_identifier( } CompleteStructType struct_type_MapLongString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongString, header_MapLongString, member_seq_MapLongString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongString, type_name_MapLongString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongString, type_name_MapLongString.to_string(), type_ids_MapLongString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongString already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongString", type_ids_MapLongString); - if (return_code_MapLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongWString) { + + ReturnCode_t return_code_MapLongWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongWString", type_ids_MapLongWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongWString) { - StructTypeFlag struct_flags_MapLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongWString; - TypeIdentifierPair type_ids_MapLongWString; QualifiedTypeName type_name_MapLongWString = "MapLongWString"; eprosima::fastcdr::optional type_ann_builtin_MapLongWString; eprosima::fastcdr::optional ann_custom_MapLongWString; @@ -19636,137 +7844,56 @@ void register_MapLongWString_type_identifier( header_MapLongWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongWString); CompleteStructMemberSeq member_seq_MapLongWString; { - return_code_MapLongWString = + TypeIdentifierPair type_ids_var_map_long_wstring; + ReturnCode_t return_code_var_map_long_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded", type_ids_MapLongWString); + "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_long_wstring); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wstring) { - return_code_MapLongWString = + return_code_var_map_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapLongWString); + "anonymous_wstring_unbounded", type_ids_var_map_long_wstring); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_long_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapLongWString); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wstring, element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongWString = + return_code_var_map_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongWString); + "_int32_t", type_ids_var_map_long_wstring); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wstring, key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -19789,68 +7916,21 @@ void register_MapLongWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_long_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded", type_ids_MapLongWString); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_wstring; MemberId member_id_var_map_long_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wstring, member_flags_var_map_long_wstring, type_ids_MapLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wstring, member_flags_var_map_long_wstring, type_ids_MapLongWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_wstring_ec {false}; + CommonStructMember common_var_map_long_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_wstring, member_flags_var_map_long_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_wstring, common_var_map_long_wstring_ec))}; + if (!common_var_map_long_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_wstring = "var_map_long_wstring"; @@ -19862,32 +7942,26 @@ void register_MapLongWString_type_identifier( } CompleteStructType struct_type_MapLongWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongWString, header_MapLongWString, member_seq_MapLongWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongWString, type_name_MapLongWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongWString, type_name_MapLongWString.to_string(), type_ids_MapLongWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongWString", type_ids_MapLongWString); - if (return_code_MapLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapLongInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasBoundedStringHelper", type_ids_MapLongInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapLongInnerAliasBoundedStringHelper = "MapLongInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasBoundedStringHelper; @@ -19896,215 +7970,46 @@ void register_MapLongInnerAliasBoundedStringHelper_type_identifier( header_MapLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasBoundedStringHelper; { - return_code_MapLongInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_long_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_10_unbounded", type_ids_MapLongInnerAliasBoundedStringHelper); + "anonymous_map_int32_t_anonymous_string_10_unbounded", type_ids_var_map_long_inneraliasboundedstringhelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedstringhelper) { - return_code_MapLongInnerAliasBoundedStringHelper = + return_code_var_map_long_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapLongInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_long_inneraliasboundedstringhelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapLongInnerAliasBoundedStringHelper); - - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapLongInnerAliasBoundedStringHelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapLongInnerAliasBoundedStringHelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_long_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedstringhelper, element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasBoundedStringHelper = + return_code_var_map_long_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasBoundedStringHelper); + "_int32_t", type_ids_var_map_long_inneraliasboundedstringhelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedstringhelper, key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_string_10_unbounded = EK_BOTH; @@ -20127,68 +8032,21 @@ void register_MapLongInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded), key_flags_anonymous_map_int32_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_10_unbounded", type_ids_var_map_long_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_10_unbounded", type_ids_MapLongInnerAliasBoundedStringHelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliasboundedstringhelper; MemberId member_id_var_map_long_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedstringhelper, member_flags_var_map_long_inneraliasboundedstringhelper, type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedstringhelper, member_flags_var_map_long_inneraliasboundedstringhelper, type_ids_MapLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_long_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedstringhelper, member_flags_var_map_long_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedstringhelper, common_var_map_long_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_long_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliasboundedstringhelper = "var_map_long_inneraliasboundedstringhelper"; @@ -20200,32 +8058,26 @@ void register_MapLongInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasBoundedStringHelper, header_MapLongInnerAliasBoundedStringHelper, member_seq_MapLongInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasBoundedStringHelper, type_name_MapLongInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasBoundedStringHelper, type_name_MapLongInnerAliasBoundedStringHelper.to_string(), type_ids_MapLongInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasBoundedStringHelper", type_ids_MapLongInnerAliasBoundedStringHelper); - if (return_code_MapLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapLongInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasBoundedWStringHelper", type_ids_MapLongInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapLongInnerAliasBoundedWStringHelper = "MapLongInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasBoundedWStringHelper; @@ -20234,215 +8086,46 @@ void register_MapLongInnerAliasBoundedWStringHelper_type_identifier( header_MapLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasBoundedWStringHelper; { - return_code_MapLongInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_long_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_wstring_10_unbounded", type_ids_MapLongInnerAliasBoundedWStringHelper); + "anonymous_map_int32_t_anonymous_wstring_10_unbounded", type_ids_var_map_long_inneraliasboundedwstringhelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedwstringhelper) { - return_code_MapLongInnerAliasBoundedWStringHelper = + return_code_var_map_long_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapLongInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_long_inneraliasboundedwstringhelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapLongInnerAliasBoundedWStringHelper); - - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_long_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedwstringhelper, element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasBoundedWStringHelper = + return_code_var_map_long_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasBoundedWStringHelper); + "_int32_t", type_ids_var_map_long_inneraliasboundedwstringhelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasboundedwstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedwstringhelper, key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -20465,68 +8148,21 @@ void register_MapLongInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_int32_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_wstring_10_unbounded", type_ids_var_map_long_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_wstring_10_unbounded", type_ids_MapLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "anonymous_map_int32_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - StructMemberFlag member_flags_var_map_long_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliasboundedwstringhelper; MemberId member_id_var_map_long_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedwstringhelper, member_flags_var_map_long_inneraliasboundedwstringhelper, type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedwstringhelper, member_flags_var_map_long_inneraliasboundedwstringhelper, type_ids_MapLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_long_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasboundedwstringhelper, member_flags_var_map_long_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasboundedwstringhelper, common_var_map_long_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_long_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliasboundedwstringhelper = "var_map_long_inneraliasboundedwstringhelper"; @@ -20538,32 +8174,26 @@ void register_MapLongInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasBoundedWStringHelper, header_MapLongInnerAliasBoundedWStringHelper, member_seq_MapLongInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasBoundedWStringHelper, type_name_MapLongInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasBoundedWStringHelper, type_name_MapLongInnerAliasBoundedWStringHelper.to_string(), type_ids_MapLongInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasBoundedWStringHelper", type_ids_MapLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerEnumHelper) { + + ReturnCode_t return_code_MapLongInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerEnumHelper", type_ids_MapLongInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerEnumHelper) { - StructTypeFlag struct_flags_MapLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerEnumHelper; - TypeIdentifierPair type_ids_MapLongInnerEnumHelper; QualifiedTypeName type_name_MapLongInnerEnumHelper = "MapLongInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerEnumHelper; @@ -20572,173 +8202,46 @@ void register_MapLongInnerEnumHelper_type_identifier( header_MapLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerEnumHelper); CompleteStructMemberSeq member_seq_MapLongInnerEnumHelper; { - return_code_MapLongInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_long_innerenumhelper; + ReturnCode_t return_code_var_map_long_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerEnumHelper_unbounded", type_ids_MapLongInnerEnumHelper); + "anonymous_map_int32_t_InnerEnumHelper_unbounded", type_ids_var_map_long_innerenumhelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerenumhelper) { - return_code_MapLongInnerEnumHelper = + return_code_var_map_long_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapLongInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_long_innerenumhelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapLongInnerEnumHelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_long_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerenumhelper, element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerEnumHelper = + return_code_var_map_long_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerEnumHelper); + "_int32_t", type_ids_var_map_long_innerenumhelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerenumhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerenumhelper, key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -20761,68 +8264,21 @@ void register_MapLongInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_int32_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerEnumHelper_unbounded", type_ids_var_map_long_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerEnumHelper_unbounded", type_ids_MapLongInnerEnumHelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_innerenumhelper; MemberId member_id_var_map_long_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerenumhelper, member_flags_var_map_long_innerenumhelper, type_ids_MapLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerenumhelper, member_flags_var_map_long_innerenumhelper, type_ids_MapLongInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_innerenumhelper_ec {false}; + CommonStructMember common_var_map_long_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerenumhelper, member_flags_var_map_long_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerenumhelper, common_var_map_long_innerenumhelper_ec))}; + if (!common_var_map_long_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_innerenumhelper = "var_map_long_innerenumhelper"; @@ -20834,32 +8290,26 @@ void register_MapLongInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerEnumHelper, header_MapLongInnerEnumHelper, member_seq_MapLongInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerEnumHelper, type_name_MapLongInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerEnumHelper, type_name_MapLongInnerEnumHelper.to_string(), type_ids_MapLongInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerEnumHelper", type_ids_MapLongInnerEnumHelper); - if (return_code_MapLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerBitMaskHelper) { + + ReturnCode_t return_code_MapLongInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerBitMaskHelper", type_ids_MapLongInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapLongInnerBitMaskHelper; QualifiedTypeName type_name_MapLongInnerBitMaskHelper = "MapLongInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerBitMaskHelper; @@ -20868,206 +8318,46 @@ void register_MapLongInnerBitMaskHelper_type_identifier( header_MapLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapLongInnerBitMaskHelper; { - return_code_MapLongInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_long_innerbitmaskhelper; + ReturnCode_t return_code_var_map_long_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerBitMaskHelper_unbounded", type_ids_MapLongInnerBitMaskHelper); + "anonymous_map_int32_t_InnerBitMaskHelper_unbounded", type_ids_var_map_long_innerbitmaskhelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitmaskhelper) { - return_code_MapLongInnerBitMaskHelper = + return_code_var_map_long_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapLongInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_long_innerbitmaskhelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapLongInnerBitMaskHelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_long_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitmaskhelper, element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerBitMaskHelper = + return_code_var_map_long_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerBitMaskHelper); + "_int32_t", type_ids_var_map_long_innerbitmaskhelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitmaskhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitmaskhelper, key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -21090,68 +8380,21 @@ void register_MapLongInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_int32_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerBitMaskHelper_unbounded", type_ids_var_map_long_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerBitMaskHelper_unbounded", type_ids_MapLongInnerBitMaskHelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_innerbitmaskhelper; MemberId member_id_var_map_long_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitmaskhelper, member_flags_var_map_long_innerbitmaskhelper, type_ids_MapLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitmaskhelper, member_flags_var_map_long_innerbitmaskhelper, type_ids_MapLongInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_long_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitmaskhelper, member_flags_var_map_long_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitmaskhelper, common_var_map_long_innerbitmaskhelper_ec))}; + if (!common_var_map_long_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_innerbitmaskhelper = "var_map_long_innerbitmaskhelper"; @@ -21163,32 +8406,26 @@ void register_MapLongInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerBitMaskHelper, header_MapLongInnerBitMaskHelper, member_seq_MapLongInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerBitMaskHelper, type_name_MapLongInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerBitMaskHelper, type_name_MapLongInnerBitMaskHelper.to_string(), type_ids_MapLongInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerBitMaskHelper", type_ids_MapLongInnerBitMaskHelper); - if (return_code_MapLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasHelper) { + + ReturnCode_t return_code_MapLongInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasHelper", type_ids_MapLongInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasHelper; QualifiedTypeName type_name_MapLongInnerAliasHelper = "MapLongInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasHelper; @@ -21197,198 +8434,46 @@ void register_MapLongInnerAliasHelper_type_identifier( header_MapLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasHelper; { - return_code_MapLongInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliashelper; + ReturnCode_t return_code_var_map_long_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerAliasHelper_unbounded", type_ids_MapLongInnerAliasHelper); + "anonymous_map_int32_t_InnerAliasHelper_unbounded", type_ids_var_map_long_inneraliashelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliashelper) { - return_code_MapLongInnerAliasHelper = + return_code_var_map_long_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapLongInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_long_inneraliashelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasHelper); - - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapLongInnerAliasHelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_long_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliashelper, element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasHelper = + return_code_var_map_long_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasHelper); + "_int32_t", type_ids_var_map_long_inneraliashelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliashelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliashelper, key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -21411,68 +8496,21 @@ void register_MapLongInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_int32_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerAliasHelper_unbounded", type_ids_var_map_long_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerAliasHelper_unbounded", type_ids_MapLongInnerAliasHelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliashelper; MemberId member_id_var_map_long_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliashelper, member_flags_var_map_long_inneraliashelper, type_ids_MapLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliashelper, member_flags_var_map_long_inneraliashelper, type_ids_MapLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliashelper_ec {false}; + CommonStructMember common_var_map_long_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliashelper, member_flags_var_map_long_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliashelper, common_var_map_long_inneraliashelper_ec))}; + if (!common_var_map_long_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliashelper = "var_map_long_inneraliashelper"; @@ -21484,32 +8522,26 @@ void register_MapLongInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasHelper, header_MapLongInnerAliasHelper, member_seq_MapLongInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasHelper, type_name_MapLongInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasHelper, type_name_MapLongInnerAliasHelper.to_string(), type_ids_MapLongInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasHelper", type_ids_MapLongInnerAliasHelper); - if (return_code_MapLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapLongInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasArrayHelper", type_ids_MapLongInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasArrayHelper; QualifiedTypeName type_name_MapLongInnerAliasArrayHelper = "MapLongInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasArrayHelper; @@ -21518,279 +8550,46 @@ void register_MapLongInnerAliasArrayHelper_type_identifier( header_MapLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasArrayHelper; { - return_code_MapLongInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_long_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded", type_ids_MapLongInnerAliasArrayHelper); + "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_long_inneraliasarrayhelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasarrayhelper) { - return_code_MapLongInnerAliasArrayHelper = + return_code_var_map_long_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapLongInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_long_inneraliasarrayhelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapLongInnerAliasArrayHelper); - - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongInnerAliasArrayHelper); - - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapLongInnerAliasArrayHelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapLongInnerAliasArrayHelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_long_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasarrayhelper, element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasArrayHelper = + return_code_var_map_long_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasArrayHelper); + "_int32_t", type_ids_var_map_long_inneraliasarrayhelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasarrayhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasarrayhelper, key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -21813,68 +8612,21 @@ void register_MapLongInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_long_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded", type_ids_MapLongInnerAliasArrayHelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliasarrayhelper; MemberId member_id_var_map_long_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasarrayhelper, member_flags_var_map_long_inneraliasarrayhelper, type_ids_MapLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasarrayhelper, member_flags_var_map_long_inneraliasarrayhelper, type_ids_MapLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_long_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasarrayhelper, member_flags_var_map_long_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasarrayhelper, common_var_map_long_inneraliasarrayhelper_ec))}; + if (!common_var_map_long_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliasarrayhelper = "var_map_long_inneraliasarrayhelper"; @@ -21886,32 +8638,26 @@ void register_MapLongInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasArrayHelper, header_MapLongInnerAliasArrayHelper, member_seq_MapLongInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasArrayHelper, type_name_MapLongInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasArrayHelper, type_name_MapLongInnerAliasArrayHelper.to_string(), type_ids_MapLongInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasArrayHelper", type_ids_MapLongInnerAliasArrayHelper); - if (return_code_MapLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapLongInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasSequenceHelper", type_ids_MapLongInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasSequenceHelper; QualifiedTypeName type_name_MapLongInnerAliasSequenceHelper = "MapLongInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasSequenceHelper; @@ -21920,277 +8666,46 @@ void register_MapLongInnerAliasSequenceHelper_type_identifier( header_MapLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasSequenceHelper; { - return_code_MapLongInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliassequencehelper; + ReturnCode_t return_code_var_map_long_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapLongInnerAliasSequenceHelper); + "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_long_inneraliassequencehelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliassequencehelper) { - return_code_MapLongInnerAliasSequenceHelper = + return_code_var_map_long_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapLongInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_long_inneraliassequencehelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapLongInnerAliasSequenceHelper); - - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongInnerAliasSequenceHelper); - - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapLongInnerAliasSequenceHelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapLongInnerAliasSequenceHelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_long_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliassequencehelper, element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasSequenceHelper = + return_code_var_map_long_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasSequenceHelper); + "_int32_t", type_ids_var_map_long_inneraliassequencehelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliassequencehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliassequencehelper, key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -22213,68 +8728,21 @@ void register_MapLongInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_long_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapLongInnerAliasSequenceHelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliassequencehelper; MemberId member_id_var_map_long_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliassequencehelper, member_flags_var_map_long_inneraliassequencehelper, type_ids_MapLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliassequencehelper, member_flags_var_map_long_inneraliassequencehelper, type_ids_MapLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_long_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliassequencehelper, member_flags_var_map_long_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliassequencehelper, common_var_map_long_inneraliassequencehelper_ec))}; + if (!common_var_map_long_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliassequencehelper = "var_map_long_inneraliassequencehelper"; @@ -22286,32 +8754,26 @@ void register_MapLongInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasSequenceHelper, header_MapLongInnerAliasSequenceHelper, member_seq_MapLongInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasSequenceHelper, type_name_MapLongInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasSequenceHelper, type_name_MapLongInnerAliasSequenceHelper.to_string(), type_ids_MapLongInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasSequenceHelper", type_ids_MapLongInnerAliasSequenceHelper); - if (return_code_MapLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerAliasMapHelper) { + + ReturnCode_t return_code_MapLongInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerAliasMapHelper", type_ids_MapLongInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapLongInnerAliasMapHelper; QualifiedTypeName type_name_MapLongInnerAliasMapHelper = "MapLongInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerAliasMapHelper; @@ -22320,340 +8782,46 @@ void register_MapLongInnerAliasMapHelper_type_identifier( header_MapLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapLongInnerAliasMapHelper; { - return_code_MapLongInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_long_inneraliasmaphelper; + ReturnCode_t return_code_var_map_long_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapLongInnerAliasMapHelper); + "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_long_inneraliasmaphelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasmaphelper) { - return_code_MapLongInnerAliasMapHelper = + return_code_var_map_long_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapLongInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_long_inneraliasmaphelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongInnerAliasMapHelper); - - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasMapHelper); - - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasMapHelper); - - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongInnerAliasMapHelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapLongInnerAliasMapHelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_long_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasmaphelper, element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerAliasMapHelper = + return_code_var_map_long_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerAliasMapHelper); + "_int32_t", type_ids_var_map_long_inneraliasmaphelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_inneraliasmaphelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasmaphelper, key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -22676,68 +8844,21 @@ void register_MapLongInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_long_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapLongInnerAliasMapHelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_inneraliasmaphelper; MemberId member_id_var_map_long_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasmaphelper, member_flags_var_map_long_inneraliasmaphelper, type_ids_MapLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasmaphelper, member_flags_var_map_long_inneraliasmaphelper, type_ids_MapLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_long_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_inneraliasmaphelper, member_flags_var_map_long_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_inneraliasmaphelper, common_var_map_long_inneraliasmaphelper_ec))}; + if (!common_var_map_long_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_inneraliasmaphelper = "var_map_long_inneraliasmaphelper"; @@ -22749,32 +8870,26 @@ void register_MapLongInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerAliasMapHelper, header_MapLongInnerAliasMapHelper, member_seq_MapLongInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasMapHelper, type_name_MapLongInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerAliasMapHelper, type_name_MapLongInnerAliasMapHelper.to_string(), type_ids_MapLongInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerAliasMapHelper", type_ids_MapLongInnerAliasMapHelper); - if (return_code_MapLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerUnionHelper) { + + ReturnCode_t return_code_MapLongInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerUnionHelper", type_ids_MapLongInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerUnionHelper) { - StructTypeFlag struct_flags_MapLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerUnionHelper; - TypeIdentifierPair type_ids_MapLongInnerUnionHelper; QualifiedTypeName type_name_MapLongInnerUnionHelper = "MapLongInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerUnionHelper; @@ -22783,397 +8898,46 @@ void register_MapLongInnerUnionHelper_type_identifier( header_MapLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerUnionHelper); CompleteStructMemberSeq member_seq_MapLongInnerUnionHelper; { - return_code_MapLongInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_long_innerunionhelper; + ReturnCode_t return_code_var_map_long_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerUnionHelper_unbounded", type_ids_MapLongInnerUnionHelper); + "anonymous_map_int32_t_InnerUnionHelper_unbounded", type_ids_var_map_long_innerunionhelper); - if (return_code_MapLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerunionhelper) { - return_code_MapLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapLongInnerUnionHelper); - - if (return_code_MapLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); + return_code_var_map_long_innerunionhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerUnionHelper", type_ids_var_map_long_innerunionhelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapLongInnerUnionHelper = type_ids_InnerUnionHelper; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerunionhelper) + { + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_long_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerunionhelper, element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerUnionHelper = + return_code_var_map_long_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerUnionHelper); + "_int32_t", type_ids_var_map_long_innerunionhelper); - if (return_code_MapLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerunionhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerunionhelper, key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -23196,68 +8960,21 @@ void register_MapLongInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_int32_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerUnionHelper_unbounded", type_ids_var_map_long_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerUnionHelper_unbounded", type_ids_MapLongInnerUnionHelper); - if (return_code_MapLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_innerunionhelper; MemberId member_id_var_map_long_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerunionhelper, member_flags_var_map_long_innerunionhelper, type_ids_MapLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerunionhelper, member_flags_var_map_long_innerunionhelper, type_ids_MapLongInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_innerunionhelper_ec {false}; + CommonStructMember common_var_map_long_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerunionhelper, member_flags_var_map_long_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerunionhelper, common_var_map_long_innerunionhelper_ec))}; + if (!common_var_map_long_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_innerunionhelper = "var_map_long_innerunionhelper"; @@ -23269,32 +8986,26 @@ void register_MapLongInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerUnionHelper, header_MapLongInnerUnionHelper, member_seq_MapLongInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerUnionHelper, type_name_MapLongInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerUnionHelper, type_name_MapLongInnerUnionHelper.to_string(), type_ids_MapLongInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerUnionHelper", type_ids_MapLongInnerUnionHelper); - if (return_code_MapLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerStructureHelper) { + + ReturnCode_t return_code_MapLongInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerStructureHelper", type_ids_MapLongInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerStructureHelper) { - StructTypeFlag struct_flags_MapLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerStructureHelper; - TypeIdentifierPair type_ids_MapLongInnerStructureHelper; QualifiedTypeName type_name_MapLongInnerStructureHelper = "MapLongInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerStructureHelper; @@ -23303,287 +9014,46 @@ void register_MapLongInnerStructureHelper_type_identifier( header_MapLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerStructureHelper); CompleteStructMemberSeq member_seq_MapLongInnerStructureHelper; { - return_code_MapLongInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_long_innerstructurehelper; + ReturnCode_t return_code_var_map_long_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerStructureHelper_unbounded", type_ids_MapLongInnerStructureHelper); + "anonymous_map_int32_t_InnerStructureHelper_unbounded", type_ids_var_map_long_innerstructurehelper); - if (return_code_MapLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerstructurehelper) { - return_code_MapLongInnerStructureHelper = + return_code_var_map_long_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapLongInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_long_innerstructurehelper); - if (return_code_MapLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapLongInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_long_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerstructurehelper, element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerStructureHelper = + return_code_var_map_long_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerStructureHelper); + "_int32_t", type_ids_var_map_long_innerstructurehelper); - if (return_code_MapLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerstructurehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerstructurehelper, key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -23606,68 +9076,21 @@ void register_MapLongInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_int32_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerStructureHelper_unbounded", type_ids_var_map_long_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerStructureHelper_unbounded", type_ids_MapLongInnerStructureHelper); - if (return_code_MapLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_innerstructurehelper; MemberId member_id_var_map_long_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerstructurehelper, member_flags_var_map_long_innerstructurehelper, type_ids_MapLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerstructurehelper, member_flags_var_map_long_innerstructurehelper, type_ids_MapLongInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_long_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerstructurehelper, member_flags_var_map_long_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerstructurehelper, common_var_map_long_innerstructurehelper_ec))}; + if (!common_var_map_long_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_innerstructurehelper = "var_map_long_innerstructurehelper"; @@ -23679,32 +9102,26 @@ void register_MapLongInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerStructureHelper, header_MapLongInnerStructureHelper, member_seq_MapLongInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerStructureHelper, type_name_MapLongInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerStructureHelper, type_name_MapLongInnerStructureHelper.to_string(), type_ids_MapLongInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerStructureHelper", type_ids_MapLongInnerStructureHelper); - if (return_code_MapLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongInnerBitsetHelper) { + + ReturnCode_t return_code_MapLongInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongInnerBitsetHelper", type_ids_MapLongInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongInnerBitsetHelper) { - StructTypeFlag struct_flags_MapLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongInnerBitsetHelper; - TypeIdentifierPair type_ids_MapLongInnerBitsetHelper; QualifiedTypeName type_name_MapLongInnerBitsetHelper = "MapLongInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapLongInnerBitsetHelper; @@ -23713,192 +9130,46 @@ void register_MapLongInnerBitsetHelper_type_identifier( header_MapLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapLongInnerBitsetHelper; { - return_code_MapLongInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_long_innerbitsethelper; + ReturnCode_t return_code_var_map_long_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_long_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerBitsetHelper_unbounded", type_ids_MapLongInnerBitsetHelper); + "anonymous_map_int32_t_InnerBitsetHelper_unbounded", type_ids_var_map_long_innerbitsethelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitsethelper) { - return_code_MapLongInnerBitsetHelper = + return_code_var_map_long_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapLongInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_long_innerbitsethelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapLongInnerBitsetHelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_long_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitsethelper, element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongInnerBitsetHelper = + return_code_var_map_long_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongInnerBitsetHelper); + "_int32_t", type_ids_var_map_long_innerbitsethelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_long_innerbitsethelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitsethelper, key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -23921,68 +9192,21 @@ void register_MapLongInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_int32_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_InnerBitsetHelper_unbounded", type_ids_var_map_long_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_InnerBitsetHelper_unbounded", type_ids_MapLongInnerBitsetHelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_long_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_long_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_long_innerbitsethelper; MemberId member_id_var_map_long_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitsethelper, member_flags_var_map_long_innerbitsethelper, type_ids_MapLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_long_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitsethelper, member_flags_var_map_long_innerbitsethelper, type_ids_MapLongInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_long_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_long_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_long_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_long_innerbitsethelper, member_flags_var_map_long_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_long_innerbitsethelper, common_var_map_long_innerbitsethelper_ec))}; + if (!common_var_map_long_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_long_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_long_innerbitsethelper = "var_map_long_innerbitsethelper"; @@ -23994,32 +9218,26 @@ void register_MapLongInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongInnerBitsetHelper, header_MapLongInnerBitsetHelper, member_seq_MapLongInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerBitsetHelper, type_name_MapLongInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongInnerBitsetHelper, type_name_MapLongInnerBitsetHelper.to_string(), type_ids_MapLongInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongInnerBitsetHelper", type_ids_MapLongInnerBitsetHelper); - if (return_code_MapLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongShort) { + + ReturnCode_t return_code_MapULongShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongShort", type_ids_MapULongShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongShort) { - StructTypeFlag struct_flags_MapULongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongShort; - TypeIdentifierPair type_ids_MapULongShort; QualifiedTypeName type_name_MapULongShort = "MapULongShort"; eprosima::fastcdr::optional type_ann_builtin_MapULongShort; eprosima::fastcdr::optional ann_custom_MapULongShort; @@ -24028,120 +9246,48 @@ void register_MapULongShort_type_identifier( header_MapULongShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongShort); CompleteStructMemberSeq member_seq_MapULongShort; { - return_code_MapULongShort = + TypeIdentifierPair type_ids_var_map_ulong_short; + ReturnCode_t return_code_var_map_ulong_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int16_t_unbounded", type_ids_MapULongShort); + "anonymous_map_uint32_t_int16_t_unbounded", type_ids_var_map_ulong_short); - if (return_code_MapULongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_short) { - return_code_MapULongShort = + return_code_var_map_ulong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongShort); + "_int16_t", type_ids_var_map_ulong_short); - if (return_code_MapULongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_short, element_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongShort = + return_code_var_map_ulong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongShort); + "_uint32_t", type_ids_var_map_ulong_short); - if (return_code_MapULongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_short, key_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_int16_t_unbounded = EK_BOTH; @@ -24164,68 +9310,21 @@ void register_MapULongShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_int16_t_unbounded), key_flags_anonymous_map_uint32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int16_t_unbounded", type_ids_var_map_ulong_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int16_t_unbounded", type_ids_MapULongShort); - if (return_code_MapULongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_short; MemberId member_id_var_map_ulong_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_short, member_flags_var_map_ulong_short, type_ids_MapULongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_short, member_flags_var_map_ulong_short, type_ids_MapULongShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_short_ec {false}; + CommonStructMember common_var_map_ulong_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_short, member_flags_var_map_ulong_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_short, common_var_map_ulong_short_ec))}; + if (!common_var_map_ulong_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_short = "var_map_ulong_short"; @@ -24237,32 +9336,26 @@ void register_MapULongShort_type_identifier( } CompleteStructType struct_type_MapULongShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongShort, header_MapULongShort, member_seq_MapULongShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongShort, type_name_MapULongShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongShort, type_name_MapULongShort.to_string(), type_ids_MapULongShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongShort", type_ids_MapULongShort); - if (return_code_MapULongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongUShort) { + + ReturnCode_t return_code_MapULongUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongUShort", type_ids_MapULongUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongUShort) { - StructTypeFlag struct_flags_MapULongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongUShort; - TypeIdentifierPair type_ids_MapULongUShort; QualifiedTypeName type_name_MapULongUShort = "MapULongUShort"; eprosima::fastcdr::optional type_ann_builtin_MapULongUShort; eprosima::fastcdr::optional ann_custom_MapULongUShort; @@ -24271,120 +9364,48 @@ void register_MapULongUShort_type_identifier( header_MapULongUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongUShort); CompleteStructMemberSeq member_seq_MapULongUShort; { - return_code_MapULongUShort = + TypeIdentifierPair type_ids_var_map_ulong_ushort; + ReturnCode_t return_code_var_map_ulong_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint16_t_unbounded", type_ids_MapULongUShort); + "anonymous_map_uint32_t_uint16_t_unbounded", type_ids_var_map_ulong_ushort); - if (return_code_MapULongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ushort) { - return_code_MapULongUShort = + return_code_var_map_ulong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapULongUShort); + "_uint16_t", type_ids_var_map_ulong_ushort); - if (return_code_MapULongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ushort, element_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongUShort = + return_code_var_map_ulong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongUShort); + "_uint32_t", type_ids_var_map_ulong_ushort); - if (return_code_MapULongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ushort, key_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_uint16_t_unbounded = EK_BOTH; @@ -24407,68 +9428,21 @@ void register_MapULongUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_uint16_t_unbounded), key_flags_anonymous_map_uint32_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint16_t_unbounded", type_ids_var_map_ulong_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint16_t_unbounded", type_ids_MapULongUShort); - if (return_code_MapULongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_ushort; MemberId member_id_var_map_ulong_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ushort, member_flags_var_map_ulong_ushort, type_ids_MapULongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ushort, member_flags_var_map_ulong_ushort, type_ids_MapULongUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_ushort_ec {false}; + CommonStructMember common_var_map_ulong_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ushort, member_flags_var_map_ulong_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ushort, common_var_map_ulong_ushort_ec))}; + if (!common_var_map_ulong_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_ushort = "var_map_ulong_ushort"; @@ -24480,32 +9454,26 @@ void register_MapULongUShort_type_identifier( } CompleteStructType struct_type_MapULongUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongUShort, header_MapULongUShort, member_seq_MapULongUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongUShort, type_name_MapULongUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongUShort, type_name_MapULongUShort.to_string(), type_ids_MapULongUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongUShort", type_ids_MapULongUShort); - if (return_code_MapULongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLong) { + + ReturnCode_t return_code_MapULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLong", type_ids_MapULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLong) { - StructTypeFlag struct_flags_MapULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLong; - TypeIdentifierPair type_ids_MapULongLong; QualifiedTypeName type_name_MapULongLong = "MapULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapULongLong; eprosima::fastcdr::optional ann_custom_MapULongLong; @@ -24514,120 +9482,48 @@ void register_MapULongLong_type_identifier( header_MapULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLong); CompleteStructMemberSeq member_seq_MapULongLong; { - return_code_MapULongLong = + TypeIdentifierPair type_ids_var_map_ulong_long; + ReturnCode_t return_code_var_map_ulong_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int32_t_unbounded", type_ids_MapULongLong); + "anonymous_map_uint32_t_int32_t_unbounded", type_ids_var_map_ulong_long); - if (return_code_MapULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_long) { - return_code_MapULongLong = + return_code_var_map_ulong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongLong); + "_int32_t", type_ids_var_map_ulong_long); - if (return_code_MapULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_long, element_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLong = + return_code_var_map_ulong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongLong); + "_uint32_t", type_ids_var_map_ulong_long); - if (return_code_MapULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_long, key_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_int32_t_unbounded = EK_BOTH; @@ -24650,68 +9546,21 @@ void register_MapULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_int32_t_unbounded), key_flags_anonymous_map_uint32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int32_t_unbounded", type_ids_var_map_ulong_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int32_t_unbounded", type_ids_MapULongLong); - if (return_code_MapULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_long; MemberId member_id_var_map_ulong_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_long, member_flags_var_map_ulong_long, type_ids_MapULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_long, member_flags_var_map_ulong_long, type_ids_MapULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_long_ec {false}; + CommonStructMember common_var_map_ulong_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_long, member_flags_var_map_ulong_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_long, common_var_map_ulong_long_ec))}; + if (!common_var_map_ulong_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_long = "var_map_ulong_long"; @@ -24723,32 +9572,26 @@ void register_MapULongLong_type_identifier( } CompleteStructType struct_type_MapULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLong, header_MapULongLong, member_seq_MapULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLong, type_name_MapULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLong, type_name_MapULongLong.to_string(), type_ids_MapULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLong", type_ids_MapULongLong); - if (return_code_MapULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongULong) { + + ReturnCode_t return_code_MapULongULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongULong", type_ids_MapULongULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongULong) { - StructTypeFlag struct_flags_MapULongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongULong; - TypeIdentifierPair type_ids_MapULongULong; QualifiedTypeName type_name_MapULongULong = "MapULongULong"; eprosima::fastcdr::optional type_ann_builtin_MapULongULong; eprosima::fastcdr::optional ann_custom_MapULongULong; @@ -24757,120 +9600,48 @@ void register_MapULongULong_type_identifier( header_MapULongULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongULong); CompleteStructMemberSeq member_seq_MapULongULong; { - return_code_MapULongULong = + TypeIdentifierPair type_ids_var_map_ulong_ulong; + ReturnCode_t return_code_var_map_ulong_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint32_t_unbounded", type_ids_MapULongULong); + "anonymous_map_uint32_t_uint32_t_unbounded", type_ids_var_map_ulong_ulong); - if (return_code_MapULongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulong) { - return_code_MapULongULong = + return_code_var_map_ulong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongULong); + "_uint32_t", type_ids_var_map_ulong_ulong); - if (return_code_MapULongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulong, element_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongULong = + return_code_var_map_ulong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongULong); + "_uint32_t", type_ids_var_map_ulong_ulong); - if (return_code_MapULongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulong, key_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_uint32_t_unbounded = EK_BOTH; @@ -24893,68 +9664,21 @@ void register_MapULongULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_uint32_t_unbounded), key_flags_anonymous_map_uint32_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint32_t_unbounded", type_ids_var_map_ulong_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint32_t_unbounded", type_ids_MapULongULong); - if (return_code_MapULongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_ulong; MemberId member_id_var_map_ulong_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulong, member_flags_var_map_ulong_ulong, type_ids_MapULongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulong, member_flags_var_map_ulong_ulong, type_ids_MapULongULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_ulong_ec {false}; + CommonStructMember common_var_map_ulong_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulong, member_flags_var_map_ulong_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulong, common_var_map_ulong_ulong_ec))}; + if (!common_var_map_ulong_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_ulong = "var_map_ulong_ulong"; @@ -24966,32 +9690,26 @@ void register_MapULongULong_type_identifier( } CompleteStructType struct_type_MapULongULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongULong, header_MapULongULong, member_seq_MapULongULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongULong, type_name_MapULongULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongULong, type_name_MapULongULong.to_string(), type_ids_MapULongULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongULong", type_ids_MapULongULong); - if (return_code_MapULongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapKeyULongValueLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapKeyULongValueLongLong) { + + ReturnCode_t return_code_MapKeyULongValueLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapKeyULongValueLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapKeyULongValueLongLong", type_ids_MapKeyULongValueLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapKeyULongValueLongLong) { - StructTypeFlag struct_flags_MapKeyULongValueLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapKeyULongValueLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapKeyULongValueLongLong; - TypeIdentifierPair type_ids_MapKeyULongValueLongLong; QualifiedTypeName type_name_MapKeyULongValueLongLong = "MapKeyULongValueLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapKeyULongValueLongLong; eprosima::fastcdr::optional ann_custom_MapKeyULongValueLongLong; @@ -25000,120 +9718,48 @@ void register_MapKeyULongValueLongLong_type_identifier( header_MapKeyULongValueLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapKeyULongValueLongLong); CompleteStructMemberSeq member_seq_MapKeyULongValueLongLong; { - return_code_MapKeyULongValueLongLong = + TypeIdentifierPair type_ids_var_map_ulong_longlong; + ReturnCode_t return_code_var_map_ulong_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int64_t_unbounded", type_ids_MapKeyULongValueLongLong); + "anonymous_map_uint32_t_int64_t_unbounded", type_ids_var_map_ulong_longlong); - if (return_code_MapKeyULongValueLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longlong) { - return_code_MapKeyULongValueLongLong = + return_code_var_map_ulong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapKeyULongValueLongLong); + "_int64_t", type_ids_var_map_ulong_longlong); - if (return_code_MapKeyULongValueLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longlong, element_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapKeyULongValueLongLong = + return_code_var_map_ulong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapKeyULongValueLongLong); + "_uint32_t", type_ids_var_map_ulong_longlong); - if (return_code_MapKeyULongValueLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longlong, key_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_int64_t_unbounded = EK_BOTH; @@ -25136,68 +9782,21 @@ void register_MapKeyULongValueLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_int64_t_unbounded), key_flags_anonymous_map_uint32_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_int64_t_unbounded", type_ids_var_map_ulong_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapKeyULongValueLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_int64_t_unbounded", type_ids_MapKeyULongValueLongLong); - if (return_code_MapKeyULongValueLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_longlong; MemberId member_id_var_map_ulong_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longlong, member_flags_var_map_ulong_longlong, type_ids_MapKeyULongValueLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longlong, member_flags_var_map_ulong_longlong, type_ids_MapKeyULongValueLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_longlong_ec {false}; + CommonStructMember common_var_map_ulong_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longlong, member_flags_var_map_ulong_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longlong, common_var_map_ulong_longlong_ec))}; + if (!common_var_map_ulong_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_longlong = "var_map_ulong_longlong"; @@ -25209,32 +9808,26 @@ void register_MapKeyULongValueLongLong_type_identifier( } CompleteStructType struct_type_MapKeyULongValueLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapKeyULongValueLongLong, header_MapKeyULongValueLongLong, member_seq_MapKeyULongValueLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongValueLongLong, type_name_MapKeyULongValueLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongValueLongLong, type_name_MapKeyULongValueLongLong.to_string(), type_ids_MapKeyULongValueLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapKeyULongValueLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapKeyULongValueLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapKeyULongValueLongLong", type_ids_MapKeyULongValueLongLong); - if (return_code_MapKeyULongValueLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapKeyULongValueLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongULongLong) { + + ReturnCode_t return_code_MapULongULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongULongLong", type_ids_MapULongULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongULongLong) { - StructTypeFlag struct_flags_MapULongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongULongLong; - TypeIdentifierPair type_ids_MapULongULongLong; QualifiedTypeName type_name_MapULongULongLong = "MapULongULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapULongULongLong; eprosima::fastcdr::optional ann_custom_MapULongULongLong; @@ -25243,120 +9836,48 @@ void register_MapULongULongLong_type_identifier( header_MapULongULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongULongLong); CompleteStructMemberSeq member_seq_MapULongULongLong; { - return_code_MapULongULongLong = + TypeIdentifierPair type_ids_var_map_ulong_ulonglong; + ReturnCode_t return_code_var_map_ulong_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint64_t_unbounded", type_ids_MapULongULongLong); + "anonymous_map_uint32_t_uint64_t_unbounded", type_ids_var_map_ulong_ulonglong); - if (return_code_MapULongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulonglong) { - return_code_MapULongULongLong = + return_code_var_map_ulong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongULongLong); + "_uint64_t", type_ids_var_map_ulong_ulonglong); - if (return_code_MapULongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulonglong, element_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongULongLong = + return_code_var_map_ulong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongULongLong); + "_uint32_t", type_ids_var_map_ulong_ulonglong); - if (return_code_MapULongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulonglong, key_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_uint64_t_unbounded = EK_BOTH; @@ -25379,68 +9900,21 @@ void register_MapULongULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_uint64_t_unbounded), key_flags_anonymous_map_uint32_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint64_t_unbounded", type_ids_var_map_ulong_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint64_t_unbounded", type_ids_MapULongULongLong); - if (return_code_MapULongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_ulonglong; MemberId member_id_var_map_ulong_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulonglong, member_flags_var_map_ulong_ulonglong, type_ids_MapULongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulonglong, member_flags_var_map_ulong_ulonglong, type_ids_MapULongULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_ulonglong_ec {false}; + CommonStructMember common_var_map_ulong_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_ulonglong, member_flags_var_map_ulong_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_ulonglong, common_var_map_ulong_ulonglong_ec))}; + if (!common_var_map_ulong_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_ulonglong = "var_map_ulong_ulonglong"; @@ -25452,32 +9926,26 @@ void register_MapULongULongLong_type_identifier( } CompleteStructType struct_type_MapULongULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongULongLong, header_MapULongULongLong, member_seq_MapULongULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongULongLong, type_name_MapULongULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongULongLong, type_name_MapULongULongLong.to_string(), type_ids_MapULongULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongULongLong", type_ids_MapULongULongLong); - if (return_code_MapULongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongFloat) { + + ReturnCode_t return_code_MapULongFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongFloat", type_ids_MapULongFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongFloat) { - StructTypeFlag struct_flags_MapULongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongFloat; - TypeIdentifierPair type_ids_MapULongFloat; QualifiedTypeName type_name_MapULongFloat = "MapULongFloat"; eprosima::fastcdr::optional type_ann_builtin_MapULongFloat; eprosima::fastcdr::optional ann_custom_MapULongFloat; @@ -25486,120 +9954,48 @@ void register_MapULongFloat_type_identifier( header_MapULongFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongFloat); CompleteStructMemberSeq member_seq_MapULongFloat; { - return_code_MapULongFloat = + TypeIdentifierPair type_ids_var_map_ulong_float; + ReturnCode_t return_code_var_map_ulong_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_float_unbounded", type_ids_MapULongFloat); + "anonymous_map_uint32_t_float_unbounded", type_ids_var_map_ulong_float); - if (return_code_MapULongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_float) { - return_code_MapULongFloat = + return_code_var_map_ulong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapULongFloat); + "_float", type_ids_var_map_ulong_float); - if (return_code_MapULongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_float_unbounded = new TypeIdentifier(type_ids_MapULongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_float_unbounded = new TypeIdentifier(type_ids_MapULongFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_float, element_identifier_anonymous_map_uint32_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongFloat = + return_code_var_map_ulong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongFloat); + "_uint32_t", type_ids_var_map_ulong_float); - if (return_code_MapULongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_float_unbounded = new TypeIdentifier(type_ids_MapULongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_float_unbounded = new TypeIdentifier(type_ids_MapULongFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_float, key_identifier_anonymous_map_uint32_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_float_unbounded = EK_BOTH; @@ -25622,68 +10018,21 @@ void register_MapULongFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_float_unbounded), key_flags_anonymous_map_uint32_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_float_unbounded", type_ids_var_map_ulong_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_float_unbounded", type_ids_MapULongFloat); - if (return_code_MapULongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_float; MemberId member_id_var_map_ulong_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_float, member_flags_var_map_ulong_float, type_ids_MapULongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_float, member_flags_var_map_ulong_float, type_ids_MapULongFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_float_ec {false}; + CommonStructMember common_var_map_ulong_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_float, member_flags_var_map_ulong_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_float, common_var_map_ulong_float_ec))}; + if (!common_var_map_ulong_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_float = "var_map_ulong_float"; @@ -25695,32 +10044,26 @@ void register_MapULongFloat_type_identifier( } CompleteStructType struct_type_MapULongFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongFloat, header_MapULongFloat, member_seq_MapULongFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongFloat, type_name_MapULongFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongFloat, type_name_MapULongFloat.to_string(), type_ids_MapULongFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongFloat", type_ids_MapULongFloat); - if (return_code_MapULongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongDouble) { + + ReturnCode_t return_code_MapULongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongDouble", type_ids_MapULongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongDouble) { - StructTypeFlag struct_flags_MapULongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongDouble; - TypeIdentifierPair type_ids_MapULongDouble; QualifiedTypeName type_name_MapULongDouble = "MapULongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapULongDouble; eprosima::fastcdr::optional ann_custom_MapULongDouble; @@ -25729,120 +10072,48 @@ void register_MapULongDouble_type_identifier( header_MapULongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongDouble); CompleteStructMemberSeq member_seq_MapULongDouble; { - return_code_MapULongDouble = + TypeIdentifierPair type_ids_var_map_ulong_double; + ReturnCode_t return_code_var_map_ulong_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_double_unbounded", type_ids_MapULongDouble); + "anonymous_map_uint32_t_double_unbounded", type_ids_var_map_ulong_double); - if (return_code_MapULongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_double) { - return_code_MapULongDouble = + return_code_var_map_ulong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapULongDouble); + "_double", type_ids_var_map_ulong_double); - if (return_code_MapULongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_double_unbounded = new TypeIdentifier(type_ids_MapULongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_double_unbounded = new TypeIdentifier(type_ids_MapULongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_double, element_identifier_anonymous_map_uint32_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongDouble = + return_code_var_map_ulong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongDouble); + "_uint32_t", type_ids_var_map_ulong_double); - if (return_code_MapULongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_double_unbounded = new TypeIdentifier(type_ids_MapULongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_double_unbounded = new TypeIdentifier(type_ids_MapULongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_double, key_identifier_anonymous_map_uint32_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_double_unbounded = EK_BOTH; @@ -25865,68 +10136,21 @@ void register_MapULongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_double_unbounded), key_flags_anonymous_map_uint32_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_double_unbounded", type_ids_var_map_ulong_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_double_unbounded", type_ids_MapULongDouble); - if (return_code_MapULongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_double; MemberId member_id_var_map_ulong_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_double, member_flags_var_map_ulong_double, type_ids_MapULongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_double, member_flags_var_map_ulong_double, type_ids_MapULongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_double_ec {false}; + CommonStructMember common_var_map_ulong_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_double, member_flags_var_map_ulong_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_double, common_var_map_ulong_double_ec))}; + if (!common_var_map_ulong_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_double = "var_map_ulong_double"; @@ -25938,32 +10162,26 @@ void register_MapULongDouble_type_identifier( } CompleteStructType struct_type_MapULongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongDouble, header_MapULongDouble, member_seq_MapULongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongDouble, type_name_MapULongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongDouble, type_name_MapULongDouble.to_string(), type_ids_MapULongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongDouble", type_ids_MapULongDouble); - if (return_code_MapULongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapKeyULongValueLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapKeyULongValueLongDouble) { + + ReturnCode_t return_code_MapKeyULongValueLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapKeyULongValueLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapKeyULongValueLongDouble", type_ids_MapKeyULongValueLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapKeyULongValueLongDouble) { - StructTypeFlag struct_flags_MapKeyULongValueLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapKeyULongValueLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapKeyULongValueLongDouble; - TypeIdentifierPair type_ids_MapKeyULongValueLongDouble; QualifiedTypeName type_name_MapKeyULongValueLongDouble = "MapKeyULongValueLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapKeyULongValueLongDouble; eprosima::fastcdr::optional ann_custom_MapKeyULongValueLongDouble; @@ -25972,120 +10190,48 @@ void register_MapKeyULongValueLongDouble_type_identifier( header_MapKeyULongValueLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapKeyULongValueLongDouble); CompleteStructMemberSeq member_seq_MapKeyULongValueLongDouble; { - return_code_MapKeyULongValueLongDouble = + TypeIdentifierPair type_ids_var_map_ulong_longdouble; + ReturnCode_t return_code_var_map_ulong_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_longdouble_unbounded", type_ids_MapKeyULongValueLongDouble); + "anonymous_map_uint32_t_longdouble_unbounded", type_ids_var_map_ulong_longdouble); - if (return_code_MapKeyULongValueLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longdouble) { - return_code_MapKeyULongValueLongDouble = + return_code_var_map_ulong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapKeyULongValueLongDouble); + "_longdouble", type_ids_var_map_ulong_longdouble); - if (return_code_MapKeyULongValueLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longdouble, element_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapKeyULongValueLongDouble = + return_code_var_map_ulong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapKeyULongValueLongDouble); + "_uint32_t", type_ids_var_map_ulong_longdouble); - if (return_code_MapKeyULongValueLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapKeyULongValueLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longdouble, key_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_longdouble_unbounded = EK_BOTH; @@ -26108,68 +10254,21 @@ void register_MapKeyULongValueLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_longdouble_unbounded), key_flags_anonymous_map_uint32_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_longdouble_unbounded", type_ids_var_map_ulong_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapKeyULongValueLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_longdouble_unbounded", type_ids_MapKeyULongValueLongDouble); - if (return_code_MapKeyULongValueLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_longdouble; MemberId member_id_var_map_ulong_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longdouble, member_flags_var_map_ulong_longdouble, type_ids_MapKeyULongValueLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongValueLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongValueLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longdouble, member_flags_var_map_ulong_longdouble, type_ids_MapKeyULongValueLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_longdouble_ec {false}; + CommonStructMember common_var_map_ulong_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_longdouble, member_flags_var_map_ulong_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_longdouble, common_var_map_ulong_longdouble_ec))}; + if (!common_var_map_ulong_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_longdouble = "var_map_ulong_longdouble"; @@ -26181,32 +10280,26 @@ void register_MapKeyULongValueLongDouble_type_identifier( } CompleteStructType struct_type_MapKeyULongValueLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapKeyULongValueLongDouble, header_MapKeyULongValueLongDouble, member_seq_MapKeyULongValueLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongValueLongDouble, type_name_MapKeyULongValueLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongValueLongDouble, type_name_MapKeyULongValueLongDouble.to_string(), type_ids_MapKeyULongValueLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapKeyULongValueLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapKeyULongValueLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapKeyULongValueLongDouble", type_ids_MapKeyULongValueLongDouble); - if (return_code_MapKeyULongValueLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapKeyULongValueLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongBoolean) { + + ReturnCode_t return_code_MapULongBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongBoolean", type_ids_MapULongBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongBoolean) { - StructTypeFlag struct_flags_MapULongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongBoolean; - TypeIdentifierPair type_ids_MapULongBoolean; QualifiedTypeName type_name_MapULongBoolean = "MapULongBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapULongBoolean; eprosima::fastcdr::optional ann_custom_MapULongBoolean; @@ -26215,120 +10308,48 @@ void register_MapULongBoolean_type_identifier( header_MapULongBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongBoolean); CompleteStructMemberSeq member_seq_MapULongBoolean; { - return_code_MapULongBoolean = + TypeIdentifierPair type_ids_var_map_ulong_boolean; + ReturnCode_t return_code_var_map_ulong_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_bool_unbounded", type_ids_MapULongBoolean); + "anonymous_map_uint32_t_bool_unbounded", type_ids_var_map_ulong_boolean); - if (return_code_MapULongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_boolean) { - return_code_MapULongBoolean = + return_code_var_map_ulong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapULongBoolean); + "_bool", type_ids_var_map_ulong_boolean); - if (return_code_MapULongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_boolean, element_identifier_anonymous_map_uint32_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongBoolean = + return_code_var_map_ulong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongBoolean); + "_uint32_t", type_ids_var_map_ulong_boolean); - if (return_code_MapULongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_boolean, key_identifier_anonymous_map_uint32_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_bool_unbounded = EK_BOTH; @@ -26351,68 +10372,21 @@ void register_MapULongBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_bool_unbounded), key_flags_anonymous_map_uint32_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_bool_unbounded", type_ids_var_map_ulong_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_bool_unbounded", type_ids_MapULongBoolean); - if (return_code_MapULongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_boolean; MemberId member_id_var_map_ulong_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_boolean, member_flags_var_map_ulong_boolean, type_ids_MapULongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_boolean, member_flags_var_map_ulong_boolean, type_ids_MapULongBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_boolean_ec {false}; + CommonStructMember common_var_map_ulong_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_boolean, member_flags_var_map_ulong_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_boolean, common_var_map_ulong_boolean_ec))}; + if (!common_var_map_ulong_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_boolean = "var_map_ulong_boolean"; @@ -26424,32 +10398,26 @@ void register_MapULongBoolean_type_identifier( } CompleteStructType struct_type_MapULongBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongBoolean, header_MapULongBoolean, member_seq_MapULongBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongBoolean, type_name_MapULongBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongBoolean, type_name_MapULongBoolean.to_string(), type_ids_MapULongBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongBoolean", type_ids_MapULongBoolean); - if (return_code_MapULongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongOctet) { + + ReturnCode_t return_code_MapULongOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongOctet", type_ids_MapULongOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongOctet) { - StructTypeFlag struct_flags_MapULongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongOctet; - TypeIdentifierPair type_ids_MapULongOctet; QualifiedTypeName type_name_MapULongOctet = "MapULongOctet"; eprosima::fastcdr::optional type_ann_builtin_MapULongOctet; eprosima::fastcdr::optional ann_custom_MapULongOctet; @@ -26458,120 +10426,48 @@ void register_MapULongOctet_type_identifier( header_MapULongOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongOctet); CompleteStructMemberSeq member_seq_MapULongOctet; { - return_code_MapULongOctet = + TypeIdentifierPair type_ids_var_map_ulong_octet; + ReturnCode_t return_code_var_map_ulong_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint8_t_unbounded", type_ids_MapULongOctet); + "anonymous_map_uint32_t_uint8_t_unbounded", type_ids_var_map_ulong_octet); - if (return_code_MapULongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_octet) { - return_code_MapULongOctet = + return_code_var_map_ulong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapULongOctet); + "_byte", type_ids_var_map_ulong_octet); - if (return_code_MapULongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_octet, element_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongOctet = + return_code_var_map_ulong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongOctet); + "_uint32_t", type_ids_var_map_ulong_octet); - if (return_code_MapULongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_octet, key_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_uint8_t_unbounded = EK_BOTH; @@ -26594,68 +10490,21 @@ void register_MapULongOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_uint8_t_unbounded), key_flags_anonymous_map_uint32_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_uint8_t_unbounded", type_ids_var_map_ulong_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_uint8_t_unbounded", type_ids_MapULongOctet); - if (return_code_MapULongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_octet; MemberId member_id_var_map_ulong_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_octet, member_flags_var_map_ulong_octet, type_ids_MapULongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_octet, member_flags_var_map_ulong_octet, type_ids_MapULongOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_octet_ec {false}; + CommonStructMember common_var_map_ulong_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_octet, member_flags_var_map_ulong_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_octet, common_var_map_ulong_octet_ec))}; + if (!common_var_map_ulong_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_octet = "var_map_ulong_octet"; @@ -26667,32 +10516,26 @@ void register_MapULongOctet_type_identifier( } CompleteStructType struct_type_MapULongOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongOctet, header_MapULongOctet, member_seq_MapULongOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongOctet, type_name_MapULongOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongOctet, type_name_MapULongOctet.to_string(), type_ids_MapULongOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongOctet", type_ids_MapULongOctet); - if (return_code_MapULongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongChar) { + + ReturnCode_t return_code_MapULongChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongChar", type_ids_MapULongChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongChar) { - StructTypeFlag struct_flags_MapULongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongChar; - TypeIdentifierPair type_ids_MapULongChar; QualifiedTypeName type_name_MapULongChar = "MapULongChar"; eprosima::fastcdr::optional type_ann_builtin_MapULongChar; eprosima::fastcdr::optional ann_custom_MapULongChar; @@ -26701,120 +10544,48 @@ void register_MapULongChar_type_identifier( header_MapULongChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongChar); CompleteStructMemberSeq member_seq_MapULongChar; { - return_code_MapULongChar = + TypeIdentifierPair type_ids_var_map_ulong_char; + ReturnCode_t return_code_var_map_ulong_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_char_unbounded", type_ids_MapULongChar); + "anonymous_map_uint32_t_char_unbounded", type_ids_var_map_ulong_char); - if (return_code_MapULongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_char) { - return_code_MapULongChar = + return_code_var_map_ulong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapULongChar); + "_char", type_ids_var_map_ulong_char); - if (return_code_MapULongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_char_unbounded = new TypeIdentifier(type_ids_MapULongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_char_unbounded = new TypeIdentifier(type_ids_MapULongChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_char, element_identifier_anonymous_map_uint32_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongChar = + return_code_var_map_ulong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongChar); + "_uint32_t", type_ids_var_map_ulong_char); - if (return_code_MapULongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_char_unbounded = new TypeIdentifier(type_ids_MapULongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_char_unbounded = new TypeIdentifier(type_ids_MapULongChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_char, key_identifier_anonymous_map_uint32_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_char_unbounded = EK_BOTH; @@ -26837,68 +10608,21 @@ void register_MapULongChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_char_unbounded), key_flags_anonymous_map_uint32_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_char_unbounded", type_ids_var_map_ulong_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_char_unbounded", type_ids_MapULongChar); - if (return_code_MapULongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_char; MemberId member_id_var_map_ulong_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_char, member_flags_var_map_ulong_char, type_ids_MapULongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_char, member_flags_var_map_ulong_char, type_ids_MapULongChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_char_ec {false}; + CommonStructMember common_var_map_ulong_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_char, member_flags_var_map_ulong_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_char, common_var_map_ulong_char_ec))}; + if (!common_var_map_ulong_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_char = "var_map_ulong_char"; @@ -26910,32 +10634,26 @@ void register_MapULongChar_type_identifier( } CompleteStructType struct_type_MapULongChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongChar, header_MapULongChar, member_seq_MapULongChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongChar, type_name_MapULongChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongChar, type_name_MapULongChar.to_string(), type_ids_MapULongChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongChar", type_ids_MapULongChar); - if (return_code_MapULongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongWChar) { + + ReturnCode_t return_code_MapULongWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongWChar", type_ids_MapULongWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongWChar) { - StructTypeFlag struct_flags_MapULongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongWChar; - TypeIdentifierPair type_ids_MapULongWChar; QualifiedTypeName type_name_MapULongWChar = "MapULongWChar"; eprosima::fastcdr::optional type_ann_builtin_MapULongWChar; eprosima::fastcdr::optional ann_custom_MapULongWChar; @@ -26944,120 +10662,48 @@ void register_MapULongWChar_type_identifier( header_MapULongWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongWChar); CompleteStructMemberSeq member_seq_MapULongWChar; { - return_code_MapULongWChar = + TypeIdentifierPair type_ids_var_map_ulong_wchar; + ReturnCode_t return_code_var_map_ulong_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_wchar_t_unbounded", type_ids_MapULongWChar); + "anonymous_map_uint32_t_wchar_t_unbounded", type_ids_var_map_ulong_wchar); - if (return_code_MapULongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wchar) { - return_code_MapULongWChar = + return_code_var_map_ulong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapULongWChar); + "_wchar_t", type_ids_var_map_ulong_wchar); - if (return_code_MapULongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wchar, element_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongWChar = + return_code_var_map_ulong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongWChar); + "_uint32_t", type_ids_var_map_ulong_wchar); - if (return_code_MapULongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wchar, key_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_wchar_t_unbounded = EK_BOTH; @@ -27080,68 +10726,21 @@ void register_MapULongWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_wchar_t_unbounded), key_flags_anonymous_map_uint32_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_wchar_t_unbounded", type_ids_var_map_ulong_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_wchar_t_unbounded", type_ids_MapULongWChar); - if (return_code_MapULongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_wchar; MemberId member_id_var_map_ulong_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wchar, member_flags_var_map_ulong_wchar, type_ids_MapULongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wchar, member_flags_var_map_ulong_wchar, type_ids_MapULongWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_wchar_ec {false}; + CommonStructMember common_var_map_ulong_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wchar, member_flags_var_map_ulong_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wchar, common_var_map_ulong_wchar_ec))}; + if (!common_var_map_ulong_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_wchar = "var_map_ulong_wchar"; @@ -27153,32 +10752,26 @@ void register_MapULongWChar_type_identifier( } CompleteStructType struct_type_MapULongWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongWChar, header_MapULongWChar, member_seq_MapULongWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongWChar, type_name_MapULongWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongWChar, type_name_MapULongWChar.to_string(), type_ids_MapULongWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongWChar", type_ids_MapULongWChar); - if (return_code_MapULongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongString) { + + ReturnCode_t return_code_MapULongString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongString", type_ids_MapULongString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongString) { - StructTypeFlag struct_flags_MapULongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongString; - TypeIdentifierPair type_ids_MapULongString; QualifiedTypeName type_name_MapULongString = "MapULongString"; eprosima::fastcdr::optional type_ann_builtin_MapULongString; eprosima::fastcdr::optional ann_custom_MapULongString; @@ -27187,137 +10780,56 @@ void register_MapULongString_type_identifier( header_MapULongString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongString); CompleteStructMemberSeq member_seq_MapULongString; { - return_code_MapULongString = + TypeIdentifierPair type_ids_var_map_ulong_string; + ReturnCode_t return_code_var_map_ulong_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded", type_ids_MapULongString); + "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded", type_ids_var_map_ulong_string); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_string) { - return_code_MapULongString = + return_code_var_map_ulong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapULongString); + "anonymous_string_unbounded", type_ids_var_map_ulong_string); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_ulong_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapULongString); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_string, element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongString = + return_code_var_map_ulong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongString); + "_uint32_t", type_ids_var_map_ulong_string); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_string, key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -27340,68 +10852,21 @@ void register_MapULongString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded", type_ids_var_map_ulong_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded", type_ids_MapULongString); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_string; MemberId member_id_var_map_ulong_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_string, member_flags_var_map_ulong_string, type_ids_MapULongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_string, member_flags_var_map_ulong_string, type_ids_MapULongString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_string_ec {false}; + CommonStructMember common_var_map_ulong_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_string, member_flags_var_map_ulong_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_string, common_var_map_ulong_string_ec))}; + if (!common_var_map_ulong_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_string = "var_map_ulong_string"; @@ -27413,32 +10878,26 @@ void register_MapULongString_type_identifier( } CompleteStructType struct_type_MapULongString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongString, header_MapULongString, member_seq_MapULongString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongString, type_name_MapULongString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongString, type_name_MapULongString.to_string(), type_ids_MapULongString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongString already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongString", type_ids_MapULongString); - if (return_code_MapULongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongWString) { + + ReturnCode_t return_code_MapULongWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongWString", type_ids_MapULongWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongWString) { - StructTypeFlag struct_flags_MapULongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongWString; - TypeIdentifierPair type_ids_MapULongWString; QualifiedTypeName type_name_MapULongWString = "MapULongWString"; eprosima::fastcdr::optional type_ann_builtin_MapULongWString; eprosima::fastcdr::optional ann_custom_MapULongWString; @@ -27447,137 +10906,56 @@ void register_MapULongWString_type_identifier( header_MapULongWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongWString); CompleteStructMemberSeq member_seq_MapULongWString; { - return_code_MapULongWString = + TypeIdentifierPair type_ids_var_map_ulong_wstring; + ReturnCode_t return_code_var_map_ulong_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded", type_ids_MapULongWString); + "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_ulong_wstring); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wstring) { - return_code_MapULongWString = + return_code_var_map_ulong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapULongWString); + "anonymous_wstring_unbounded", type_ids_var_map_ulong_wstring); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_ulong_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapULongWString); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wstring, element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongWString = + return_code_var_map_ulong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongWString); + "_uint32_t", type_ids_var_map_ulong_wstring); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wstring, key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -27600,68 +10978,21 @@ void register_MapULongWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_ulong_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded", type_ids_MapULongWString); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_wstring; MemberId member_id_var_map_ulong_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wstring, member_flags_var_map_ulong_wstring, type_ids_MapULongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wstring, member_flags_var_map_ulong_wstring, type_ids_MapULongWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_wstring_ec {false}; + CommonStructMember common_var_map_ulong_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_wstring, member_flags_var_map_ulong_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_wstring, common_var_map_ulong_wstring_ec))}; + if (!common_var_map_ulong_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_wstring = "var_map_ulong_wstring"; @@ -27673,32 +11004,26 @@ void register_MapULongWString_type_identifier( } CompleteStructType struct_type_MapULongWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongWString, header_MapULongWString, member_seq_MapULongWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongWString, type_name_MapULongWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongWString, type_name_MapULongWString.to_string(), type_ids_MapULongWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongWString", type_ids_MapULongWString); - if (return_code_MapULongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapULongInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasBoundedStringHelper", type_ids_MapULongInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapULongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapULongInnerAliasBoundedStringHelper = "MapULongInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerAliasBoundedStringHelper; @@ -27707,215 +11032,46 @@ void register_MapULongInnerAliasBoundedStringHelper_type_identifier( header_MapULongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapULongInnerAliasBoundedStringHelper; { - return_code_MapULongInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_ulong_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_ulong_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_string_10_unbounded", type_ids_MapULongInnerAliasBoundedStringHelper); + "anonymous_map_uint32_t_anonymous_string_10_unbounded", type_ids_var_map_ulong_inneraliasboundedstringhelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedstringhelper) { - return_code_MapULongInnerAliasBoundedStringHelper = + return_code_var_map_ulong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapULongInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_ulong_inneraliasboundedstringhelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapULongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapULongInnerAliasBoundedStringHelper); - - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapULongInnerAliasBoundedStringHelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapULongInnerAliasBoundedStringHelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_ulong_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedstringhelper, element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasBoundedStringHelper = + return_code_var_map_ulong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasBoundedStringHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliasboundedstringhelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedstringhelper, key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_string_10_unbounded = EK_BOTH; @@ -27938,68 +11094,21 @@ void register_MapULongInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded), key_flags_anonymous_map_uint32_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_string_10_unbounded", type_ids_var_map_ulong_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_string_10_unbounded", type_ids_MapULongInnerAliasBoundedStringHelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliasboundedstringhelper; MemberId member_id_var_map_ulong_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedstringhelper, member_flags_var_map_ulong_inneraliasboundedstringhelper, type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedstringhelper, member_flags_var_map_ulong_inneraliasboundedstringhelper, type_ids_MapULongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedstringhelper, member_flags_var_map_ulong_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedstringhelper, common_var_map_ulong_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_ulong_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliasboundedstringhelper = "var_map_ulong_inneraliasboundedstringhelper"; @@ -28011,32 +11120,26 @@ void register_MapULongInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasBoundedStringHelper, header_MapULongInnerAliasBoundedStringHelper, member_seq_MapULongInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasBoundedStringHelper, type_name_MapULongInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasBoundedStringHelper, type_name_MapULongInnerAliasBoundedStringHelper.to_string(), type_ids_MapULongInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasBoundedStringHelper", type_ids_MapULongInnerAliasBoundedStringHelper); - if (return_code_MapULongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapULongInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasBoundedWStringHelper", type_ids_MapULongInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapULongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapULongInnerAliasBoundedWStringHelper = "MapULongInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerAliasBoundedWStringHelper; @@ -28045,215 +11148,46 @@ void register_MapULongInnerAliasBoundedWStringHelper_type_identifier( header_MapULongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapULongInnerAliasBoundedWStringHelper; { - return_code_MapULongInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_ulong_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_ulong_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_wstring_10_unbounded", type_ids_MapULongInnerAliasBoundedWStringHelper); + "anonymous_map_uint32_t_anonymous_wstring_10_unbounded", type_ids_var_map_ulong_inneraliasboundedwstringhelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedwstringhelper) { - return_code_MapULongInnerAliasBoundedWStringHelper = + return_code_var_map_ulong_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapULongInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_ulong_inneraliasboundedwstringhelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapULongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapULongInnerAliasBoundedWStringHelper); - - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapULongInnerAliasBoundedWStringHelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapULongInnerAliasBoundedWStringHelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_ulong_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedwstringhelper, element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasBoundedWStringHelper = + return_code_var_map_ulong_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasBoundedWStringHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliasboundedwstringhelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasboundedwstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedwstringhelper, key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -28276,68 +11210,21 @@ void register_MapULongInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_uint32_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_wstring_10_unbounded", type_ids_var_map_ulong_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_wstring_10_unbounded", type_ids_MapULongInnerAliasBoundedWStringHelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliasboundedwstringhelper; MemberId member_id_var_map_ulong_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedwstringhelper, member_flags_var_map_ulong_inneraliasboundedwstringhelper, type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedwstringhelper, member_flags_var_map_ulong_inneraliasboundedwstringhelper, type_ids_MapULongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasboundedwstringhelper, member_flags_var_map_ulong_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasboundedwstringhelper, common_var_map_ulong_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_ulong_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliasboundedwstringhelper = "var_map_ulong_inneraliasboundedwstringhelper"; @@ -28349,32 +11236,26 @@ void register_MapULongInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasBoundedWStringHelper, header_MapULongInnerAliasBoundedWStringHelper, member_seq_MapULongInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasBoundedWStringHelper, type_name_MapULongInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasBoundedWStringHelper, type_name_MapULongInnerAliasBoundedWStringHelper.to_string(), type_ids_MapULongInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasBoundedWStringHelper", type_ids_MapULongInnerAliasBoundedWStringHelper); - if (return_code_MapULongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerEnumHelper) { + + ReturnCode_t return_code_MapULongInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerEnumHelper", type_ids_MapULongInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerEnumHelper) { - StructTypeFlag struct_flags_MapULongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerEnumHelper; - TypeIdentifierPair type_ids_MapULongInnerEnumHelper; QualifiedTypeName type_name_MapULongInnerEnumHelper = "MapULongInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerEnumHelper; @@ -28383,173 +11264,46 @@ void register_MapULongInnerEnumHelper_type_identifier( header_MapULongInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerEnumHelper); CompleteStructMemberSeq member_seq_MapULongInnerEnumHelper; { - return_code_MapULongInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_ulong_innerenumhelper; + ReturnCode_t return_code_var_map_ulong_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerEnumHelper_unbounded", type_ids_MapULongInnerEnumHelper); + "anonymous_map_uint32_t_InnerEnumHelper_unbounded", type_ids_var_map_ulong_innerenumhelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerenumhelper) { - return_code_MapULongInnerEnumHelper = + return_code_var_map_ulong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapULongInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_ulong_innerenumhelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapULongInnerEnumHelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_ulong_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerenumhelper, element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerEnumHelper = + return_code_var_map_ulong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerEnumHelper); + "_uint32_t", type_ids_var_map_ulong_innerenumhelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerenumhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerenumhelper, key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -28572,68 +11326,21 @@ void register_MapULongInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerEnumHelper_unbounded", type_ids_var_map_ulong_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerEnumHelper_unbounded", type_ids_MapULongInnerEnumHelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_innerenumhelper; MemberId member_id_var_map_ulong_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerenumhelper, member_flags_var_map_ulong_innerenumhelper, type_ids_MapULongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerenumhelper, member_flags_var_map_ulong_innerenumhelper, type_ids_MapULongInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_innerenumhelper_ec {false}; + CommonStructMember common_var_map_ulong_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerenumhelper, member_flags_var_map_ulong_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerenumhelper, common_var_map_ulong_innerenumhelper_ec))}; + if (!common_var_map_ulong_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_innerenumhelper = "var_map_ulong_innerenumhelper"; @@ -28645,32 +11352,26 @@ void register_MapULongInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerEnumHelper, header_MapULongInnerEnumHelper, member_seq_MapULongInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerEnumHelper, type_name_MapULongInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerEnumHelper, type_name_MapULongInnerEnumHelper.to_string(), type_ids_MapULongInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerEnumHelper", type_ids_MapULongInnerEnumHelper); - if (return_code_MapULongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerBitMaskHelper) { + + ReturnCode_t return_code_MapULongInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerBitMaskHelper", type_ids_MapULongInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapULongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapULongInnerBitMaskHelper; QualifiedTypeName type_name_MapULongInnerBitMaskHelper = "MapULongInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerBitMaskHelper; @@ -28679,206 +11380,46 @@ void register_MapULongInnerBitMaskHelper_type_identifier( header_MapULongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapULongInnerBitMaskHelper; { - return_code_MapULongInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_ulong_innerbitmaskhelper; + ReturnCode_t return_code_var_map_ulong_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded", type_ids_MapULongInnerBitMaskHelper); + "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded", type_ids_var_map_ulong_innerbitmaskhelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitmaskhelper) { - return_code_MapULongInnerBitMaskHelper = + return_code_var_map_ulong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapULongInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_ulong_innerbitmaskhelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapULongInnerBitMaskHelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_ulong_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitmaskhelper, element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerBitMaskHelper = + return_code_var_map_ulong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerBitMaskHelper); + "_uint32_t", type_ids_var_map_ulong_innerbitmaskhelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitmaskhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitmaskhelper, key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -28901,68 +11442,21 @@ void register_MapULongInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded", type_ids_var_map_ulong_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded", type_ids_MapULongInnerBitMaskHelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_innerbitmaskhelper; MemberId member_id_var_map_ulong_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitmaskhelper, member_flags_var_map_ulong_innerbitmaskhelper, type_ids_MapULongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitmaskhelper, member_flags_var_map_ulong_innerbitmaskhelper, type_ids_MapULongInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_ulong_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitmaskhelper, member_flags_var_map_ulong_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitmaskhelper, common_var_map_ulong_innerbitmaskhelper_ec))}; + if (!common_var_map_ulong_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_innerbitmaskhelper = "var_map_ulong_innerbitmaskhelper"; @@ -28974,32 +11468,26 @@ void register_MapULongInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerBitMaskHelper, header_MapULongInnerBitMaskHelper, member_seq_MapULongInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerBitMaskHelper, type_name_MapULongInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerBitMaskHelper, type_name_MapULongInnerBitMaskHelper.to_string(), type_ids_MapULongInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerBitMaskHelper", type_ids_MapULongInnerBitMaskHelper); - if (return_code_MapULongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasHelper) { + + ReturnCode_t return_code_MapULongInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasHelper", type_ids_MapULongInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasHelper) { - StructTypeFlag struct_flags_MapULongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerAliasHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasHelper; QualifiedTypeName type_name_MapULongInnerAliasHelper = "MapULongInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerAliasHelper; @@ -29008,198 +11496,46 @@ void register_MapULongInnerAliasHelper_type_identifier( header_MapULongInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasHelper); CompleteStructMemberSeq member_seq_MapULongInnerAliasHelper; { - return_code_MapULongInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_ulong_inneraliashelper; + ReturnCode_t return_code_var_map_ulong_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerAliasHelper_unbounded", type_ids_MapULongInnerAliasHelper); + "anonymous_map_uint32_t_InnerAliasHelper_unbounded", type_ids_var_map_ulong_inneraliashelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliashelper) { - return_code_MapULongInnerAliasHelper = + return_code_var_map_ulong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapULongInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_ulong_inneraliashelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapULongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongInnerAliasHelper); - - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapULongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapULongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapULongInnerAliasHelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_ulong_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliashelper, element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasHelper = + return_code_var_map_ulong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliashelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliashelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliashelper, key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -29222,68 +11558,21 @@ void register_MapULongInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerAliasHelper_unbounded", type_ids_var_map_ulong_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerAliasHelper_unbounded", type_ids_MapULongInnerAliasHelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliashelper; MemberId member_id_var_map_ulong_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliashelper, member_flags_var_map_ulong_inneraliashelper, type_ids_MapULongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliashelper, member_flags_var_map_ulong_inneraliashelper, type_ids_MapULongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliashelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliashelper, member_flags_var_map_ulong_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliashelper, common_var_map_ulong_inneraliashelper_ec))}; + if (!common_var_map_ulong_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliashelper = "var_map_ulong_inneraliashelper"; @@ -29295,313 +11584,74 @@ void register_MapULongInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasHelper, header_MapULongInnerAliasHelper, member_seq_MapULongInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasHelper, type_name_MapULongInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasHelper, type_name_MapULongInnerAliasHelper.to_string(), type_ids_MapULongInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasHelper", type_ids_MapULongInnerAliasHelper); - if (return_code_MapULongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasArrayHelper) { - { - StructTypeFlag struct_flags_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_MapULongInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasArrayHelper; - QualifiedTypeName type_name_MapULongInnerAliasArrayHelper = "MapULongInnerAliasArrayHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasArrayHelper; - eprosima::fastcdr::optional ann_custom_MapULongInnerAliasArrayHelper; - CompleteTypeDetail detail_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapULongInnerAliasArrayHelper, ann_custom_MapULongInnerAliasArrayHelper, type_name_MapULongInnerAliasArrayHelper.to_string()); - CompleteStructHeader header_MapULongInnerAliasArrayHelper; - header_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasArrayHelper); - CompleteStructMemberSeq member_seq_MapULongInnerAliasArrayHelper; - { - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded", type_ids_MapULongInnerAliasArrayHelper); - - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapULongInnerAliasArrayHelper); - - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapULongInnerAliasArrayHelper); - - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongInnerAliasArrayHelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapULongInnerAliasArrayHelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapULongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapULongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapULongInnerAliasArrayHelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ReturnCode_t return_code_MapULongInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasArrayHelper", type_ids_MapULongInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasArrayHelper) + { + StructTypeFlag struct_flags_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_MapULongInnerAliasArrayHelper = "MapULongInnerAliasArrayHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasArrayHelper; + eprosima::fastcdr::optional ann_custom_MapULongInnerAliasArrayHelper; + CompleteTypeDetail detail_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapULongInnerAliasArrayHelper, ann_custom_MapULongInnerAliasArrayHelper, type_name_MapULongInnerAliasArrayHelper.to_string()); + CompleteStructHeader header_MapULongInnerAliasArrayHelper; + header_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasArrayHelper); + CompleteStructMemberSeq member_seq_MapULongInnerAliasArrayHelper; + { + TypeIdentifierPair type_ids_var_map_ulong_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_ulong_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliasarrayhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_ulong_inneraliasarrayhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasarrayhelper) + { + return_code_var_map_ulong_inneraliasarrayhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_array_helper", type_ids_var_map_ulong_inneraliasarrayhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasarrayhelper) + { + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_ulong_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasarrayhelper, element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasArrayHelper = + return_code_var_map_ulong_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasArrayHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliasarrayhelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasarrayhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasarrayhelper, key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -29624,68 +11674,21 @@ void register_MapULongInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_ulong_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded", type_ids_MapULongInnerAliasArrayHelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliasarrayhelper; MemberId member_id_var_map_ulong_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasarrayhelper, member_flags_var_map_ulong_inneraliasarrayhelper, type_ids_MapULongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasarrayhelper, member_flags_var_map_ulong_inneraliasarrayhelper, type_ids_MapULongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasarrayhelper, member_flags_var_map_ulong_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasarrayhelper, common_var_map_ulong_inneraliasarrayhelper_ec))}; + if (!common_var_map_ulong_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliasarrayhelper = "var_map_ulong_inneraliasarrayhelper"; @@ -29697,32 +11700,26 @@ void register_MapULongInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasArrayHelper, header_MapULongInnerAliasArrayHelper, member_seq_MapULongInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasArrayHelper, type_name_MapULongInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasArrayHelper, type_name_MapULongInnerAliasArrayHelper.to_string(), type_ids_MapULongInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasArrayHelper", type_ids_MapULongInnerAliasArrayHelper); - if (return_code_MapULongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapULongInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasSequenceHelper", type_ids_MapULongInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapULongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasSequenceHelper; QualifiedTypeName type_name_MapULongInnerAliasSequenceHelper = "MapULongInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerAliasSequenceHelper; @@ -29731,277 +11728,46 @@ void register_MapULongInnerAliasSequenceHelper_type_identifier( header_MapULongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapULongInnerAliasSequenceHelper; { - return_code_MapULongInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_ulong_inneraliassequencehelper; + ReturnCode_t return_code_var_map_ulong_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapULongInnerAliasSequenceHelper); + "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_ulong_inneraliassequencehelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliassequencehelper) { - return_code_MapULongInnerAliasSequenceHelper = + return_code_var_map_ulong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapULongInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_ulong_inneraliassequencehelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapULongInnerAliasSequenceHelper); - - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongInnerAliasSequenceHelper); - - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapULongInnerAliasSequenceHelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapULongInnerAliasSequenceHelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_ulong_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliassequencehelper, element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasSequenceHelper = + return_code_var_map_ulong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasSequenceHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliassequencehelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliassequencehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliassequencehelper, key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -30024,68 +11790,21 @@ void register_MapULongInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_ulong_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapULongInnerAliasSequenceHelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliassequencehelper; MemberId member_id_var_map_ulong_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliassequencehelper, member_flags_var_map_ulong_inneraliassequencehelper, type_ids_MapULongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliassequencehelper, member_flags_var_map_ulong_inneraliassequencehelper, type_ids_MapULongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliassequencehelper, member_flags_var_map_ulong_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliassequencehelper, common_var_map_ulong_inneraliassequencehelper_ec))}; + if (!common_var_map_ulong_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliassequencehelper = "var_map_ulong_inneraliassequencehelper"; @@ -30097,32 +11816,26 @@ void register_MapULongInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasSequenceHelper, header_MapULongInnerAliasSequenceHelper, member_seq_MapULongInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasSequenceHelper, type_name_MapULongInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasSequenceHelper, type_name_MapULongInnerAliasSequenceHelper.to_string(), type_ids_MapULongInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasSequenceHelper", type_ids_MapULongInnerAliasSequenceHelper); - if (return_code_MapULongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerAliasMapHelper) { + + ReturnCode_t return_code_MapULongInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerAliasMapHelper", type_ids_MapULongInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapULongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapULongInnerAliasMapHelper; QualifiedTypeName type_name_MapULongInnerAliasMapHelper = "MapULongInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerAliasMapHelper; @@ -30131,340 +11844,46 @@ void register_MapULongInnerAliasMapHelper_type_identifier( header_MapULongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapULongInnerAliasMapHelper; { - return_code_MapULongInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_ulong_inneraliasmaphelper; + ReturnCode_t return_code_var_map_ulong_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapULongInnerAliasMapHelper); + "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_ulong_inneraliasmaphelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasmaphelper) { - return_code_MapULongInnerAliasMapHelper = + return_code_var_map_ulong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapULongInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_ulong_inneraliasmaphelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapULongInnerAliasMapHelper); - - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongInnerAliasMapHelper); - - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongInnerAliasMapHelper); - - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapULongInnerAliasMapHelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapULongInnerAliasMapHelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_ulong_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasmaphelper, element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerAliasMapHelper = + return_code_var_map_ulong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerAliasMapHelper); + "_uint32_t", type_ids_var_map_ulong_inneraliasmaphelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_inneraliasmaphelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasmaphelper, key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -30487,68 +11906,21 @@ void register_MapULongInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_ulong_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapULongInnerAliasMapHelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_inneraliasmaphelper; MemberId member_id_var_map_ulong_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasmaphelper, member_flags_var_map_ulong_inneraliasmaphelper, type_ids_MapULongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasmaphelper, member_flags_var_map_ulong_inneraliasmaphelper, type_ids_MapULongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_ulong_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_inneraliasmaphelper, member_flags_var_map_ulong_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_inneraliasmaphelper, common_var_map_ulong_inneraliasmaphelper_ec))}; + if (!common_var_map_ulong_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_inneraliasmaphelper = "var_map_ulong_inneraliasmaphelper"; @@ -30560,32 +11932,26 @@ void register_MapULongInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerAliasMapHelper, header_MapULongInnerAliasMapHelper, member_seq_MapULongInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasMapHelper, type_name_MapULongInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerAliasMapHelper, type_name_MapULongInnerAliasMapHelper.to_string(), type_ids_MapULongInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerAliasMapHelper", type_ids_MapULongInnerAliasMapHelper); - if (return_code_MapULongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerUnionHelper) { + + ReturnCode_t return_code_MapULongInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerUnionHelper", type_ids_MapULongInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerUnionHelper) { - StructTypeFlag struct_flags_MapULongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerUnionHelper; - TypeIdentifierPair type_ids_MapULongInnerUnionHelper; QualifiedTypeName type_name_MapULongInnerUnionHelper = "MapULongInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerUnionHelper; @@ -30594,397 +11960,46 @@ void register_MapULongInnerUnionHelper_type_identifier( header_MapULongInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerUnionHelper); CompleteStructMemberSeq member_seq_MapULongInnerUnionHelper; { - return_code_MapULongInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_ulong_innerunionhelper; + ReturnCode_t return_code_var_map_ulong_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerUnionHelper_unbounded", type_ids_MapULongInnerUnionHelper); + "anonymous_map_uint32_t_InnerUnionHelper_unbounded", type_ids_var_map_ulong_innerunionhelper); - if (return_code_MapULongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerunionhelper) { - return_code_MapULongInnerUnionHelper = + return_code_var_map_ulong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapULongInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_ulong_innerunionhelper); - if (return_code_MapULongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapULongInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_ulong_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerunionhelper, element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerUnionHelper = + return_code_var_map_ulong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerUnionHelper); + "_uint32_t", type_ids_var_map_ulong_innerunionhelper); - if (return_code_MapULongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerunionhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerunionhelper, key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -31007,68 +12022,21 @@ void register_MapULongInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerUnionHelper_unbounded", type_ids_var_map_ulong_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerUnionHelper_unbounded", type_ids_MapULongInnerUnionHelper); - if (return_code_MapULongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_innerunionhelper; MemberId member_id_var_map_ulong_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerunionhelper, member_flags_var_map_ulong_innerunionhelper, type_ids_MapULongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerunionhelper, member_flags_var_map_ulong_innerunionhelper, type_ids_MapULongInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_innerunionhelper_ec {false}; + CommonStructMember common_var_map_ulong_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerunionhelper, member_flags_var_map_ulong_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerunionhelper, common_var_map_ulong_innerunionhelper_ec))}; + if (!common_var_map_ulong_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_innerunionhelper = "var_map_ulong_innerunionhelper"; @@ -31080,32 +12048,26 @@ void register_MapULongInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerUnionHelper, header_MapULongInnerUnionHelper, member_seq_MapULongInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerUnionHelper, type_name_MapULongInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerUnionHelper, type_name_MapULongInnerUnionHelper.to_string(), type_ids_MapULongInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerUnionHelper", type_ids_MapULongInnerUnionHelper); - if (return_code_MapULongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerStructureHelper) { + + ReturnCode_t return_code_MapULongInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerStructureHelper", type_ids_MapULongInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerStructureHelper) { - StructTypeFlag struct_flags_MapULongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerStructureHelper; - TypeIdentifierPair type_ids_MapULongInnerStructureHelper; QualifiedTypeName type_name_MapULongInnerStructureHelper = "MapULongInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerStructureHelper; @@ -31114,287 +12076,46 @@ void register_MapULongInnerStructureHelper_type_identifier( header_MapULongInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerStructureHelper); CompleteStructMemberSeq member_seq_MapULongInnerStructureHelper; { - return_code_MapULongInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_ulong_innerstructurehelper; + ReturnCode_t return_code_var_map_ulong_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerStructureHelper_unbounded", type_ids_MapULongInnerStructureHelper); + "anonymous_map_uint32_t_InnerStructureHelper_unbounded", type_ids_var_map_ulong_innerstructurehelper); - if (return_code_MapULongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerstructurehelper) { - return_code_MapULongInnerStructureHelper = + return_code_var_map_ulong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapULongInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_ulong_innerstructurehelper); - if (return_code_MapULongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapULongInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_ulong_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerstructurehelper, element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerStructureHelper = + return_code_var_map_ulong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerStructureHelper); + "_uint32_t", type_ids_var_map_ulong_innerstructurehelper); - if (return_code_MapULongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerstructurehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerstructurehelper, key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -31417,68 +12138,21 @@ void register_MapULongInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerStructureHelper_unbounded", type_ids_var_map_ulong_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerStructureHelper_unbounded", type_ids_MapULongInnerStructureHelper); - if (return_code_MapULongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_innerstructurehelper; MemberId member_id_var_map_ulong_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerstructurehelper, member_flags_var_map_ulong_innerstructurehelper, type_ids_MapULongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerstructurehelper, member_flags_var_map_ulong_innerstructurehelper, type_ids_MapULongInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_ulong_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerstructurehelper, member_flags_var_map_ulong_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerstructurehelper, common_var_map_ulong_innerstructurehelper_ec))}; + if (!common_var_map_ulong_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_innerstructurehelper = "var_map_ulong_innerstructurehelper"; @@ -31490,32 +12164,26 @@ void register_MapULongInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerStructureHelper, header_MapULongInnerStructureHelper, member_seq_MapULongInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerStructureHelper, type_name_MapULongInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerStructureHelper, type_name_MapULongInnerStructureHelper.to_string(), type_ids_MapULongInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerStructureHelper", type_ids_MapULongInnerStructureHelper); - if (return_code_MapULongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongInnerBitsetHelper) { + + ReturnCode_t return_code_MapULongInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongInnerBitsetHelper", type_ids_MapULongInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongInnerBitsetHelper) { - StructTypeFlag struct_flags_MapULongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongInnerBitsetHelper; - TypeIdentifierPair type_ids_MapULongInnerBitsetHelper; QualifiedTypeName type_name_MapULongInnerBitsetHelper = "MapULongInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapULongInnerBitsetHelper; @@ -31524,192 +12192,46 @@ void register_MapULongInnerBitsetHelper_type_identifier( header_MapULongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapULongInnerBitsetHelper; { - return_code_MapULongInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_ulong_innerbitsethelper; + ReturnCode_t return_code_var_map_ulong_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_ulong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerBitsetHelper_unbounded", type_ids_MapULongInnerBitsetHelper); + "anonymous_map_uint32_t_InnerBitsetHelper_unbounded", type_ids_var_map_ulong_innerbitsethelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitsethelper) { - return_code_MapULongInnerBitsetHelper = + return_code_var_map_ulong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapULongInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_ulong_innerbitsethelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapULongInnerBitsetHelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_ulong_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitsethelper, element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongInnerBitsetHelper = + return_code_var_map_ulong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongInnerBitsetHelper); + "_uint32_t", type_ids_var_map_ulong_innerbitsethelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_ulong_innerbitsethelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitsethelper, key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint32_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -31732,68 +12254,21 @@ void register_MapULongInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_uint32_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint32_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint32_t_InnerBitsetHelper_unbounded", type_ids_var_map_ulong_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint32_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint32_t_InnerBitsetHelper_unbounded", type_ids_MapULongInnerBitsetHelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint32_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_ulong_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_ulong_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_ulong_innerbitsethelper; MemberId member_id_var_map_ulong_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitsethelper, member_flags_var_map_ulong_innerbitsethelper, type_ids_MapULongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_ulong_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitsethelper, member_flags_var_map_ulong_innerbitsethelper, type_ids_MapULongInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_ulong_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_ulong_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_ulong_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_ulong_innerbitsethelper, member_flags_var_map_ulong_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_ulong_innerbitsethelper, common_var_map_ulong_innerbitsethelper_ec))}; + if (!common_var_map_ulong_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_ulong_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_ulong_innerbitsethelper = "var_map_ulong_innerbitsethelper"; @@ -31805,32 +12280,26 @@ void register_MapULongInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapULongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongInnerBitsetHelper, header_MapULongInnerBitsetHelper, member_seq_MapULongInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerBitsetHelper, type_name_MapULongInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongInnerBitsetHelper, type_name_MapULongInnerBitsetHelper.to_string(), type_ids_MapULongInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongInnerBitsetHelper", type_ids_MapULongInnerBitsetHelper); - if (return_code_MapULongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongShort) { + + ReturnCode_t return_code_MapLongLongShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongShort", type_ids_MapLongLongShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongShort) { - StructTypeFlag struct_flags_MapLongLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongShort; - TypeIdentifierPair type_ids_MapLongLongShort; QualifiedTypeName type_name_MapLongLongShort = "MapLongLongShort"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongShort; eprosima::fastcdr::optional ann_custom_MapLongLongShort; @@ -31839,120 +12308,48 @@ void register_MapLongLongShort_type_identifier( header_MapLongLongShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongShort); CompleteStructMemberSeq member_seq_MapLongLongShort; { - return_code_MapLongLongShort = + TypeIdentifierPair type_ids_var_map_longlong_short; + ReturnCode_t return_code_var_map_longlong_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int16_t_unbounded", type_ids_MapLongLongShort); + "anonymous_map_int64_t_int16_t_unbounded", type_ids_var_map_longlong_short); - if (return_code_MapLongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_short) { - return_code_MapLongLongShort = + return_code_var_map_longlong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongLongShort); + "_int16_t", type_ids_var_map_longlong_short); - if (return_code_MapLongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_short, element_identifier_anonymous_map_int64_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongShort = + return_code_var_map_longlong_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongShort); + "_int64_t", type_ids_var_map_longlong_short); - if (return_code_MapLongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_short, key_identifier_anonymous_map_int64_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_int16_t_unbounded = EK_BOTH; @@ -31975,68 +12372,21 @@ void register_MapLongLongShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_int16_t_unbounded), key_flags_anonymous_map_int64_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int16_t_unbounded", type_ids_var_map_longlong_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int16_t_unbounded", type_ids_MapLongLongShort); - if (return_code_MapLongLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_short; MemberId member_id_var_map_longlong_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_short, member_flags_var_map_longlong_short, type_ids_MapLongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_short, member_flags_var_map_longlong_short, type_ids_MapLongLongShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_short_ec {false}; + CommonStructMember common_var_map_longlong_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_short, member_flags_var_map_longlong_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_short, common_var_map_longlong_short_ec))}; + if (!common_var_map_longlong_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_short = "var_map_longlong_short"; @@ -32048,32 +12398,26 @@ void register_MapLongLongShort_type_identifier( } CompleteStructType struct_type_MapLongLongShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongShort, header_MapLongLongShort, member_seq_MapLongLongShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongShort, type_name_MapLongLongShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongShort, type_name_MapLongLongShort.to_string(), type_ids_MapLongLongShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongShort", type_ids_MapLongLongShort); - if (return_code_MapLongLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongUShort) { + + ReturnCode_t return_code_MapLongLongUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongUShort", type_ids_MapLongLongUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongUShort) { - StructTypeFlag struct_flags_MapLongLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongUShort; - TypeIdentifierPair type_ids_MapLongLongUShort; QualifiedTypeName type_name_MapLongLongUShort = "MapLongLongUShort"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongUShort; eprosima::fastcdr::optional ann_custom_MapLongLongUShort; @@ -32082,120 +12426,48 @@ void register_MapLongLongUShort_type_identifier( header_MapLongLongUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongUShort); CompleteStructMemberSeq member_seq_MapLongLongUShort; { - return_code_MapLongLongUShort = + TypeIdentifierPair type_ids_var_map_longlong_ushort; + ReturnCode_t return_code_var_map_longlong_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint16_t_unbounded", type_ids_MapLongLongUShort); + "anonymous_map_int64_t_uint16_t_unbounded", type_ids_var_map_longlong_ushort); - if (return_code_MapLongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ushort) { - return_code_MapLongLongUShort = + return_code_var_map_longlong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapLongLongUShort); + "_uint16_t", type_ids_var_map_longlong_ushort); - if (return_code_MapLongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ushort, element_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongUShort = + return_code_var_map_longlong_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongUShort); + "_int64_t", type_ids_var_map_longlong_ushort); - if (return_code_MapLongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ushort, key_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_uint16_t_unbounded = EK_BOTH; @@ -32218,68 +12490,21 @@ void register_MapLongLongUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_uint16_t_unbounded), key_flags_anonymous_map_int64_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint16_t_unbounded", type_ids_MapLongLongUShort); - if (return_code_MapLongLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint16_t_unbounded", type_ids_var_map_longlong_ushort)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_int64_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - StructMemberFlag member_flags_var_map_longlong_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_ushort; MemberId member_id_var_map_longlong_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ushort, member_flags_var_map_longlong_ushort, type_ids_MapLongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ushort, member_flags_var_map_longlong_ushort, type_ids_MapLongLongUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_ushort_ec {false}; + CommonStructMember common_var_map_longlong_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ushort, member_flags_var_map_longlong_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ushort, common_var_map_longlong_ushort_ec))}; + if (!common_var_map_longlong_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_ushort = "var_map_longlong_ushort"; @@ -32291,32 +12516,26 @@ void register_MapLongLongUShort_type_identifier( } CompleteStructType struct_type_MapLongLongUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongUShort, header_MapLongLongUShort, member_seq_MapLongLongUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongUShort, type_name_MapLongLongUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongUShort, type_name_MapLongLongUShort.to_string(), type_ids_MapLongLongUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongUShort", type_ids_MapLongLongUShort); - if (return_code_MapLongLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongKeyLongValue_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongKeyLongValue) { + + ReturnCode_t return_code_MapLongLongKeyLongValue {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongKeyLongValue = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongKeyLongValue", type_ids_MapLongLongKeyLongValue); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongKeyLongValue) { - StructTypeFlag struct_flags_MapLongLongKeyLongValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongKeyLongValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongKeyLongValue; - TypeIdentifierPair type_ids_MapLongLongKeyLongValue; QualifiedTypeName type_name_MapLongLongKeyLongValue = "MapLongLongKeyLongValue"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongKeyLongValue; eprosima::fastcdr::optional ann_custom_MapLongLongKeyLongValue; @@ -32325,120 +12544,48 @@ void register_MapLongLongKeyLongValue_type_identifier( header_MapLongLongKeyLongValue = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongKeyLongValue); CompleteStructMemberSeq member_seq_MapLongLongKeyLongValue; { - return_code_MapLongLongKeyLongValue = + TypeIdentifierPair type_ids_var_map_longlong_long; + ReturnCode_t return_code_var_map_longlong_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int32_t_unbounded", type_ids_MapLongLongKeyLongValue); + "anonymous_map_int64_t_int32_t_unbounded", type_ids_var_map_longlong_long); - if (return_code_MapLongLongKeyLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_long) { - return_code_MapLongLongKeyLongValue = + return_code_var_map_longlong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLongKeyLongValue); + "_int32_t", type_ids_var_map_longlong_long); - if (return_code_MapLongLongKeyLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyLongValue.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_long, element_identifier_anonymous_map_int64_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongKeyLongValue = + return_code_var_map_longlong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongKeyLongValue); + "_int64_t", type_ids_var_map_longlong_long); - if (return_code_MapLongLongKeyLongValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyLongValue.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_long, key_identifier_anonymous_map_int64_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_int32_t_unbounded = EK_BOTH; @@ -32461,68 +12608,21 @@ void register_MapLongLongKeyLongValue_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_int32_t_unbounded), key_flags_anonymous_map_int64_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int32_t_unbounded", type_ids_var_map_longlong_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongKeyLongValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int32_t_unbounded", type_ids_MapLongLongKeyLongValue); - if (return_code_MapLongLongKeyLongValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_long; MemberId member_id_var_map_longlong_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_long, member_flags_var_map_longlong_long, type_ids_MapLongLongKeyLongValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyLongValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyLongValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_long, member_flags_var_map_longlong_long, type_ids_MapLongLongKeyLongValue.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_long_ec {false}; + CommonStructMember common_var_map_longlong_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_long, member_flags_var_map_longlong_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_long, common_var_map_longlong_long_ec))}; + if (!common_var_map_longlong_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_long = "var_map_longlong_long"; @@ -32534,32 +12634,26 @@ void register_MapLongLongKeyLongValue_type_identifier( } CompleteStructType struct_type_MapLongLongKeyLongValue = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongKeyLongValue, header_MapLongLongKeyLongValue, member_seq_MapLongLongKeyLongValue); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongKeyLongValue, type_name_MapLongLongKeyLongValue.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongKeyLongValue, type_name_MapLongLongKeyLongValue.to_string(), type_ids_MapLongLongKeyLongValue)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongKeyLongValue already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongKeyLongValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongKeyLongValue", type_ids_MapLongLongKeyLongValue); - if (return_code_MapLongLongKeyLongValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongKeyLongValue: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongULong) { + + ReturnCode_t return_code_MapLongLongULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongULong", type_ids_MapLongLongULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongULong) { - StructTypeFlag struct_flags_MapLongLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongULong; - TypeIdentifierPair type_ids_MapLongLongULong; QualifiedTypeName type_name_MapLongLongULong = "MapLongLongULong"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongULong; eprosima::fastcdr::optional ann_custom_MapLongLongULong; @@ -32568,120 +12662,48 @@ void register_MapLongLongULong_type_identifier( header_MapLongLongULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongULong); CompleteStructMemberSeq member_seq_MapLongLongULong; { - return_code_MapLongLongULong = + TypeIdentifierPair type_ids_var_map_longlong_ulong; + ReturnCode_t return_code_var_map_longlong_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint32_t_unbounded", type_ids_MapLongLongULong); + "anonymous_map_int64_t_uint32_t_unbounded", type_ids_var_map_longlong_ulong); - if (return_code_MapLongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulong) { - return_code_MapLongLongULong = + return_code_var_map_longlong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapLongLongULong); + "_uint32_t", type_ids_var_map_longlong_ulong); - if (return_code_MapLongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulong, element_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongULong = + return_code_var_map_longlong_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongULong); + "_int64_t", type_ids_var_map_longlong_ulong); - if (return_code_MapLongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulong, key_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_uint32_t_unbounded = EK_BOTH; @@ -32704,68 +12726,21 @@ void register_MapLongLongULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_uint32_t_unbounded), key_flags_anonymous_map_int64_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint32_t_unbounded", type_ids_var_map_longlong_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint32_t_unbounded", type_ids_MapLongLongULong); - if (return_code_MapLongLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_ulong; MemberId member_id_var_map_longlong_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulong, member_flags_var_map_longlong_ulong, type_ids_MapLongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulong, member_flags_var_map_longlong_ulong, type_ids_MapLongLongULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_ulong_ec {false}; + CommonStructMember common_var_map_longlong_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulong, member_flags_var_map_longlong_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulong, common_var_map_longlong_ulong_ec))}; + if (!common_var_map_longlong_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_ulong = "var_map_longlong_ulong"; @@ -32777,32 +12752,26 @@ void register_MapLongLongULong_type_identifier( } CompleteStructType struct_type_MapLongLongULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongULong, header_MapLongLongULong, member_seq_MapLongLongULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongULong, type_name_MapLongLongULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongULong, type_name_MapLongLongULong.to_string(), type_ids_MapLongLongULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongULong", type_ids_MapLongLongULong); - if (return_code_MapLongLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongLongLong) { + + ReturnCode_t return_code_MapLongLongLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongLongLong", type_ids_MapLongLongLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongLongLong) { - StructTypeFlag struct_flags_MapLongLongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongLongLong; - TypeIdentifierPair type_ids_MapLongLongLongLong; QualifiedTypeName type_name_MapLongLongLongLong = "MapLongLongLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongLongLong; eprosima::fastcdr::optional ann_custom_MapLongLongLongLong; @@ -32811,120 +12780,48 @@ void register_MapLongLongLongLong_type_identifier( header_MapLongLongLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongLongLong); CompleteStructMemberSeq member_seq_MapLongLongLongLong; { - return_code_MapLongLongLongLong = + TypeIdentifierPair type_ids_var_map_longlong_longlong; + ReturnCode_t return_code_var_map_longlong_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int64_t_unbounded", type_ids_MapLongLongLongLong); + "anonymous_map_int64_t_int64_t_unbounded", type_ids_var_map_longlong_longlong); - if (return_code_MapLongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longlong) { - return_code_MapLongLongLongLong = + return_code_var_map_longlong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongLongLong); + "_int64_t", type_ids_var_map_longlong_longlong); - if (return_code_MapLongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longlong, element_identifier_anonymous_map_int64_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongLongLong = + return_code_var_map_longlong_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongLongLong); + "_int64_t", type_ids_var_map_longlong_longlong); - if (return_code_MapLongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longlong, key_identifier_anonymous_map_int64_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_int64_t_unbounded = EK_BOTH; @@ -32947,68 +12844,21 @@ void register_MapLongLongLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_int64_t_unbounded), key_flags_anonymous_map_int64_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_int64_t_unbounded", type_ids_var_map_longlong_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_int64_t_unbounded", type_ids_MapLongLongLongLong); - if (return_code_MapLongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_longlong; MemberId member_id_var_map_longlong_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longlong, member_flags_var_map_longlong_longlong, type_ids_MapLongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longlong, member_flags_var_map_longlong_longlong, type_ids_MapLongLongLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_longlong_ec {false}; + CommonStructMember common_var_map_longlong_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longlong, member_flags_var_map_longlong_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longlong, common_var_map_longlong_longlong_ec))}; + if (!common_var_map_longlong_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_longlong = "var_map_longlong_longlong"; @@ -33020,32 +12870,26 @@ void register_MapLongLongLongLong_type_identifier( } CompleteStructType struct_type_MapLongLongLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongLongLong, header_MapLongLongLongLong, member_seq_MapLongLongLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongLongLong, type_name_MapLongLongLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongLongLong, type_name_MapLongLongLongLong.to_string(), type_ids_MapLongLongLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongLongLong", type_ids_MapLongLongLongLong); - if (return_code_MapLongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongULongLong) { + + ReturnCode_t return_code_MapLongLongULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongULongLong", type_ids_MapLongLongULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongULongLong) { - StructTypeFlag struct_flags_MapLongLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongULongLong; - TypeIdentifierPair type_ids_MapLongLongULongLong; QualifiedTypeName type_name_MapLongLongULongLong = "MapLongLongULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongULongLong; eprosima::fastcdr::optional ann_custom_MapLongLongULongLong; @@ -33054,120 +12898,48 @@ void register_MapLongLongULongLong_type_identifier( header_MapLongLongULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongULongLong); CompleteStructMemberSeq member_seq_MapLongLongULongLong; { - return_code_MapLongLongULongLong = + TypeIdentifierPair type_ids_var_map_longlong_ulonglong; + ReturnCode_t return_code_var_map_longlong_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint64_t_unbounded", type_ids_MapLongLongULongLong); + "anonymous_map_int64_t_uint64_t_unbounded", type_ids_var_map_longlong_ulonglong); - if (return_code_MapLongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulonglong) { - return_code_MapLongLongULongLong = + return_code_var_map_longlong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapLongLongULongLong); + "_uint64_t", type_ids_var_map_longlong_ulonglong); - if (return_code_MapLongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulonglong, element_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongULongLong = + return_code_var_map_longlong_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongULongLong); + "_int64_t", type_ids_var_map_longlong_ulonglong); - if (return_code_MapLongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapLongLongULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulonglong, key_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_uint64_t_unbounded = EK_BOTH; @@ -33190,68 +12962,21 @@ void register_MapLongLongULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_uint64_t_unbounded), key_flags_anonymous_map_int64_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint64_t_unbounded", type_ids_var_map_longlong_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint64_t_unbounded", type_ids_MapLongLongULongLong); - if (return_code_MapLongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_ulonglong; MemberId member_id_var_map_longlong_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulonglong, member_flags_var_map_longlong_ulonglong, type_ids_MapLongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulonglong, member_flags_var_map_longlong_ulonglong, type_ids_MapLongLongULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_ulonglong_ec {false}; + CommonStructMember common_var_map_longlong_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_ulonglong, member_flags_var_map_longlong_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_ulonglong, common_var_map_longlong_ulonglong_ec))}; + if (!common_var_map_longlong_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_ulonglong = "var_map_longlong_ulonglong"; @@ -33263,32 +12988,26 @@ void register_MapLongLongULongLong_type_identifier( } CompleteStructType struct_type_MapLongLongULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongULongLong, header_MapLongLongULongLong, member_seq_MapLongLongULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongULongLong, type_name_MapLongLongULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongULongLong, type_name_MapLongLongULongLong.to_string(), type_ids_MapLongLongULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongULongLong", type_ids_MapLongLongULongLong); - if (return_code_MapLongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongFloat) { + + ReturnCode_t return_code_MapLongLongFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongFloat", type_ids_MapLongLongFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongFloat) { - StructTypeFlag struct_flags_MapLongLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongFloat; - TypeIdentifierPair type_ids_MapLongLongFloat; QualifiedTypeName type_name_MapLongLongFloat = "MapLongLongFloat"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongFloat; eprosima::fastcdr::optional ann_custom_MapLongLongFloat; @@ -33297,120 +13016,48 @@ void register_MapLongLongFloat_type_identifier( header_MapLongLongFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongFloat); CompleteStructMemberSeq member_seq_MapLongLongFloat; { - return_code_MapLongLongFloat = + TypeIdentifierPair type_ids_var_map_longlong_float; + ReturnCode_t return_code_var_map_longlong_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_float_unbounded", type_ids_MapLongLongFloat); + "anonymous_map_int64_t_float_unbounded", type_ids_var_map_longlong_float); - if (return_code_MapLongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_float) { - return_code_MapLongLongFloat = + return_code_var_map_longlong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapLongLongFloat); + "_float", type_ids_var_map_longlong_float); - if (return_code_MapLongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_float_unbounded = new TypeIdentifier(type_ids_MapLongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_float_unbounded = new TypeIdentifier(type_ids_MapLongLongFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_float, element_identifier_anonymous_map_int64_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongFloat = + return_code_var_map_longlong_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongFloat); + "_int64_t", type_ids_var_map_longlong_float); - if (return_code_MapLongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_float_unbounded = new TypeIdentifier(type_ids_MapLongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_float_unbounded = new TypeIdentifier(type_ids_MapLongLongFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_float, key_identifier_anonymous_map_int64_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_float_unbounded = EK_BOTH; @@ -33433,68 +13080,21 @@ void register_MapLongLongFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_float_unbounded), key_flags_anonymous_map_int64_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_float_unbounded", type_ids_var_map_longlong_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_float_unbounded", type_ids_MapLongLongFloat); - if (return_code_MapLongLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_float; MemberId member_id_var_map_longlong_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_float, member_flags_var_map_longlong_float, type_ids_MapLongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_float, member_flags_var_map_longlong_float, type_ids_MapLongLongFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_float_ec {false}; + CommonStructMember common_var_map_longlong_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_float, member_flags_var_map_longlong_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_float, common_var_map_longlong_float_ec))}; + if (!common_var_map_longlong_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_float = "var_map_longlong_float"; @@ -33506,32 +13106,26 @@ void register_MapLongLongFloat_type_identifier( } CompleteStructType struct_type_MapLongLongFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongFloat, header_MapLongLongFloat, member_seq_MapLongLongFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongFloat, type_name_MapLongLongFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongFloat, type_name_MapLongLongFloat.to_string(), type_ids_MapLongLongFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongFloat", type_ids_MapLongLongFloat); - if (return_code_MapLongLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongKeyDoubleValue_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongKeyDoubleValue) { + + ReturnCode_t return_code_MapLongLongKeyDoubleValue {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongKeyDoubleValue = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongKeyDoubleValue", type_ids_MapLongLongKeyDoubleValue); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongKeyDoubleValue) { - StructTypeFlag struct_flags_MapLongLongKeyDoubleValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongKeyDoubleValue = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongKeyDoubleValue; - TypeIdentifierPair type_ids_MapLongLongKeyDoubleValue; QualifiedTypeName type_name_MapLongLongKeyDoubleValue = "MapLongLongKeyDoubleValue"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongKeyDoubleValue; eprosima::fastcdr::optional ann_custom_MapLongLongKeyDoubleValue; @@ -33540,120 +13134,48 @@ void register_MapLongLongKeyDoubleValue_type_identifier( header_MapLongLongKeyDoubleValue = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongKeyDoubleValue); CompleteStructMemberSeq member_seq_MapLongLongKeyDoubleValue; { - return_code_MapLongLongKeyDoubleValue = + TypeIdentifierPair type_ids_var_map_longlong_double; + ReturnCode_t return_code_var_map_longlong_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_double_unbounded", type_ids_MapLongLongKeyDoubleValue); + "anonymous_map_int64_t_double_unbounded", type_ids_var_map_longlong_double); - if (return_code_MapLongLongKeyDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_double) { - return_code_MapLongLongKeyDoubleValue = + return_code_var_map_longlong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapLongLongKeyDoubleValue); + "_double", type_ids_var_map_longlong_double); - if (return_code_MapLongLongKeyDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_double_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_double_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyDoubleValue.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_double, element_identifier_anonymous_map_int64_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongKeyDoubleValue = + return_code_var_map_longlong_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongKeyDoubleValue); + "_int64_t", type_ids_var_map_longlong_double); - if (return_code_MapLongLongKeyDoubleValue != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_double_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_double_unbounded = new TypeIdentifier(type_ids_MapLongLongKeyDoubleValue.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_double, key_identifier_anonymous_map_int64_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_double_unbounded = EK_BOTH; @@ -33676,68 +13198,21 @@ void register_MapLongLongKeyDoubleValue_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_double_unbounded), key_flags_anonymous_map_int64_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_double_unbounded", type_ids_var_map_longlong_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongKeyDoubleValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_double_unbounded", type_ids_MapLongLongKeyDoubleValue); - if (return_code_MapLongLongKeyDoubleValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_double; MemberId member_id_var_map_longlong_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_double, member_flags_var_map_longlong_double, type_ids_MapLongLongKeyDoubleValue.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongKeyDoubleValue.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongKeyDoubleValue.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_double, member_flags_var_map_longlong_double, type_ids_MapLongLongKeyDoubleValue.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_double_ec {false}; + CommonStructMember common_var_map_longlong_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_double, member_flags_var_map_longlong_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_double, common_var_map_longlong_double_ec))}; + if (!common_var_map_longlong_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_double = "var_map_longlong_double"; @@ -33749,32 +13224,26 @@ void register_MapLongLongKeyDoubleValue_type_identifier( } CompleteStructType struct_type_MapLongLongKeyDoubleValue = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongKeyDoubleValue, header_MapLongLongKeyDoubleValue, member_seq_MapLongLongKeyDoubleValue); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongKeyDoubleValue, type_name_MapLongLongKeyDoubleValue.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongKeyDoubleValue, type_name_MapLongLongKeyDoubleValue.to_string(), type_ids_MapLongLongKeyDoubleValue)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongKeyDoubleValue already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongKeyDoubleValue = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongKeyDoubleValue", type_ids_MapLongLongKeyDoubleValue); - if (return_code_MapLongLongKeyDoubleValue != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongKeyDoubleValue: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongLongDouble) { + + ReturnCode_t return_code_MapLongLongLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongLongDouble", type_ids_MapLongLongLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongLongDouble) { - StructTypeFlag struct_flags_MapLongLongLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongLongDouble; - TypeIdentifierPair type_ids_MapLongLongLongDouble; QualifiedTypeName type_name_MapLongLongLongDouble = "MapLongLongLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongLongDouble; eprosima::fastcdr::optional ann_custom_MapLongLongLongDouble; @@ -33783,120 +13252,48 @@ void register_MapLongLongLongDouble_type_identifier( header_MapLongLongLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongLongDouble); CompleteStructMemberSeq member_seq_MapLongLongLongDouble; { - return_code_MapLongLongLongDouble = + TypeIdentifierPair type_ids_var_map_longlong_longdouble; + ReturnCode_t return_code_var_map_longlong_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_longdouble_unbounded", type_ids_MapLongLongLongDouble); + "anonymous_map_int64_t_longdouble_unbounded", type_ids_var_map_longlong_longdouble); - if (return_code_MapLongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longdouble) { - return_code_MapLongLongLongDouble = + return_code_var_map_longlong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapLongLongLongDouble); + "_longdouble", type_ids_var_map_longlong_longdouble); - if (return_code_MapLongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongLongLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longdouble, element_identifier_anonymous_map_int64_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongLongDouble = + return_code_var_map_longlong_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongLongDouble); + "_int64_t", type_ids_var_map_longlong_longdouble); - if (return_code_MapLongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapLongLongLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longdouble, key_identifier_anonymous_map_int64_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_longdouble_unbounded = EK_BOTH; @@ -33919,68 +13316,21 @@ void register_MapLongLongLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_longdouble_unbounded), key_flags_anonymous_map_int64_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_longdouble_unbounded", type_ids_var_map_longlong_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_longdouble_unbounded", type_ids_MapLongLongLongDouble); - if (return_code_MapLongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_longdouble; MemberId member_id_var_map_longlong_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longdouble, member_flags_var_map_longlong_longdouble, type_ids_MapLongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longdouble, member_flags_var_map_longlong_longdouble, type_ids_MapLongLongLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_longdouble_ec {false}; + CommonStructMember common_var_map_longlong_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_longdouble, member_flags_var_map_longlong_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_longdouble, common_var_map_longlong_longdouble_ec))}; + if (!common_var_map_longlong_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_longdouble = "var_map_longlong_longdouble"; @@ -33992,32 +13342,26 @@ void register_MapLongLongLongDouble_type_identifier( } CompleteStructType struct_type_MapLongLongLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongLongDouble, header_MapLongLongLongDouble, member_seq_MapLongLongLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongLongDouble, type_name_MapLongLongLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongLongDouble, type_name_MapLongLongLongDouble.to_string(), type_ids_MapLongLongLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongLongDouble", type_ids_MapLongLongLongDouble); - if (return_code_MapLongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongBoolean) { + + ReturnCode_t return_code_MapLongLongBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongBoolean", type_ids_MapLongLongBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongBoolean) { - StructTypeFlag struct_flags_MapLongLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongBoolean; - TypeIdentifierPair type_ids_MapLongLongBoolean; QualifiedTypeName type_name_MapLongLongBoolean = "MapLongLongBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongBoolean; eprosima::fastcdr::optional ann_custom_MapLongLongBoolean; @@ -34026,120 +13370,48 @@ void register_MapLongLongBoolean_type_identifier( header_MapLongLongBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongBoolean); CompleteStructMemberSeq member_seq_MapLongLongBoolean; { - return_code_MapLongLongBoolean = + TypeIdentifierPair type_ids_var_map_longlong_boolean; + ReturnCode_t return_code_var_map_longlong_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_bool_unbounded", type_ids_MapLongLongBoolean); + "anonymous_map_int64_t_bool_unbounded", type_ids_var_map_longlong_boolean); - if (return_code_MapLongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_boolean) { - return_code_MapLongLongBoolean = + return_code_var_map_longlong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapLongLongBoolean); + "_bool", type_ids_var_map_longlong_boolean); - if (return_code_MapLongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongLongBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_boolean, element_identifier_anonymous_map_int64_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongBoolean = + return_code_var_map_longlong_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongBoolean); + "_int64_t", type_ids_var_map_longlong_boolean); - if (return_code_MapLongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_bool_unbounded = new TypeIdentifier(type_ids_MapLongLongBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_boolean, key_identifier_anonymous_map_int64_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_bool_unbounded = EK_BOTH; @@ -34162,68 +13434,21 @@ void register_MapLongLongBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_bool_unbounded), key_flags_anonymous_map_int64_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_bool_unbounded", type_ids_var_map_longlong_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_bool_unbounded", type_ids_MapLongLongBoolean); - if (return_code_MapLongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_boolean; MemberId member_id_var_map_longlong_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_boolean, member_flags_var_map_longlong_boolean, type_ids_MapLongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_boolean, member_flags_var_map_longlong_boolean, type_ids_MapLongLongBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_boolean_ec {false}; + CommonStructMember common_var_map_longlong_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_boolean, member_flags_var_map_longlong_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_boolean, common_var_map_longlong_boolean_ec))}; + if (!common_var_map_longlong_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_boolean = "var_map_longlong_boolean"; @@ -34235,32 +13460,26 @@ void register_MapLongLongBoolean_type_identifier( } CompleteStructType struct_type_MapLongLongBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongBoolean, header_MapLongLongBoolean, member_seq_MapLongLongBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongBoolean, type_name_MapLongLongBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongBoolean, type_name_MapLongLongBoolean.to_string(), type_ids_MapLongLongBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongBoolean", type_ids_MapLongLongBoolean); - if (return_code_MapLongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongOctet) { + + ReturnCode_t return_code_MapLongLongOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongOctet", type_ids_MapLongLongOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongOctet) { - StructTypeFlag struct_flags_MapLongLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongOctet; - TypeIdentifierPair type_ids_MapLongLongOctet; QualifiedTypeName type_name_MapLongLongOctet = "MapLongLongOctet"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongOctet; eprosima::fastcdr::optional ann_custom_MapLongLongOctet; @@ -34269,120 +13488,48 @@ void register_MapLongLongOctet_type_identifier( header_MapLongLongOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongOctet); CompleteStructMemberSeq member_seq_MapLongLongOctet; { - return_code_MapLongLongOctet = + TypeIdentifierPair type_ids_var_map_longlong_octet; + ReturnCode_t return_code_var_map_longlong_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint8_t_unbounded", type_ids_MapLongLongOctet); + "anonymous_map_int64_t_uint8_t_unbounded", type_ids_var_map_longlong_octet); - if (return_code_MapLongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_octet) { - return_code_MapLongLongOctet = + return_code_var_map_longlong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapLongLongOctet); + "_byte", type_ids_var_map_longlong_octet); - if (return_code_MapLongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongLongOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_octet, element_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongOctet = + return_code_var_map_longlong_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongOctet); + "_int64_t", type_ids_var_map_longlong_octet); - if (return_code_MapLongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapLongLongOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_octet, key_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_uint8_t_unbounded = EK_BOTH; @@ -34405,68 +13552,21 @@ void register_MapLongLongOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_uint8_t_unbounded), key_flags_anonymous_map_int64_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_uint8_t_unbounded", type_ids_var_map_longlong_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_uint8_t_unbounded", type_ids_MapLongLongOctet); - if (return_code_MapLongLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_octet; MemberId member_id_var_map_longlong_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_octet, member_flags_var_map_longlong_octet, type_ids_MapLongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_octet, member_flags_var_map_longlong_octet, type_ids_MapLongLongOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_octet_ec {false}; + CommonStructMember common_var_map_longlong_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_octet, member_flags_var_map_longlong_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_octet, common_var_map_longlong_octet_ec))}; + if (!common_var_map_longlong_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_octet = "var_map_longlong_octet"; @@ -34478,32 +13578,26 @@ void register_MapLongLongOctet_type_identifier( } CompleteStructType struct_type_MapLongLongOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongOctet, header_MapLongLongOctet, member_seq_MapLongLongOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongOctet, type_name_MapLongLongOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongOctet, type_name_MapLongLongOctet.to_string(), type_ids_MapLongLongOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongOctet", type_ids_MapLongLongOctet); - if (return_code_MapLongLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongChar) { + + ReturnCode_t return_code_MapLongLongChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongChar", type_ids_MapLongLongChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongChar) { - StructTypeFlag struct_flags_MapLongLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongChar; - TypeIdentifierPair type_ids_MapLongLongChar; QualifiedTypeName type_name_MapLongLongChar = "MapLongLongChar"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongChar; eprosima::fastcdr::optional ann_custom_MapLongLongChar; @@ -34512,120 +13606,48 @@ void register_MapLongLongChar_type_identifier( header_MapLongLongChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongChar); CompleteStructMemberSeq member_seq_MapLongLongChar; { - return_code_MapLongLongChar = + TypeIdentifierPair type_ids_var_map_longlong_char; + ReturnCode_t return_code_var_map_longlong_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_char_unbounded", type_ids_MapLongLongChar); + "anonymous_map_int64_t_char_unbounded", type_ids_var_map_longlong_char); - if (return_code_MapLongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_char) { - return_code_MapLongLongChar = + return_code_var_map_longlong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapLongLongChar); + "_char", type_ids_var_map_longlong_char); - if (return_code_MapLongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_char_unbounded = new TypeIdentifier(type_ids_MapLongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_char_unbounded = new TypeIdentifier(type_ids_MapLongLongChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_char, element_identifier_anonymous_map_int64_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongChar = + return_code_var_map_longlong_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongChar); + "_int64_t", type_ids_var_map_longlong_char); - if (return_code_MapLongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_char_unbounded = new TypeIdentifier(type_ids_MapLongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_char_unbounded = new TypeIdentifier(type_ids_MapLongLongChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_char, key_identifier_anonymous_map_int64_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_char_unbounded = EK_BOTH; @@ -34648,68 +13670,21 @@ void register_MapLongLongChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_char_unbounded), key_flags_anonymous_map_int64_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_char_unbounded", type_ids_var_map_longlong_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_char_unbounded", type_ids_MapLongLongChar); - if (return_code_MapLongLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_char; MemberId member_id_var_map_longlong_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_char, member_flags_var_map_longlong_char, type_ids_MapLongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_char, member_flags_var_map_longlong_char, type_ids_MapLongLongChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_char_ec {false}; + CommonStructMember common_var_map_longlong_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_char, member_flags_var_map_longlong_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_char, common_var_map_longlong_char_ec))}; + if (!common_var_map_longlong_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_char = "var_map_longlong_char"; @@ -34721,32 +13696,26 @@ void register_MapLongLongChar_type_identifier( } CompleteStructType struct_type_MapLongLongChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongChar, header_MapLongLongChar, member_seq_MapLongLongChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongChar, type_name_MapLongLongChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongChar, type_name_MapLongLongChar.to_string(), type_ids_MapLongLongChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongChar", type_ids_MapLongLongChar); - if (return_code_MapLongLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongWChar) { + + ReturnCode_t return_code_MapLongLongWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongWChar", type_ids_MapLongLongWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongWChar) { - StructTypeFlag struct_flags_MapLongLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongWChar; - TypeIdentifierPair type_ids_MapLongLongWChar; QualifiedTypeName type_name_MapLongLongWChar = "MapLongLongWChar"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongWChar; eprosima::fastcdr::optional ann_custom_MapLongLongWChar; @@ -34755,120 +13724,48 @@ void register_MapLongLongWChar_type_identifier( header_MapLongLongWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongWChar); CompleteStructMemberSeq member_seq_MapLongLongWChar; { - return_code_MapLongLongWChar = + TypeIdentifierPair type_ids_var_map_longlong_wchar; + ReturnCode_t return_code_var_map_longlong_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_wchar_t_unbounded", type_ids_MapLongLongWChar); + "anonymous_map_int64_t_wchar_t_unbounded", type_ids_var_map_longlong_wchar); - if (return_code_MapLongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wchar) { - return_code_MapLongLongWChar = + return_code_var_map_longlong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapLongLongWChar); + "_wchar_t", type_ids_var_map_longlong_wchar); - if (return_code_MapLongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int64_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongLongWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wchar, element_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongWChar = + return_code_var_map_longlong_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongWChar); + "_int64_t", type_ids_var_map_longlong_wchar); - if (return_code_MapLongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapLongLongWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wchar, key_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_wchar_t_unbounded = EK_BOTH; @@ -34891,68 +13788,21 @@ void register_MapLongLongWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_wchar_t_unbounded), key_flags_anonymous_map_int64_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_wchar_t_unbounded", type_ids_var_map_longlong_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_wchar_t_unbounded", type_ids_MapLongLongWChar); - if (return_code_MapLongLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_wchar; MemberId member_id_var_map_longlong_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wchar, member_flags_var_map_longlong_wchar, type_ids_MapLongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wchar, member_flags_var_map_longlong_wchar, type_ids_MapLongLongWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_wchar_ec {false}; + CommonStructMember common_var_map_longlong_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wchar, member_flags_var_map_longlong_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wchar, common_var_map_longlong_wchar_ec))}; + if (!common_var_map_longlong_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_wchar = "var_map_longlong_wchar"; @@ -34964,32 +13814,26 @@ void register_MapLongLongWChar_type_identifier( } CompleteStructType struct_type_MapLongLongWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongWChar, header_MapLongLongWChar, member_seq_MapLongLongWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongWChar, type_name_MapLongLongWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongWChar, type_name_MapLongLongWChar.to_string(), type_ids_MapLongLongWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongWChar", type_ids_MapLongLongWChar); - if (return_code_MapLongLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongString) { + + ReturnCode_t return_code_MapLongLongString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongString", type_ids_MapLongLongString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongString) { - StructTypeFlag struct_flags_MapLongLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongString; - TypeIdentifierPair type_ids_MapLongLongString; QualifiedTypeName type_name_MapLongLongString = "MapLongLongString"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongString; eprosima::fastcdr::optional ann_custom_MapLongLongString; @@ -34998,137 +13842,56 @@ void register_MapLongLongString_type_identifier( header_MapLongLongString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongString); CompleteStructMemberSeq member_seq_MapLongLongString; { - return_code_MapLongLongString = + TypeIdentifierPair type_ids_var_map_longlong_string; + ReturnCode_t return_code_var_map_longlong_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_string_unbounded_unbounded", type_ids_MapLongLongString); + "anonymous_map_int64_t_anonymous_string_unbounded_unbounded", type_ids_var_map_longlong_string); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_string) { - return_code_MapLongLongString = + return_code_var_map_longlong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapLongLongString); + "anonymous_string_unbounded", type_ids_var_map_longlong_string); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_longlong_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapLongLongString); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_string, element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongString = + return_code_var_map_longlong_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongString); + "_int64_t", type_ids_var_map_longlong_string); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_string, key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -35151,68 +13914,21 @@ void register_MapLongLongString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_int64_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_string_unbounded_unbounded", type_ids_var_map_longlong_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_string_unbounded_unbounded", type_ids_MapLongLongString); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_string; MemberId member_id_var_map_longlong_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_string, member_flags_var_map_longlong_string, type_ids_MapLongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_string, member_flags_var_map_longlong_string, type_ids_MapLongLongString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_string_ec {false}; + CommonStructMember common_var_map_longlong_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_string, member_flags_var_map_longlong_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_string, common_var_map_longlong_string_ec))}; + if (!common_var_map_longlong_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_string = "var_map_longlong_string"; @@ -35224,32 +13940,26 @@ void register_MapLongLongString_type_identifier( } CompleteStructType struct_type_MapLongLongString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongString, header_MapLongLongString, member_seq_MapLongLongString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongString, type_name_MapLongLongString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongString, type_name_MapLongLongString.to_string(), type_ids_MapLongLongString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongString already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongString", type_ids_MapLongLongString); - if (return_code_MapLongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongWString) { + + ReturnCode_t return_code_MapLongLongWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongWString", type_ids_MapLongLongWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongWString) { - StructTypeFlag struct_flags_MapLongLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongWString; - TypeIdentifierPair type_ids_MapLongLongWString; QualifiedTypeName type_name_MapLongLongWString = "MapLongLongWString"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongWString; eprosima::fastcdr::optional ann_custom_MapLongLongWString; @@ -35258,137 +13968,56 @@ void register_MapLongLongWString_type_identifier( header_MapLongLongWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongWString); CompleteStructMemberSeq member_seq_MapLongLongWString; { - return_code_MapLongLongWString = + TypeIdentifierPair type_ids_var_map_longlong_wstring; + ReturnCode_t return_code_var_map_longlong_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded", type_ids_MapLongLongWString); + "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_longlong_wstring); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wstring) { - return_code_MapLongLongWString = + return_code_var_map_longlong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapLongLongWString); + "anonymous_wstring_unbounded", type_ids_var_map_longlong_wstring); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_longlong_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapLongLongWString); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wstring, element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongWString = + return_code_var_map_longlong_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongWString); + "_int64_t", type_ids_var_map_longlong_wstring); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wstring, key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -35411,68 +14040,21 @@ void register_MapLongLongWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_longlong_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded", type_ids_MapLongLongWString); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_wstring; MemberId member_id_var_map_longlong_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wstring, member_flags_var_map_longlong_wstring, type_ids_MapLongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wstring, member_flags_var_map_longlong_wstring, type_ids_MapLongLongWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_wstring_ec {false}; + CommonStructMember common_var_map_longlong_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_wstring, member_flags_var_map_longlong_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_wstring, common_var_map_longlong_wstring_ec))}; + if (!common_var_map_longlong_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_wstring = "var_map_longlong_wstring"; @@ -35484,32 +14066,26 @@ void register_MapLongLongWString_type_identifier( } CompleteStructType struct_type_MapLongLongWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongWString, header_MapLongLongWString, member_seq_MapLongLongWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongWString, type_name_MapLongLongWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongWString, type_name_MapLongLongWString.to_string(), type_ids_MapLongLongWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongWString", type_ids_MapLongLongWString); - if (return_code_MapLongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasBoundedStringHelper", type_ids_MapLongLongInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapLongLongInnerAliasBoundedStringHelper = "MapLongLongInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasBoundedStringHelper; @@ -35518,215 +14094,46 @@ void register_MapLongLongInnerAliasBoundedStringHelper_type_identifier( header_MapLongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasBoundedStringHelper; { - return_code_MapLongLongInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_longlong_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_longlong_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_string_10_unbounded", type_ids_MapLongLongInnerAliasBoundedStringHelper); + "anonymous_map_int64_t_anonymous_string_10_unbounded", type_ids_var_map_longlong_inneraliasboundedstringhelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedstringhelper) { - return_code_MapLongLongInnerAliasBoundedStringHelper = + return_code_var_map_longlong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapLongLongInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_longlong_inneraliasboundedstringhelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapLongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapLongLongInnerAliasBoundedStringHelper); - - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapLongLongInnerAliasBoundedStringHelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapLongLongInnerAliasBoundedStringHelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_longlong_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedstringhelper, element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasBoundedStringHelper = + return_code_var_map_longlong_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasBoundedStringHelper); + "_int64_t", type_ids_var_map_longlong_inneraliasboundedstringhelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedstringhelper, key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_string_10_unbounded = EK_BOTH; @@ -35749,68 +14156,21 @@ void register_MapLongLongInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded), key_flags_anonymous_map_int64_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_string_10_unbounded", type_ids_var_map_longlong_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_string_10_unbounded", type_ids_MapLongLongInnerAliasBoundedStringHelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliasboundedstringhelper; MemberId member_id_var_map_longlong_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedstringhelper, member_flags_var_map_longlong_inneraliasboundedstringhelper, type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedstringhelper, member_flags_var_map_longlong_inneraliasboundedstringhelper, type_ids_MapLongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedstringhelper, member_flags_var_map_longlong_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedstringhelper, common_var_map_longlong_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_longlong_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliasboundedstringhelper = "var_map_longlong_inneraliasboundedstringhelper"; @@ -35822,32 +14182,26 @@ void register_MapLongLongInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasBoundedStringHelper, header_MapLongLongInnerAliasBoundedStringHelper, member_seq_MapLongLongInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasBoundedStringHelper, type_name_MapLongLongInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasBoundedStringHelper, type_name_MapLongLongInnerAliasBoundedStringHelper.to_string(), type_ids_MapLongLongInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasBoundedStringHelper", type_ids_MapLongLongInnerAliasBoundedStringHelper); - if (return_code_MapLongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasBoundedWStringHelper", type_ids_MapLongLongInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapLongLongInnerAliasBoundedWStringHelper = "MapLongLongInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasBoundedWStringHelper; @@ -35855,216 +14209,47 @@ void register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier( CompleteStructHeader header_MapLongLongInnerAliasBoundedWStringHelper; header_MapLongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasBoundedWStringHelper; - { - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_wstring_10_unbounded", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + { + TypeIdentifierPair type_ids_var_map_longlong_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_longlong_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliasboundedwstringhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_int64_t_anonymous_wstring_10_unbounded", type_ids_var_map_longlong_inneraliasboundedwstringhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedwstringhelper) + { + return_code_var_map_longlong_inneraliasboundedwstringhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_wstring_helper", type_ids_var_map_longlong_inneraliasboundedwstringhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedwstringhelper) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_longlong_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedwstringhelper, element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasBoundedWStringHelper = + return_code_var_map_longlong_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasBoundedWStringHelper); + "_int64_t", type_ids_var_map_longlong_inneraliasboundedwstringhelper); - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasboundedwstringhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedwstringhelper, key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -36087,68 +14272,21 @@ void register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_int64_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_wstring_10_unbounded", type_ids_var_map_longlong_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_wstring_10_unbounded", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliasboundedwstringhelper; MemberId member_id_var_map_longlong_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedwstringhelper, member_flags_var_map_longlong_inneraliasboundedwstringhelper, type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedwstringhelper, member_flags_var_map_longlong_inneraliasboundedwstringhelper, type_ids_MapLongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasboundedwstringhelper, member_flags_var_map_longlong_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasboundedwstringhelper, common_var_map_longlong_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_longlong_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliasboundedwstringhelper = "var_map_longlong_inneraliasboundedwstringhelper"; @@ -36160,32 +14298,26 @@ void register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasBoundedWStringHelper, header_MapLongLongInnerAliasBoundedWStringHelper, member_seq_MapLongLongInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasBoundedWStringHelper, type_name_MapLongLongInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasBoundedWStringHelper, type_name_MapLongLongInnerAliasBoundedWStringHelper.to_string(), type_ids_MapLongLongInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasBoundedWStringHelper", type_ids_MapLongLongInnerAliasBoundedWStringHelper); - if (return_code_MapLongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerEnumHelper) { + + ReturnCode_t return_code_MapLongLongInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerEnumHelper", type_ids_MapLongLongInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerEnumHelper) { - StructTypeFlag struct_flags_MapLongLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerEnumHelper; - TypeIdentifierPair type_ids_MapLongLongInnerEnumHelper; QualifiedTypeName type_name_MapLongLongInnerEnumHelper = "MapLongLongInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerEnumHelper; @@ -36194,173 +14326,46 @@ void register_MapLongLongInnerEnumHelper_type_identifier( header_MapLongLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerEnumHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerEnumHelper; { - return_code_MapLongLongInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_longlong_innerenumhelper; + ReturnCode_t return_code_var_map_longlong_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerEnumHelper_unbounded", type_ids_MapLongLongInnerEnumHelper); + "anonymous_map_int64_t_InnerEnumHelper_unbounded", type_ids_var_map_longlong_innerenumhelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerenumhelper) { - return_code_MapLongLongInnerEnumHelper = + return_code_var_map_longlong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapLongLongInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_longlong_innerenumhelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapLongLongInnerEnumHelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_longlong_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerenumhelper, element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerEnumHelper = + return_code_var_map_longlong_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerEnumHelper); + "_int64_t", type_ids_var_map_longlong_innerenumhelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerenumhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerenumhelper, key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -36383,68 +14388,21 @@ void register_MapLongLongInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_int64_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerEnumHelper_unbounded", type_ids_var_map_longlong_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerEnumHelper_unbounded", type_ids_MapLongLongInnerEnumHelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_innerenumhelper; MemberId member_id_var_map_longlong_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerenumhelper, member_flags_var_map_longlong_innerenumhelper, type_ids_MapLongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerenumhelper, member_flags_var_map_longlong_innerenumhelper, type_ids_MapLongLongInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_innerenumhelper_ec {false}; + CommonStructMember common_var_map_longlong_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerenumhelper, member_flags_var_map_longlong_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerenumhelper, common_var_map_longlong_innerenumhelper_ec))}; + if (!common_var_map_longlong_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_innerenumhelper = "var_map_longlong_innerenumhelper"; @@ -36456,32 +14414,26 @@ void register_MapLongLongInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerEnumHelper, header_MapLongLongInnerEnumHelper, member_seq_MapLongLongInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerEnumHelper, type_name_MapLongLongInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerEnumHelper, type_name_MapLongLongInnerEnumHelper.to_string(), type_ids_MapLongLongInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerEnumHelper", type_ids_MapLongLongInnerEnumHelper); - if (return_code_MapLongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerBitMaskHelper) { + + ReturnCode_t return_code_MapLongLongInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerBitMaskHelper", type_ids_MapLongLongInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapLongLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapLongLongInnerBitMaskHelper; QualifiedTypeName type_name_MapLongLongInnerBitMaskHelper = "MapLongLongInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerBitMaskHelper; @@ -36490,206 +14442,46 @@ void register_MapLongLongInnerBitMaskHelper_type_identifier( header_MapLongLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerBitMaskHelper; { - return_code_MapLongLongInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_longlong_innerbitmaskhelper; + ReturnCode_t return_code_var_map_longlong_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerBitMaskHelper_unbounded", type_ids_MapLongLongInnerBitMaskHelper); + "anonymous_map_int64_t_InnerBitMaskHelper_unbounded", type_ids_var_map_longlong_innerbitmaskhelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitmaskhelper) { - return_code_MapLongLongInnerBitMaskHelper = + return_code_var_map_longlong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapLongLongInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_longlong_innerbitmaskhelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapLongLongInnerBitMaskHelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_longlong_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitmaskhelper, element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerBitMaskHelper = + return_code_var_map_longlong_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerBitMaskHelper); + "_int64_t", type_ids_var_map_longlong_innerbitmaskhelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitmaskhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitmaskhelper, key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -36712,68 +14504,21 @@ void register_MapLongLongInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_int64_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerBitMaskHelper_unbounded", type_ids_var_map_longlong_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerBitMaskHelper_unbounded", type_ids_MapLongLongInnerBitMaskHelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_innerbitmaskhelper; MemberId member_id_var_map_longlong_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitmaskhelper, member_flags_var_map_longlong_innerbitmaskhelper, type_ids_MapLongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitmaskhelper, member_flags_var_map_longlong_innerbitmaskhelper, type_ids_MapLongLongInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_longlong_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitmaskhelper, member_flags_var_map_longlong_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitmaskhelper, common_var_map_longlong_innerbitmaskhelper_ec))}; + if (!common_var_map_longlong_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_innerbitmaskhelper = "var_map_longlong_innerbitmaskhelper"; @@ -36785,32 +14530,26 @@ void register_MapLongLongInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerBitMaskHelper, header_MapLongLongInnerBitMaskHelper, member_seq_MapLongLongInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerBitMaskHelper, type_name_MapLongLongInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerBitMaskHelper, type_name_MapLongLongInnerBitMaskHelper.to_string(), type_ids_MapLongLongInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerBitMaskHelper", type_ids_MapLongLongInnerBitMaskHelper); - if (return_code_MapLongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasHelper", type_ids_MapLongLongInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasHelper; QualifiedTypeName type_name_MapLongLongInnerAliasHelper = "MapLongLongInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasHelper; @@ -36819,198 +14558,46 @@ void register_MapLongLongInnerAliasHelper_type_identifier( header_MapLongLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasHelper; { - return_code_MapLongLongInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_longlong_inneraliashelper; + ReturnCode_t return_code_var_map_longlong_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerAliasHelper_unbounded", type_ids_MapLongLongInnerAliasHelper); + "anonymous_map_int64_t_InnerAliasHelper_unbounded", type_ids_var_map_longlong_inneraliashelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliashelper) { - return_code_MapLongLongInnerAliasHelper = + return_code_var_map_longlong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapLongLongInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_longlong_inneraliashelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapLongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLongInnerAliasHelper); - - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapLongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapLongLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapLongLongInnerAliasHelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_longlong_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliashelper, element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasHelper = + return_code_var_map_longlong_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasHelper); + "_int64_t", type_ids_var_map_longlong_inneraliashelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliashelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliashelper, key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -37033,68 +14620,21 @@ void register_MapLongLongInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_int64_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerAliasHelper_unbounded", type_ids_var_map_longlong_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerAliasHelper_unbounded", type_ids_MapLongLongInnerAliasHelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliashelper; MemberId member_id_var_map_longlong_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliashelper, member_flags_var_map_longlong_inneraliashelper, type_ids_MapLongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliashelper, member_flags_var_map_longlong_inneraliashelper, type_ids_MapLongLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliashelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliashelper, member_flags_var_map_longlong_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliashelper, common_var_map_longlong_inneraliashelper_ec))}; + if (!common_var_map_longlong_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliashelper = "var_map_longlong_inneraliashelper"; @@ -37106,32 +14646,26 @@ void register_MapLongLongInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasHelper, header_MapLongLongInnerAliasHelper, member_seq_MapLongLongInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasHelper, type_name_MapLongLongInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasHelper, type_name_MapLongLongInnerAliasHelper.to_string(), type_ids_MapLongLongInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasHelper", type_ids_MapLongLongInnerAliasHelper); - if (return_code_MapLongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasArrayHelper", type_ids_MapLongLongInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasArrayHelper; QualifiedTypeName type_name_MapLongLongInnerAliasArrayHelper = "MapLongLongInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasArrayHelper; @@ -37140,279 +14674,46 @@ void register_MapLongLongInnerAliasArrayHelper_type_identifier( header_MapLongLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasArrayHelper; { - return_code_MapLongLongInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_longlong_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_longlong_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded", type_ids_MapLongLongInnerAliasArrayHelper); + "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_longlong_inneraliasarrayhelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasarrayhelper) { - return_code_MapLongLongInnerAliasArrayHelper = + return_code_var_map_longlong_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapLongLongInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_longlong_inneraliasarrayhelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapLongLongInnerAliasArrayHelper); - - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongLongInnerAliasArrayHelper); - - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapLongLongInnerAliasArrayHelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapLongLongInnerAliasArrayHelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_longlong_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasarrayhelper, element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasArrayHelper = + return_code_var_map_longlong_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasArrayHelper); + "_int64_t", type_ids_var_map_longlong_inneraliasarrayhelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasarrayhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasarrayhelper, key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -37435,68 +14736,21 @@ void register_MapLongLongInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_longlong_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded", type_ids_MapLongLongInnerAliasArrayHelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliasarrayhelper; MemberId member_id_var_map_longlong_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasarrayhelper, member_flags_var_map_longlong_inneraliasarrayhelper, type_ids_MapLongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasarrayhelper, member_flags_var_map_longlong_inneraliasarrayhelper, type_ids_MapLongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasarrayhelper, member_flags_var_map_longlong_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasarrayhelper, common_var_map_longlong_inneraliasarrayhelper_ec))}; + if (!common_var_map_longlong_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliasarrayhelper = "var_map_longlong_inneraliasarrayhelper"; @@ -37508,32 +14762,26 @@ void register_MapLongLongInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasArrayHelper, header_MapLongLongInnerAliasArrayHelper, member_seq_MapLongLongInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasArrayHelper, type_name_MapLongLongInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasArrayHelper, type_name_MapLongLongInnerAliasArrayHelper.to_string(), type_ids_MapLongLongInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasArrayHelper", type_ids_MapLongLongInnerAliasArrayHelper); - if (return_code_MapLongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasSequenceHelper", type_ids_MapLongLongInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasSequenceHelper; QualifiedTypeName type_name_MapLongLongInnerAliasSequenceHelper = "MapLongLongInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasSequenceHelper; @@ -37542,277 +14790,46 @@ void register_MapLongLongInnerAliasSequenceHelper_type_identifier( header_MapLongLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasSequenceHelper; { - return_code_MapLongLongInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_longlong_inneraliassequencehelper; + ReturnCode_t return_code_var_map_longlong_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapLongLongInnerAliasSequenceHelper); + "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_longlong_inneraliassequencehelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliassequencehelper) { - return_code_MapLongLongInnerAliasSequenceHelper = + return_code_var_map_longlong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapLongLongInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_longlong_inneraliassequencehelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapLongLongInnerAliasSequenceHelper); - - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapLongLongInnerAliasSequenceHelper); - - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapLongLongInnerAliasSequenceHelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapLongLongInnerAliasSequenceHelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_longlong_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliassequencehelper, element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasSequenceHelper = + return_code_var_map_longlong_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasSequenceHelper); + "_int64_t", type_ids_var_map_longlong_inneraliassequencehelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliassequencehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliassequencehelper, key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -37835,68 +14852,21 @@ void register_MapLongLongInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_longlong_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapLongLongInnerAliasSequenceHelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliassequencehelper; MemberId member_id_var_map_longlong_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliassequencehelper, member_flags_var_map_longlong_inneraliassequencehelper, type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliassequencehelper, member_flags_var_map_longlong_inneraliassequencehelper, type_ids_MapLongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliassequencehelper, member_flags_var_map_longlong_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliassequencehelper, common_var_map_longlong_inneraliassequencehelper_ec))}; + if (!common_var_map_longlong_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliassequencehelper = "var_map_longlong_inneraliassequencehelper"; @@ -37908,32 +14878,26 @@ void register_MapLongLongInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasSequenceHelper, header_MapLongLongInnerAliasSequenceHelper, member_seq_MapLongLongInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasSequenceHelper, type_name_MapLongLongInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasSequenceHelper, type_name_MapLongLongInnerAliasSequenceHelper.to_string(), type_ids_MapLongLongInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasSequenceHelper", type_ids_MapLongLongInnerAliasSequenceHelper); - if (return_code_MapLongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerAliasMapHelper) { + + ReturnCode_t return_code_MapLongLongInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerAliasMapHelper", type_ids_MapLongLongInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapLongLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapLongLongInnerAliasMapHelper; QualifiedTypeName type_name_MapLongLongInnerAliasMapHelper = "MapLongLongInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerAliasMapHelper; @@ -37942,340 +14906,46 @@ void register_MapLongLongInnerAliasMapHelper_type_identifier( header_MapLongLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerAliasMapHelper; { - return_code_MapLongLongInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_longlong_inneraliasmaphelper; + ReturnCode_t return_code_var_map_longlong_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapLongLongInnerAliasMapHelper); + "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_longlong_inneraliasmaphelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasmaphelper) { - return_code_MapLongLongInnerAliasMapHelper = + return_code_var_map_longlong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapLongLongInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_longlong_inneraliasmaphelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongLongInnerAliasMapHelper); - - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLongInnerAliasMapHelper); - - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapLongLongInnerAliasMapHelper); - - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapLongLongInnerAliasMapHelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapLongLongInnerAliasMapHelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_longlong_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasmaphelper, element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerAliasMapHelper = + return_code_var_map_longlong_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerAliasMapHelper); + "_int64_t", type_ids_var_map_longlong_inneraliasmaphelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_inneraliasmaphelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasmaphelper, key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -38298,68 +14968,21 @@ void register_MapLongLongInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_longlong_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapLongLongInnerAliasMapHelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_inneraliasmaphelper; MemberId member_id_var_map_longlong_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasmaphelper, member_flags_var_map_longlong_inneraliasmaphelper, type_ids_MapLongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasmaphelper, member_flags_var_map_longlong_inneraliasmaphelper, type_ids_MapLongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_longlong_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_inneraliasmaphelper, member_flags_var_map_longlong_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_inneraliasmaphelper, common_var_map_longlong_inneraliasmaphelper_ec))}; + if (!common_var_map_longlong_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_inneraliasmaphelper = "var_map_longlong_inneraliasmaphelper"; @@ -38371,32 +14994,26 @@ void register_MapLongLongInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerAliasMapHelper, header_MapLongLongInnerAliasMapHelper, member_seq_MapLongLongInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasMapHelper, type_name_MapLongLongInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerAliasMapHelper, type_name_MapLongLongInnerAliasMapHelper.to_string(), type_ids_MapLongLongInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerAliasMapHelper", type_ids_MapLongLongInnerAliasMapHelper); - if (return_code_MapLongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerUnionHelper) { + + ReturnCode_t return_code_MapLongLongInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerUnionHelper", type_ids_MapLongLongInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerUnionHelper) { - StructTypeFlag struct_flags_MapLongLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerUnionHelper; - TypeIdentifierPair type_ids_MapLongLongInnerUnionHelper; QualifiedTypeName type_name_MapLongLongInnerUnionHelper = "MapLongLongInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerUnionHelper; @@ -38405,397 +15022,46 @@ void register_MapLongLongInnerUnionHelper_type_identifier( header_MapLongLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerUnionHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerUnionHelper; { - return_code_MapLongLongInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_longlong_innerunionhelper; + ReturnCode_t return_code_var_map_longlong_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerUnionHelper_unbounded", type_ids_MapLongLongInnerUnionHelper); + "anonymous_map_int64_t_InnerUnionHelper_unbounded", type_ids_var_map_longlong_innerunionhelper); - if (return_code_MapLongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerunionhelper) { - return_code_MapLongLongInnerUnionHelper = + return_code_var_map_longlong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapLongLongInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_longlong_innerunionhelper); - if (return_code_MapLongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongLongInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapLongLongInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_longlong_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerunionhelper, element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerUnionHelper = + return_code_var_map_longlong_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerUnionHelper); + "_int64_t", type_ids_var_map_longlong_innerunionhelper); - if (return_code_MapLongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerunionhelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerunionhelper, key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -38818,68 +15084,21 @@ void register_MapLongLongInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_int64_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerUnionHelper_unbounded", type_ids_var_map_longlong_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerUnionHelper_unbounded", type_ids_MapLongLongInnerUnionHelper); - if (return_code_MapLongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_innerunionhelper; MemberId member_id_var_map_longlong_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerunionhelper, member_flags_var_map_longlong_innerunionhelper, type_ids_MapLongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerunionhelper, member_flags_var_map_longlong_innerunionhelper, type_ids_MapLongLongInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_innerunionhelper_ec {false}; + CommonStructMember common_var_map_longlong_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerunionhelper, member_flags_var_map_longlong_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerunionhelper, common_var_map_longlong_innerunionhelper_ec))}; + if (!common_var_map_longlong_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_innerunionhelper = "var_map_longlong_innerunionhelper"; @@ -38891,32 +15110,26 @@ void register_MapLongLongInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerUnionHelper, header_MapLongLongInnerUnionHelper, member_seq_MapLongLongInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerUnionHelper, type_name_MapLongLongInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerUnionHelper, type_name_MapLongLongInnerUnionHelper.to_string(), type_ids_MapLongLongInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerUnionHelper", type_ids_MapLongLongInnerUnionHelper); - if (return_code_MapLongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerStructureHelper) { + + ReturnCode_t return_code_MapLongLongInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerStructureHelper", type_ids_MapLongLongInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerStructureHelper) { - StructTypeFlag struct_flags_MapLongLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerStructureHelper; - TypeIdentifierPair type_ids_MapLongLongInnerStructureHelper; QualifiedTypeName type_name_MapLongLongInnerStructureHelper = "MapLongLongInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerStructureHelper; @@ -38925,287 +15138,46 @@ void register_MapLongLongInnerStructureHelper_type_identifier( header_MapLongLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerStructureHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerStructureHelper; { - return_code_MapLongLongInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_longlong_innerstructurehelper; + ReturnCode_t return_code_var_map_longlong_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerStructureHelper_unbounded", type_ids_MapLongLongInnerStructureHelper); + "anonymous_map_int64_t_InnerStructureHelper_unbounded", type_ids_var_map_longlong_innerstructurehelper); - if (return_code_MapLongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerstructurehelper) { - return_code_MapLongLongInnerStructureHelper = + return_code_var_map_longlong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapLongLongInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_longlong_innerstructurehelper); - if (return_code_MapLongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapLongLongInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapLongLongInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_longlong_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerstructurehelper, element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerStructureHelper = + return_code_var_map_longlong_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerStructureHelper); + "_int64_t", type_ids_var_map_longlong_innerstructurehelper); - if (return_code_MapLongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerstructurehelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerstructurehelper, key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -39228,68 +15200,21 @@ void register_MapLongLongInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_int64_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerStructureHelper_unbounded", type_ids_var_map_longlong_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerStructureHelper_unbounded", type_ids_MapLongLongInnerStructureHelper); - if (return_code_MapLongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_innerstructurehelper; MemberId member_id_var_map_longlong_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerstructurehelper, member_flags_var_map_longlong_innerstructurehelper, type_ids_MapLongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerstructurehelper, member_flags_var_map_longlong_innerstructurehelper, type_ids_MapLongLongInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_longlong_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerstructurehelper, member_flags_var_map_longlong_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerstructurehelper, common_var_map_longlong_innerstructurehelper_ec))}; + if (!common_var_map_longlong_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_innerstructurehelper = "var_map_longlong_innerstructurehelper"; @@ -39301,32 +15226,26 @@ void register_MapLongLongInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerStructureHelper, header_MapLongLongInnerStructureHelper, member_seq_MapLongLongInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerStructureHelper, type_name_MapLongLongInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerStructureHelper, type_name_MapLongLongInnerStructureHelper.to_string(), type_ids_MapLongLongInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerStructureHelper", type_ids_MapLongLongInnerStructureHelper); - if (return_code_MapLongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapLongLongInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapLongLongInnerBitsetHelper) { + + ReturnCode_t return_code_MapLongLongInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapLongLongInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapLongLongInnerBitsetHelper", type_ids_MapLongLongInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapLongLongInnerBitsetHelper) { - StructTypeFlag struct_flags_MapLongLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapLongLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapLongLongInnerBitsetHelper; - TypeIdentifierPair type_ids_MapLongLongInnerBitsetHelper; QualifiedTypeName type_name_MapLongLongInnerBitsetHelper = "MapLongLongInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapLongLongInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapLongLongInnerBitsetHelper; @@ -39335,192 +15254,46 @@ void register_MapLongLongInnerBitsetHelper_type_identifier( header_MapLongLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapLongLongInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapLongLongInnerBitsetHelper; { - return_code_MapLongLongInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_longlong_innerbitsethelper; + ReturnCode_t return_code_var_map_longlong_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_longlong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerBitsetHelper_unbounded", type_ids_MapLongLongInnerBitsetHelper); + "anonymous_map_int64_t_InnerBitsetHelper_unbounded", type_ids_var_map_longlong_innerbitsethelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitsethelper) { - return_code_MapLongLongInnerBitsetHelper = + return_code_var_map_longlong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapLongLongInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_longlong_innerbitsethelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapLongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapLongLongInnerBitsetHelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_longlong_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitsethelper, element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapLongLongInnerBitsetHelper = + return_code_var_map_longlong_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapLongLongInnerBitsetHelper); + "_int64_t", type_ids_var_map_longlong_innerbitsethelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_longlong_innerbitsethelper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapLongLongInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitsethelper, key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int64_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -39543,68 +15316,21 @@ void register_MapLongLongInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_int64_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int64_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int64_t_InnerBitsetHelper_unbounded", type_ids_var_map_longlong_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int64_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapLongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int64_t_InnerBitsetHelper_unbounded", type_ids_MapLongLongInnerBitsetHelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int64_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_longlong_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_longlong_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_longlong_innerbitsethelper; MemberId member_id_var_map_longlong_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitsethelper, member_flags_var_map_longlong_innerbitsethelper, type_ids_MapLongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapLongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_longlong_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitsethelper, member_flags_var_map_longlong_innerbitsethelper, type_ids_MapLongLongInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_longlong_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_longlong_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_longlong_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_longlong_innerbitsethelper, member_flags_var_map_longlong_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_longlong_innerbitsethelper, common_var_map_longlong_innerbitsethelper_ec))}; + if (!common_var_map_longlong_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_longlong_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_longlong_innerbitsethelper = "var_map_longlong_innerbitsethelper"; @@ -39616,32 +15342,26 @@ void register_MapLongLongInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapLongLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapLongLongInnerBitsetHelper, header_MapLongLongInnerBitsetHelper, member_seq_MapLongLongInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerBitsetHelper, type_name_MapLongLongInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapLongLongInnerBitsetHelper, type_name_MapLongLongInnerBitsetHelper.to_string(), type_ids_MapLongLongInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapLongLongInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapLongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapLongLongInnerBitsetHelper", type_ids_MapLongLongInnerBitsetHelper); - if (return_code_MapLongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapLongLongInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongShort) { + + ReturnCode_t return_code_MapULongLongShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongShort", type_ids_MapULongLongShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongShort) { - StructTypeFlag struct_flags_MapULongLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongShort; - TypeIdentifierPair type_ids_MapULongLongShort; QualifiedTypeName type_name_MapULongLongShort = "MapULongLongShort"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongShort; eprosima::fastcdr::optional ann_custom_MapULongLongShort; @@ -39650,120 +15370,48 @@ void register_MapULongLongShort_type_identifier( header_MapULongLongShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongShort); CompleteStructMemberSeq member_seq_MapULongLongShort; { - return_code_MapULongLongShort = + TypeIdentifierPair type_ids_var_map_u_long_long_short; + ReturnCode_t return_code_var_map_u_long_long_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int16_t_unbounded", type_ids_MapULongLongShort); + "anonymous_map_uint64_t_int16_t_unbounded", type_ids_var_map_u_long_long_short); - if (return_code_MapULongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_short) { - return_code_MapULongLongShort = + return_code_var_map_u_long_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongLongShort); + "_int16_t", type_ids_var_map_u_long_long_short); - if (return_code_MapULongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_short, element_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongShort = + return_code_var_map_u_long_long_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongShort); + "_uint64_t", type_ids_var_map_u_long_long_short); - if (return_code_MapULongLongShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_short, key_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_int16_t_unbounded = EK_BOTH; @@ -39786,68 +15434,21 @@ void register_MapULongLongShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_int16_t_unbounded), key_flags_anonymous_map_uint64_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int16_t_unbounded", type_ids_var_map_u_long_long_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int16_t_unbounded", type_ids_MapULongLongShort); - if (return_code_MapULongLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_short; MemberId member_id_var_map_u_long_long_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_short, member_flags_var_map_u_long_long_short, type_ids_MapULongLongShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_short, member_flags_var_map_u_long_long_short, type_ids_MapULongLongShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_short_ec {false}; + CommonStructMember common_var_map_u_long_long_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_short, member_flags_var_map_u_long_long_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_short, common_var_map_u_long_long_short_ec))}; + if (!common_var_map_u_long_long_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_short = "var_map_u_long_long_short"; @@ -39859,32 +15460,26 @@ void register_MapULongLongShort_type_identifier( } CompleteStructType struct_type_MapULongLongShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongShort, header_MapULongLongShort, member_seq_MapULongLongShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongShort, type_name_MapULongLongShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongShort, type_name_MapULongLongShort.to_string(), type_ids_MapULongLongShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongShort", type_ids_MapULongLongShort); - if (return_code_MapULongLongShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongUShort) { + + ReturnCode_t return_code_MapULongLongUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongUShort", type_ids_MapULongLongUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongUShort) { - StructTypeFlag struct_flags_MapULongLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongUShort; - TypeIdentifierPair type_ids_MapULongLongUShort; QualifiedTypeName type_name_MapULongLongUShort = "MapULongLongUShort"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongUShort; eprosima::fastcdr::optional ann_custom_MapULongLongUShort; @@ -39893,120 +15488,48 @@ void register_MapULongLongUShort_type_identifier( header_MapULongLongUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongUShort); CompleteStructMemberSeq member_seq_MapULongLongUShort; { - return_code_MapULongLongUShort = + TypeIdentifierPair type_ids_var_map_u_long_long_u_short; + ReturnCode_t return_code_var_map_u_long_long_u_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_u_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint16_t_unbounded", type_ids_MapULongLongUShort); + "anonymous_map_uint64_t_uint16_t_unbounded", type_ids_var_map_u_long_long_u_short); - if (return_code_MapULongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_short) { - return_code_MapULongLongUShort = + return_code_var_map_u_long_long_u_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapULongLongUShort); + "_uint16_t", type_ids_var_map_u_long_long_u_short); - if (return_code_MapULongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_short, element_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongUShort = + return_code_var_map_u_long_long_u_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongUShort); + "_uint64_t", type_ids_var_map_u_long_long_u_short); - if (return_code_MapULongLongUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongUShort.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_short, key_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_uint16_t_unbounded = EK_BOTH; @@ -40029,68 +15552,21 @@ void register_MapULongLongUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_uint16_t_unbounded), key_flags_anonymous_map_uint64_t_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint16_t_unbounded", type_ids_var_map_u_long_long_u_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint16_t_unbounded", type_ids_MapULongLongUShort); - if (return_code_MapULongLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_u_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_u_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_u_short; MemberId member_id_var_map_u_long_long_u_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_short, member_flags_var_map_u_long_long_u_short, type_ids_MapULongLongUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_short, member_flags_var_map_u_long_long_u_short, type_ids_MapULongLongUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_u_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_u_short_ec {false}; + CommonStructMember common_var_map_u_long_long_u_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_short, member_flags_var_map_u_long_long_u_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_short, common_var_map_u_long_long_u_short_ec))}; + if (!common_var_map_u_long_long_u_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_u_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_u_short = "var_map_u_long_long_u_short"; @@ -40102,32 +15578,26 @@ void register_MapULongLongUShort_type_identifier( } CompleteStructType struct_type_MapULongLongUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongUShort, header_MapULongLongUShort, member_seq_MapULongLongUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongUShort, type_name_MapULongLongUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongUShort, type_name_MapULongLongUShort.to_string(), type_ids_MapULongLongUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongUShort", type_ids_MapULongLongUShort); - if (return_code_MapULongLongUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongLong) { + + ReturnCode_t return_code_MapULongLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongLong", type_ids_MapULongLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongLong) { - StructTypeFlag struct_flags_MapULongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongLong; - TypeIdentifierPair type_ids_MapULongLongLong; QualifiedTypeName type_name_MapULongLongLong = "MapULongLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongLong; eprosima::fastcdr::optional ann_custom_MapULongLongLong; @@ -40136,120 +15606,48 @@ void register_MapULongLongLong_type_identifier( header_MapULongLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongLong); CompleteStructMemberSeq member_seq_MapULongLongLong; { - return_code_MapULongLongLong = + TypeIdentifierPair type_ids_var_map_u_long_long_long; + ReturnCode_t return_code_var_map_u_long_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int32_t_unbounded", type_ids_MapULongLongLong); + "anonymous_map_uint64_t_int32_t_unbounded", type_ids_var_map_u_long_long_long); - if (return_code_MapULongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long) { - return_code_MapULongLongLong = + return_code_var_map_u_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongLongLong); + "_int32_t", type_ids_var_map_u_long_long_long); - if (return_code_MapULongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long, element_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongLong = + return_code_var_map_u_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongLong); + "_uint64_t", type_ids_var_map_u_long_long_long); - if (return_code_MapULongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long, key_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_int32_t_unbounded = EK_BOTH; @@ -40272,68 +15670,21 @@ void register_MapULongLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_int32_t_unbounded), key_flags_anonymous_map_uint64_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int32_t_unbounded", type_ids_var_map_u_long_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int32_t_unbounded", type_ids_MapULongLongLong); - if (return_code_MapULongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_long; MemberId member_id_var_map_u_long_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long, member_flags_var_map_u_long_long_long, type_ids_MapULongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long, member_flags_var_map_u_long_long_long, type_ids_MapULongLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_long_ec {false}; + CommonStructMember common_var_map_u_long_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long, member_flags_var_map_u_long_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long, common_var_map_u_long_long_long_ec))}; + if (!common_var_map_u_long_long_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_long = "var_map_u_long_long_long"; @@ -40345,32 +15696,26 @@ void register_MapULongLongLong_type_identifier( } CompleteStructType struct_type_MapULongLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongLong, header_MapULongLongLong, member_seq_MapULongLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLong, type_name_MapULongLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLong, type_name_MapULongLongLong.to_string(), type_ids_MapULongLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongLong", type_ids_MapULongLongLong); - if (return_code_MapULongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongULong) { + + ReturnCode_t return_code_MapULongLongULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongULong", type_ids_MapULongLongULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongULong) { - StructTypeFlag struct_flags_MapULongLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongULong; - TypeIdentifierPair type_ids_MapULongLongULong; QualifiedTypeName type_name_MapULongLongULong = "MapULongLongULong"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongULong; eprosima::fastcdr::optional ann_custom_MapULongLongULong; @@ -40379,120 +15724,48 @@ void register_MapULongLongULong_type_identifier( header_MapULongLongULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongULong); CompleteStructMemberSeq member_seq_MapULongLongULong; { - return_code_MapULongLongULong = + TypeIdentifierPair type_ids_var_map_u_long_long_u_long; + ReturnCode_t return_code_var_map_u_long_long_u_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_u_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint32_t_unbounded", type_ids_MapULongLongULong); + "anonymous_map_uint64_t_uint32_t_unbounded", type_ids_var_map_u_long_long_u_long); - if (return_code_MapULongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long) { - return_code_MapULongLongULong = + return_code_var_map_u_long_long_u_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapULongLongULong); + "_uint32_t", type_ids_var_map_u_long_long_u_long); - if (return_code_MapULongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long, element_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongULong = + return_code_var_map_u_long_long_u_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongULong); + "_uint64_t", type_ids_var_map_u_long_long_u_long); - if (return_code_MapULongLongULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long, key_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_uint32_t_unbounded = EK_BOTH; @@ -40515,68 +15788,21 @@ void register_MapULongLongULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_uint32_t_unbounded), key_flags_anonymous_map_uint64_t_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint32_t_unbounded", type_ids_var_map_u_long_long_u_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint32_t_unbounded", type_ids_MapULongLongULong); - if (return_code_MapULongLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_u_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_u_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_u_long; MemberId member_id_var_map_u_long_long_u_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long, member_flags_var_map_u_long_long_u_long, type_ids_MapULongLongULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long, member_flags_var_map_u_long_long_u_long, type_ids_MapULongLongULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_u_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_u_long_ec {false}; + CommonStructMember common_var_map_u_long_long_u_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long, member_flags_var_map_u_long_long_u_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long, common_var_map_u_long_long_u_long_ec))}; + if (!common_var_map_u_long_long_u_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_u_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_u_long = "var_map_u_long_long_u_long"; @@ -40588,32 +15814,26 @@ void register_MapULongLongULong_type_identifier( } CompleteStructType struct_type_MapULongLongULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongULong, header_MapULongLongULong, member_seq_MapULongLongULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongULong, type_name_MapULongLongULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongULong, type_name_MapULongLongULong.to_string(), type_ids_MapULongLongULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongULong", type_ids_MapULongLongULong); - if (return_code_MapULongLongULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongLongLong) { + + ReturnCode_t return_code_MapULongLongLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongLongLong", type_ids_MapULongLongLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongLongLong) { - StructTypeFlag struct_flags_MapULongLongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongLongLong; - TypeIdentifierPair type_ids_MapULongLongLongLong; QualifiedTypeName type_name_MapULongLongLongLong = "MapULongLongLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongLongLong; eprosima::fastcdr::optional ann_custom_MapULongLongLongLong; @@ -40622,120 +15842,48 @@ void register_MapULongLongLongLong_type_identifier( header_MapULongLongLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongLongLong); CompleteStructMemberSeq member_seq_MapULongLongLongLong; { - return_code_MapULongLongLongLong = + TypeIdentifierPair type_ids_var_map_u_long_long_long_long; + ReturnCode_t return_code_var_map_u_long_long_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int64_t_unbounded", type_ids_MapULongLongLongLong); + "anonymous_map_uint64_t_int64_t_unbounded", type_ids_var_map_u_long_long_long_long); - if (return_code_MapULongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_long) { - return_code_MapULongLongLongLong = + return_code_var_map_u_long_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapULongLongLongLong); + "_int64_t", type_ids_var_map_u_long_long_long_long); - if (return_code_MapULongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_long, element_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongLongLong = + return_code_var_map_u_long_long_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongLongLong); + "_uint64_t", type_ids_var_map_u_long_long_long_long); - if (return_code_MapULongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_int64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongLongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_long, key_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_int64_t_unbounded = EK_BOTH; @@ -40758,68 +15906,21 @@ void register_MapULongLongLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_int64_t_unbounded), key_flags_anonymous_map_uint64_t_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_int64_t_unbounded", type_ids_var_map_u_long_long_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_int64_t_unbounded", type_ids_MapULongLongLongLong); - if (return_code_MapULongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_long_long; MemberId member_id_var_map_u_long_long_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_long, member_flags_var_map_u_long_long_long_long, type_ids_MapULongLongLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_long, member_flags_var_map_u_long_long_long_long, type_ids_MapULongLongLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_long_long_ec {false}; + CommonStructMember common_var_map_u_long_long_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_long, member_flags_var_map_u_long_long_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_long, common_var_map_u_long_long_long_long_ec))}; + if (!common_var_map_u_long_long_long_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_long_long = "var_map_u_long_long_long_long"; @@ -40831,32 +15932,26 @@ void register_MapULongLongLongLong_type_identifier( } CompleteStructType struct_type_MapULongLongLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongLongLong, header_MapULongLongLongLong, member_seq_MapULongLongLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLongLong, type_name_MapULongLongLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLongLong, type_name_MapULongLongLongLong.to_string(), type_ids_MapULongLongLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongLongLong", type_ids_MapULongLongLongLong); - if (return_code_MapULongLongLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongULongLong) { + + ReturnCode_t return_code_MapULongLongULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongULongLong", type_ids_MapULongLongULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongULongLong) { - StructTypeFlag struct_flags_MapULongLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongULongLong; - TypeIdentifierPair type_ids_MapULongLongULongLong; QualifiedTypeName type_name_MapULongLongULongLong = "MapULongLongULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongULongLong; eprosima::fastcdr::optional ann_custom_MapULongLongULongLong; @@ -40865,120 +15960,48 @@ void register_MapULongLongULongLong_type_identifier( header_MapULongLongULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongULongLong); CompleteStructMemberSeq member_seq_MapULongLongULongLong; { - return_code_MapULongLongULongLong = + TypeIdentifierPair type_ids_var_map_u_long_long_u_long_long; + ReturnCode_t return_code_var_map_u_long_long_u_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_u_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint64_t_unbounded", type_ids_MapULongLongULongLong); + "anonymous_map_uint64_t_uint64_t_unbounded", type_ids_var_map_u_long_long_u_long_long); - if (return_code_MapULongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long_long) { - return_code_MapULongLongULongLong = + return_code_var_map_u_long_long_u_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongULongLong); + "_uint64_t", type_ids_var_map_u_long_long_u_long_long); - if (return_code_MapULongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long_long, element_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongULongLong = + return_code_var_map_u_long_long_u_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongULongLong); + "_uint64_t", type_ids_var_map_u_long_long_u_long_long); - if (return_code_MapULongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_u_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint64_t_unbounded = new TypeIdentifier(type_ids_MapULongLongULongLong.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long_long, key_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_uint64_t_unbounded = EK_BOTH; @@ -41001,68 +16024,21 @@ void register_MapULongLongULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_uint64_t_unbounded), key_flags_anonymous_map_uint64_t_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint64_t_unbounded", type_ids_var_map_u_long_long_u_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint64_t_unbounded", type_ids_MapULongLongULongLong); - if (return_code_MapULongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_u_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_u_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_u_long_long; MemberId member_id_var_map_u_long_long_u_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long_long, member_flags_var_map_u_long_long_u_long_long, type_ids_MapULongLongULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_u_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long_long, member_flags_var_map_u_long_long_u_long_long, type_ids_MapULongLongULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_u_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_u_long_long_ec {false}; + CommonStructMember common_var_map_u_long_long_u_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_u_long_long, member_flags_var_map_u_long_long_u_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_u_long_long, common_var_map_u_long_long_u_long_long_ec))}; + if (!common_var_map_u_long_long_u_long_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_u_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_u_long_long = "var_map_u_long_long_u_long_long"; @@ -41074,32 +16050,26 @@ void register_MapULongLongULongLong_type_identifier( } CompleteStructType struct_type_MapULongLongULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongULongLong, header_MapULongLongULongLong, member_seq_MapULongLongULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongULongLong, type_name_MapULongLongULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongULongLong, type_name_MapULongLongULongLong.to_string(), type_ids_MapULongLongULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongULongLong", type_ids_MapULongLongULongLong); - if (return_code_MapULongLongULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongFloat) { + + ReturnCode_t return_code_MapULongLongFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongFloat", type_ids_MapULongLongFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongFloat) { - StructTypeFlag struct_flags_MapULongLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongFloat; - TypeIdentifierPair type_ids_MapULongLongFloat; QualifiedTypeName type_name_MapULongLongFloat = "MapULongLongFloat"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongFloat; eprosima::fastcdr::optional ann_custom_MapULongLongFloat; @@ -41108,120 +16078,48 @@ void register_MapULongLongFloat_type_identifier( header_MapULongLongFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongFloat); CompleteStructMemberSeq member_seq_MapULongLongFloat; { - return_code_MapULongLongFloat = + TypeIdentifierPair type_ids_var_map_u_long_long_float; + ReturnCode_t return_code_var_map_u_long_long_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_float_unbounded", type_ids_MapULongLongFloat); + "anonymous_map_uint64_t_float_unbounded", type_ids_var_map_u_long_long_float); - if (return_code_MapULongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_float) { - return_code_MapULongLongFloat = + return_code_var_map_u_long_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapULongLongFloat); + "_float", type_ids_var_map_u_long_long_float); - if (return_code_MapULongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_float_unbounded = new TypeIdentifier(type_ids_MapULongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_float_unbounded = new TypeIdentifier(type_ids_MapULongLongFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_float, element_identifier_anonymous_map_uint64_t_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongFloat = + return_code_var_map_u_long_long_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongFloat); + "_uint64_t", type_ids_var_map_u_long_long_float); - if (return_code_MapULongLongFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_float_unbounded = new TypeIdentifier(type_ids_MapULongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_float_unbounded = new TypeIdentifier(type_ids_MapULongLongFloat.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_float, key_identifier_anonymous_map_uint64_t_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_float_unbounded = EK_BOTH; @@ -41244,68 +16142,21 @@ void register_MapULongLongFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_float_unbounded), key_flags_anonymous_map_uint64_t_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_float_unbounded", type_ids_var_map_u_long_long_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_float_unbounded", type_ids_MapULongLongFloat); - if (return_code_MapULongLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_float; MemberId member_id_var_map_u_long_long_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_float, member_flags_var_map_u_long_long_float, type_ids_MapULongLongFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_float, member_flags_var_map_u_long_long_float, type_ids_MapULongLongFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_float_ec {false}; + CommonStructMember common_var_map_u_long_long_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_float, member_flags_var_map_u_long_long_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_float, common_var_map_u_long_long_float_ec))}; + if (!common_var_map_u_long_long_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_float = "var_map_u_long_long_float"; @@ -41317,32 +16168,26 @@ void register_MapULongLongFloat_type_identifier( } CompleteStructType struct_type_MapULongLongFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongFloat, header_MapULongLongFloat, member_seq_MapULongLongFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongFloat, type_name_MapULongLongFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongFloat, type_name_MapULongLongFloat.to_string(), type_ids_MapULongLongFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongFloat", type_ids_MapULongLongFloat); - if (return_code_MapULongLongFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapKeyULongLongValueDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapKeyULongLongValueDouble) { + + ReturnCode_t return_code_MapKeyULongLongValueDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapKeyULongLongValueDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapKeyULongLongValueDouble", type_ids_MapKeyULongLongValueDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapKeyULongLongValueDouble) { - StructTypeFlag struct_flags_MapKeyULongLongValueDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapKeyULongLongValueDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapKeyULongLongValueDouble; - TypeIdentifierPair type_ids_MapKeyULongLongValueDouble; QualifiedTypeName type_name_MapKeyULongLongValueDouble = "MapKeyULongLongValueDouble"; eprosima::fastcdr::optional type_ann_builtin_MapKeyULongLongValueDouble; eprosima::fastcdr::optional ann_custom_MapKeyULongLongValueDouble; @@ -41351,120 +16196,48 @@ void register_MapKeyULongLongValueDouble_type_identifier( header_MapKeyULongLongValueDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapKeyULongLongValueDouble); CompleteStructMemberSeq member_seq_MapKeyULongLongValueDouble; { - return_code_MapKeyULongLongValueDouble = + TypeIdentifierPair type_ids_var_map_u_long_long_double; + ReturnCode_t return_code_var_map_u_long_long_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_double_unbounded", type_ids_MapKeyULongLongValueDouble); + "anonymous_map_uint64_t_double_unbounded", type_ids_var_map_u_long_long_double); - if (return_code_MapKeyULongLongValueDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_double) { - return_code_MapKeyULongLongValueDouble = + return_code_var_map_u_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapKeyULongLongValueDouble); + "_double", type_ids_var_map_u_long_long_double); - if (return_code_MapKeyULongLongValueDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_double_unbounded = new TypeIdentifier(type_ids_MapKeyULongLongValueDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_double_unbounded = new TypeIdentifier(type_ids_MapKeyULongLongValueDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_double, element_identifier_anonymous_map_uint64_t_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapKeyULongLongValueDouble = + return_code_var_map_u_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapKeyULongLongValueDouble); + "_uint64_t", type_ids_var_map_u_long_long_double); - if (return_code_MapKeyULongLongValueDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_double_unbounded = new TypeIdentifier(type_ids_MapKeyULongLongValueDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_double_unbounded = new TypeIdentifier(type_ids_MapKeyULongLongValueDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_double, key_identifier_anonymous_map_uint64_t_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_double_unbounded = EK_BOTH; @@ -41487,68 +16260,21 @@ void register_MapKeyULongLongValueDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_double_unbounded), key_flags_anonymous_map_uint64_t_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_double_unbounded", type_ids_var_map_u_long_long_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapKeyULongLongValueDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_double_unbounded", type_ids_MapKeyULongLongValueDouble); - if (return_code_MapKeyULongLongValueDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_double; MemberId member_id_var_map_u_long_long_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() || TK_NONE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_double, member_flags_var_map_u_long_long_double, type_ids_MapKeyULongLongValueDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapKeyULongLongValueDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapKeyULongLongValueDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_double, member_flags_var_map_u_long_long_double, type_ids_MapKeyULongLongValueDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_double_ec {false}; + CommonStructMember common_var_map_u_long_long_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_double, member_flags_var_map_u_long_long_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_double, common_var_map_u_long_long_double_ec))}; + if (!common_var_map_u_long_long_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_double = "var_map_u_long_long_double"; @@ -41560,32 +16286,26 @@ void register_MapKeyULongLongValueDouble_type_identifier( } CompleteStructType struct_type_MapKeyULongLongValueDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapKeyULongLongValueDouble, header_MapKeyULongLongValueDouble, member_seq_MapKeyULongLongValueDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongLongValueDouble, type_name_MapKeyULongLongValueDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapKeyULongLongValueDouble, type_name_MapKeyULongLongValueDouble.to_string(), type_ids_MapKeyULongLongValueDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapKeyULongLongValueDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapKeyULongLongValueDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapKeyULongLongValueDouble", type_ids_MapKeyULongLongValueDouble); - if (return_code_MapKeyULongLongValueDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapKeyULongLongValueDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongLongDouble) { + + ReturnCode_t return_code_MapULongLongLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongLongDouble", type_ids_MapULongLongLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongLongDouble) { - StructTypeFlag struct_flags_MapULongLongLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongLongDouble; - TypeIdentifierPair type_ids_MapULongLongLongDouble; QualifiedTypeName type_name_MapULongLongLongDouble = "MapULongLongLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongLongDouble; eprosima::fastcdr::optional ann_custom_MapULongLongLongDouble; @@ -41594,120 +16314,48 @@ void register_MapULongLongLongDouble_type_identifier( header_MapULongLongLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongLongDouble); CompleteStructMemberSeq member_seq_MapULongLongLongDouble; { - return_code_MapULongLongLongDouble = + TypeIdentifierPair type_ids_var_map_u_long_long_long_double; + ReturnCode_t return_code_var_map_u_long_long_long_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_longdouble_unbounded", type_ids_MapULongLongLongDouble); + "anonymous_map_uint64_t_longdouble_unbounded", type_ids_var_map_u_long_long_long_double); - if (return_code_MapULongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_double) { - return_code_MapULongLongLongDouble = + return_code_var_map_u_long_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapULongLongLongDouble); + "_longdouble", type_ids_var_map_u_long_long_long_double); - if (return_code_MapULongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapULongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapULongLongLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_double, element_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongLongDouble = + return_code_var_map_u_long_long_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongLongDouble); + "_uint64_t", type_ids_var_map_u_long_long_long_double); - if (return_code_MapULongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_long_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapULongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_longdouble_unbounded = new TypeIdentifier(type_ids_MapULongLongLongDouble.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_double, key_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_longdouble_unbounded = EK_BOTH; @@ -41730,68 +16378,21 @@ void register_MapULongLongLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_longdouble_unbounded), key_flags_anonymous_map_uint64_t_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_longdouble_unbounded", type_ids_var_map_u_long_long_long_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_longdouble_unbounded", type_ids_MapULongLongLongDouble); - if (return_code_MapULongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_long_double; MemberId member_id_var_map_u_long_long_long_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_double, member_flags_var_map_u_long_long_long_double, type_ids_MapULongLongLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_double, member_flags_var_map_u_long_long_long_double, type_ids_MapULongLongLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_long_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_long_double_ec {false}; + CommonStructMember common_var_map_u_long_long_long_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_long_double, member_flags_var_map_u_long_long_long_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_long_double, common_var_map_u_long_long_long_double_ec))}; + if (!common_var_map_u_long_long_long_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_long_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_long_double = "var_map_u_long_long_long_double"; @@ -41803,32 +16404,26 @@ void register_MapULongLongLongDouble_type_identifier( } CompleteStructType struct_type_MapULongLongLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongLongDouble, header_MapULongLongLongDouble, member_seq_MapULongLongLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLongDouble, type_name_MapULongLongLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongLongDouble, type_name_MapULongLongLongDouble.to_string(), type_ids_MapULongLongLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongLongDouble", type_ids_MapULongLongLongDouble); - if (return_code_MapULongLongLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongBoolean) { + + ReturnCode_t return_code_MapULongLongBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongBoolean", type_ids_MapULongLongBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongBoolean) { - StructTypeFlag struct_flags_MapULongLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongBoolean; - TypeIdentifierPair type_ids_MapULongLongBoolean; QualifiedTypeName type_name_MapULongLongBoolean = "MapULongLongBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongBoolean; eprosima::fastcdr::optional ann_custom_MapULongLongBoolean; @@ -41837,120 +16432,48 @@ void register_MapULongLongBoolean_type_identifier( header_MapULongLongBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongBoolean); CompleteStructMemberSeq member_seq_MapULongLongBoolean; { - return_code_MapULongLongBoolean = + TypeIdentifierPair type_ids_var_map_u_long_long_boolean; + ReturnCode_t return_code_var_map_u_long_long_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_bool_unbounded", type_ids_MapULongLongBoolean); + "anonymous_map_uint64_t_bool_unbounded", type_ids_var_map_u_long_long_boolean); - if (return_code_MapULongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_boolean) { - return_code_MapULongLongBoolean = + return_code_var_map_u_long_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapULongLongBoolean); + "_bool", type_ids_var_map_u_long_long_boolean); - if (return_code_MapULongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongLongBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_boolean, element_identifier_anonymous_map_uint64_t_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongBoolean = + return_code_var_map_u_long_long_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongBoolean); + "_uint64_t", type_ids_var_map_u_long_long_boolean); - if (return_code_MapULongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_bool_unbounded = new TypeIdentifier(type_ids_MapULongLongBoolean.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_boolean, key_identifier_anonymous_map_uint64_t_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_bool_unbounded = EK_BOTH; @@ -41973,68 +16496,21 @@ void register_MapULongLongBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_bool_unbounded), key_flags_anonymous_map_uint64_t_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_bool_unbounded", type_ids_var_map_u_long_long_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_bool_unbounded", type_ids_MapULongLongBoolean); - if (return_code_MapULongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_boolean; MemberId member_id_var_map_u_long_long_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_boolean, member_flags_var_map_u_long_long_boolean, type_ids_MapULongLongBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_boolean, member_flags_var_map_u_long_long_boolean, type_ids_MapULongLongBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_boolean_ec {false}; + CommonStructMember common_var_map_u_long_long_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_boolean, member_flags_var_map_u_long_long_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_boolean, common_var_map_u_long_long_boolean_ec))}; + if (!common_var_map_u_long_long_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_boolean = "var_map_u_long_long_boolean"; @@ -42046,32 +16522,26 @@ void register_MapULongLongBoolean_type_identifier( } CompleteStructType struct_type_MapULongLongBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongBoolean, header_MapULongLongBoolean, member_seq_MapULongLongBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongBoolean, type_name_MapULongLongBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongBoolean, type_name_MapULongLongBoolean.to_string(), type_ids_MapULongLongBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongBoolean", type_ids_MapULongLongBoolean); - if (return_code_MapULongLongBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongOctet) { + + ReturnCode_t return_code_MapULongLongOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongOctet", type_ids_MapULongLongOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongOctet) { - StructTypeFlag struct_flags_MapULongLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongOctet; - TypeIdentifierPair type_ids_MapULongLongOctet; QualifiedTypeName type_name_MapULongLongOctet = "MapULongLongOctet"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongOctet; eprosima::fastcdr::optional ann_custom_MapULongLongOctet; @@ -42080,120 +16550,48 @@ void register_MapULongLongOctet_type_identifier( header_MapULongLongOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongOctet); CompleteStructMemberSeq member_seq_MapULongLongOctet; { - return_code_MapULongLongOctet = + TypeIdentifierPair type_ids_var_map_u_long_long_octet; + ReturnCode_t return_code_var_map_u_long_long_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint8_t_unbounded", type_ids_MapULongLongOctet); + "anonymous_map_uint64_t_uint8_t_unbounded", type_ids_var_map_u_long_long_octet); - if (return_code_MapULongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_octet) { - return_code_MapULongLongOctet = + return_code_var_map_u_long_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapULongLongOctet); + "_byte", type_ids_var_map_u_long_long_octet); - if (return_code_MapULongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongLongOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_octet, element_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongOctet = + return_code_var_map_u_long_long_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongOctet); + "_uint64_t", type_ids_var_map_u_long_long_octet); - if (return_code_MapULongLongOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_uint8_t_unbounded = new TypeIdentifier(type_ids_MapULongLongOctet.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_octet, key_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_uint8_t_unbounded = EK_BOTH; @@ -42216,68 +16614,21 @@ void register_MapULongLongOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_uint8_t_unbounded), key_flags_anonymous_map_uint64_t_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_uint8_t_unbounded", type_ids_var_map_u_long_long_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_uint8_t_unbounded", type_ids_MapULongLongOctet); - if (return_code_MapULongLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_octet; MemberId member_id_var_map_u_long_long_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_octet, member_flags_var_map_u_long_long_octet, type_ids_MapULongLongOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_octet, member_flags_var_map_u_long_long_octet, type_ids_MapULongLongOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_octet_ec {false}; + CommonStructMember common_var_map_u_long_long_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_octet, member_flags_var_map_u_long_long_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_octet, common_var_map_u_long_long_octet_ec))}; + if (!common_var_map_u_long_long_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_octet = "var_map_u_long_long_octet"; @@ -42289,32 +16640,26 @@ void register_MapULongLongOctet_type_identifier( } CompleteStructType struct_type_MapULongLongOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongOctet, header_MapULongLongOctet, member_seq_MapULongLongOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongOctet, type_name_MapULongLongOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongOctet, type_name_MapULongLongOctet.to_string(), type_ids_MapULongLongOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongOctet", type_ids_MapULongLongOctet); - if (return_code_MapULongLongOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongChar) { + + ReturnCode_t return_code_MapULongLongChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongChar", type_ids_MapULongLongChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongChar) { - StructTypeFlag struct_flags_MapULongLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongChar; - TypeIdentifierPair type_ids_MapULongLongChar; QualifiedTypeName type_name_MapULongLongChar = "MapULongLongChar"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongChar; eprosima::fastcdr::optional ann_custom_MapULongLongChar; @@ -42323,120 +16668,48 @@ void register_MapULongLongChar_type_identifier( header_MapULongLongChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongChar); CompleteStructMemberSeq member_seq_MapULongLongChar; { - return_code_MapULongLongChar = + TypeIdentifierPair type_ids_var_map_u_long_long_char; + ReturnCode_t return_code_var_map_u_long_long_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_char_unbounded", type_ids_MapULongLongChar); + "anonymous_map_uint64_t_char_unbounded", type_ids_var_map_u_long_long_char); - if (return_code_MapULongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_char) { - return_code_MapULongLongChar = + return_code_var_map_u_long_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapULongLongChar); + "_char", type_ids_var_map_u_long_long_char); - if (return_code_MapULongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_char_unbounded = new TypeIdentifier(type_ids_MapULongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_char_unbounded = new TypeIdentifier(type_ids_MapULongLongChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_char, element_identifier_anonymous_map_uint64_t_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongChar = + return_code_var_map_u_long_long_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongChar); + "_uint64_t", type_ids_var_map_u_long_long_char); - if (return_code_MapULongLongChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_char_unbounded = new TypeIdentifier(type_ids_MapULongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_char_unbounded = new TypeIdentifier(type_ids_MapULongLongChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_char, key_identifier_anonymous_map_uint64_t_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_char_unbounded = EK_BOTH; @@ -42459,68 +16732,21 @@ void register_MapULongLongChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_char_unbounded), key_flags_anonymous_map_uint64_t_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_char_unbounded", type_ids_var_map_u_long_long_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_char_unbounded", type_ids_MapULongLongChar); - if (return_code_MapULongLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_char; MemberId member_id_var_map_u_long_long_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_char, member_flags_var_map_u_long_long_char, type_ids_MapULongLongChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_char, member_flags_var_map_u_long_long_char, type_ids_MapULongLongChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_char_ec {false}; + CommonStructMember common_var_map_u_long_long_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_char, member_flags_var_map_u_long_long_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_char, common_var_map_u_long_long_char_ec))}; + if (!common_var_map_u_long_long_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_char = "var_map_u_long_long_char"; @@ -42532,32 +16758,26 @@ void register_MapULongLongChar_type_identifier( } CompleteStructType struct_type_MapULongLongChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongChar, header_MapULongLongChar, member_seq_MapULongLongChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongChar, type_name_MapULongLongChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongChar, type_name_MapULongLongChar.to_string(), type_ids_MapULongLongChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongChar", type_ids_MapULongLongChar); - if (return_code_MapULongLongChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongWChar) { + + ReturnCode_t return_code_MapULongLongWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongWChar", type_ids_MapULongLongWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongWChar) { - StructTypeFlag struct_flags_MapULongLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongWChar; - TypeIdentifierPair type_ids_MapULongLongWChar; QualifiedTypeName type_name_MapULongLongWChar = "MapULongLongWChar"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongWChar; eprosima::fastcdr::optional ann_custom_MapULongLongWChar; @@ -42566,120 +16786,48 @@ void register_MapULongLongWChar_type_identifier( header_MapULongLongWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongWChar); CompleteStructMemberSeq member_seq_MapULongLongWChar; { - return_code_MapULongLongWChar = + TypeIdentifierPair type_ids_var_map_u_long_long_wchar; + ReturnCode_t return_code_var_map_u_long_long_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_wchar_t_unbounded", type_ids_MapULongLongWChar); + "anonymous_map_uint64_t_wchar_t_unbounded", type_ids_var_map_u_long_long_wchar); - if (return_code_MapULongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wchar) { - return_code_MapULongLongWChar = + return_code_var_map_u_long_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapULongLongWChar); + "_wchar_t", type_ids_var_map_u_long_long_wchar); - if (return_code_MapULongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongLongWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wchar, element_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongWChar = + return_code_var_map_u_long_long_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongWChar); + "_uint64_t", type_ids_var_map_u_long_long_wchar); - if (return_code_MapULongLongWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_wchar_t_unbounded = new TypeIdentifier(type_ids_MapULongLongWChar.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wchar, key_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_wchar_t_unbounded = EK_BOTH; @@ -42702,68 +16850,21 @@ void register_MapULongLongWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_wchar_t_unbounded), key_flags_anonymous_map_uint64_t_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_wchar_t_unbounded", type_ids_var_map_u_long_long_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_wchar_t_unbounded", type_ids_MapULongLongWChar); - if (return_code_MapULongLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_wchar; MemberId member_id_var_map_u_long_long_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wchar, member_flags_var_map_u_long_long_wchar, type_ids_MapULongLongWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wchar, member_flags_var_map_u_long_long_wchar, type_ids_MapULongLongWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_wchar_ec {false}; + CommonStructMember common_var_map_u_long_long_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wchar, member_flags_var_map_u_long_long_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wchar, common_var_map_u_long_long_wchar_ec))}; + if (!common_var_map_u_long_long_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_wchar = "var_map_u_long_long_wchar"; @@ -42775,32 +16876,26 @@ void register_MapULongLongWChar_type_identifier( } CompleteStructType struct_type_MapULongLongWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongWChar, header_MapULongLongWChar, member_seq_MapULongLongWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongWChar, type_name_MapULongLongWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongWChar, type_name_MapULongLongWChar.to_string(), type_ids_MapULongLongWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongWChar", type_ids_MapULongLongWChar); - if (return_code_MapULongLongWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongString) { + + ReturnCode_t return_code_MapULongLongString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongString", type_ids_MapULongLongString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongString) { - StructTypeFlag struct_flags_MapULongLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongString; - TypeIdentifierPair type_ids_MapULongLongString; QualifiedTypeName type_name_MapULongLongString = "MapULongLongString"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongString; eprosima::fastcdr::optional ann_custom_MapULongLongString; @@ -42809,137 +16904,56 @@ void register_MapULongLongString_type_identifier( header_MapULongLongString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongString); CompleteStructMemberSeq member_seq_MapULongLongString; { - return_code_MapULongLongString = + TypeIdentifierPair type_ids_var_map_u_long_long_string; + ReturnCode_t return_code_var_map_u_long_long_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded", type_ids_MapULongLongString); + "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded", type_ids_var_map_u_long_long_string); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_string) { - return_code_MapULongLongString = + return_code_var_map_u_long_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapULongLongString); + "anonymous_string_unbounded", type_ids_var_map_u_long_long_string); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_u_long_long_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapULongLongString); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_string, element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongString = + return_code_var_map_u_long_long_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongString); + "_uint64_t", type_ids_var_map_u_long_long_string); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_string) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_string, key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -42962,68 +16976,21 @@ void register_MapULongLongString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded", type_ids_var_map_u_long_long_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded", type_ids_MapULongLongString); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_string; MemberId member_id_var_map_u_long_long_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_string, member_flags_var_map_u_long_long_string, type_ids_MapULongLongString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_string, member_flags_var_map_u_long_long_string, type_ids_MapULongLongString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_string_ec {false}; + CommonStructMember common_var_map_u_long_long_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_string, member_flags_var_map_u_long_long_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_string, common_var_map_u_long_long_string_ec))}; + if (!common_var_map_u_long_long_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_string = "var_map_u_long_long_string"; @@ -43035,32 +17002,26 @@ void register_MapULongLongString_type_identifier( } CompleteStructType struct_type_MapULongLongString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongString, header_MapULongLongString, member_seq_MapULongLongString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongString, type_name_MapULongLongString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongString, type_name_MapULongLongString.to_string(), type_ids_MapULongLongString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongString already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongString", type_ids_MapULongLongString); - if (return_code_MapULongLongString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongWString) { + + ReturnCode_t return_code_MapULongLongWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongWString", type_ids_MapULongLongWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongWString) { - StructTypeFlag struct_flags_MapULongLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongWString; - TypeIdentifierPair type_ids_MapULongLongWString; QualifiedTypeName type_name_MapULongLongWString = "MapULongLongWString"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongWString; eprosima::fastcdr::optional ann_custom_MapULongLongWString; @@ -43069,137 +17030,56 @@ void register_MapULongLongWString_type_identifier( header_MapULongLongWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongWString); CompleteStructMemberSeq member_seq_MapULongLongWString; { - return_code_MapULongLongWString = + TypeIdentifierPair type_ids_var_map_u_long_long_wstring; + ReturnCode_t return_code_var_map_u_long_long_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded", type_ids_MapULongLongWString); + "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_u_long_long_wstring); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wstring) { - return_code_MapULongLongWString = + return_code_var_map_u_long_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapULongLongWString); + "anonymous_wstring_unbounded", type_ids_var_map_u_long_long_wstring); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_u_long_long_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapULongLongWString); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wstring, element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongWString = + return_code_var_map_u_long_long_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongWString); + "_uint64_t", type_ids_var_map_u_long_long_wstring); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_wstring) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongWString.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wstring, key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -43222,68 +17102,21 @@ void register_MapULongLongWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded", type_ids_var_map_u_long_long_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded", type_ids_MapULongLongWString); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_wstring; MemberId member_id_var_map_u_long_long_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wstring, member_flags_var_map_u_long_long_wstring, type_ids_MapULongLongWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wstring, member_flags_var_map_u_long_long_wstring, type_ids_MapULongLongWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_wstring_ec {false}; + CommonStructMember common_var_map_u_long_long_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_wstring, member_flags_var_map_u_long_long_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_wstring, common_var_map_u_long_long_wstring_ec))}; + if (!common_var_map_u_long_long_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_wstring = "var_map_u_long_long_wstring"; @@ -43295,32 +17128,26 @@ void register_MapULongLongWString_type_identifier( } CompleteStructType struct_type_MapULongLongWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongWString, header_MapULongLongWString, member_seq_MapULongLongWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongWString, type_name_MapULongLongWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongWString, type_name_MapULongLongWString.to_string(), type_ids_MapULongLongWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongWString", type_ids_MapULongLongWString); - if (return_code_MapULongLongWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasBoundedStringHelper", type_ids_MapULongLongInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapULongLongInnerAliasBoundedStringHelper = "MapULongLongInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasBoundedStringHelper; @@ -43329,215 +17156,46 @@ void register_MapULongLongInnerAliasBoundedStringHelper_type_identifier( header_MapULongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasBoundedStringHelper; { - return_code_MapULongLongInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_bounded_string_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_bounded_string_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_string_10_unbounded", type_ids_MapULongLongInnerAliasBoundedStringHelper); + "anonymous_map_uint64_t_anonymous_string_10_unbounded", type_ids_var_map_u_long_long_inner_alias_bounded_string_helper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_string_helper) { - return_code_MapULongLongInnerAliasBoundedStringHelper = + return_code_var_map_u_long_long_inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapULongLongInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_u_long_long_inner_alias_bounded_string_helper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_string_helper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapULongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapULongLongInnerAliasBoundedStringHelper); - - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapULongLongInnerAliasBoundedStringHelper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapULongLongInnerAliasBoundedStringHelper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_string_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_string_helper, element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasBoundedStringHelper = + return_code_var_map_u_long_long_inner_alias_bounded_string_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasBoundedStringHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_bounded_string_helper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_string_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_string_helper, key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_string_10_unbounded = EK_BOTH; @@ -43560,68 +17218,21 @@ void register_MapULongLongInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded), key_flags_anonymous_map_uint64_t_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_string_10_unbounded", type_ids_var_map_u_long_long_inner_alias_bounded_string_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_string_10_unbounded", type_ids_MapULongLongInnerAliasBoundedStringHelper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_bounded_string_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_bounded_string_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_bounded_string_helper; MemberId member_id_var_map_u_long_long_inner_alias_bounded_string_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_bounded_string_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_string_helper, member_flags_var_map_u_long_long_inner_alias_bounded_string_helper, type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_bounded_string_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_string_helper, member_flags_var_map_u_long_long_inner_alias_bounded_string_helper, type_ids_MapULongLongInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_bounded_string_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_bounded_string_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_bounded_string_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_string_helper, member_flags_var_map_u_long_long_inner_alias_bounded_string_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_string_helper, common_var_map_u_long_long_inner_alias_bounded_string_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_bounded_string_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_bounded_string_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_bounded_string_helper = "var_map_u_long_long_inner_alias_bounded_string_helper"; @@ -43633,32 +17244,26 @@ void register_MapULongLongInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasBoundedStringHelper, header_MapULongLongInnerAliasBoundedStringHelper, member_seq_MapULongLongInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasBoundedStringHelper, type_name_MapULongLongInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasBoundedStringHelper, type_name_MapULongLongInnerAliasBoundedStringHelper.to_string(), type_ids_MapULongLongInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasBoundedStringHelper", type_ids_MapULongLongInnerAliasBoundedStringHelper); - if (return_code_MapULongLongInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasBoundedWStringHelper", type_ids_MapULongLongInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapULongLongInnerAliasBoundedWStringHelper = "MapULongLongInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasBoundedWStringHelper; @@ -43667,215 +17272,46 @@ void register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier( header_MapULongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasBoundedWStringHelper; { - return_code_MapULongLongInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_wstring_10_unbounded", type_ids_MapULongLongInnerAliasBoundedWStringHelper); + "anonymous_map_uint64_t_anonymous_wstring_10_unbounded", type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper) { - return_code_MapULongLongInnerAliasBoundedWStringHelper = + return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapULongLongInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapULongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapULongLongInnerAliasBoundedWStringHelper); - - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapULongLongInnerAliasBoundedWStringHelper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapULongLongInnerAliasBoundedWStringHelper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper, element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasBoundedWStringHelper = + return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasBoundedWStringHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_bounded_wstring_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper, key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_wstring_10_unbounded = EK_BOTH; @@ -43898,68 +17334,21 @@ void register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded), key_flags_anonymous_map_uint64_t_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_wstring_10_unbounded", type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_wstring_10_unbounded", type_ids_MapULongLongInnerAliasBoundedWStringHelper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_bounded_wstring_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_bounded_wstring_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_bounded_wstring_helper; MemberId member_id_var_map_u_long_long_inner_alias_bounded_wstring_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_wstring_helper, member_flags_var_map_u_long_long_inner_alias_bounded_wstring_helper, type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_wstring_helper, member_flags_var_map_u_long_long_inner_alias_bounded_wstring_helper, type_ids_MapULongLongInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_bounded_wstring_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_bounded_wstring_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_bounded_wstring_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_bounded_wstring_helper, member_flags_var_map_u_long_long_inner_alias_bounded_wstring_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_bounded_wstring_helper, common_var_map_u_long_long_inner_alias_bounded_wstring_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_bounded_wstring_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_bounded_wstring_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_bounded_wstring_helper = "var_map_u_long_long_inner_alias_bounded_wstring_helper"; @@ -43971,32 +17360,26 @@ void register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasBoundedWStringHelper, header_MapULongLongInnerAliasBoundedWStringHelper, member_seq_MapULongLongInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasBoundedWStringHelper, type_name_MapULongLongInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasBoundedWStringHelper, type_name_MapULongLongInnerAliasBoundedWStringHelper.to_string(), type_ids_MapULongLongInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasBoundedWStringHelper", type_ids_MapULongLongInnerAliasBoundedWStringHelper); - if (return_code_MapULongLongInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerEnumHelper) { + + ReturnCode_t return_code_MapULongLongInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerEnumHelper", type_ids_MapULongLongInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerEnumHelper) { - StructTypeFlag struct_flags_MapULongLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerEnumHelper; - TypeIdentifierPair type_ids_MapULongLongInnerEnumHelper; QualifiedTypeName type_name_MapULongLongInnerEnumHelper = "MapULongLongInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerEnumHelper; @@ -44005,173 +17388,46 @@ void register_MapULongLongInnerEnumHelper_type_identifier( header_MapULongLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerEnumHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerEnumHelper; { - return_code_MapULongLongInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_enum_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_enum_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_enum_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerEnumHelper_unbounded", type_ids_MapULongLongInnerEnumHelper); + "anonymous_map_uint64_t_InnerEnumHelper_unbounded", type_ids_var_map_u_long_long_inner_enum_helper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_enum_helper) { - return_code_MapULongLongInnerEnumHelper = + return_code_var_map_u_long_long_inner_enum_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapULongLongInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_u_long_long_inner_enum_helper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_enum_helper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapULongLongInnerEnumHelper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_u_long_long_inner_enum_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_enum_helper, element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerEnumHelper = + return_code_var_map_u_long_long_inner_enum_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerEnumHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_enum_helper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_enum_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerEnumHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_enum_helper, key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerEnumHelper_unbounded = EK_BOTH; @@ -44194,68 +17450,21 @@ void register_MapULongLongInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerEnumHelper_unbounded", type_ids_var_map_u_long_long_inner_enum_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerEnumHelper_unbounded", type_ids_MapULongLongInnerEnumHelper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_enum_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_enum_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_enum_helper; MemberId member_id_var_map_u_long_long_inner_enum_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_enum_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_enum_helper, member_flags_var_map_u_long_long_inner_enum_helper, type_ids_MapULongLongInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_enum_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_enum_helper, member_flags_var_map_u_long_long_inner_enum_helper, type_ids_MapULongLongInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_enum_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_enum_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_enum_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_enum_helper, member_flags_var_map_u_long_long_inner_enum_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_enum_helper, common_var_map_u_long_long_inner_enum_helper_ec))}; + if (!common_var_map_u_long_long_inner_enum_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_enum_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_enum_helper = "var_map_u_long_long_inner_enum_helper"; @@ -44267,32 +17476,26 @@ void register_MapULongLongInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerEnumHelper, header_MapULongLongInnerEnumHelper, member_seq_MapULongLongInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerEnumHelper, type_name_MapULongLongInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerEnumHelper, type_name_MapULongLongInnerEnumHelper.to_string(), type_ids_MapULongLongInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerEnumHelper", type_ids_MapULongLongInnerEnumHelper); - if (return_code_MapULongLongInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerBitMaskHelper) { + + ReturnCode_t return_code_MapULongLongInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerBitMaskHelper", type_ids_MapULongLongInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapULongLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapULongLongInnerBitMaskHelper; QualifiedTypeName type_name_MapULongLongInnerBitMaskHelper = "MapULongLongInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerBitMaskHelper; @@ -44301,206 +17504,46 @@ void register_MapULongLongInnerBitMaskHelper_type_identifier( header_MapULongLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerBitMaskHelper; { - return_code_MapULongLongInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_bit_mask_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_bit_mask_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_bit_mask_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded", type_ids_MapULongLongInnerBitMaskHelper); + "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded", type_ids_var_map_u_long_long_inner_bit_mask_helper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bit_mask_helper) { - return_code_MapULongLongInnerBitMaskHelper = + return_code_var_map_u_long_long_inner_bit_mask_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapULongLongInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_u_long_long_inner_bit_mask_helper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bit_mask_helper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapULongLongInnerBitMaskHelper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_u_long_long_inner_bit_mask_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bit_mask_helper, element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerBitMaskHelper = + return_code_var_map_u_long_long_inner_bit_mask_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerBitMaskHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_bit_mask_helper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bit_mask_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bit_mask_helper, key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -44523,68 +17566,21 @@ void register_MapULongLongInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded", type_ids_var_map_u_long_long_inner_bit_mask_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded", type_ids_MapULongLongInnerBitMaskHelper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_bit_mask_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_bit_mask_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_bit_mask_helper; MemberId member_id_var_map_u_long_long_inner_bit_mask_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_bit_mask_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bit_mask_helper, member_flags_var_map_u_long_long_inner_bit_mask_helper, type_ids_MapULongLongInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_bit_mask_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bit_mask_helper, member_flags_var_map_u_long_long_inner_bit_mask_helper, type_ids_MapULongLongInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_bit_mask_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_bit_mask_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_bit_mask_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bit_mask_helper, member_flags_var_map_u_long_long_inner_bit_mask_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bit_mask_helper, common_var_map_u_long_long_inner_bit_mask_helper_ec))}; + if (!common_var_map_u_long_long_inner_bit_mask_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_bit_mask_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_bit_mask_helper = "var_map_u_long_long_inner_bit_mask_helper"; @@ -44596,32 +17592,26 @@ void register_MapULongLongInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerBitMaskHelper, header_MapULongLongInnerBitMaskHelper, member_seq_MapULongLongInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerBitMaskHelper, type_name_MapULongLongInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerBitMaskHelper, type_name_MapULongLongInnerBitMaskHelper.to_string(), type_ids_MapULongLongInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerBitMaskHelper", type_ids_MapULongLongInnerBitMaskHelper); - if (return_code_MapULongLongInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasHelper", type_ids_MapULongLongInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasHelper; QualifiedTypeName type_name_MapULongLongInnerAliasHelper = "MapULongLongInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasHelper; @@ -44630,198 +17620,46 @@ void register_MapULongLongInnerAliasHelper_type_identifier( header_MapULongLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasHelper; { - return_code_MapULongLongInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerAliasHelper_unbounded", type_ids_MapULongLongInnerAliasHelper); + "anonymous_map_uint64_t_InnerAliasHelper_unbounded", type_ids_var_map_u_long_long_inner_alias_helper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_helper) { - return_code_MapULongLongInnerAliasHelper = + return_code_var_map_u_long_long_inner_alias_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapULongLongInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_u_long_long_inner_alias_helper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_helper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapULongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongLongInnerAliasHelper); - - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapULongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapULongLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapULongLongInnerAliasHelper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_u_long_long_inner_alias_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_helper, element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasHelper = + return_code_var_map_u_long_long_inner_alias_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_helper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_helper, key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerAliasHelper_unbounded = EK_BOTH; @@ -44844,68 +17682,21 @@ void register_MapULongLongInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerAliasHelper_unbounded", type_ids_var_map_u_long_long_inner_alias_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerAliasHelper_unbounded", type_ids_MapULongLongInnerAliasHelper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_helper; MemberId member_id_var_map_u_long_long_inner_alias_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_helper, member_flags_var_map_u_long_long_inner_alias_helper, type_ids_MapULongLongInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_helper, member_flags_var_map_u_long_long_inner_alias_helper, type_ids_MapULongLongInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_helper, member_flags_var_map_u_long_long_inner_alias_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_helper, common_var_map_u_long_long_inner_alias_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_helper = "var_map_u_long_long_inner_alias_helper"; @@ -44917,32 +17708,26 @@ void register_MapULongLongInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasHelper, header_MapULongLongInnerAliasHelper, member_seq_MapULongLongInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasHelper, type_name_MapULongLongInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasHelper, type_name_MapULongLongInnerAliasHelper.to_string(), type_ids_MapULongLongInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasHelper", type_ids_MapULongLongInnerAliasHelper); - if (return_code_MapULongLongInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasArrayHelper", type_ids_MapULongLongInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasArrayHelper; QualifiedTypeName type_name_MapULongLongInnerAliasArrayHelper = "MapULongLongInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasArrayHelper; @@ -44951,279 +17736,46 @@ void register_MapULongLongInnerAliasArrayHelper_type_identifier( header_MapULongLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasArrayHelper; { - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded", type_ids_MapULongLongInnerAliasArrayHelper); - - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapULongLongInnerAliasArrayHelper); - - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapULongLongInnerAliasArrayHelper); - - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongLongInnerAliasArrayHelper); - - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapULongLongInnerAliasArrayHelper); - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapULongLongInnerAliasArrayHelper); - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_array_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_array_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_array_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_u_long_long_inner_alias_array_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_array_helper) + { + return_code_var_map_u_long_long_inner_alias_array_helper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_array_helper", type_ids_var_map_u_long_long_inner_alias_array_helper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_array_helper) + { + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_u_long_long_inner_alias_array_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_array_helper, element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasArrayHelper = + return_code_var_map_u_long_long_inner_alias_array_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasArrayHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_array_helper); - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_array_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_array_helper, key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -45246,68 +17798,21 @@ void register_MapULongLongInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded", type_ids_var_map_u_long_long_inner_alias_array_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded", type_ids_MapULongLongInnerAliasArrayHelper); - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_array_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_array_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_array_helper; MemberId member_id_var_map_u_long_long_inner_alias_array_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_array_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_array_helper, member_flags_var_map_u_long_long_inner_alias_array_helper, type_ids_MapULongLongInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_array_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_array_helper, member_flags_var_map_u_long_long_inner_alias_array_helper, type_ids_MapULongLongInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_array_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_array_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_array_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_array_helper, member_flags_var_map_u_long_long_inner_alias_array_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_array_helper, common_var_map_u_long_long_inner_alias_array_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_array_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_array_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_array_helper = "var_map_u_long_long_inner_alias_array_helper"; @@ -45319,32 +17824,26 @@ void register_MapULongLongInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasArrayHelper, header_MapULongLongInnerAliasArrayHelper, member_seq_MapULongLongInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasArrayHelper, type_name_MapULongLongInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasArrayHelper, type_name_MapULongLongInnerAliasArrayHelper.to_string(), type_ids_MapULongLongInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasArrayHelper", type_ids_MapULongLongInnerAliasArrayHelper); - if (return_code_MapULongLongInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasSequenceHelper", type_ids_MapULongLongInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasSequenceHelper; QualifiedTypeName type_name_MapULongLongInnerAliasSequenceHelper = "MapULongLongInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasSequenceHelper; @@ -45353,277 +17852,46 @@ void register_MapULongLongInnerAliasSequenceHelper_type_identifier( header_MapULongLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasSequenceHelper; { - return_code_MapULongLongInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_sequence_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_sequence_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_sequence_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapULongLongInnerAliasSequenceHelper); + "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_u_long_long_inner_alias_sequence_helper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_sequence_helper) { - return_code_MapULongLongInnerAliasSequenceHelper = + return_code_var_map_u_long_long_inner_alias_sequence_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapULongLongInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_u_long_long_inner_alias_sequence_helper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_sequence_helper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapULongLongInnerAliasSequenceHelper); - - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapULongLongInnerAliasSequenceHelper); - - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapULongLongInnerAliasSequenceHelper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapULongLongInnerAliasSequenceHelper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_u_long_long_inner_alias_sequence_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_sequence_helper, element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasSequenceHelper = + return_code_var_map_u_long_long_inner_alias_sequence_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasSequenceHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_sequence_helper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_sequence_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_sequence_helper, key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -45646,68 +17914,21 @@ void register_MapULongLongInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_u_long_long_inner_alias_sequence_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapULongLongInnerAliasSequenceHelper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_sequence_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_sequence_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_sequence_helper; MemberId member_id_var_map_u_long_long_inner_alias_sequence_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_sequence_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_sequence_helper, member_flags_var_map_u_long_long_inner_alias_sequence_helper, type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_sequence_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_sequence_helper, member_flags_var_map_u_long_long_inner_alias_sequence_helper, type_ids_MapULongLongInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_sequence_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_sequence_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_sequence_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_sequence_helper, member_flags_var_map_u_long_long_inner_alias_sequence_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_sequence_helper, common_var_map_u_long_long_inner_alias_sequence_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_sequence_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_sequence_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_sequence_helper = "var_map_u_long_long_inner_alias_sequence_helper"; @@ -45719,32 +17940,26 @@ void register_MapULongLongInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasSequenceHelper, header_MapULongLongInnerAliasSequenceHelper, member_seq_MapULongLongInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasSequenceHelper, type_name_MapULongLongInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasSequenceHelper, type_name_MapULongLongInnerAliasSequenceHelper.to_string(), type_ids_MapULongLongInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasSequenceHelper", type_ids_MapULongLongInnerAliasSequenceHelper); - if (return_code_MapULongLongInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerAliasMapHelper) { + + ReturnCode_t return_code_MapULongLongInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerAliasMapHelper", type_ids_MapULongLongInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapULongLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapULongLongInnerAliasMapHelper; QualifiedTypeName type_name_MapULongLongInnerAliasMapHelper = "MapULongLongInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerAliasMapHelper; @@ -45753,340 +17968,46 @@ void register_MapULongLongInnerAliasMapHelper_type_identifier( header_MapULongLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerAliasMapHelper; { - return_code_MapULongLongInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_alias_map_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_alias_map_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_alias_map_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapULongLongInnerAliasMapHelper); + "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_u_long_long_inner_alias_map_helper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_map_helper) { - return_code_MapULongLongInnerAliasMapHelper = + return_code_var_map_u_long_long_inner_alias_map_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapULongLongInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_u_long_long_inner_alias_map_helper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_map_helper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapULongLongInnerAliasMapHelper); - - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongLongInnerAliasMapHelper); - - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapULongLongInnerAliasMapHelper); - - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapULongLongInnerAliasMapHelper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapULongLongInnerAliasMapHelper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_u_long_long_inner_alias_map_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_map_helper, element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerAliasMapHelper = + return_code_var_map_u_long_long_inner_alias_map_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerAliasMapHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_alias_map_helper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_alias_map_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_map_helper, key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -46109,68 +18030,21 @@ void register_MapULongLongInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_u_long_long_inner_alias_map_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapULongLongInnerAliasMapHelper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_alias_map_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_alias_map_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_alias_map_helper; MemberId member_id_var_map_u_long_long_inner_alias_map_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_map_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_map_helper, member_flags_var_map_u_long_long_inner_alias_map_helper, type_ids_MapULongLongInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_alias_map_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_map_helper, member_flags_var_map_u_long_long_inner_alias_map_helper, type_ids_MapULongLongInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_alias_map_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_alias_map_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_alias_map_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_alias_map_helper, member_flags_var_map_u_long_long_inner_alias_map_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_alias_map_helper, common_var_map_u_long_long_inner_alias_map_helper_ec))}; + if (!common_var_map_u_long_long_inner_alias_map_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_alias_map_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_alias_map_helper = "var_map_u_long_long_inner_alias_map_helper"; @@ -46182,32 +18056,26 @@ void register_MapULongLongInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerAliasMapHelper, header_MapULongLongInnerAliasMapHelper, member_seq_MapULongLongInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasMapHelper, type_name_MapULongLongInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerAliasMapHelper, type_name_MapULongLongInnerAliasMapHelper.to_string(), type_ids_MapULongLongInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerAliasMapHelper", type_ids_MapULongLongInnerAliasMapHelper); - if (return_code_MapULongLongInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerUnionHelper) { + + ReturnCode_t return_code_MapULongLongInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerUnionHelper", type_ids_MapULongLongInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerUnionHelper) { - StructTypeFlag struct_flags_MapULongLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerUnionHelper; - TypeIdentifierPair type_ids_MapULongLongInnerUnionHelper; QualifiedTypeName type_name_MapULongLongInnerUnionHelper = "MapULongLongInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerUnionHelper; @@ -46216,397 +18084,46 @@ void register_MapULongLongInnerUnionHelper_type_identifier( header_MapULongLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerUnionHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerUnionHelper; { - return_code_MapULongLongInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_union_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_union_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_union_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerUnionHelper_unbounded", type_ids_MapULongLongInnerUnionHelper); + "anonymous_map_uint64_t_InnerUnionHelper_unbounded", type_ids_var_map_u_long_long_inner_union_helper); - if (return_code_MapULongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_union_helper) { - return_code_MapULongLongInnerUnionHelper = + return_code_var_map_u_long_long_inner_union_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapULongLongInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_u_long_long_inner_union_helper); - if (return_code_MapULongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_union_helper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongLongInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapULongLongInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_u_long_long_inner_union_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_union_helper, element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerUnionHelper = + return_code_var_map_u_long_long_inner_union_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerUnionHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_union_helper); - if (return_code_MapULongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_union_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerUnionHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_union_helper, key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerUnionHelper_unbounded = EK_BOTH; @@ -46629,68 +18146,21 @@ void register_MapULongLongInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerUnionHelper_unbounded", type_ids_var_map_u_long_long_inner_union_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerUnionHelper_unbounded", type_ids_MapULongLongInnerUnionHelper); - if (return_code_MapULongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_union_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_union_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_union_helper; MemberId member_id_var_map_u_long_long_inner_union_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_union_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_union_helper, member_flags_var_map_u_long_long_inner_union_helper, type_ids_MapULongLongInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_union_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_union_helper, member_flags_var_map_u_long_long_inner_union_helper, type_ids_MapULongLongInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_union_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_union_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_union_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_union_helper, member_flags_var_map_u_long_long_inner_union_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_union_helper, common_var_map_u_long_long_inner_union_helper_ec))}; + if (!common_var_map_u_long_long_inner_union_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_union_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_union_helper = "var_map_u_long_long_inner_union_helper"; @@ -46702,32 +18172,26 @@ void register_MapULongLongInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerUnionHelper, header_MapULongLongInnerUnionHelper, member_seq_MapULongLongInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerUnionHelper, type_name_MapULongLongInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerUnionHelper, type_name_MapULongLongInnerUnionHelper.to_string(), type_ids_MapULongLongInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerUnionHelper", type_ids_MapULongLongInnerUnionHelper); - if (return_code_MapULongLongInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerStructureHelper) { + + ReturnCode_t return_code_MapULongLongInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerStructureHelper", type_ids_MapULongLongInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerStructureHelper) { - StructTypeFlag struct_flags_MapULongLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerStructureHelper; - TypeIdentifierPair type_ids_MapULongLongInnerStructureHelper; QualifiedTypeName type_name_MapULongLongInnerStructureHelper = "MapULongLongInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerStructureHelper; @@ -46736,287 +18200,46 @@ void register_MapULongLongInnerStructureHelper_type_identifier( header_MapULongLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerStructureHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerStructureHelper; { - return_code_MapULongLongInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_structure_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_structure_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_structure_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerStructureHelper_unbounded", type_ids_MapULongLongInnerStructureHelper); + "anonymous_map_uint64_t_InnerStructureHelper_unbounded", type_ids_var_map_u_long_long_inner_structure_helper); - if (return_code_MapULongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_structure_helper) { - return_code_MapULongLongInnerStructureHelper = + return_code_var_map_u_long_long_inner_structure_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapULongLongInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_u_long_long_inner_structure_helper); - if (return_code_MapULongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_structure_helper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapULongLongInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapULongLongInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_u_long_long_inner_structure_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_structure_helper, element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerStructureHelper = + return_code_var_map_u_long_long_inner_structure_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerStructureHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_structure_helper); - if (return_code_MapULongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_structure_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerStructureHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_structure_helper, key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerStructureHelper_unbounded = EK_BOTH; @@ -47039,68 +18262,21 @@ void register_MapULongLongInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerStructureHelper_unbounded", type_ids_var_map_u_long_long_inner_structure_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerStructureHelper_unbounded", type_ids_MapULongLongInnerStructureHelper); - if (return_code_MapULongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_structure_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_structure_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_structure_helper; MemberId member_id_var_map_u_long_long_inner_structure_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_structure_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_structure_helper, member_flags_var_map_u_long_long_inner_structure_helper, type_ids_MapULongLongInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_structure_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_structure_helper, member_flags_var_map_u_long_long_inner_structure_helper, type_ids_MapULongLongInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_structure_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_structure_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_structure_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_structure_helper, member_flags_var_map_u_long_long_inner_structure_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_structure_helper, common_var_map_u_long_long_inner_structure_helper_ec))}; + if (!common_var_map_u_long_long_inner_structure_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_structure_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_structure_helper = "var_map_u_long_long_inner_structure_helper"; @@ -47112,32 +18288,26 @@ void register_MapULongLongInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerStructureHelper, header_MapULongLongInnerStructureHelper, member_seq_MapULongLongInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerStructureHelper, type_name_MapULongLongInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerStructureHelper, type_name_MapULongLongInnerStructureHelper.to_string(), type_ids_MapULongLongInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerStructureHelper", type_ids_MapULongLongInnerStructureHelper); - if (return_code_MapULongLongInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapULongLongInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapULongLongInnerBitsetHelper) { + + ReturnCode_t return_code_MapULongLongInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapULongLongInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapULongLongInnerBitsetHelper", type_ids_MapULongLongInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapULongLongInnerBitsetHelper) { - StructTypeFlag struct_flags_MapULongLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapULongLongInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapULongLongInnerBitsetHelper; - TypeIdentifierPair type_ids_MapULongLongInnerBitsetHelper; QualifiedTypeName type_name_MapULongLongInnerBitsetHelper = "MapULongLongInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapULongLongInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapULongLongInnerBitsetHelper; @@ -47146,192 +18316,46 @@ void register_MapULongLongInnerBitsetHelper_type_identifier( header_MapULongLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapULongLongInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapULongLongInnerBitsetHelper; { - return_code_MapULongLongInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_u_long_long_inner_bitset_helper; + ReturnCode_t return_code_var_map_u_long_long_inner_bitset_helper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_u_long_long_inner_bitset_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerBitsetHelper_unbounded", type_ids_MapULongLongInnerBitsetHelper); + "anonymous_map_uint64_t_InnerBitsetHelper_unbounded", type_ids_var_map_u_long_long_inner_bitset_helper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bitset_helper) { - return_code_MapULongLongInnerBitsetHelper = + return_code_var_map_u_long_long_inner_bitset_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapULongLongInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_u_long_long_inner_bitset_helper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bitset_helper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapULongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapULongLongInnerBitsetHelper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_u_long_long_inner_bitset_helper); } - TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bitset_helper, element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapULongLongInnerBitsetHelper = + return_code_var_map_u_long_long_inner_bitset_helper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapULongLongInnerBitsetHelper); + "_uint64_t", type_ids_var_map_u_long_long_inner_bitset_helper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_u_long_long_inner_bitset_helper) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapULongLongInnerBitsetHelper.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bitset_helper, key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_uint64_t_InnerBitsetHelper_unbounded = EK_BOTH; @@ -47354,68 +18378,21 @@ void register_MapULongLongInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded), key_flags_anonymous_map_uint64_t_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_uint64_t_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_uint64_t_InnerBitsetHelper_unbounded", type_ids_var_map_u_long_long_inner_bitset_helper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_uint64_t_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapULongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_uint64_t_InnerBitsetHelper_unbounded", type_ids_MapULongLongInnerBitsetHelper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_uint64_t_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_u_long_long_inner_bitset_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_u_long_long_inner_bitset_helper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_u_long_long_inner_bitset_helper; MemberId member_id_var_map_u_long_long_inner_bitset_helper = 0x00000000; - if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_bitset_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bitset_helper, member_flags_var_map_u_long_long_inner_bitset_helper, type_ids_MapULongLongInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapULongLongInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_u_long_long_inner_bitset_helper = TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bitset_helper, member_flags_var_map_u_long_long_inner_bitset_helper, type_ids_MapULongLongInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_u_long_long_inner_bitset_helper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_u_long_long_inner_bitset_helper_ec {false}; + CommonStructMember common_var_map_u_long_long_inner_bitset_helper {TypeObjectUtils::build_common_struct_member(member_id_var_map_u_long_long_inner_bitset_helper, member_flags_var_map_u_long_long_inner_bitset_helper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_u_long_long_inner_bitset_helper, common_var_map_u_long_long_inner_bitset_helper_ec))}; + if (!common_var_map_u_long_long_inner_bitset_helper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_u_long_long_inner_bitset_helper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_u_long_long_inner_bitset_helper = "var_map_u_long_long_inner_bitset_helper"; @@ -47427,32 +18404,26 @@ void register_MapULongLongInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapULongLongInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapULongLongInnerBitsetHelper, header_MapULongLongInnerBitsetHelper, member_seq_MapULongLongInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerBitsetHelper, type_name_MapULongLongInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapULongLongInnerBitsetHelper, type_name_MapULongLongInnerBitsetHelper.to_string(), type_ids_MapULongLongInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapULongLongInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapULongLongInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapULongLongInnerBitsetHelper", type_ids_MapULongLongInnerBitsetHelper); - if (return_code_MapULongLongInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapULongLongInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringShort) { + + ReturnCode_t return_code_MapStringShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringShort", type_ids_MapStringShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringShort) { - StructTypeFlag struct_flags_MapStringShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringShort; - TypeIdentifierPair type_ids_MapStringShort; QualifiedTypeName type_name_MapStringShort = "MapStringShort"; eprosima::fastcdr::optional type_ann_builtin_MapStringShort; eprosima::fastcdr::optional ann_custom_MapStringShort; @@ -47461,137 +18432,56 @@ void register_MapStringShort_type_identifier( header_MapStringShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringShort); CompleteStructMemberSeq member_seq_MapStringShort; { - return_code_MapStringShort = + TypeIdentifierPair type_ids_var_map_string_short; + ReturnCode_t return_code_var_map_string_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int16_t_unbounded", type_ids_MapStringShort); + "anonymous_map_anonymous_string_unbounded_int16_t_unbounded", type_ids_var_map_string_short); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_short) { - return_code_MapStringShort = + return_code_var_map_string_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapStringShort); + "_int16_t", type_ids_var_map_string_short); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_short, element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringShort = + return_code_var_map_string_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringShort); + "anonymous_string_unbounded", type_ids_var_map_string_short); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_short) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringShort); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_short, key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_int16_t_unbounded = EK_BOTH; @@ -47614,68 +18504,21 @@ void register_MapStringShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int16_t_unbounded", type_ids_var_map_string_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int16_t_unbounded", type_ids_MapStringShort); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_short; MemberId member_id_var_map_string_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_short, member_flags_var_map_string_short, type_ids_MapStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_short, member_flags_var_map_string_short, type_ids_MapStringShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_short_ec {false}; + CommonStructMember common_var_map_string_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_short, member_flags_var_map_string_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_short, common_var_map_string_short_ec))}; + if (!common_var_map_string_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_short = "var_map_string_short"; @@ -47687,32 +18530,26 @@ void register_MapStringShort_type_identifier( } CompleteStructType struct_type_MapStringShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringShort, header_MapStringShort, member_seq_MapStringShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringShort, type_name_MapStringShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringShort, type_name_MapStringShort.to_string(), type_ids_MapStringShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringShort", type_ids_MapStringShort); - if (return_code_MapStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringUShort) { + + ReturnCode_t return_code_MapStringUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringUShort", type_ids_MapStringUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringUShort) { - StructTypeFlag struct_flags_MapStringUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringUShort; - TypeIdentifierPair type_ids_MapStringUShort; QualifiedTypeName type_name_MapStringUShort = "MapStringUShort"; eprosima::fastcdr::optional type_ann_builtin_MapStringUShort; eprosima::fastcdr::optional ann_custom_MapStringUShort; @@ -47721,137 +18558,56 @@ void register_MapStringUShort_type_identifier( header_MapStringUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringUShort); CompleteStructMemberSeq member_seq_MapStringUShort; { - return_code_MapStringUShort = + TypeIdentifierPair type_ids_var_map_string_ushort; + ReturnCode_t return_code_var_map_string_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded", type_ids_MapStringUShort); + "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded", type_ids_var_map_string_ushort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ushort) { - return_code_MapStringUShort = + return_code_var_map_string_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapStringUShort); + "_uint16_t", type_ids_var_map_string_ushort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapStringUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ushort, element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringUShort = + return_code_var_map_string_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringUShort); + "anonymous_string_unbounded", type_ids_var_map_string_ushort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ushort) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringUShort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapStringUShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ushort, key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded = EK_BOTH; @@ -47874,68 +18630,21 @@ void register_MapStringUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded", type_ids_var_map_string_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded", type_ids_MapStringUShort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_ushort; MemberId member_id_var_map_string_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ushort, member_flags_var_map_string_ushort, type_ids_MapStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ushort, member_flags_var_map_string_ushort, type_ids_MapStringUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_ushort_ec {false}; + CommonStructMember common_var_map_string_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ushort, member_flags_var_map_string_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ushort, common_var_map_string_ushort_ec))}; + if (!common_var_map_string_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_ushort = "var_map_string_ushort"; @@ -47947,32 +18656,26 @@ void register_MapStringUShort_type_identifier( } CompleteStructType struct_type_MapStringUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringUShort, header_MapStringUShort, member_seq_MapStringUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringUShort, type_name_MapStringUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringUShort, type_name_MapStringUShort.to_string(), type_ids_MapStringUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringUShort", type_ids_MapStringUShort); - if (return_code_MapStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringLong) { + + ReturnCode_t return_code_MapStringLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringLong", type_ids_MapStringLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringLong) { - StructTypeFlag struct_flags_MapStringLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringLong; - TypeIdentifierPair type_ids_MapStringLong; QualifiedTypeName type_name_MapStringLong = "MapStringLong"; eprosima::fastcdr::optional type_ann_builtin_MapStringLong; eprosima::fastcdr::optional ann_custom_MapStringLong; @@ -47981,137 +18684,56 @@ void register_MapStringLong_type_identifier( header_MapStringLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringLong); CompleteStructMemberSeq member_seq_MapStringLong; { - return_code_MapStringLong = + TypeIdentifierPair type_ids_var_map_string_long; + ReturnCode_t return_code_var_map_string_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_unbounded", type_ids_MapStringLong); + "anonymous_map_anonymous_string_unbounded_int32_t_unbounded", type_ids_var_map_string_long); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_long) { - return_code_MapStringLong = + return_code_var_map_string_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapStringLong); + "_int32_t", type_ids_var_map_string_long); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_long, element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringLong = + return_code_var_map_string_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLong); + "anonymous_string_unbounded", type_ids_var_map_string_long); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_long) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLong); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_long, key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_int32_t_unbounded = EK_BOTH; @@ -48134,68 +18756,21 @@ void register_MapStringLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_unbounded", type_ids_var_map_string_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_unbounded", type_ids_MapStringLong); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_long; MemberId member_id_var_map_string_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_long, member_flags_var_map_string_long, type_ids_MapStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_long, member_flags_var_map_string_long, type_ids_MapStringLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_long_ec {false}; + CommonStructMember common_var_map_string_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_long, member_flags_var_map_string_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_long, common_var_map_string_long_ec))}; + if (!common_var_map_string_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_long = "var_map_string_long"; @@ -48207,32 +18782,26 @@ void register_MapStringLong_type_identifier( } CompleteStructType struct_type_MapStringLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringLong, header_MapStringLong, member_seq_MapStringLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLong, type_name_MapStringLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLong, type_name_MapStringLong.to_string(), type_ids_MapStringLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringLong", type_ids_MapStringLong); - if (return_code_MapStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringULong) { + + ReturnCode_t return_code_MapStringULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringULong", type_ids_MapStringULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringULong) { - StructTypeFlag struct_flags_MapStringULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringULong; - TypeIdentifierPair type_ids_MapStringULong; QualifiedTypeName type_name_MapStringULong = "MapStringULong"; eprosima::fastcdr::optional type_ann_builtin_MapStringULong; eprosima::fastcdr::optional ann_custom_MapStringULong; @@ -48241,137 +18810,56 @@ void register_MapStringULong_type_identifier( header_MapStringULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringULong); CompleteStructMemberSeq member_seq_MapStringULong; { - return_code_MapStringULong = + TypeIdentifierPair type_ids_var_map_string_ulong; + ReturnCode_t return_code_var_map_string_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded", type_ids_MapStringULong); + "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded", type_ids_var_map_string_ulong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulong) { - return_code_MapStringULong = + return_code_var_map_string_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapStringULong); + "_uint32_t", type_ids_var_map_string_ulong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapStringULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulong, element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringULong = + return_code_var_map_string_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringULong); + "anonymous_string_unbounded", type_ids_var_map_string_ulong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringULong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapStringULong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulong, key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded = EK_BOTH; @@ -48394,68 +18882,21 @@ void register_MapStringULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded", type_ids_var_map_string_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded", type_ids_MapStringULong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_ulong; MemberId member_id_var_map_string_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulong, member_flags_var_map_string_ulong, type_ids_MapStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulong, member_flags_var_map_string_ulong, type_ids_MapStringULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_ulong_ec {false}; + CommonStructMember common_var_map_string_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulong, member_flags_var_map_string_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulong, common_var_map_string_ulong_ec))}; + if (!common_var_map_string_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_ulong = "var_map_string_ulong"; @@ -48467,32 +18908,26 @@ void register_MapStringULong_type_identifier( } CompleteStructType struct_type_MapStringULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringULong, header_MapStringULong, member_seq_MapStringULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringULong, type_name_MapStringULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringULong, type_name_MapStringULong.to_string(), type_ids_MapStringULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringULong", type_ids_MapStringULong); - if (return_code_MapStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringLongLong) { + + ReturnCode_t return_code_MapStringLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringLongLong", type_ids_MapStringLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringLongLong) { - StructTypeFlag struct_flags_MapStringLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringLongLong; - TypeIdentifierPair type_ids_MapStringLongLong; QualifiedTypeName type_name_MapStringLongLong = "MapStringLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapStringLongLong; eprosima::fastcdr::optional ann_custom_MapStringLongLong; @@ -48501,137 +18936,56 @@ void register_MapStringLongLong_type_identifier( header_MapStringLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringLongLong); CompleteStructMemberSeq member_seq_MapStringLongLong; { - return_code_MapStringLongLong = + TypeIdentifierPair type_ids_var_map_string_longlong; + ReturnCode_t return_code_var_map_string_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int64_t_unbounded", type_ids_MapStringLongLong); + "anonymous_map_anonymous_string_unbounded_int64_t_unbounded", type_ids_var_map_string_longlong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longlong) { - return_code_MapStringLongLong = + return_code_var_map_string_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapStringLongLong); + "_int64_t", type_ids_var_map_string_longlong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapStringLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longlong, element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringLongLong = + return_code_var_map_string_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLongLong); + "anonymous_string_unbounded", type_ids_var_map_string_longlong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longlong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLongLong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapStringLongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longlong, key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_int64_t_unbounded = EK_BOTH; @@ -48654,68 +19008,21 @@ void register_MapStringLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int64_t_unbounded", type_ids_var_map_string_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int64_t_unbounded", type_ids_MapStringLongLong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_longlong; MemberId member_id_var_map_string_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longlong, member_flags_var_map_string_longlong, type_ids_MapStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longlong, member_flags_var_map_string_longlong, type_ids_MapStringLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_longlong_ec {false}; + CommonStructMember common_var_map_string_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longlong, member_flags_var_map_string_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longlong, common_var_map_string_longlong_ec))}; + if (!common_var_map_string_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_longlong = "var_map_string_longlong"; @@ -48727,32 +19034,26 @@ void register_MapStringLongLong_type_identifier( } CompleteStructType struct_type_MapStringLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringLongLong, header_MapStringLongLong, member_seq_MapStringLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLongLong, type_name_MapStringLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLongLong, type_name_MapStringLongLong.to_string(), type_ids_MapStringLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringLongLong", type_ids_MapStringLongLong); - if (return_code_MapStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringULongLong) { + + ReturnCode_t return_code_MapStringULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringULongLong", type_ids_MapStringULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringULongLong) { - StructTypeFlag struct_flags_MapStringULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringULongLong; - TypeIdentifierPair type_ids_MapStringULongLong; QualifiedTypeName type_name_MapStringULongLong = "MapStringULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapStringULongLong; eprosima::fastcdr::optional ann_custom_MapStringULongLong; @@ -48761,137 +19062,56 @@ void register_MapStringULongLong_type_identifier( header_MapStringULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringULongLong); CompleteStructMemberSeq member_seq_MapStringULongLong; { - return_code_MapStringULongLong = + TypeIdentifierPair type_ids_var_map_string_ulonglong; + ReturnCode_t return_code_var_map_string_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded", type_ids_MapStringULongLong); + "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded", type_ids_var_map_string_ulonglong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulonglong) { - return_code_MapStringULongLong = + return_code_var_map_string_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapStringULongLong); + "_uint64_t", type_ids_var_map_string_ulonglong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapStringULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulonglong, element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringULongLong = + return_code_var_map_string_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringULongLong); + "anonymous_string_unbounded", type_ids_var_map_string_ulonglong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_ulonglong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringULongLong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapStringULongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulonglong, key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded = EK_BOTH; @@ -48914,68 +19134,21 @@ void register_MapStringULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded", type_ids_var_map_string_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded", type_ids_MapStringULongLong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_ulonglong; MemberId member_id_var_map_string_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulonglong, member_flags_var_map_string_ulonglong, type_ids_MapStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulonglong, member_flags_var_map_string_ulonglong, type_ids_MapStringULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_ulonglong_ec {false}; + CommonStructMember common_var_map_string_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_ulonglong, member_flags_var_map_string_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_ulonglong, common_var_map_string_ulonglong_ec))}; + if (!common_var_map_string_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_ulonglong = "var_map_string_ulonglong"; @@ -48987,32 +19160,26 @@ void register_MapStringULongLong_type_identifier( } CompleteStructType struct_type_MapStringULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringULongLong, header_MapStringULongLong, member_seq_MapStringULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringULongLong, type_name_MapStringULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringULongLong, type_name_MapStringULongLong.to_string(), type_ids_MapStringULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringULongLong", type_ids_MapStringULongLong); - if (return_code_MapStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringFloat) { + + ReturnCode_t return_code_MapStringFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringFloat", type_ids_MapStringFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringFloat) { - StructTypeFlag struct_flags_MapStringFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringFloat; - TypeIdentifierPair type_ids_MapStringFloat; QualifiedTypeName type_name_MapStringFloat = "MapStringFloat"; eprosima::fastcdr::optional type_ann_builtin_MapStringFloat; eprosima::fastcdr::optional ann_custom_MapStringFloat; @@ -49021,137 +19188,56 @@ void register_MapStringFloat_type_identifier( header_MapStringFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringFloat); CompleteStructMemberSeq member_seq_MapStringFloat; { - return_code_MapStringFloat = + TypeIdentifierPair type_ids_var_map_string_float; + ReturnCode_t return_code_var_map_string_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_float_unbounded", type_ids_MapStringFloat); + "anonymous_map_anonymous_string_unbounded_float_unbounded", type_ids_var_map_string_float); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_float) { - return_code_MapStringFloat = + return_code_var_map_string_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapStringFloat); + "_float", type_ids_var_map_string_float); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapStringFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_float, element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringFloat = + return_code_var_map_string_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringFloat); + "anonymous_string_unbounded", type_ids_var_map_string_float); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_float) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringFloat); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapStringFloat.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_float, key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_float_unbounded = EK_BOTH; @@ -49174,68 +19260,21 @@ void register_MapStringFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_float_unbounded", type_ids_var_map_string_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_float_unbounded", type_ids_MapStringFloat); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_float; MemberId member_id_var_map_string_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_float, member_flags_var_map_string_float, type_ids_MapStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_float, member_flags_var_map_string_float, type_ids_MapStringFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_float_ec {false}; + CommonStructMember common_var_map_string_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_float, member_flags_var_map_string_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_float, common_var_map_string_float_ec))}; + if (!common_var_map_string_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_float = "var_map_string_float"; @@ -49247,32 +19286,26 @@ void register_MapStringFloat_type_identifier( } CompleteStructType struct_type_MapStringFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringFloat, header_MapStringFloat, member_seq_MapStringFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringFloat, type_name_MapStringFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringFloat, type_name_MapStringFloat.to_string(), type_ids_MapStringFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringFloat", type_ids_MapStringFloat); - if (return_code_MapStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringDouble) { + + ReturnCode_t return_code_MapStringDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringDouble", type_ids_MapStringDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringDouble) { - StructTypeFlag struct_flags_MapStringDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringDouble; - TypeIdentifierPair type_ids_MapStringDouble; QualifiedTypeName type_name_MapStringDouble = "MapStringDouble"; eprosima::fastcdr::optional type_ann_builtin_MapStringDouble; eprosima::fastcdr::optional ann_custom_MapStringDouble; @@ -49281,137 +19314,56 @@ void register_MapStringDouble_type_identifier( header_MapStringDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringDouble); CompleteStructMemberSeq member_seq_MapStringDouble; { - return_code_MapStringDouble = + TypeIdentifierPair type_ids_var_map_string_double; + ReturnCode_t return_code_var_map_string_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_double_unbounded", type_ids_MapStringDouble); + "anonymous_map_anonymous_string_unbounded_double_unbounded", type_ids_var_map_string_double); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_double) { - return_code_MapStringDouble = + return_code_var_map_string_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapStringDouble); + "_double", type_ids_var_map_string_double); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapStringDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_double, element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringDouble = + return_code_var_map_string_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringDouble); + "anonymous_string_unbounded", type_ids_var_map_string_double); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_double) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringDouble); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapStringDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_double, key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_double_unbounded = EK_BOTH; @@ -49434,68 +19386,21 @@ void register_MapStringDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_double_unbounded", type_ids_var_map_string_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_double_unbounded", type_ids_MapStringDouble); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_double; MemberId member_id_var_map_string_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_double, member_flags_var_map_string_double, type_ids_MapStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_double, member_flags_var_map_string_double, type_ids_MapStringDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_double_ec {false}; + CommonStructMember common_var_map_string_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_double, member_flags_var_map_string_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_double, common_var_map_string_double_ec))}; + if (!common_var_map_string_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_double = "var_map_string_double"; @@ -49507,32 +19412,26 @@ void register_MapStringDouble_type_identifier( } CompleteStructType struct_type_MapStringDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringDouble, header_MapStringDouble, member_seq_MapStringDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringDouble, type_name_MapStringDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringDouble, type_name_MapStringDouble.to_string(), type_ids_MapStringDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringDouble", type_ids_MapStringDouble); - if (return_code_MapStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringLongDouble) { + + ReturnCode_t return_code_MapStringLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringLongDouble", type_ids_MapStringLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringLongDouble) { - StructTypeFlag struct_flags_MapStringLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringLongDouble; - TypeIdentifierPair type_ids_MapStringLongDouble; QualifiedTypeName type_name_MapStringLongDouble = "MapStringLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapStringLongDouble; eprosima::fastcdr::optional ann_custom_MapStringLongDouble; @@ -49541,137 +19440,56 @@ void register_MapStringLongDouble_type_identifier( header_MapStringLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringLongDouble); CompleteStructMemberSeq member_seq_MapStringLongDouble; { - return_code_MapStringLongDouble = + TypeIdentifierPair type_ids_var_map_string_longdouble; + ReturnCode_t return_code_var_map_string_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_longdouble_unbounded", type_ids_MapStringLongDouble); + "anonymous_map_anonymous_string_unbounded_longdouble_unbounded", type_ids_var_map_string_longdouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longdouble) { - return_code_MapStringLongDouble = + return_code_var_map_string_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapStringLongDouble); + "_longdouble", type_ids_var_map_string_longdouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapStringLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longdouble, element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringLongDouble = + return_code_var_map_string_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLongDouble); + "anonymous_string_unbounded", type_ids_var_map_string_longdouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_longdouble) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringLongDouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapStringLongDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longdouble, key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_longdouble_unbounded = EK_BOTH; @@ -49694,68 +19512,21 @@ void register_MapStringLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_longdouble_unbounded", type_ids_var_map_string_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_longdouble_unbounded", type_ids_MapStringLongDouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_longdouble; MemberId member_id_var_map_string_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longdouble, member_flags_var_map_string_longdouble, type_ids_MapStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longdouble, member_flags_var_map_string_longdouble, type_ids_MapStringLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_longdouble_ec {false}; + CommonStructMember common_var_map_string_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_longdouble, member_flags_var_map_string_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_longdouble, common_var_map_string_longdouble_ec))}; + if (!common_var_map_string_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_longdouble = "var_map_string_longdouble"; @@ -49767,32 +19538,26 @@ void register_MapStringLongDouble_type_identifier( } CompleteStructType struct_type_MapStringLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringLongDouble, header_MapStringLongDouble, member_seq_MapStringLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLongDouble, type_name_MapStringLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringLongDouble, type_name_MapStringLongDouble.to_string(), type_ids_MapStringLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringLongDouble", type_ids_MapStringLongDouble); - if (return_code_MapStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringBoolean) { + + ReturnCode_t return_code_MapStringBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringBoolean", type_ids_MapStringBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringBoolean) { - StructTypeFlag struct_flags_MapStringBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringBoolean; - TypeIdentifierPair type_ids_MapStringBoolean; QualifiedTypeName type_name_MapStringBoolean = "MapStringBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapStringBoolean; eprosima::fastcdr::optional ann_custom_MapStringBoolean; @@ -49801,137 +19566,56 @@ void register_MapStringBoolean_type_identifier( header_MapStringBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringBoolean); CompleteStructMemberSeq member_seq_MapStringBoolean; { - return_code_MapStringBoolean = + TypeIdentifierPair type_ids_var_map_string_boolean; + ReturnCode_t return_code_var_map_string_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_bool_unbounded", type_ids_MapStringBoolean); + "anonymous_map_anonymous_string_unbounded_bool_unbounded", type_ids_var_map_string_boolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_boolean) { - return_code_MapStringBoolean = + return_code_var_map_string_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapStringBoolean); + "_bool", type_ids_var_map_string_boolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapStringBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_boolean, element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringBoolean = + return_code_var_map_string_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringBoolean); + "anonymous_string_unbounded", type_ids_var_map_string_boolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_boolean) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringBoolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapStringBoolean.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_boolean, key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_bool_unbounded = EK_BOTH; @@ -49954,68 +19638,21 @@ void register_MapStringBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_bool_unbounded", type_ids_var_map_string_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_bool_unbounded", type_ids_MapStringBoolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_boolean; MemberId member_id_var_map_string_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_boolean, member_flags_var_map_string_boolean, type_ids_MapStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_boolean, member_flags_var_map_string_boolean, type_ids_MapStringBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_boolean_ec {false}; + CommonStructMember common_var_map_string_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_boolean, member_flags_var_map_string_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_boolean, common_var_map_string_boolean_ec))}; + if (!common_var_map_string_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_boolean = "var_map_string_boolean"; @@ -50027,32 +19664,26 @@ void register_MapStringBoolean_type_identifier( } CompleteStructType struct_type_MapStringBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringBoolean, header_MapStringBoolean, member_seq_MapStringBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringBoolean, type_name_MapStringBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringBoolean, type_name_MapStringBoolean.to_string(), type_ids_MapStringBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringBoolean", type_ids_MapStringBoolean); - if (return_code_MapStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringOctet) { + + ReturnCode_t return_code_MapStringOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringOctet", type_ids_MapStringOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringOctet) { - StructTypeFlag struct_flags_MapStringOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringOctet; - TypeIdentifierPair type_ids_MapStringOctet; QualifiedTypeName type_name_MapStringOctet = "MapStringOctet"; eprosima::fastcdr::optional type_ann_builtin_MapStringOctet; eprosima::fastcdr::optional ann_custom_MapStringOctet; @@ -50061,137 +19692,56 @@ void register_MapStringOctet_type_identifier( header_MapStringOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringOctet); CompleteStructMemberSeq member_seq_MapStringOctet; { - return_code_MapStringOctet = + TypeIdentifierPair type_ids_var_map_string_octet; + ReturnCode_t return_code_var_map_string_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded", type_ids_MapStringOctet); + "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded", type_ids_var_map_string_octet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_octet) { - return_code_MapStringOctet = + return_code_var_map_string_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapStringOctet); + "_byte", type_ids_var_map_string_octet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapStringOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_octet, element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringOctet = + return_code_var_map_string_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringOctet); + "anonymous_string_unbounded", type_ids_var_map_string_octet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_octet) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringOctet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapStringOctet.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_octet, key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded = EK_BOTH; @@ -50214,68 +19764,21 @@ void register_MapStringOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded", type_ids_var_map_string_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded", type_ids_MapStringOctet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_octet; MemberId member_id_var_map_string_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_octet, member_flags_var_map_string_octet, type_ids_MapStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_octet, member_flags_var_map_string_octet, type_ids_MapStringOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_octet_ec {false}; + CommonStructMember common_var_map_string_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_octet, member_flags_var_map_string_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_octet, common_var_map_string_octet_ec))}; + if (!common_var_map_string_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_octet = "var_map_string_octet"; @@ -50287,32 +19790,26 @@ void register_MapStringOctet_type_identifier( } CompleteStructType struct_type_MapStringOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringOctet, header_MapStringOctet, member_seq_MapStringOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringOctet, type_name_MapStringOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringOctet, type_name_MapStringOctet.to_string(), type_ids_MapStringOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringOctet", type_ids_MapStringOctet); - if (return_code_MapStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringChar) { + + ReturnCode_t return_code_MapStringChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringChar", type_ids_MapStringChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringChar) { - StructTypeFlag struct_flags_MapStringChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringChar; - TypeIdentifierPair type_ids_MapStringChar; QualifiedTypeName type_name_MapStringChar = "MapStringChar"; eprosima::fastcdr::optional type_ann_builtin_MapStringChar; eprosima::fastcdr::optional ann_custom_MapStringChar; @@ -50321,137 +19818,56 @@ void register_MapStringChar_type_identifier( header_MapStringChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringChar); CompleteStructMemberSeq member_seq_MapStringChar; { - return_code_MapStringChar = + TypeIdentifierPair type_ids_var_map_string_char; + ReturnCode_t return_code_var_map_string_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_char_unbounded", type_ids_MapStringChar); + "anonymous_map_anonymous_string_unbounded_char_unbounded", type_ids_var_map_string_char); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_char) { - return_code_MapStringChar = + return_code_var_map_string_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapStringChar); + "_char", type_ids_var_map_string_char); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapStringChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_char, element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringChar = + return_code_var_map_string_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringChar); + "anonymous_string_unbounded", type_ids_var_map_string_char); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_char) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringChar); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapStringChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_char, key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_char_unbounded = EK_BOTH; @@ -50474,68 +19890,21 @@ void register_MapStringChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_char_unbounded", type_ids_var_map_string_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_char_unbounded", type_ids_MapStringChar); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_char; MemberId member_id_var_map_string_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_char, member_flags_var_map_string_char, type_ids_MapStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_char, member_flags_var_map_string_char, type_ids_MapStringChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_char_ec {false}; + CommonStructMember common_var_map_string_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_char, member_flags_var_map_string_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_char, common_var_map_string_char_ec))}; + if (!common_var_map_string_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_char = "var_map_string_char"; @@ -50547,32 +19916,26 @@ void register_MapStringChar_type_identifier( } CompleteStructType struct_type_MapStringChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringChar, header_MapStringChar, member_seq_MapStringChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringChar, type_name_MapStringChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringChar, type_name_MapStringChar.to_string(), type_ids_MapStringChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringChar", type_ids_MapStringChar); - if (return_code_MapStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringWChar) { + + ReturnCode_t return_code_MapStringWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringWChar", type_ids_MapStringWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringWChar) { - StructTypeFlag struct_flags_MapStringWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringWChar; - TypeIdentifierPair type_ids_MapStringWChar; QualifiedTypeName type_name_MapStringWChar = "MapStringWChar"; eprosima::fastcdr::optional type_ann_builtin_MapStringWChar; eprosima::fastcdr::optional ann_custom_MapStringWChar; @@ -50581,137 +19944,56 @@ void register_MapStringWChar_type_identifier( header_MapStringWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringWChar); CompleteStructMemberSeq member_seq_MapStringWChar; { - return_code_MapStringWChar = + TypeIdentifierPair type_ids_var_map_string_wchar; + ReturnCode_t return_code_var_map_string_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded", type_ids_MapStringWChar); + "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded", type_ids_var_map_string_wchar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wchar) { - return_code_MapStringWChar = + return_code_var_map_string_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapStringWChar); + "_wchar_t", type_ids_var_map_string_wchar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapStringWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wchar, element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringWChar = + return_code_var_map_string_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringWChar); + "anonymous_string_unbounded", type_ids_var_map_string_wchar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wchar) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringWChar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapStringWChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wchar, key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded = EK_BOTH; @@ -50734,68 +20016,21 @@ void register_MapStringWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded", type_ids_var_map_string_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded", type_ids_MapStringWChar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_wchar; MemberId member_id_var_map_string_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wchar, member_flags_var_map_string_wchar, type_ids_MapStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wchar, member_flags_var_map_string_wchar, type_ids_MapStringWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_wchar_ec {false}; + CommonStructMember common_var_map_string_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wchar, member_flags_var_map_string_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wchar, common_var_map_string_wchar_ec))}; + if (!common_var_map_string_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_wchar = "var_map_string_wchar"; @@ -50807,32 +20042,26 @@ void register_MapStringWChar_type_identifier( } CompleteStructType struct_type_MapStringWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringWChar, header_MapStringWChar, member_seq_MapStringWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringWChar, type_name_MapStringWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringWChar, type_name_MapStringWChar.to_string(), type_ids_MapStringWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringWChar", type_ids_MapStringWChar); - if (return_code_MapStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringString) { + + ReturnCode_t return_code_MapStringString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringString", type_ids_MapStringString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringString) { - StructTypeFlag struct_flags_MapStringString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringString; - TypeIdentifierPair type_ids_MapStringString; QualifiedTypeName type_name_MapStringString = "MapStringString"; eprosima::fastcdr::optional type_ann_builtin_MapStringString; eprosima::fastcdr::optional ann_custom_MapStringString; @@ -50841,154 +20070,64 @@ void register_MapStringString_type_identifier( header_MapStringString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringString); CompleteStructMemberSeq member_seq_MapStringString; { - return_code_MapStringString = + TypeIdentifierPair type_ids_var_map_string_string; + ReturnCode_t return_code_var_map_string_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded", type_ids_MapStringString); + "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded", type_ids_var_map_string_string); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_string) { - return_code_MapStringString = + return_code_var_map_string_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringString); + "anonymous_string_unbounded", type_ids_var_map_string_string); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringString); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringString.type_identifier1()._d() || TK_NONE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_string, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringString = + return_code_var_map_string_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringString); + "anonymous_string_unbounded", type_ids_var_map_string_string); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringString); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringString.type_identifier1()._d() || TK_NONE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_string, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -51011,68 +20150,21 @@ void register_MapStringString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded", type_ids_var_map_string_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded", type_ids_MapStringString); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_string; MemberId member_id_var_map_string_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringString.type_identifier1()._d() || TK_NONE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_string, member_flags_var_map_string_string, type_ids_MapStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_string, member_flags_var_map_string_string, type_ids_MapStringString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_string_ec {false}; + CommonStructMember common_var_map_string_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_string, member_flags_var_map_string_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_string, common_var_map_string_string_ec))}; + if (!common_var_map_string_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_string = "var_map_string_string"; @@ -51084,32 +20176,26 @@ void register_MapStringString_type_identifier( } CompleteStructType struct_type_MapStringString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringString, header_MapStringString, member_seq_MapStringString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringString, type_name_MapStringString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringString, type_name_MapStringString.to_string(), type_ids_MapStringString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringString already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringString", type_ids_MapStringString); - if (return_code_MapStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringWString) { + + ReturnCode_t return_code_MapStringWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringWString", type_ids_MapStringWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringWString) { - StructTypeFlag struct_flags_MapStringWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringWString; - TypeIdentifierPair type_ids_MapStringWString; QualifiedTypeName type_name_MapStringWString = "MapStringWString"; eprosima::fastcdr::optional type_ann_builtin_MapStringWString; eprosima::fastcdr::optional ann_custom_MapStringWString; @@ -51118,154 +20204,64 @@ void register_MapStringWString_type_identifier( header_MapStringWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringWString); CompleteStructMemberSeq member_seq_MapStringWString; { - return_code_MapStringWString = + TypeIdentifierPair type_ids_var_map_string_wstring; + ReturnCode_t return_code_var_map_string_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_MapStringWString); + "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_var_map_string_wstring); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wstring) { - return_code_MapStringWString = + return_code_var_map_string_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapStringWString); + "anonymous_wstring_unbounded", type_ids_var_map_string_wstring); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_string_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapStringWString); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wstring, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringWString = + return_code_var_map_string_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringWString); + "anonymous_string_unbounded", type_ids_var_map_string_wstring); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringWString); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringWString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wstring, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -51288,68 +20284,21 @@ void register_MapStringWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_var_map_string_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_MapStringWString); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_wstring; MemberId member_id_var_map_string_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wstring, member_flags_var_map_string_wstring, type_ids_MapStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wstring, member_flags_var_map_string_wstring, type_ids_MapStringWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_wstring_ec {false}; + CommonStructMember common_var_map_string_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_wstring, member_flags_var_map_string_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_wstring, common_var_map_string_wstring_ec))}; + if (!common_var_map_string_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_wstring = "var_map_string_wstring"; @@ -51361,32 +20310,26 @@ void register_MapStringWString_type_identifier( } CompleteStructType struct_type_MapStringWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringWString, header_MapStringWString, member_seq_MapStringWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringWString, type_name_MapStringWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringWString, type_name_MapStringWString.to_string(), type_ids_MapStringWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringWString", type_ids_MapStringWString); - if (return_code_MapStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapStringInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasBoundedStringHelper", type_ids_MapStringInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapStringInnerAliasBoundedStringHelper = "MapStringInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasBoundedStringHelper; @@ -51395,232 +20338,54 @@ void register_MapStringInnerAliasBoundedStringHelper_type_identifier( header_MapStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapStringInnerAliasBoundedStringHelper; { - return_code_MapStringInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_string_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_string_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded", type_ids_MapStringInnerAliasBoundedStringHelper); + "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded", type_ids_var_map_string_inneraliasboundedstringhelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedstringhelper) { - return_code_MapStringInnerAliasBoundedStringHelper = + return_code_var_map_string_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapStringInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_string_inneraliasboundedstringhelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapStringInnerAliasBoundedStringHelper); - - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapStringInnerAliasBoundedStringHelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapStringInnerAliasBoundedStringHelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_string_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedstringhelper, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasBoundedStringHelper = + return_code_var_map_string_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasBoundedStringHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasboundedstringhelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedstringhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasBoundedStringHelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedstringhelper, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded = EK_BOTH; @@ -51643,68 +20408,21 @@ void register_MapStringInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded", type_ids_var_map_string_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded", type_ids_MapStringInnerAliasBoundedStringHelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliasboundedstringhelper; MemberId member_id_var_map_string_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedstringhelper, member_flags_var_map_string_inneraliasboundedstringhelper, type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedstringhelper, member_flags_var_map_string_inneraliasboundedstringhelper, type_ids_MapStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_string_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedstringhelper, member_flags_var_map_string_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedstringhelper, common_var_map_string_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_string_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliasboundedstringhelper = "var_map_string_inneraliasboundedstringhelper"; @@ -51716,32 +20434,26 @@ void register_MapStringInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasBoundedStringHelper, header_MapStringInnerAliasBoundedStringHelper, member_seq_MapStringInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasBoundedStringHelper, type_name_MapStringInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasBoundedStringHelper, type_name_MapStringInnerAliasBoundedStringHelper.to_string(), type_ids_MapStringInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasBoundedStringHelper", type_ids_MapStringInnerAliasBoundedStringHelper); - if (return_code_MapStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapStringInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasBoundedWStringHelper", type_ids_MapStringInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapStringInnerAliasBoundedWStringHelper = "MapStringInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasBoundedWStringHelper; @@ -51750,232 +20462,54 @@ void register_MapStringInnerAliasBoundedWStringHelper_type_identifier( header_MapStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapStringInnerAliasBoundedWStringHelper; { - return_code_MapStringInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_string_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_string_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded", type_ids_MapStringInnerAliasBoundedWStringHelper); + "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded", type_ids_var_map_string_inneraliasboundedwstringhelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedwstringhelper) { - return_code_MapStringInnerAliasBoundedWStringHelper = + return_code_var_map_string_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapStringInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_string_inneraliasboundedwstringhelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapStringInnerAliasBoundedWStringHelper); - - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapStringInnerAliasBoundedWStringHelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapStringInnerAliasBoundedWStringHelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_string_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedwstringhelper, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasBoundedWStringHelper = + return_code_var_map_string_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasBoundedWStringHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasboundedwstringhelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasboundedwstringhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasBoundedWStringHelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedwstringhelper, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded = EK_BOTH; @@ -51998,68 +20532,21 @@ void register_MapStringInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded", type_ids_var_map_string_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded", type_ids_MapStringInnerAliasBoundedWStringHelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliasboundedwstringhelper; MemberId member_id_var_map_string_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedwstringhelper, member_flags_var_map_string_inneraliasboundedwstringhelper, type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedwstringhelper, member_flags_var_map_string_inneraliasboundedwstringhelper, type_ids_MapStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_string_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasboundedwstringhelper, member_flags_var_map_string_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasboundedwstringhelper, common_var_map_string_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_string_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliasboundedwstringhelper = "var_map_string_inneraliasboundedwstringhelper"; @@ -52071,32 +20558,26 @@ void register_MapStringInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasBoundedWStringHelper, header_MapStringInnerAliasBoundedWStringHelper, member_seq_MapStringInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasBoundedWStringHelper, type_name_MapStringInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasBoundedWStringHelper, type_name_MapStringInnerAliasBoundedWStringHelper.to_string(), type_ids_MapStringInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasBoundedWStringHelper", type_ids_MapStringInnerAliasBoundedWStringHelper); - if (return_code_MapStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerEnumHelper) { + + ReturnCode_t return_code_MapStringInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerEnumHelper", type_ids_MapStringInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerEnumHelper) { - StructTypeFlag struct_flags_MapStringInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerEnumHelper; - TypeIdentifierPair type_ids_MapStringInnerEnumHelper; QualifiedTypeName type_name_MapStringInnerEnumHelper = "MapStringInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerEnumHelper; @@ -52105,190 +20586,54 @@ void register_MapStringInnerEnumHelper_type_identifier( header_MapStringInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerEnumHelper); CompleteStructMemberSeq member_seq_MapStringInnerEnumHelper; { - return_code_MapStringInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_string_innerenumhelper; + ReturnCode_t return_code_var_map_string_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded", type_ids_MapStringInnerEnumHelper); + "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded", type_ids_var_map_string_innerenumhelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerenumhelper) { - return_code_MapStringInnerEnumHelper = + return_code_var_map_string_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapStringInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_string_innerenumhelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapStringInnerEnumHelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_string_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerenumhelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerEnumHelper = + return_code_var_map_string_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerEnumHelper); + "anonymous_string_unbounded", type_ids_var_map_string_innerenumhelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerenumhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerEnumHelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerEnumHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerenumhelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded = EK_BOTH; @@ -52311,68 +20656,21 @@ void register_MapStringInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded", type_ids_var_map_string_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded", type_ids_MapStringInnerEnumHelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_innerenumhelper; MemberId member_id_var_map_string_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerenumhelper, member_flags_var_map_string_innerenumhelper, type_ids_MapStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerenumhelper, member_flags_var_map_string_innerenumhelper, type_ids_MapStringInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_innerenumhelper_ec {false}; + CommonStructMember common_var_map_string_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerenumhelper, member_flags_var_map_string_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerenumhelper, common_var_map_string_innerenumhelper_ec))}; + if (!common_var_map_string_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_innerenumhelper = "var_map_string_innerenumhelper"; @@ -52384,32 +20682,26 @@ void register_MapStringInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerEnumHelper, header_MapStringInnerEnumHelper, member_seq_MapStringInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerEnumHelper, type_name_MapStringInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerEnumHelper, type_name_MapStringInnerEnumHelper.to_string(), type_ids_MapStringInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerEnumHelper", type_ids_MapStringInnerEnumHelper); - if (return_code_MapStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerBitMaskHelper) { + + ReturnCode_t return_code_MapStringInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerBitMaskHelper", type_ids_MapStringInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapStringInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapStringInnerBitMaskHelper; QualifiedTypeName type_name_MapStringInnerBitMaskHelper = "MapStringInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerBitMaskHelper; @@ -52418,223 +20710,54 @@ void register_MapStringInnerBitMaskHelper_type_identifier( header_MapStringInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapStringInnerBitMaskHelper; { - return_code_MapStringInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_string_innerbitmaskhelper; + ReturnCode_t return_code_var_map_string_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded", type_ids_MapStringInnerBitMaskHelper); + "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded", type_ids_var_map_string_innerbitmaskhelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitmaskhelper) { - return_code_MapStringInnerBitMaskHelper = + return_code_var_map_string_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapStringInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_string_innerbitmaskhelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapStringInnerBitMaskHelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_string_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitmaskhelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerBitMaskHelper = + return_code_var_map_string_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerBitMaskHelper); + "anonymous_string_unbounded", type_ids_var_map_string_innerbitmaskhelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitmaskhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerBitMaskHelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitMaskHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitmaskhelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -52657,68 +20780,21 @@ void register_MapStringInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded", type_ids_var_map_string_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded", type_ids_MapStringInnerBitMaskHelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_innerbitmaskhelper; MemberId member_id_var_map_string_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitmaskhelper, member_flags_var_map_string_innerbitmaskhelper, type_ids_MapStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitmaskhelper, member_flags_var_map_string_innerbitmaskhelper, type_ids_MapStringInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_string_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitmaskhelper, member_flags_var_map_string_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitmaskhelper, common_var_map_string_innerbitmaskhelper_ec))}; + if (!common_var_map_string_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_innerbitmaskhelper = "var_map_string_innerbitmaskhelper"; @@ -52730,32 +20806,26 @@ void register_MapStringInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerBitMaskHelper, header_MapStringInnerBitMaskHelper, member_seq_MapStringInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerBitMaskHelper, type_name_MapStringInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerBitMaskHelper, type_name_MapStringInnerBitMaskHelper.to_string(), type_ids_MapStringInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerBitMaskHelper", type_ids_MapStringInnerBitMaskHelper); - if (return_code_MapStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasHelper) { + + ReturnCode_t return_code_MapStringInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasHelper", type_ids_MapStringInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasHelper; QualifiedTypeName type_name_MapStringInnerAliasHelper = "MapStringInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasHelper; @@ -52764,215 +20834,54 @@ void register_MapStringInnerAliasHelper_type_identifier( header_MapStringInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasHelper); CompleteStructMemberSeq member_seq_MapStringInnerAliasHelper; { - return_code_MapStringInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_string_inneraliashelper; + ReturnCode_t return_code_var_map_string_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded", type_ids_MapStringInnerAliasHelper); + "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded", type_ids_var_map_string_inneraliashelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliashelper) { - return_code_MapStringInnerAliasHelper = + return_code_var_map_string_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapStringInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_string_inneraliashelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapStringInnerAliasHelper); - - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapStringInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapStringInnerAliasHelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_string_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliashelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasHelper = + return_code_var_map_string_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliashelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliashelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasHelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliashelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded = EK_BOTH; @@ -52995,68 +20904,21 @@ void register_MapStringInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded", type_ids_var_map_string_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded", type_ids_MapStringInnerAliasHelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliashelper; MemberId member_id_var_map_string_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliashelper, member_flags_var_map_string_inneraliashelper, type_ids_MapStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliashelper, member_flags_var_map_string_inneraliashelper, type_ids_MapStringInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliashelper_ec {false}; + CommonStructMember common_var_map_string_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliashelper, member_flags_var_map_string_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliashelper, common_var_map_string_inneraliashelper_ec))}; + if (!common_var_map_string_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliashelper = "var_map_string_inneraliashelper"; @@ -53068,32 +20930,26 @@ void register_MapStringInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasHelper, header_MapStringInnerAliasHelper, member_seq_MapStringInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasHelper, type_name_MapStringInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasHelper, type_name_MapStringInnerAliasHelper.to_string(), type_ids_MapStringInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasHelper", type_ids_MapStringInnerAliasHelper); - if (return_code_MapStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapStringInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasArrayHelper", type_ids_MapStringInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasArrayHelper; QualifiedTypeName type_name_MapStringInnerAliasArrayHelper = "MapStringInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasArrayHelper; @@ -53102,296 +20958,54 @@ void register_MapStringInnerAliasArrayHelper_type_identifier( header_MapStringInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapStringInnerAliasArrayHelper; { - return_code_MapStringInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_string_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_string_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_MapStringInnerAliasArrayHelper); + "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_var_map_string_inneraliasarrayhelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasarrayhelper) { - return_code_MapStringInnerAliasArrayHelper = + return_code_var_map_string_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapStringInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_string_inneraliasarrayhelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapStringInnerAliasArrayHelper); - - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapStringInnerAliasArrayHelper); - - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapStringInnerAliasArrayHelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapStringInnerAliasArrayHelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_string_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasarrayhelper, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasArrayHelper = + return_code_var_map_string_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasArrayHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasarrayhelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasarrayhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasArrayHelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasArrayHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasarrayhelper, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -53414,68 +21028,21 @@ void register_MapStringInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_var_map_string_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_MapStringInnerAliasArrayHelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliasarrayhelper; MemberId member_id_var_map_string_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasarrayhelper, member_flags_var_map_string_inneraliasarrayhelper, type_ids_MapStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasarrayhelper, member_flags_var_map_string_inneraliasarrayhelper, type_ids_MapStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_string_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasarrayhelper, member_flags_var_map_string_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasarrayhelper, common_var_map_string_inneraliasarrayhelper_ec))}; + if (!common_var_map_string_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliasarrayhelper = "var_map_string_inneraliasarrayhelper"; @@ -53487,32 +21054,26 @@ void register_MapStringInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasArrayHelper, header_MapStringInnerAliasArrayHelper, member_seq_MapStringInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasArrayHelper, type_name_MapStringInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasArrayHelper, type_name_MapStringInnerAliasArrayHelper.to_string(), type_ids_MapStringInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasArrayHelper", type_ids_MapStringInnerAliasArrayHelper); - if (return_code_MapStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapStringInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasSequenceHelper", type_ids_MapStringInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasSequenceHelper; QualifiedTypeName type_name_MapStringInnerAliasSequenceHelper = "MapStringInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasSequenceHelper; @@ -53521,294 +21082,54 @@ void register_MapStringInnerAliasSequenceHelper_type_identifier( header_MapStringInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapStringInnerAliasSequenceHelper; { - return_code_MapStringInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_string_inneraliassequencehelper; + ReturnCode_t return_code_var_map_string_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapStringInnerAliasSequenceHelper); + "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_string_inneraliassequencehelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliassequencehelper) { - return_code_MapStringInnerAliasSequenceHelper = + return_code_var_map_string_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapStringInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_string_inneraliassequencehelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapStringInnerAliasSequenceHelper); - - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapStringInnerAliasSequenceHelper); - - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapStringInnerAliasSequenceHelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapStringInnerAliasSequenceHelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_string_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliassequencehelper, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasSequenceHelper = + return_code_var_map_string_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasSequenceHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliassequencehelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliassequencehelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasSequenceHelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliassequencehelper, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -53831,68 +21152,21 @@ void register_MapStringInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_string_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapStringInnerAliasSequenceHelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliassequencehelper; MemberId member_id_var_map_string_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliassequencehelper, member_flags_var_map_string_inneraliassequencehelper, type_ids_MapStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliassequencehelper, member_flags_var_map_string_inneraliassequencehelper, type_ids_MapStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_string_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliassequencehelper, member_flags_var_map_string_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliassequencehelper, common_var_map_string_inneraliassequencehelper_ec))}; + if (!common_var_map_string_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliassequencehelper = "var_map_string_inneraliassequencehelper"; @@ -53904,391 +21178,82 @@ void register_MapStringInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasSequenceHelper, header_MapStringInnerAliasSequenceHelper, member_seq_MapStringInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasSequenceHelper, type_name_MapStringInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasSequenceHelper, type_name_MapStringInnerAliasSequenceHelper.to_string(), type_ids_MapStringInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasSequenceHelper", type_ids_MapStringInnerAliasSequenceHelper); - if (return_code_MapStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerAliasMapHelper) { + + ReturnCode_t return_code_MapStringInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerAliasMapHelper", type_ids_MapStringInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapStringInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapStringInnerAliasMapHelper; QualifiedTypeName type_name_MapStringInnerAliasMapHelper = "MapStringInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerAliasMapHelper; CompleteTypeDetail detail_MapStringInnerAliasMapHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapStringInnerAliasMapHelper, ann_custom_MapStringInnerAliasMapHelper, type_name_MapStringInnerAliasMapHelper.to_string()); CompleteStructHeader header_MapStringInnerAliasMapHelper; - header_MapStringInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasMapHelper); - CompleteStructMemberSeq member_seq_MapStringInnerAliasMapHelper; - { - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapStringInnerAliasMapHelper); - - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapStringInnerAliasMapHelper); - - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapStringInnerAliasMapHelper); - - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapStringInnerAliasMapHelper); - - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapStringInnerAliasMapHelper); - - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapStringInnerAliasMapHelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapStringInnerAliasMapHelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + header_MapStringInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerAliasMapHelper); + CompleteStructMemberSeq member_seq_MapStringInnerAliasMapHelper; + { + TypeIdentifierPair type_ids_var_map_string_inneraliasmaphelper; + ReturnCode_t return_code_var_map_string_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_string_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasmaphelper) + { + return_code_var_map_string_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_map_helper", type_ids_var_map_string_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasmaphelper) + { + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_string_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasmaphelper, element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerAliasMapHelper = + return_code_var_map_string_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasMapHelper); + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasmaphelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_inneraliasmaphelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerAliasMapHelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasmaphelper, key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -54311,68 +21276,21 @@ void register_MapStringInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_string_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapStringInnerAliasMapHelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_inneraliasmaphelper; MemberId member_id_var_map_string_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasmaphelper, member_flags_var_map_string_inneraliasmaphelper, type_ids_MapStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasmaphelper, member_flags_var_map_string_inneraliasmaphelper, type_ids_MapStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_string_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_inneraliasmaphelper, member_flags_var_map_string_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_inneraliasmaphelper, common_var_map_string_inneraliasmaphelper_ec))}; + if (!common_var_map_string_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_inneraliasmaphelper = "var_map_string_inneraliasmaphelper"; @@ -54384,32 +21302,26 @@ void register_MapStringInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerAliasMapHelper, header_MapStringInnerAliasMapHelper, member_seq_MapStringInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasMapHelper, type_name_MapStringInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerAliasMapHelper, type_name_MapStringInnerAliasMapHelper.to_string(), type_ids_MapStringInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerAliasMapHelper", type_ids_MapStringInnerAliasMapHelper); - if (return_code_MapStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerUnionHelper) { + + ReturnCode_t return_code_MapStringInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerUnionHelper", type_ids_MapStringInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerUnionHelper) { - StructTypeFlag struct_flags_MapStringInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerUnionHelper; - TypeIdentifierPair type_ids_MapStringInnerUnionHelper; QualifiedTypeName type_name_MapStringInnerUnionHelper = "MapStringInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerUnionHelper; @@ -54418,414 +21330,54 @@ void register_MapStringInnerUnionHelper_type_identifier( header_MapStringInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerUnionHelper); CompleteStructMemberSeq member_seq_MapStringInnerUnionHelper; { - return_code_MapStringInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_string_innerunionhelper; + ReturnCode_t return_code_var_map_string_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded", type_ids_MapStringInnerUnionHelper); + "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded", type_ids_var_map_string_innerunionhelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerunionhelper) { - return_code_MapStringInnerUnionHelper = + return_code_var_map_string_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapStringInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_string_innerunionhelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapStringInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapStringInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_string_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerunionhelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerUnionHelper = + return_code_var_map_string_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerUnionHelper); + "anonymous_string_unbounded", type_ids_var_map_string_innerunionhelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerunionhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerUnionHelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerUnionHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerunionhelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded = EK_BOTH; @@ -54848,68 +21400,21 @@ void register_MapStringInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded", type_ids_var_map_string_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded", type_ids_MapStringInnerUnionHelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_innerunionhelper; MemberId member_id_var_map_string_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerunionhelper, member_flags_var_map_string_innerunionhelper, type_ids_MapStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerunionhelper, member_flags_var_map_string_innerunionhelper, type_ids_MapStringInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_innerunionhelper_ec {false}; + CommonStructMember common_var_map_string_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerunionhelper, member_flags_var_map_string_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerunionhelper, common_var_map_string_innerunionhelper_ec))}; + if (!common_var_map_string_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_innerunionhelper = "var_map_string_innerunionhelper"; @@ -54921,32 +21426,26 @@ void register_MapStringInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerUnionHelper, header_MapStringInnerUnionHelper, member_seq_MapStringInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerUnionHelper, type_name_MapStringInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerUnionHelper, type_name_MapStringInnerUnionHelper.to_string(), type_ids_MapStringInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerUnionHelper", type_ids_MapStringInnerUnionHelper); - if (return_code_MapStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerStructureHelper) { + + ReturnCode_t return_code_MapStringInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerStructureHelper", type_ids_MapStringInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerStructureHelper) { - StructTypeFlag struct_flags_MapStringInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerStructureHelper; - TypeIdentifierPair type_ids_MapStringInnerStructureHelper; QualifiedTypeName type_name_MapStringInnerStructureHelper = "MapStringInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerStructureHelper; @@ -54955,304 +21454,54 @@ void register_MapStringInnerStructureHelper_type_identifier( header_MapStringInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerStructureHelper); CompleteStructMemberSeq member_seq_MapStringInnerStructureHelper; { - return_code_MapStringInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_string_innerstructurehelper; + ReturnCode_t return_code_var_map_string_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded", type_ids_MapStringInnerStructureHelper); + "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded", type_ids_var_map_string_innerstructurehelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerstructurehelper) { - return_code_MapStringInnerStructureHelper = + return_code_var_map_string_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapStringInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_string_innerstructurehelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapStringInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapStringInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_string_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerstructurehelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerStructureHelper = + return_code_var_map_string_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerStructureHelper); + "anonymous_string_unbounded", type_ids_var_map_string_innerstructurehelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerstructurehelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerStructureHelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerStructureHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerstructurehelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded = EK_BOTH; @@ -55275,68 +21524,21 @@ void register_MapStringInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded", type_ids_var_map_string_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded", type_ids_MapStringInnerStructureHelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_innerstructurehelper; MemberId member_id_var_map_string_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerstructurehelper, member_flags_var_map_string_innerstructurehelper, type_ids_MapStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerstructurehelper, member_flags_var_map_string_innerstructurehelper, type_ids_MapStringInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_string_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerstructurehelper, member_flags_var_map_string_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerstructurehelper, common_var_map_string_innerstructurehelper_ec))}; + if (!common_var_map_string_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_innerstructurehelper = "var_map_string_innerstructurehelper"; @@ -55348,32 +21550,26 @@ void register_MapStringInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerStructureHelper, header_MapStringInnerStructureHelper, member_seq_MapStringInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerStructureHelper, type_name_MapStringInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerStructureHelper, type_name_MapStringInnerStructureHelper.to_string(), type_ids_MapStringInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerStructureHelper", type_ids_MapStringInnerStructureHelper); - if (return_code_MapStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapStringInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapStringInnerBitsetHelper) { + + ReturnCode_t return_code_MapStringInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapStringInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapStringInnerBitsetHelper", type_ids_MapStringInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapStringInnerBitsetHelper) { - StructTypeFlag struct_flags_MapStringInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapStringInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapStringInnerBitsetHelper; - TypeIdentifierPair type_ids_MapStringInnerBitsetHelper; QualifiedTypeName type_name_MapStringInnerBitsetHelper = "MapStringInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapStringInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapStringInnerBitsetHelper; @@ -55382,209 +21578,54 @@ void register_MapStringInnerBitsetHelper_type_identifier( header_MapStringInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapStringInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapStringInnerBitsetHelper; { - return_code_MapStringInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_string_innerbitsethelper; + ReturnCode_t return_code_var_map_string_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_string_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded", type_ids_MapStringInnerBitsetHelper); + "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded", type_ids_var_map_string_innerbitsethelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitsethelper) { - return_code_MapStringInnerBitsetHelper = + return_code_var_map_string_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapStringInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_string_innerbitsethelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapStringInnerBitsetHelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_string_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitsethelper, element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapStringInnerBitsetHelper = + return_code_var_map_string_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerBitsetHelper); + "anonymous_string_unbounded", type_ids_var_map_string_innerbitsethelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_string_innerbitsethelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_string_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapStringInnerBitsetHelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapStringInnerBitsetHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitsethelper, key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded = EK_BOTH; @@ -55607,68 +21648,21 @@ void register_MapStringInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded), key_flags_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded", type_ids_var_map_string_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded", type_ids_MapStringInnerBitsetHelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_string_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_string_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_string_innerbitsethelper; MemberId member_id_var_map_string_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitsethelper, member_flags_var_map_string_innerbitsethelper, type_ids_MapStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_string_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitsethelper, member_flags_var_map_string_innerbitsethelper, type_ids_MapStringInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_string_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_string_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_string_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_string_innerbitsethelper, member_flags_var_map_string_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_string_innerbitsethelper, common_var_map_string_innerbitsethelper_ec))}; + if (!common_var_map_string_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_string_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_string_innerbitsethelper = "var_map_string_innerbitsethelper"; @@ -55680,32 +21674,26 @@ void register_MapStringInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapStringInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapStringInnerBitsetHelper, header_MapStringInnerBitsetHelper, member_seq_MapStringInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerBitsetHelper, type_name_MapStringInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapStringInnerBitsetHelper, type_name_MapStringInnerBitsetHelper.to_string(), type_ids_MapStringInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapStringInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapStringInnerBitsetHelper", type_ids_MapStringInnerBitsetHelper); - if (return_code_MapStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapStringInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringShort) { + + ReturnCode_t return_code_MapWStringShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringShort", type_ids_MapWStringShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringShort) { - StructTypeFlag struct_flags_MapWStringShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringShort; - TypeIdentifierPair type_ids_MapWStringShort; QualifiedTypeName type_name_MapWStringShort = "MapWStringShort"; eprosima::fastcdr::optional type_ann_builtin_MapWStringShort; eprosima::fastcdr::optional ann_custom_MapWStringShort; @@ -55714,137 +21702,56 @@ void register_MapWStringShort_type_identifier( header_MapWStringShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringShort); CompleteStructMemberSeq member_seq_MapWStringShort; { - return_code_MapWStringShort = + TypeIdentifierPair type_ids_var_map_wstring_short; + ReturnCode_t return_code_var_map_wstring_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded", type_ids_MapWStringShort); + "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded", type_ids_var_map_wstring_short); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_short) { - return_code_MapWStringShort = + return_code_var_map_wstring_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapWStringShort); + "_int16_t", type_ids_var_map_wstring_short); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_short, element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringShort = + return_code_var_map_wstring_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringShort); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_short); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_short) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_short, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringShort); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_short, key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded = EK_BOTH; @@ -55867,68 +21774,21 @@ void register_MapWStringShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded", type_ids_var_map_wstring_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded", type_ids_MapWStringShort); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_short; MemberId member_id_var_map_wstring_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_short, member_flags_var_map_wstring_short, type_ids_MapWStringShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_short, member_flags_var_map_wstring_short, type_ids_MapWStringShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_short_ec {false}; + CommonStructMember common_var_map_wstring_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_short, member_flags_var_map_wstring_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_short, common_var_map_wstring_short_ec))}; + if (!common_var_map_wstring_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_short = "var_map_wstring_short"; @@ -55940,32 +21800,26 @@ void register_MapWStringShort_type_identifier( } CompleteStructType struct_type_MapWStringShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringShort, header_MapWStringShort, member_seq_MapWStringShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringShort, type_name_MapWStringShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringShort, type_name_MapWStringShort.to_string(), type_ids_MapWStringShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringShort", type_ids_MapWStringShort); - if (return_code_MapWStringShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringUShort) { + + ReturnCode_t return_code_MapWStringUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringUShort", type_ids_MapWStringUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringUShort) { - StructTypeFlag struct_flags_MapWStringUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringUShort; - TypeIdentifierPair type_ids_MapWStringUShort; QualifiedTypeName type_name_MapWStringUShort = "MapWStringUShort"; eprosima::fastcdr::optional type_ann_builtin_MapWStringUShort; eprosima::fastcdr::optional ann_custom_MapWStringUShort; @@ -55974,137 +21828,56 @@ void register_MapWStringUShort_type_identifier( header_MapWStringUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringUShort); CompleteStructMemberSeq member_seq_MapWStringUShort; { - return_code_MapWStringUShort = + TypeIdentifierPair type_ids_var_map_wstring_ushort; + ReturnCode_t return_code_var_map_wstring_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded", type_ids_MapWStringUShort); + "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded", type_ids_var_map_wstring_ushort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ushort) { - return_code_MapWStringUShort = + return_code_var_map_wstring_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapWStringUShort); + "_uint16_t", type_ids_var_map_wstring_ushort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapWStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapWStringUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ushort, element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringUShort = + return_code_var_map_wstring_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringUShort); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ushort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ushort) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ushort, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringUShort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapWStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded = new TypeIdentifier(type_ids_MapWStringUShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ushort, key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded = EK_BOTH; @@ -56127,68 +21900,21 @@ void register_MapWStringUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded", type_ids_var_map_wstring_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded", type_ids_MapWStringUShort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_ushort; MemberId member_id_var_map_wstring_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1()._d() || TK_NONE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ushort, member_flags_var_map_wstring_ushort, type_ids_MapWStringUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ushort, member_flags_var_map_wstring_ushort, type_ids_MapWStringUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_ushort_ec {false}; + CommonStructMember common_var_map_wstring_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ushort, member_flags_var_map_wstring_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ushort, common_var_map_wstring_ushort_ec))}; + if (!common_var_map_wstring_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_ushort = "var_map_wstring_ushort"; @@ -56200,32 +21926,26 @@ void register_MapWStringUShort_type_identifier( } CompleteStructType struct_type_MapWStringUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringUShort, header_MapWStringUShort, member_seq_MapWStringUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringUShort, type_name_MapWStringUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringUShort, type_name_MapWStringUShort.to_string(), type_ids_MapWStringUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringUShort", type_ids_MapWStringUShort); - if (return_code_MapWStringUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringLong) { + + ReturnCode_t return_code_MapWStringLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringLong", type_ids_MapWStringLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringLong) { - StructTypeFlag struct_flags_MapWStringLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringLong; - TypeIdentifierPair type_ids_MapWStringLong; QualifiedTypeName type_name_MapWStringLong = "MapWStringLong"; eprosima::fastcdr::optional type_ann_builtin_MapWStringLong; eprosima::fastcdr::optional ann_custom_MapWStringLong; @@ -56234,137 +21954,56 @@ void register_MapWStringLong_type_identifier( header_MapWStringLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringLong); CompleteStructMemberSeq member_seq_MapWStringLong; { - return_code_MapWStringLong = + TypeIdentifierPair type_ids_var_map_wstring_long; + ReturnCode_t return_code_var_map_wstring_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded", type_ids_MapWStringLong); + "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded", type_ids_var_map_wstring_long); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_long) { - return_code_MapWStringLong = + return_code_var_map_wstring_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapWStringLong); + "_int32_t", type_ids_var_map_wstring_long); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_long, element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringLong = + return_code_var_map_wstring_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLong); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_long); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_long) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_long, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLong); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_long, key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded = EK_BOTH; @@ -56387,68 +22026,21 @@ void register_MapWStringLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded", type_ids_var_map_wstring_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded", type_ids_MapWStringLong); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_long; MemberId member_id_var_map_wstring_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_long, member_flags_var_map_wstring_long, type_ids_MapWStringLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_long, member_flags_var_map_wstring_long, type_ids_MapWStringLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_long_ec {false}; + CommonStructMember common_var_map_wstring_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_long, member_flags_var_map_wstring_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_long, common_var_map_wstring_long_ec))}; + if (!common_var_map_wstring_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_long = "var_map_wstring_long"; @@ -56460,32 +22052,26 @@ void register_MapWStringLong_type_identifier( } CompleteStructType struct_type_MapWStringLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringLong, header_MapWStringLong, member_seq_MapWStringLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLong, type_name_MapWStringLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLong, type_name_MapWStringLong.to_string(), type_ids_MapWStringLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringLong", type_ids_MapWStringLong); - if (return_code_MapWStringLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringULong) { + + ReturnCode_t return_code_MapWStringULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringULong", type_ids_MapWStringULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringULong) { - StructTypeFlag struct_flags_MapWStringULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringULong; - TypeIdentifierPair type_ids_MapWStringULong; QualifiedTypeName type_name_MapWStringULong = "MapWStringULong"; eprosima::fastcdr::optional type_ann_builtin_MapWStringULong; eprosima::fastcdr::optional ann_custom_MapWStringULong; @@ -56494,137 +22080,56 @@ void register_MapWStringULong_type_identifier( header_MapWStringULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringULong); CompleteStructMemberSeq member_seq_MapWStringULong; { - return_code_MapWStringULong = + TypeIdentifierPair type_ids_var_map_wstring_ulong; + ReturnCode_t return_code_var_map_wstring_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded", type_ids_MapWStringULong); + "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded", type_ids_var_map_wstring_ulong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulong) { - return_code_MapWStringULong = + return_code_var_map_wstring_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapWStringULong); + "_uint32_t", type_ids_var_map_wstring_ulong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapWStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapWStringULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulong, element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringULong = + return_code_var_map_wstring_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringULong); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ulong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ulong, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringULong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapWStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded = new TypeIdentifier(type_ids_MapWStringULong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulong, key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded = EK_BOTH; @@ -56647,68 +22152,21 @@ void register_MapWStringULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded", type_ids_var_map_wstring_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded", type_ids_MapWStringULong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_ulong; MemberId member_id_var_map_wstring_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulong, member_flags_var_map_wstring_ulong, type_ids_MapWStringULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulong, member_flags_var_map_wstring_ulong, type_ids_MapWStringULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_ulong_ec {false}; + CommonStructMember common_var_map_wstring_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulong, member_flags_var_map_wstring_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulong, common_var_map_wstring_ulong_ec))}; + if (!common_var_map_wstring_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_ulong = "var_map_wstring_ulong"; @@ -56720,32 +22178,26 @@ void register_MapWStringULong_type_identifier( } CompleteStructType struct_type_MapWStringULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringULong, header_MapWStringULong, member_seq_MapWStringULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringULong, type_name_MapWStringULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringULong, type_name_MapWStringULong.to_string(), type_ids_MapWStringULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringULong", type_ids_MapWStringULong); - if (return_code_MapWStringULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringLongLong) { + + ReturnCode_t return_code_MapWStringLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringLongLong", type_ids_MapWStringLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringLongLong) { - StructTypeFlag struct_flags_MapWStringLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringLongLong; - TypeIdentifierPair type_ids_MapWStringLongLong; QualifiedTypeName type_name_MapWStringLongLong = "MapWStringLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapWStringLongLong; eprosima::fastcdr::optional ann_custom_MapWStringLongLong; @@ -56754,137 +22206,56 @@ void register_MapWStringLongLong_type_identifier( header_MapWStringLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringLongLong); CompleteStructMemberSeq member_seq_MapWStringLongLong; { - return_code_MapWStringLongLong = + TypeIdentifierPair type_ids_var_map_wstring_longlong; + ReturnCode_t return_code_var_map_wstring_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded", type_ids_MapWStringLongLong); + "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded", type_ids_var_map_wstring_longlong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longlong) { - return_code_MapWStringLongLong = + return_code_var_map_wstring_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapWStringLongLong); + "_int64_t", type_ids_var_map_wstring_longlong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapWStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapWStringLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longlong, element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringLongLong = + return_code_var_map_wstring_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLongLong); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_longlong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longlong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_longlong, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLongLong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapWStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded = new TypeIdentifier(type_ids_MapWStringLongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longlong, key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded = EK_BOTH; @@ -56907,68 +22278,21 @@ void register_MapWStringLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded", type_ids_var_map_wstring_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded", type_ids_MapWStringLongLong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_longlong; MemberId member_id_var_map_wstring_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longlong, member_flags_var_map_wstring_longlong, type_ids_MapWStringLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longlong, member_flags_var_map_wstring_longlong, type_ids_MapWStringLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_longlong_ec {false}; + CommonStructMember common_var_map_wstring_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longlong, member_flags_var_map_wstring_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longlong, common_var_map_wstring_longlong_ec))}; + if (!common_var_map_wstring_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_longlong = "var_map_wstring_longlong"; @@ -56980,32 +22304,26 @@ void register_MapWStringLongLong_type_identifier( } CompleteStructType struct_type_MapWStringLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringLongLong, header_MapWStringLongLong, member_seq_MapWStringLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLongLong, type_name_MapWStringLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLongLong, type_name_MapWStringLongLong.to_string(), type_ids_MapWStringLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringLongLong", type_ids_MapWStringLongLong); - if (return_code_MapWStringLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringULongLong) { + + ReturnCode_t return_code_MapWStringULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringULongLong", type_ids_MapWStringULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringULongLong) { - StructTypeFlag struct_flags_MapWStringULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringULongLong; - TypeIdentifierPair type_ids_MapWStringULongLong; QualifiedTypeName type_name_MapWStringULongLong = "MapWStringULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapWStringULongLong; eprosima::fastcdr::optional ann_custom_MapWStringULongLong; @@ -57014,137 +22332,56 @@ void register_MapWStringULongLong_type_identifier( header_MapWStringULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringULongLong); CompleteStructMemberSeq member_seq_MapWStringULongLong; { - return_code_MapWStringULongLong = + TypeIdentifierPair type_ids_var_map_wstring_ulonglong; + ReturnCode_t return_code_var_map_wstring_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded", type_ids_MapWStringULongLong); + "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded", type_ids_var_map_wstring_ulonglong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulonglong) { - return_code_MapWStringULongLong = + return_code_var_map_wstring_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapWStringULongLong); + "_uint64_t", type_ids_var_map_wstring_ulonglong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapWStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapWStringULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulonglong, element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringULongLong = + return_code_var_map_wstring_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringULongLong); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ulonglong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_ulonglong) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_ulonglong, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringULongLong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapWStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded = new TypeIdentifier(type_ids_MapWStringULongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulonglong, key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded = EK_BOTH; @@ -57167,68 +22404,21 @@ void register_MapWStringULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded", type_ids_var_map_wstring_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded", type_ids_MapWStringULongLong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_ulonglong; MemberId member_id_var_map_wstring_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulonglong, member_flags_var_map_wstring_ulonglong, type_ids_MapWStringULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulonglong, member_flags_var_map_wstring_ulonglong, type_ids_MapWStringULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_ulonglong_ec {false}; + CommonStructMember common_var_map_wstring_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_ulonglong, member_flags_var_map_wstring_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_ulonglong, common_var_map_wstring_ulonglong_ec))}; + if (!common_var_map_wstring_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_ulonglong = "var_map_wstring_ulonglong"; @@ -57240,32 +22430,26 @@ void register_MapWStringULongLong_type_identifier( } CompleteStructType struct_type_MapWStringULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringULongLong, header_MapWStringULongLong, member_seq_MapWStringULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringULongLong, type_name_MapWStringULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringULongLong, type_name_MapWStringULongLong.to_string(), type_ids_MapWStringULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringULongLong", type_ids_MapWStringULongLong); - if (return_code_MapWStringULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringFloat) { + + ReturnCode_t return_code_MapWStringFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringFloat", type_ids_MapWStringFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringFloat) { - StructTypeFlag struct_flags_MapWStringFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringFloat; - TypeIdentifierPair type_ids_MapWStringFloat; QualifiedTypeName type_name_MapWStringFloat = "MapWStringFloat"; eprosima::fastcdr::optional type_ann_builtin_MapWStringFloat; eprosima::fastcdr::optional ann_custom_MapWStringFloat; @@ -57274,137 +22458,56 @@ void register_MapWStringFloat_type_identifier( header_MapWStringFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringFloat); CompleteStructMemberSeq member_seq_MapWStringFloat; { - return_code_MapWStringFloat = + TypeIdentifierPair type_ids_var_map_wstring_float; + ReturnCode_t return_code_var_map_wstring_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_float_unbounded", type_ids_MapWStringFloat); + "anonymous_map_anonymous_wstring_unbounded_float_unbounded", type_ids_var_map_wstring_float); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_float) { - return_code_MapWStringFloat = + return_code_var_map_wstring_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapWStringFloat); + "_float", type_ids_var_map_wstring_float); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapWStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapWStringFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_float, element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringFloat = + return_code_var_map_wstring_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringFloat); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_float); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_float) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_float, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringFloat); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapWStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded = new TypeIdentifier(type_ids_MapWStringFloat.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_float, key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_float_unbounded = EK_BOTH; @@ -57427,68 +22530,21 @@ void register_MapWStringFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_float_unbounded", type_ids_var_map_wstring_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_float_unbounded", type_ids_MapWStringFloat); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_float; MemberId member_id_var_map_wstring_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1()._d() || TK_NONE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_float, member_flags_var_map_wstring_float, type_ids_MapWStringFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_float, member_flags_var_map_wstring_float, type_ids_MapWStringFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_float_ec {false}; + CommonStructMember common_var_map_wstring_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_float, member_flags_var_map_wstring_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_float, common_var_map_wstring_float_ec))}; + if (!common_var_map_wstring_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_float = "var_map_wstring_float"; @@ -57500,32 +22556,26 @@ void register_MapWStringFloat_type_identifier( } CompleteStructType struct_type_MapWStringFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringFloat, header_MapWStringFloat, member_seq_MapWStringFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringFloat, type_name_MapWStringFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringFloat, type_name_MapWStringFloat.to_string(), type_ids_MapWStringFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringFloat", type_ids_MapWStringFloat); - if (return_code_MapWStringFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringDouble) { + + ReturnCode_t return_code_MapWStringDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringDouble", type_ids_MapWStringDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringDouble) { - StructTypeFlag struct_flags_MapWStringDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringDouble; - TypeIdentifierPair type_ids_MapWStringDouble; QualifiedTypeName type_name_MapWStringDouble = "MapWStringDouble"; eprosima::fastcdr::optional type_ann_builtin_MapWStringDouble; eprosima::fastcdr::optional ann_custom_MapWStringDouble; @@ -57534,137 +22584,56 @@ void register_MapWStringDouble_type_identifier( header_MapWStringDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringDouble); CompleteStructMemberSeq member_seq_MapWStringDouble; { - return_code_MapWStringDouble = + TypeIdentifierPair type_ids_var_map_wstring_double; + ReturnCode_t return_code_var_map_wstring_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_double_unbounded", type_ids_MapWStringDouble); + "anonymous_map_anonymous_wstring_unbounded_double_unbounded", type_ids_var_map_wstring_double); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_double) { - return_code_MapWStringDouble = + return_code_var_map_wstring_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapWStringDouble); + "_double", type_ids_var_map_wstring_double); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapWStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapWStringDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_double, element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringDouble = + return_code_var_map_wstring_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringDouble); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_double); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_double) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_double, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringDouble); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapWStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded = new TypeIdentifier(type_ids_MapWStringDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_double, key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_double_unbounded = EK_BOTH; @@ -57687,68 +22656,21 @@ void register_MapWStringDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_double_unbounded", type_ids_var_map_wstring_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_double_unbounded", type_ids_MapWStringDouble); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_double; MemberId member_id_var_map_wstring_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_double, member_flags_var_map_wstring_double, type_ids_MapWStringDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_double, member_flags_var_map_wstring_double, type_ids_MapWStringDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_double_ec {false}; + CommonStructMember common_var_map_wstring_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_double, member_flags_var_map_wstring_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_double, common_var_map_wstring_double_ec))}; + if (!common_var_map_wstring_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_double = "var_map_wstring_double"; @@ -57760,32 +22682,26 @@ void register_MapWStringDouble_type_identifier( } CompleteStructType struct_type_MapWStringDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringDouble, header_MapWStringDouble, member_seq_MapWStringDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringDouble, type_name_MapWStringDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringDouble, type_name_MapWStringDouble.to_string(), type_ids_MapWStringDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringDouble", type_ids_MapWStringDouble); - if (return_code_MapWStringDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringLongDouble) { + + ReturnCode_t return_code_MapWStringLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringLongDouble", type_ids_MapWStringLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringLongDouble) { - StructTypeFlag struct_flags_MapWStringLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringLongDouble; - TypeIdentifierPair type_ids_MapWStringLongDouble; QualifiedTypeName type_name_MapWStringLongDouble = "MapWStringLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapWStringLongDouble; eprosima::fastcdr::optional ann_custom_MapWStringLongDouble; @@ -57794,137 +22710,56 @@ void register_MapWStringLongDouble_type_identifier( header_MapWStringLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringLongDouble); CompleteStructMemberSeq member_seq_MapWStringLongDouble; { - return_code_MapWStringLongDouble = + TypeIdentifierPair type_ids_var_map_wstring_longdouble; + ReturnCode_t return_code_var_map_wstring_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded", type_ids_MapWStringLongDouble); + "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded", type_ids_var_map_wstring_longdouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longdouble) { - return_code_MapWStringLongDouble = + return_code_var_map_wstring_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapWStringLongDouble); + "_longdouble", type_ids_var_map_wstring_longdouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapWStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapWStringLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longdouble, element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringLongDouble = + return_code_var_map_wstring_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLongDouble); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_longdouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_longdouble) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_longdouble, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringLongDouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapWStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded = new TypeIdentifier(type_ids_MapWStringLongDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longdouble, key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded = EK_BOTH; @@ -57947,68 +22782,21 @@ void register_MapWStringLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded", type_ids_var_map_wstring_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded", type_ids_MapWStringLongDouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_longdouble; MemberId member_id_var_map_wstring_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longdouble, member_flags_var_map_wstring_longdouble, type_ids_MapWStringLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longdouble, member_flags_var_map_wstring_longdouble, type_ids_MapWStringLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_longdouble_ec {false}; + CommonStructMember common_var_map_wstring_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_longdouble, member_flags_var_map_wstring_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_longdouble, common_var_map_wstring_longdouble_ec))}; + if (!common_var_map_wstring_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_longdouble = "var_map_wstring_longdouble"; @@ -58020,32 +22808,26 @@ void register_MapWStringLongDouble_type_identifier( } CompleteStructType struct_type_MapWStringLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringLongDouble, header_MapWStringLongDouble, member_seq_MapWStringLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLongDouble, type_name_MapWStringLongDouble.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringLongDouble already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringLongDouble", type_ids_MapWStringLongDouble); - if (return_code_MapWStringLongDouble != eprosima::fastdds::dds::RETCODE_OK) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringLongDouble, type_name_MapWStringLongDouble.to_string(), type_ids_MapWStringLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "MapWStringLongDouble already registered in TypeObjectRegistry for a different type."); } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringBoolean) { + + ReturnCode_t return_code_MapWStringBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringBoolean", type_ids_MapWStringBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringBoolean) { - StructTypeFlag struct_flags_MapWStringBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringBoolean; - TypeIdentifierPair type_ids_MapWStringBoolean; QualifiedTypeName type_name_MapWStringBoolean = "MapWStringBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapWStringBoolean; eprosima::fastcdr::optional ann_custom_MapWStringBoolean; @@ -58054,137 +22836,56 @@ void register_MapWStringBoolean_type_identifier( header_MapWStringBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringBoolean); CompleteStructMemberSeq member_seq_MapWStringBoolean; { - return_code_MapWStringBoolean = + TypeIdentifierPair type_ids_var_map_wstring_boolean; + ReturnCode_t return_code_var_map_wstring_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_bool_unbounded", type_ids_MapWStringBoolean); + "anonymous_map_anonymous_wstring_unbounded_bool_unbounded", type_ids_var_map_wstring_boolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_boolean) { - return_code_MapWStringBoolean = + return_code_var_map_wstring_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapWStringBoolean); + "_bool", type_ids_var_map_wstring_boolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapWStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapWStringBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_boolean, element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringBoolean = + return_code_var_map_wstring_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringBoolean); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_boolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_boolean) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_boolean, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringBoolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapWStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded = new TypeIdentifier(type_ids_MapWStringBoolean.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_boolean, key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_bool_unbounded = EK_BOTH; @@ -58207,68 +22908,21 @@ void register_MapWStringBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_bool_unbounded", type_ids_var_map_wstring_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_bool_unbounded", type_ids_MapWStringBoolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_boolean; MemberId member_id_var_map_wstring_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_boolean, member_flags_var_map_wstring_boolean, type_ids_MapWStringBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_boolean, member_flags_var_map_wstring_boolean, type_ids_MapWStringBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_boolean_ec {false}; + CommonStructMember common_var_map_wstring_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_boolean, member_flags_var_map_wstring_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_boolean, common_var_map_wstring_boolean_ec))}; + if (!common_var_map_wstring_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_boolean = "var_map_wstring_boolean"; @@ -58280,32 +22934,26 @@ void register_MapWStringBoolean_type_identifier( } CompleteStructType struct_type_MapWStringBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringBoolean, header_MapWStringBoolean, member_seq_MapWStringBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringBoolean, type_name_MapWStringBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringBoolean, type_name_MapWStringBoolean.to_string(), type_ids_MapWStringBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringBoolean", type_ids_MapWStringBoolean); - if (return_code_MapWStringBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringOctet) { + + ReturnCode_t return_code_MapWStringOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringOctet", type_ids_MapWStringOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringOctet) { - StructTypeFlag struct_flags_MapWStringOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringOctet; - TypeIdentifierPair type_ids_MapWStringOctet; QualifiedTypeName type_name_MapWStringOctet = "MapWStringOctet"; eprosima::fastcdr::optional type_ann_builtin_MapWStringOctet; eprosima::fastcdr::optional ann_custom_MapWStringOctet; @@ -58314,137 +22962,56 @@ void register_MapWStringOctet_type_identifier( header_MapWStringOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringOctet); CompleteStructMemberSeq member_seq_MapWStringOctet; { - return_code_MapWStringOctet = + TypeIdentifierPair type_ids_var_map_wstring_octet; + ReturnCode_t return_code_var_map_wstring_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded", type_ids_MapWStringOctet); + "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded", type_ids_var_map_wstring_octet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_octet) { - return_code_MapWStringOctet = + return_code_var_map_wstring_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapWStringOctet); + "_byte", type_ids_var_map_wstring_octet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapWStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapWStringOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_octet, element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringOctet = + return_code_var_map_wstring_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringOctet); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_octet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_octet) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_octet, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringOctet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapWStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded = new TypeIdentifier(type_ids_MapWStringOctet.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_octet, key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded = EK_BOTH; @@ -58467,68 +23034,21 @@ void register_MapWStringOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded", type_ids_var_map_wstring_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded", type_ids_MapWStringOctet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_octet; MemberId member_id_var_map_wstring_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1()._d() || TK_NONE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_octet, member_flags_var_map_wstring_octet, type_ids_MapWStringOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_octet, member_flags_var_map_wstring_octet, type_ids_MapWStringOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_octet_ec {false}; + CommonStructMember common_var_map_wstring_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_octet, member_flags_var_map_wstring_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_octet, common_var_map_wstring_octet_ec))}; + if (!common_var_map_wstring_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_octet = "var_map_wstring_octet"; @@ -58540,32 +23060,26 @@ void register_MapWStringOctet_type_identifier( } CompleteStructType struct_type_MapWStringOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringOctet, header_MapWStringOctet, member_seq_MapWStringOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringOctet, type_name_MapWStringOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringOctet, type_name_MapWStringOctet.to_string(), type_ids_MapWStringOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringOctet", type_ids_MapWStringOctet); - if (return_code_MapWStringOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringChar) { + + ReturnCode_t return_code_MapWStringChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringChar", type_ids_MapWStringChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringChar) { - StructTypeFlag struct_flags_MapWStringChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringChar; - TypeIdentifierPair type_ids_MapWStringChar; QualifiedTypeName type_name_MapWStringChar = "MapWStringChar"; eprosima::fastcdr::optional type_ann_builtin_MapWStringChar; eprosima::fastcdr::optional ann_custom_MapWStringChar; @@ -58574,137 +23088,56 @@ void register_MapWStringChar_type_identifier( header_MapWStringChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringChar); CompleteStructMemberSeq member_seq_MapWStringChar; { - return_code_MapWStringChar = + TypeIdentifierPair type_ids_var_map_wstring_char; + ReturnCode_t return_code_var_map_wstring_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_char_unbounded", type_ids_MapWStringChar); + "anonymous_map_anonymous_wstring_unbounded_char_unbounded", type_ids_var_map_wstring_char); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_char) { - return_code_MapWStringChar = + return_code_var_map_wstring_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapWStringChar); + "_char", type_ids_var_map_wstring_char); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapWStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapWStringChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_char, element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringChar = + return_code_var_map_wstring_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringChar); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_char); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_char) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_char, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringChar); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapWStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded = new TypeIdentifier(type_ids_MapWStringChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_char, key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_char_unbounded = EK_BOTH; @@ -58727,68 +23160,21 @@ void register_MapWStringChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_char_unbounded", type_ids_var_map_wstring_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_char_unbounded", type_ids_MapWStringChar); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_char; MemberId member_id_var_map_wstring_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_char, member_flags_var_map_wstring_char, type_ids_MapWStringChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_char, member_flags_var_map_wstring_char, type_ids_MapWStringChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_char_ec {false}; + CommonStructMember common_var_map_wstring_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_char, member_flags_var_map_wstring_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_char, common_var_map_wstring_char_ec))}; + if (!common_var_map_wstring_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_char = "var_map_wstring_char"; @@ -58800,32 +23186,26 @@ void register_MapWStringChar_type_identifier( } CompleteStructType struct_type_MapWStringChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringChar, header_MapWStringChar, member_seq_MapWStringChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringChar, type_name_MapWStringChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringChar, type_name_MapWStringChar.to_string(), type_ids_MapWStringChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringChar", type_ids_MapWStringChar); - if (return_code_MapWStringChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringWChar) { + + ReturnCode_t return_code_MapWStringWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringWChar", type_ids_MapWStringWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringWChar) { - StructTypeFlag struct_flags_MapWStringWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringWChar; - TypeIdentifierPair type_ids_MapWStringWChar; QualifiedTypeName type_name_MapWStringWChar = "MapWStringWChar"; eprosima::fastcdr::optional type_ann_builtin_MapWStringWChar; eprosima::fastcdr::optional ann_custom_MapWStringWChar; @@ -58834,137 +23214,56 @@ void register_MapWStringWChar_type_identifier( header_MapWStringWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringWChar); CompleteStructMemberSeq member_seq_MapWStringWChar; { - return_code_MapWStringWChar = + TypeIdentifierPair type_ids_var_map_wstring_wchar; + ReturnCode_t return_code_var_map_wstring_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded", type_ids_MapWStringWChar); + "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded", type_ids_var_map_wstring_wchar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wchar) { - return_code_MapWStringWChar = + return_code_var_map_wstring_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapWStringWChar); + "_wchar_t", type_ids_var_map_wstring_wchar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapWStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapWStringWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wchar, element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringWChar = + return_code_var_map_wstring_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWChar); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wchar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wchar) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wchar, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWChar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapWStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded = new TypeIdentifier(type_ids_MapWStringWChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wchar, key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded = EK_BOTH; @@ -58987,68 +23286,21 @@ void register_MapWStringWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded", type_ids_var_map_wstring_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded", type_ids_MapWStringWChar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_wchar; MemberId member_id_var_map_wstring_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wchar, member_flags_var_map_wstring_wchar, type_ids_MapWStringWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wchar, member_flags_var_map_wstring_wchar, type_ids_MapWStringWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_wchar_ec {false}; + CommonStructMember common_var_map_wstring_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wchar, member_flags_var_map_wstring_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wchar, common_var_map_wstring_wchar_ec))}; + if (!common_var_map_wstring_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_wchar = "var_map_wstring_wchar"; @@ -59060,32 +23312,26 @@ void register_MapWStringWChar_type_identifier( } CompleteStructType struct_type_MapWStringWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringWChar, header_MapWStringWChar, member_seq_MapWStringWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringWChar, type_name_MapWStringWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringWChar, type_name_MapWStringWChar.to_string(), type_ids_MapWStringWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringWChar", type_ids_MapWStringWChar); - if (return_code_MapWStringWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringString) { + + ReturnCode_t return_code_MapWStringString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringString", type_ids_MapWStringString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringString) { - StructTypeFlag struct_flags_MapWStringString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringString; - TypeIdentifierPair type_ids_MapWStringString; QualifiedTypeName type_name_MapWStringString = "MapWStringString"; eprosima::fastcdr::optional type_ann_builtin_MapWStringString; eprosima::fastcdr::optional ann_custom_MapWStringString; @@ -59094,154 +23340,64 @@ void register_MapWStringString_type_identifier( header_MapWStringString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringString); CompleteStructMemberSeq member_seq_MapWStringString; { - return_code_MapWStringString = + TypeIdentifierPair type_ids_var_map_wstring_string; + ReturnCode_t return_code_var_map_wstring_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded", type_ids_MapWStringString); + "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded", type_ids_var_map_wstring_string); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_string) { - return_code_MapWStringString = + return_code_var_map_wstring_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapWStringString); + "anonymous_string_unbounded", type_ids_var_map_wstring_string); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_wstring_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapWStringString); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_string, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringString = + return_code_var_map_wstring_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringString); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_string); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_string, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringString); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_string, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -59264,68 +23420,21 @@ void register_MapWStringString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded", type_ids_var_map_wstring_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded", type_ids_MapWStringString); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_string; MemberId member_id_var_map_wstring_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_string, member_flags_var_map_wstring_string, type_ids_MapWStringString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_string, member_flags_var_map_wstring_string, type_ids_MapWStringString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_string_ec {false}; + CommonStructMember common_var_map_wstring_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_string, member_flags_var_map_wstring_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_string, common_var_map_wstring_string_ec))}; + if (!common_var_map_wstring_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_string = "var_map_wstring_string"; @@ -59337,32 +23446,26 @@ void register_MapWStringString_type_identifier( } CompleteStructType struct_type_MapWStringString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringString, header_MapWStringString, member_seq_MapWStringString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringString, type_name_MapWStringString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringString, type_name_MapWStringString.to_string(), type_ids_MapWStringString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringString already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringString", type_ids_MapWStringString); - if (return_code_MapWStringString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringWString) { + + ReturnCode_t return_code_MapWStringWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringWString", type_ids_MapWStringWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringWString) { - StructTypeFlag struct_flags_MapWStringWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringWString; - TypeIdentifierPair type_ids_MapWStringWString; QualifiedTypeName type_name_MapWStringWString = "MapWStringWString"; eprosima::fastcdr::optional type_ann_builtin_MapWStringWString; eprosima::fastcdr::optional ann_custom_MapWStringWString; @@ -59371,154 +23474,64 @@ void register_MapWStringWString_type_identifier( header_MapWStringWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringWString); CompleteStructMemberSeq member_seq_MapWStringWString; { - return_code_MapWStringWString = + TypeIdentifierPair type_ids_var_map_wstring_wstring; + ReturnCode_t return_code_var_map_wstring_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_MapWStringWString); + "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_var_map_wstring_wstring); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wstring) { - return_code_MapWStringWString = + return_code_var_map_wstring_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWString); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wstring); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWString); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wstring, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringWString = + return_code_var_map_wstring_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWString); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wstring); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringWString); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringWString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wstring, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -59541,68 +23554,21 @@ void register_MapWStringWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_var_map_wstring_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded", type_ids_MapWStringWString); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_wstring; MemberId member_id_var_map_wstring_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1()._d() || TK_NONE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wstring, member_flags_var_map_wstring_wstring, type_ids_MapWStringWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wstring, member_flags_var_map_wstring_wstring, type_ids_MapWStringWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_wstring_ec {false}; + CommonStructMember common_var_map_wstring_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_wstring, member_flags_var_map_wstring_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_wstring, common_var_map_wstring_wstring_ec))}; + if (!common_var_map_wstring_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_wstring = "var_map_wstring_wstring"; @@ -59614,32 +23580,26 @@ void register_MapWStringWString_type_identifier( } CompleteStructType struct_type_MapWStringWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringWString, header_MapWStringWString, member_seq_MapWStringWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringWString, type_name_MapWStringWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringWString, type_name_MapWStringWString.to_string(), type_ids_MapWStringWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringWString", type_ids_MapWStringWString); - if (return_code_MapWStringWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasBoundedStringHelper", type_ids_MapWStringInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapWStringInnerAliasBoundedStringHelper = "MapWStringInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasBoundedStringHelper; @@ -59648,232 +23608,54 @@ void register_MapWStringInnerAliasBoundedStringHelper_type_identifier( header_MapWStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasBoundedStringHelper; { - return_code_MapWStringInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_wstring_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded", type_ids_MapWStringInnerAliasBoundedStringHelper); + "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded", type_ids_var_map_wstring_inneraliasboundedstringhelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedstringhelper) { - return_code_MapWStringInnerAliasBoundedStringHelper = + return_code_var_map_wstring_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapWStringInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_wstring_inneraliasboundedstringhelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapWStringInnerAliasBoundedStringHelper); - - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapWStringInnerAliasBoundedStringHelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapWStringInnerAliasBoundedStringHelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_wstring_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedstringhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasBoundedStringHelper = + return_code_var_map_wstring_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasBoundedStringHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasboundedstringhelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedstringhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasboundedstringhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasBoundedStringHelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedstringhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded = EK_BOTH; @@ -59896,68 +23678,21 @@ void register_MapWStringInnerAliasBoundedStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded", type_ids_var_map_wstring_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded", type_ids_MapWStringInnerAliasBoundedStringHelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliasboundedstringhelper; MemberId member_id_var_map_wstring_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedstringhelper, member_flags_var_map_wstring_inneraliasboundedstringhelper, type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedstringhelper, member_flags_var_map_wstring_inneraliasboundedstringhelper, type_ids_MapWStringInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedstringhelper, member_flags_var_map_wstring_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedstringhelper, common_var_map_wstring_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_wstring_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliasboundedstringhelper = "var_map_wstring_inneraliasboundedstringhelper"; @@ -59969,32 +23704,26 @@ void register_MapWStringInnerAliasBoundedStringHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasBoundedStringHelper, header_MapWStringInnerAliasBoundedStringHelper, member_seq_MapWStringInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasBoundedStringHelper, type_name_MapWStringInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasBoundedStringHelper, type_name_MapWStringInnerAliasBoundedStringHelper.to_string(), type_ids_MapWStringInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasBoundedStringHelper", type_ids_MapWStringInnerAliasBoundedStringHelper); - if (return_code_MapWStringInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasBoundedWStringHelper", type_ids_MapWStringInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapWStringInnerAliasBoundedWStringHelper = "MapWStringInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasBoundedWStringHelper; @@ -60003,232 +23732,54 @@ void register_MapWStringInnerAliasBoundedWStringHelper_type_identifier( header_MapWStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasBoundedWStringHelper; { - return_code_MapWStringInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_wstring_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded", type_ids_MapWStringInnerAliasBoundedWStringHelper); + "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded", type_ids_var_map_wstring_inneraliasboundedwstringhelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedwstringhelper) { - return_code_MapWStringInnerAliasBoundedWStringHelper = + return_code_var_map_wstring_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapWStringInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_wstring_inneraliasboundedwstringhelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapWStringInnerAliasBoundedWStringHelper); - - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapWStringInnerAliasBoundedWStringHelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapWStringInnerAliasBoundedWStringHelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_wstring_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedwstringhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasBoundedWStringHelper = + return_code_var_map_wstring_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasBoundedWStringHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasboundedwstringhelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasboundedwstringhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasboundedwstringhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasBoundedWStringHelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedwstringhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded = EK_BOTH; @@ -60251,68 +23802,21 @@ void register_MapWStringInnerAliasBoundedWStringHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded", type_ids_var_map_wstring_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded", type_ids_MapWStringInnerAliasBoundedWStringHelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliasboundedwstringhelper; MemberId member_id_var_map_wstring_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedwstringhelper, member_flags_var_map_wstring_inneraliasboundedwstringhelper, type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedwstringhelper, member_flags_var_map_wstring_inneraliasboundedwstringhelper, type_ids_MapWStringInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasboundedwstringhelper, member_flags_var_map_wstring_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasboundedwstringhelper, common_var_map_wstring_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_wstring_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliasboundedwstringhelper = "var_map_wstring_inneraliasboundedwstringhelper"; @@ -60324,32 +23828,26 @@ void register_MapWStringInnerAliasBoundedWStringHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasBoundedWStringHelper, header_MapWStringInnerAliasBoundedWStringHelper, member_seq_MapWStringInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasBoundedWStringHelper, type_name_MapWStringInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasBoundedWStringHelper, type_name_MapWStringInnerAliasBoundedWStringHelper.to_string(), type_ids_MapWStringInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasBoundedWStringHelper", type_ids_MapWStringInnerAliasBoundedWStringHelper); - if (return_code_MapWStringInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerEnumHelper) { + + ReturnCode_t return_code_MapWStringInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerEnumHelper", type_ids_MapWStringInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerEnumHelper) { - StructTypeFlag struct_flags_MapWStringInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerEnumHelper; - TypeIdentifierPair type_ids_MapWStringInnerEnumHelper; QualifiedTypeName type_name_MapWStringInnerEnumHelper = "MapWStringInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerEnumHelper; @@ -60358,190 +23856,54 @@ void register_MapWStringInnerEnumHelper_type_identifier( header_MapWStringInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerEnumHelper); CompleteStructMemberSeq member_seq_MapWStringInnerEnumHelper; { - return_code_MapWStringInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_wstring_innerenumhelper; + ReturnCode_t return_code_var_map_wstring_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded", type_ids_MapWStringInnerEnumHelper); + "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded", type_ids_var_map_wstring_innerenumhelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerenumhelper) { - return_code_MapWStringInnerEnumHelper = + return_code_var_map_wstring_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapWStringInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_wstring_innerenumhelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapWStringInnerEnumHelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_wstring_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerenumhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerEnumHelper = + return_code_var_map_wstring_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerEnumHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerenumhelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerenumhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerenumhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerEnumHelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerEnumHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerenumhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded = EK_BOTH; @@ -60564,68 +23926,21 @@ void register_MapWStringInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded", type_ids_var_map_wstring_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded", type_ids_MapWStringInnerEnumHelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_innerenumhelper; MemberId member_id_var_map_wstring_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerenumhelper, member_flags_var_map_wstring_innerenumhelper, type_ids_MapWStringInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerenumhelper, member_flags_var_map_wstring_innerenumhelper, type_ids_MapWStringInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_innerenumhelper_ec {false}; + CommonStructMember common_var_map_wstring_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerenumhelper, member_flags_var_map_wstring_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerenumhelper, common_var_map_wstring_innerenumhelper_ec))}; + if (!common_var_map_wstring_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_innerenumhelper = "var_map_wstring_innerenumhelper"; @@ -60637,32 +23952,26 @@ void register_MapWStringInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerEnumHelper, header_MapWStringInnerEnumHelper, member_seq_MapWStringInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerEnumHelper, type_name_MapWStringInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerEnumHelper, type_name_MapWStringInnerEnumHelper.to_string(), type_ids_MapWStringInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerEnumHelper", type_ids_MapWStringInnerEnumHelper); - if (return_code_MapWStringInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerBitMaskHelper) { + + ReturnCode_t return_code_MapWStringInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerBitMaskHelper", type_ids_MapWStringInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapWStringInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapWStringInnerBitMaskHelper; QualifiedTypeName type_name_MapWStringInnerBitMaskHelper = "MapWStringInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerBitMaskHelper; @@ -60671,223 +23980,54 @@ void register_MapWStringInnerBitMaskHelper_type_identifier( header_MapWStringInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapWStringInnerBitMaskHelper; { - return_code_MapWStringInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_wstring_innerbitmaskhelper; + ReturnCode_t return_code_var_map_wstring_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded", type_ids_MapWStringInnerBitMaskHelper); + "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded", type_ids_var_map_wstring_innerbitmaskhelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitmaskhelper) { - return_code_MapWStringInnerBitMaskHelper = + return_code_var_map_wstring_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapWStringInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_wstring_innerbitmaskhelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapWStringInnerBitMaskHelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_wstring_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitmaskhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerBitMaskHelper = + return_code_var_map_wstring_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerBitMaskHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerbitmaskhelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitmaskhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerbitmaskhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerBitMaskHelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitMaskHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitmaskhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -60910,68 +24050,21 @@ void register_MapWStringInnerBitMaskHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded", type_ids_var_map_wstring_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded", type_ids_MapWStringInnerBitMaskHelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_innerbitmaskhelper; MemberId member_id_var_map_wstring_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitmaskhelper, member_flags_var_map_wstring_innerbitmaskhelper, type_ids_MapWStringInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitmaskhelper, member_flags_var_map_wstring_innerbitmaskhelper, type_ids_MapWStringInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_wstring_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitmaskhelper, member_flags_var_map_wstring_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitmaskhelper, common_var_map_wstring_innerbitmaskhelper_ec))}; + if (!common_var_map_wstring_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_innerbitmaskhelper = "var_map_wstring_innerbitmaskhelper"; @@ -60983,32 +24076,26 @@ void register_MapWStringInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerBitMaskHelper, header_MapWStringInnerBitMaskHelper, member_seq_MapWStringInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerBitMaskHelper, type_name_MapWStringInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerBitMaskHelper, type_name_MapWStringInnerBitMaskHelper.to_string(), type_ids_MapWStringInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerBitMaskHelper", type_ids_MapWStringInnerBitMaskHelper); - if (return_code_MapWStringInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasHelper", type_ids_MapWStringInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasHelper; QualifiedTypeName type_name_MapWStringInnerAliasHelper = "MapWStringInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasHelper; @@ -61017,215 +24104,54 @@ void register_MapWStringInnerAliasHelper_type_identifier( header_MapWStringInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasHelper; { - return_code_MapWStringInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliashelper; + ReturnCode_t return_code_var_map_wstring_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded", type_ids_MapWStringInnerAliasHelper); + "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded", type_ids_var_map_wstring_inneraliashelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliashelper) { - return_code_MapWStringInnerAliasHelper = + return_code_var_map_wstring_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapWStringInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_wstring_inneraliashelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapWStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapWStringInnerAliasHelper); - - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapWStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapWStringInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapWStringInnerAliasHelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_wstring_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliashelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasHelper = + return_code_var_map_wstring_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliashelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliashelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliashelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasHelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliashelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded = EK_BOTH; @@ -61248,68 +24174,21 @@ void register_MapWStringInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded", type_ids_var_map_wstring_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded", type_ids_MapWStringInnerAliasHelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliashelper; MemberId member_id_var_map_wstring_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliashelper, member_flags_var_map_wstring_inneraliashelper, type_ids_MapWStringInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliashelper, member_flags_var_map_wstring_inneraliashelper, type_ids_MapWStringInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliashelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliashelper, member_flags_var_map_wstring_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliashelper, common_var_map_wstring_inneraliashelper_ec))}; + if (!common_var_map_wstring_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliashelper = "var_map_wstring_inneraliashelper"; @@ -61321,32 +24200,26 @@ void register_MapWStringInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasHelper, header_MapWStringInnerAliasHelper, member_seq_MapWStringInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasHelper, type_name_MapWStringInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasHelper, type_name_MapWStringInnerAliasHelper.to_string(), type_ids_MapWStringInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasHelper", type_ids_MapWStringInnerAliasHelper); - if (return_code_MapWStringInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasArrayHelper", type_ids_MapWStringInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasArrayHelper; QualifiedTypeName type_name_MapWStringInnerAliasArrayHelper = "MapWStringInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasArrayHelper; @@ -61355,296 +24228,54 @@ void register_MapWStringInnerAliasArrayHelper_type_identifier( header_MapWStringInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasArrayHelper; { - return_code_MapWStringInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_wstring_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_MapWStringInnerAliasArrayHelper); + "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_var_map_wstring_inneraliasarrayhelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasarrayhelper) { - return_code_MapWStringInnerAliasArrayHelper = + return_code_var_map_wstring_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapWStringInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_wstring_inneraliasarrayhelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapWStringInnerAliasArrayHelper); - - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapWStringInnerAliasArrayHelper); - - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapWStringInnerAliasArrayHelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapWStringInnerAliasArrayHelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_wstring_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasarrayhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasArrayHelper = + return_code_var_map_wstring_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasArrayHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasarrayhelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasarrayhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasarrayhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasArrayHelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasarrayhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -61667,68 +24298,21 @@ void register_MapWStringInnerAliasArrayHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_var_map_wstring_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded", type_ids_MapWStringInnerAliasArrayHelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliasarrayhelper; MemberId member_id_var_map_wstring_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasarrayhelper, member_flags_var_map_wstring_inneraliasarrayhelper, type_ids_MapWStringInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasarrayhelper, member_flags_var_map_wstring_inneraliasarrayhelper, type_ids_MapWStringInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasarrayhelper, member_flags_var_map_wstring_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasarrayhelper, common_var_map_wstring_inneraliasarrayhelper_ec))}; + if (!common_var_map_wstring_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliasarrayhelper = "var_map_wstring_inneraliasarrayhelper"; @@ -61740,32 +24324,26 @@ void register_MapWStringInnerAliasArrayHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasArrayHelper, header_MapWStringInnerAliasArrayHelper, member_seq_MapWStringInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasArrayHelper, type_name_MapWStringInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasArrayHelper, type_name_MapWStringInnerAliasArrayHelper.to_string(), type_ids_MapWStringInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasArrayHelper", type_ids_MapWStringInnerAliasArrayHelper); - if (return_code_MapWStringInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasSequenceHelper", type_ids_MapWStringInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasSequenceHelper; QualifiedTypeName type_name_MapWStringInnerAliasSequenceHelper = "MapWStringInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasSequenceHelper; @@ -61774,294 +24352,54 @@ void register_MapWStringInnerAliasSequenceHelper_type_identifier( header_MapWStringInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasSequenceHelper; { - return_code_MapWStringInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliassequencehelper; + ReturnCode_t return_code_var_map_wstring_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); + "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_wstring_inneraliassequencehelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliassequencehelper) { - return_code_MapWStringInnerAliasSequenceHelper = + return_code_var_map_wstring_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapWStringInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_wstring_inneraliassequencehelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); - - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapWStringInnerAliasSequenceHelper); - - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapWStringInnerAliasSequenceHelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_wstring_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliassequencehelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasSequenceHelper = + return_code_var_map_wstring_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliassequencehelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliassequencehelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliassequencehelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliassequencehelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -62084,68 +24422,21 @@ void register_MapWStringInnerAliasSequenceHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_wstring_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapWStringInnerAliasSequenceHelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliassequencehelper; MemberId member_id_var_map_wstring_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliassequencehelper, member_flags_var_map_wstring_inneraliassequencehelper, type_ids_MapWStringInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliassequencehelper, member_flags_var_map_wstring_inneraliassequencehelper, type_ids_MapWStringInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliassequencehelper, member_flags_var_map_wstring_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliassequencehelper, common_var_map_wstring_inneraliassequencehelper_ec))}; + if (!common_var_map_wstring_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliassequencehelper = "var_map_wstring_inneraliassequencehelper"; @@ -62157,32 +24448,26 @@ void register_MapWStringInnerAliasSequenceHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasSequenceHelper, header_MapWStringInnerAliasSequenceHelper, member_seq_MapWStringInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasSequenceHelper, type_name_MapWStringInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasSequenceHelper, type_name_MapWStringInnerAliasSequenceHelper.to_string(), type_ids_MapWStringInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasSequenceHelper", type_ids_MapWStringInnerAliasSequenceHelper); - if (return_code_MapWStringInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerAliasMapHelper) { + + ReturnCode_t return_code_MapWStringInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerAliasMapHelper", type_ids_MapWStringInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapWStringInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapWStringInnerAliasMapHelper; QualifiedTypeName type_name_MapWStringInnerAliasMapHelper = "MapWStringInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerAliasMapHelper; @@ -62191,357 +24476,54 @@ void register_MapWStringInnerAliasMapHelper_type_identifier( header_MapWStringInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerAliasMapHelper); CompleteStructMemberSeq member_seq_MapWStringInnerAliasMapHelper; { - return_code_MapWStringInnerAliasMapHelper = + TypeIdentifierPair type_ids_var_map_wstring_inneraliasmaphelper; + ReturnCode_t return_code_var_map_wstring_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapWStringInnerAliasMapHelper); + "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_wstring_inneraliasmaphelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasmaphelper) { - return_code_MapWStringInnerAliasMapHelper = + return_code_var_map_wstring_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapWStringInnerAliasMapHelper); + "Inner_alias_map_helper", type_ids_var_map_wstring_inneraliasmaphelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapWStringInnerAliasMapHelper); - - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapWStringInnerAliasMapHelper); - - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapWStringInnerAliasMapHelper); - - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapWStringInnerAliasMapHelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapWStringInnerAliasMapHelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_wstring_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasmaphelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerAliasMapHelper = + return_code_var_map_wstring_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasMapHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasmaphelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_inneraliasmaphelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_inneraliasmaphelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerAliasMapHelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasmaphelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -62564,68 +24546,21 @@ void register_MapWStringInnerAliasMapHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_wstring_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapWStringInnerAliasMapHelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_inneraliasmaphelper; MemberId member_id_var_map_wstring_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasmaphelper, member_flags_var_map_wstring_inneraliasmaphelper, type_ids_MapWStringInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasmaphelper, member_flags_var_map_wstring_inneraliasmaphelper, type_ids_MapWStringInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_wstring_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_inneraliasmaphelper, member_flags_var_map_wstring_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_inneraliasmaphelper, common_var_map_wstring_inneraliasmaphelper_ec))}; + if (!common_var_map_wstring_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_inneraliasmaphelper = "var_map_wstring_inneraliasmaphelper"; @@ -62637,32 +24572,26 @@ void register_MapWStringInnerAliasMapHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerAliasMapHelper, header_MapWStringInnerAliasMapHelper, member_seq_MapWStringInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasMapHelper, type_name_MapWStringInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerAliasMapHelper, type_name_MapWStringInnerAliasMapHelper.to_string(), type_ids_MapWStringInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerAliasMapHelper", type_ids_MapWStringInnerAliasMapHelper); - if (return_code_MapWStringInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerUnionHelper) { + + ReturnCode_t return_code_MapWStringInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerUnionHelper", type_ids_MapWStringInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerUnionHelper) { - StructTypeFlag struct_flags_MapWStringInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerUnionHelper; - TypeIdentifierPair type_ids_MapWStringInnerUnionHelper; QualifiedTypeName type_name_MapWStringInnerUnionHelper = "MapWStringInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerUnionHelper; @@ -62671,414 +24600,54 @@ void register_MapWStringInnerUnionHelper_type_identifier( header_MapWStringInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerUnionHelper); CompleteStructMemberSeq member_seq_MapWStringInnerUnionHelper; { - return_code_MapWStringInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_wstring_innerunionhelper; + ReturnCode_t return_code_var_map_wstring_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded", type_ids_MapWStringInnerUnionHelper); + "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded", type_ids_var_map_wstring_innerunionhelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerunionhelper) { - return_code_MapWStringInnerUnionHelper = + return_code_var_map_wstring_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapWStringInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_wstring_innerunionhelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapWStringInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapWStringInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_wstring_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerunionhelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerUnionHelper = + return_code_var_map_wstring_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerUnionHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerunionhelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerunionhelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerunionhelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerUnionHelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerUnionHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerunionhelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded = EK_BOTH; @@ -63101,68 +24670,21 @@ void register_MapWStringInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded", type_ids_var_map_wstring_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded", type_ids_MapWStringInnerUnionHelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_innerunionhelper; MemberId member_id_var_map_wstring_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerunionhelper, member_flags_var_map_wstring_innerunionhelper, type_ids_MapWStringInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerunionhelper, member_flags_var_map_wstring_innerunionhelper, type_ids_MapWStringInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_innerunionhelper_ec {false}; + CommonStructMember common_var_map_wstring_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerunionhelper, member_flags_var_map_wstring_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerunionhelper, common_var_map_wstring_innerunionhelper_ec))}; + if (!common_var_map_wstring_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_innerunionhelper = "var_map_wstring_innerunionhelper"; @@ -63174,32 +24696,26 @@ void register_MapWStringInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerUnionHelper, header_MapWStringInnerUnionHelper, member_seq_MapWStringInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerUnionHelper, type_name_MapWStringInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerUnionHelper, type_name_MapWStringInnerUnionHelper.to_string(), type_ids_MapWStringInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerUnionHelper", type_ids_MapWStringInnerUnionHelper); - if (return_code_MapWStringInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerStructureHelper) { + + ReturnCode_t return_code_MapWStringInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerStructureHelper", type_ids_MapWStringInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerStructureHelper) { - StructTypeFlag struct_flags_MapWStringInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerStructureHelper; - TypeIdentifierPair type_ids_MapWStringInnerStructureHelper; QualifiedTypeName type_name_MapWStringInnerStructureHelper = "MapWStringInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapWStringInnerStructureHelper; @@ -63208,304 +24724,54 @@ void register_MapWStringInnerStructureHelper_type_identifier( header_MapWStringInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerStructureHelper); CompleteStructMemberSeq member_seq_MapWStringInnerStructureHelper; { - return_code_MapWStringInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_wstring_innerstructurehelper; + ReturnCode_t return_code_var_map_wstring_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded", type_ids_MapWStringInnerStructureHelper); + "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded", type_ids_var_map_wstring_innerstructurehelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerstructurehelper) { - return_code_MapWStringInnerStructureHelper = + return_code_var_map_wstring_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapWStringInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_wstring_innerstructurehelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapWStringInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapWStringInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_wstring_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerstructurehelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerStructureHelper = + return_code_var_map_wstring_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerStructureHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerstructurehelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerstructurehelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerstructurehelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerStructureHelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerStructureHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerstructurehelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded = EK_BOTH; @@ -63528,68 +24794,21 @@ void register_MapWStringInnerStructureHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded", type_ids_var_map_wstring_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded", type_ids_MapWStringInnerStructureHelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_innerstructurehelper; MemberId member_id_var_map_wstring_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerstructurehelper, member_flags_var_map_wstring_innerstructurehelper, type_ids_MapWStringInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerstructurehelper, member_flags_var_map_wstring_innerstructurehelper, type_ids_MapWStringInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_wstring_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerstructurehelper, member_flags_var_map_wstring_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerstructurehelper, common_var_map_wstring_innerstructurehelper_ec))}; + if (!common_var_map_wstring_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_innerstructurehelper = "var_map_wstring_innerstructurehelper"; @@ -63601,243 +24820,82 @@ void register_MapWStringInnerStructureHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerStructureHelper, header_MapWStringInnerStructureHelper, member_seq_MapWStringInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerStructureHelper, type_name_MapWStringInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerStructureHelper, type_name_MapWStringInnerStructureHelper.to_string(), type_ids_MapWStringInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerStructureHelper", type_ids_MapWStringInnerStructureHelper); - if (return_code_MapWStringInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapWStringInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapWStringInnerBitsetHelper) { + + ReturnCode_t return_code_MapWStringInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapWStringInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapWStringInnerBitsetHelper", type_ids_MapWStringInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapWStringInnerBitsetHelper) { - StructTypeFlag struct_flags_MapWStringInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapWStringInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapWStringInnerBitsetHelper; - TypeIdentifierPair type_ids_MapWStringInnerBitsetHelper; - QualifiedTypeName type_name_MapWStringInnerBitsetHelper = "MapWStringInnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_MapWStringInnerBitsetHelper; - CompleteTypeDetail detail_MapWStringInnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapWStringInnerBitsetHelper, ann_custom_MapWStringInnerBitsetHelper, type_name_MapWStringInnerBitsetHelper.to_string()); - CompleteStructHeader header_MapWStringInnerBitsetHelper; - header_MapWStringInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerBitsetHelper); - CompleteStructMemberSeq member_seq_MapWStringInnerBitsetHelper; - { - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded", type_ids_MapWStringInnerBitsetHelper); - - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapWStringInnerBitsetHelper); - - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapWStringInnerBitsetHelper); - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + QualifiedTypeName type_name_MapWStringInnerBitsetHelper = "MapWStringInnerBitsetHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapWStringInnerBitsetHelper; + eprosima::fastcdr::optional ann_custom_MapWStringInnerBitsetHelper; + CompleteTypeDetail detail_MapWStringInnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapWStringInnerBitsetHelper, ann_custom_MapWStringInnerBitsetHelper, type_name_MapWStringInnerBitsetHelper.to_string()); + CompleteStructHeader header_MapWStringInnerBitsetHelper; + header_MapWStringInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapWStringInnerBitsetHelper); + CompleteStructMemberSeq member_seq_MapWStringInnerBitsetHelper; + { + TypeIdentifierPair type_ids_var_map_wstring_innerbitsethelper; + ReturnCode_t return_code_var_map_wstring_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_wstring_innerbitsethelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded", type_ids_var_map_wstring_innerbitsethelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitsethelper) + { + return_code_var_map_wstring_innerbitsethelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitsetHelper", type_ids_var_map_wstring_innerbitsethelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitsethelper) + { + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_wstring_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitsethelper, element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapWStringInnerBitsetHelper = + return_code_var_map_wstring_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerBitsetHelper); + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerbitsethelper); - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_wstring_innerbitsethelper) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_wstring_innerbitsethelper, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapWStringInnerBitsetHelper); - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapWStringInnerBitsetHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitsethelper, key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded = EK_BOTH; @@ -63860,68 +24918,21 @@ void register_MapWStringInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded", type_ids_var_map_wstring_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded", type_ids_MapWStringInnerBitsetHelper); - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_unbounded_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_wstring_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_wstring_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_wstring_innerbitsethelper; MemberId member_id_var_map_wstring_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitsethelper, member_flags_var_map_wstring_innerbitsethelper, type_ids_MapWStringInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapWStringInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapWStringInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_wstring_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitsethelper, member_flags_var_map_wstring_innerbitsethelper, type_ids_MapWStringInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_wstring_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_wstring_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_wstring_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_wstring_innerbitsethelper, member_flags_var_map_wstring_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_wstring_innerbitsethelper, common_var_map_wstring_innerbitsethelper_ec))}; + if (!common_var_map_wstring_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_wstring_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_wstring_innerbitsethelper = "var_map_wstring_innerbitsethelper"; @@ -63933,32 +24944,26 @@ void register_MapWStringInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapWStringInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapWStringInnerBitsetHelper, header_MapWStringInnerBitsetHelper, member_seq_MapWStringInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerBitsetHelper, type_name_MapWStringInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapWStringInnerBitsetHelper, type_name_MapWStringInnerBitsetHelper.to_string(), type_ids_MapWStringInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapWStringInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapWStringInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapWStringInnerBitsetHelper", type_ids_MapWStringInnerBitsetHelper); - if (return_code_MapWStringInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapWStringInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperShort) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperShort", type_ids_MapInnerAliasBoundedStringHelperShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperShort) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperShort; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperShort; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperShort = "MapInnerAliasBoundedStringHelperShort"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperShort; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperShort; @@ -63967,215 +24972,46 @@ void register_MapInnerAliasBoundedStringHelperShort_type_identifier( header_MapInnerAliasBoundedStringHelperShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperShort); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperShort; { - return_code_MapInnerAliasBoundedStringHelperShort = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_short; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperShort); + "anonymous_map_anonymous_string_10_int16_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_short); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_short) { - return_code_MapInnerAliasBoundedStringHelperShort = + return_code_var_map_inneraliasboundedstringhelper_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedStringHelperShort); + "_int16_t", type_ids_var_map_inneraliasboundedstringhelper_short); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_short, element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperShort = + return_code_var_map_inneraliasboundedstringhelper_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperShort); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_short); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_short) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperShort); - - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperShort); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperShort); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_short); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_short, key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_int16_t_unbounded = EK_BOTH; @@ -64198,68 +25034,21 @@ void register_MapInnerAliasBoundedStringHelperShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded), key_flags_anonymous_map_anonymous_string_10_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int16_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperShort); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_short; MemberId member_id_var_map_inneraliasboundedstringhelper_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_short, member_flags_var_map_inneraliasboundedstringhelper_short, type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_short, member_flags_var_map_inneraliasboundedstringhelper_short, type_ids_MapInnerAliasBoundedStringHelperShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_short_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_short, member_flags_var_map_inneraliasboundedstringhelper_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_short, common_var_map_inneraliasboundedstringhelper_short_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_short = "var_map_inneraliasboundedstringhelper_short"; @@ -64271,32 +25060,26 @@ void register_MapInnerAliasBoundedStringHelperShort_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperShort, header_MapInnerAliasBoundedStringHelperShort, member_seq_MapInnerAliasBoundedStringHelperShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperShort, type_name_MapInnerAliasBoundedStringHelperShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperShort, type_name_MapInnerAliasBoundedStringHelperShort.to_string(), type_ids_MapInnerAliasBoundedStringHelperShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperShort", type_ids_MapInnerAliasBoundedStringHelperShort); - if (return_code_MapInnerAliasBoundedStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperUShort) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperUShort", type_ids_MapInnerAliasBoundedStringHelperUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperUShort) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperUShort; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperUShort; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperUShort = "MapInnerAliasBoundedStringHelperUShort"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperUShort; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperUShort; @@ -64305,215 +25088,46 @@ void register_MapInnerAliasBoundedStringHelperUShort_type_identifier( header_MapInnerAliasBoundedStringHelperUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperUShort); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperUShort; { - return_code_MapInnerAliasBoundedStringHelperUShort = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_ushort; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperUShort); + "anonymous_map_anonymous_string_10_uint16_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ushort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ushort) { - return_code_MapInnerAliasBoundedStringHelperUShort = + return_code_var_map_inneraliasboundedstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapInnerAliasBoundedStringHelperUShort); + "_uint16_t", type_ids_var_map_inneraliasboundedstringhelper_ushort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ushort, element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperUShort = + return_code_var_map_inneraliasboundedstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperUShort); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_ushort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ushort) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperUShort); - - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperUShort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperUShort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ushort); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ushort, key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_uint16_t_unbounded = EK_BOTH; @@ -64536,68 +25150,21 @@ void register_MapInnerAliasBoundedStringHelperUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded), key_flags_anonymous_map_anonymous_string_10_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint16_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperUShort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_ushort; MemberId member_id_var_map_inneraliasboundedstringhelper_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ushort, member_flags_var_map_inneraliasboundedstringhelper_ushort, type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ushort, member_flags_var_map_inneraliasboundedstringhelper_ushort, type_ids_MapInnerAliasBoundedStringHelperUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_ushort_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ushort, member_flags_var_map_inneraliasboundedstringhelper_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ushort, common_var_map_inneraliasboundedstringhelper_ushort_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_ushort = "var_map_inneraliasboundedstringhelper_ushort"; @@ -64609,32 +25176,26 @@ void register_MapInnerAliasBoundedStringHelperUShort_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperUShort, header_MapInnerAliasBoundedStringHelperUShort, member_seq_MapInnerAliasBoundedStringHelperUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperUShort, type_name_MapInnerAliasBoundedStringHelperUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperUShort, type_name_MapInnerAliasBoundedStringHelperUShort.to_string(), type_ids_MapInnerAliasBoundedStringHelperUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperUShort", type_ids_MapInnerAliasBoundedStringHelperUShort); - if (return_code_MapInnerAliasBoundedStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperLong", type_ids_MapInnerAliasBoundedStringHelperLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperLong; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperLong = "MapInnerAliasBoundedStringHelperLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperLong; @@ -64643,215 +25204,46 @@ void register_MapInnerAliasBoundedStringHelperLong_type_identifier( header_MapInnerAliasBoundedStringHelperLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperLong; { - return_code_MapInnerAliasBoundedStringHelperLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_long; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperLong); + "anonymous_map_anonymous_string_10_int32_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_long); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_long) { - return_code_MapInnerAliasBoundedStringHelperLong = + return_code_var_map_inneraliasboundedstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedStringHelperLong); + "_int32_t", type_ids_var_map_inneraliasboundedstringhelper_long); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_long, element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperLong = + return_code_var_map_inneraliasboundedstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLong); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_long); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_long) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLong); - - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLong); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLong); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_long); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_long, key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_int32_t_unbounded = EK_BOTH; @@ -64874,68 +25266,21 @@ void register_MapInnerAliasBoundedStringHelperLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded), key_flags_anonymous_map_anonymous_string_10_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int32_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperLong); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_long; MemberId member_id_var_map_inneraliasboundedstringhelper_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_long, member_flags_var_map_inneraliasboundedstringhelper_long, type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_long, member_flags_var_map_inneraliasboundedstringhelper_long, type_ids_MapInnerAliasBoundedStringHelperLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_long_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_long, member_flags_var_map_inneraliasboundedstringhelper_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_long, common_var_map_inneraliasboundedstringhelper_long_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_long = "var_map_inneraliasboundedstringhelper_long"; @@ -64947,32 +25292,26 @@ void register_MapInnerAliasBoundedStringHelperLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperLong, header_MapInnerAliasBoundedStringHelperLong, member_seq_MapInnerAliasBoundedStringHelperLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLong, type_name_MapInnerAliasBoundedStringHelperLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLong, type_name_MapInnerAliasBoundedStringHelperLong.to_string(), type_ids_MapInnerAliasBoundedStringHelperLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperLong", type_ids_MapInnerAliasBoundedStringHelperLong); - if (return_code_MapInnerAliasBoundedStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperULong) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperULong", type_ids_MapInnerAliasBoundedStringHelperULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperULong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperULong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperULong; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperULong = "MapInnerAliasBoundedStringHelperULong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperULong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperULong; @@ -64981,215 +25320,46 @@ void register_MapInnerAliasBoundedStringHelperULong_type_identifier( header_MapInnerAliasBoundedStringHelperULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperULong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperULong; { - return_code_MapInnerAliasBoundedStringHelperULong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_ulong; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperULong); + "anonymous_map_anonymous_string_10_uint32_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ulong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulong) { - return_code_MapInnerAliasBoundedStringHelperULong = + return_code_var_map_inneraliasboundedstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapInnerAliasBoundedStringHelperULong); + "_uint32_t", type_ids_var_map_inneraliasboundedstringhelper_ulong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulong, element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperULong = + return_code_var_map_inneraliasboundedstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperULong); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_ulong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperULong); - - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperULong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperULong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulong, key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_uint32_t_unbounded = EK_BOTH; @@ -65212,68 +25382,21 @@ void register_MapInnerAliasBoundedStringHelperULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded), key_flags_anonymous_map_anonymous_string_10_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint32_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperULong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_ulong; MemberId member_id_var_map_inneraliasboundedstringhelper_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulong, member_flags_var_map_inneraliasboundedstringhelper_ulong, type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulong, member_flags_var_map_inneraliasboundedstringhelper_ulong, type_ids_MapInnerAliasBoundedStringHelperULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_ulong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulong, member_flags_var_map_inneraliasboundedstringhelper_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulong, common_var_map_inneraliasboundedstringhelper_ulong_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_ulong = "var_map_inneraliasboundedstringhelper_ulong"; @@ -65285,32 +25408,26 @@ void register_MapInnerAliasBoundedStringHelperULong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperULong, header_MapInnerAliasBoundedStringHelperULong, member_seq_MapInnerAliasBoundedStringHelperULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperULong, type_name_MapInnerAliasBoundedStringHelperULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperULong, type_name_MapInnerAliasBoundedStringHelperULong.to_string(), type_ids_MapInnerAliasBoundedStringHelperULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperULong", type_ids_MapInnerAliasBoundedStringHelperULong); - if (return_code_MapInnerAliasBoundedStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperLongLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperLongLong", type_ids_MapInnerAliasBoundedStringHelperLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperLongLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLongLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperLongLong; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperLongLong = "MapInnerAliasBoundedStringHelperLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperLongLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperLongLong; @@ -65319,215 +25436,46 @@ void register_MapInnerAliasBoundedStringHelperLongLong_type_identifier( header_MapInnerAliasBoundedStringHelperLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperLongLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperLongLong; { - return_code_MapInnerAliasBoundedStringHelperLongLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_longlong; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int64_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperLongLong); + "anonymous_map_anonymous_string_10_int64_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_longlong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longlong) { - return_code_MapInnerAliasBoundedStringHelperLongLong = + return_code_var_map_inneraliasboundedstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapInnerAliasBoundedStringHelperLongLong); + "_int64_t", type_ids_var_map_inneraliasboundedstringhelper_longlong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longlong, element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperLongLong = + return_code_var_map_inneraliasboundedstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLongLong); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_longlong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longlong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLongLong); - - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLongLong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLongLong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longlong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longlong, key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_int64_t_unbounded = EK_BOTH; @@ -65550,68 +25498,21 @@ void register_MapInnerAliasBoundedStringHelperLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded), key_flags_anonymous_map_anonymous_string_10_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_int64_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_int64_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperLongLong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_longlong; MemberId member_id_var_map_inneraliasboundedstringhelper_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longlong, member_flags_var_map_inneraliasboundedstringhelper_longlong, type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longlong, member_flags_var_map_inneraliasboundedstringhelper_longlong, type_ids_MapInnerAliasBoundedStringHelperLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_longlong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longlong, member_flags_var_map_inneraliasboundedstringhelper_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longlong, common_var_map_inneraliasboundedstringhelper_longlong_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_longlong = "var_map_inneraliasboundedstringhelper_longlong"; @@ -65623,32 +25524,26 @@ void register_MapInnerAliasBoundedStringHelperLongLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperLongLong, header_MapInnerAliasBoundedStringHelperLongLong, member_seq_MapInnerAliasBoundedStringHelperLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLongLong, type_name_MapInnerAliasBoundedStringHelperLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLongLong, type_name_MapInnerAliasBoundedStringHelperLongLong.to_string(), type_ids_MapInnerAliasBoundedStringHelperLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperLongLong", type_ids_MapInnerAliasBoundedStringHelperLongLong); - if (return_code_MapInnerAliasBoundedStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperULongLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperULongLong", type_ids_MapInnerAliasBoundedStringHelperULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperULongLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperULongLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperULongLong; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperULongLong = "MapInnerAliasBoundedStringHelperULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperULongLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperULongLong; @@ -65657,215 +25552,46 @@ void register_MapInnerAliasBoundedStringHelperULongLong_type_identifier( header_MapInnerAliasBoundedStringHelperULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperULongLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperULongLong; { - return_code_MapInnerAliasBoundedStringHelperULongLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_ulonglong; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint64_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperULongLong); + "anonymous_map_anonymous_string_10_uint64_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulonglong) { - return_code_MapInnerAliasBoundedStringHelperULongLong = + return_code_var_map_inneraliasboundedstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapInnerAliasBoundedStringHelperULongLong); + "_uint64_t", type_ids_var_map_inneraliasboundedstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulonglong, element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperULongLong = + return_code_var_map_inneraliasboundedstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperULongLong); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_ulonglong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperULongLong); - - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperULongLong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperULongLong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulonglong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulonglong, key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_uint64_t_unbounded = EK_BOTH; @@ -65888,68 +25614,21 @@ void register_MapInnerAliasBoundedStringHelperULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded), key_flags_anonymous_map_anonymous_string_10_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint64_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint64_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperULongLong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_ulonglong; MemberId member_id_var_map_inneraliasboundedstringhelper_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulonglong, member_flags_var_map_inneraliasboundedstringhelper_ulonglong, type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulonglong, member_flags_var_map_inneraliasboundedstringhelper_ulonglong, type_ids_MapInnerAliasBoundedStringHelperULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_ulonglong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_ulonglong, member_flags_var_map_inneraliasboundedstringhelper_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_ulonglong, common_var_map_inneraliasboundedstringhelper_ulonglong_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_ulonglong = "var_map_inneraliasboundedstringhelper_ulonglong"; @@ -65961,32 +25640,26 @@ void register_MapInnerAliasBoundedStringHelperULongLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperULongLong, header_MapInnerAliasBoundedStringHelperULongLong, member_seq_MapInnerAliasBoundedStringHelperULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperULongLong, type_name_MapInnerAliasBoundedStringHelperULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperULongLong, type_name_MapInnerAliasBoundedStringHelperULongLong.to_string(), type_ids_MapInnerAliasBoundedStringHelperULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperULongLong", type_ids_MapInnerAliasBoundedStringHelperULongLong); - if (return_code_MapInnerAliasBoundedStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperFloat) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperFloat", type_ids_MapInnerAliasBoundedStringHelperFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperFloat) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperFloat; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperFloat; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperFloat = "MapInnerAliasBoundedStringHelperFloat"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperFloat; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperFloat; @@ -65995,215 +25668,46 @@ void register_MapInnerAliasBoundedStringHelperFloat_type_identifier( header_MapInnerAliasBoundedStringHelperFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperFloat); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperFloat; { - return_code_MapInnerAliasBoundedStringHelperFloat = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_float; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_float_unbounded", type_ids_MapInnerAliasBoundedStringHelperFloat); + "anonymous_map_anonymous_string_10_float_unbounded", type_ids_var_map_inneraliasboundedstringhelper_float); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_float) { - return_code_MapInnerAliasBoundedStringHelperFloat = + return_code_var_map_inneraliasboundedstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapInnerAliasBoundedStringHelperFloat); + "_float", type_ids_var_map_inneraliasboundedstringhelper_float); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_float, element_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperFloat = + return_code_var_map_inneraliasboundedstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperFloat); - - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperFloat); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_float); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperFloat); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperFloat); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_float) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_float); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_float, key_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_float_unbounded = EK_BOTH; @@ -66226,68 +25730,21 @@ void register_MapInnerAliasBoundedStringHelperFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_float_unbounded), key_flags_anonymous_map_anonymous_string_10_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_float_unbounded", type_ids_var_map_inneraliasboundedstringhelper_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_float_unbounded", type_ids_MapInnerAliasBoundedStringHelperFloat); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_float; MemberId member_id_var_map_inneraliasboundedstringhelper_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_float, member_flags_var_map_inneraliasboundedstringhelper_float, type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_float, member_flags_var_map_inneraliasboundedstringhelper_float, type_ids_MapInnerAliasBoundedStringHelperFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_float_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_float, member_flags_var_map_inneraliasboundedstringhelper_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_float, common_var_map_inneraliasboundedstringhelper_float_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_float = "var_map_inneraliasboundedstringhelper_float"; @@ -66299,32 +25756,26 @@ void register_MapInnerAliasBoundedStringHelperFloat_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperFloat, header_MapInnerAliasBoundedStringHelperFloat, member_seq_MapInnerAliasBoundedStringHelperFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperFloat, type_name_MapInnerAliasBoundedStringHelperFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperFloat, type_name_MapInnerAliasBoundedStringHelperFloat.to_string(), type_ids_MapInnerAliasBoundedStringHelperFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperFloat", type_ids_MapInnerAliasBoundedStringHelperFloat); - if (return_code_MapInnerAliasBoundedStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperDouble) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperDouble", type_ids_MapInnerAliasBoundedStringHelperDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperDouble) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperDouble; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperDouble; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperDouble = "MapInnerAliasBoundedStringHelperDouble"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperDouble; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperDouble; @@ -66333,215 +25784,46 @@ void register_MapInnerAliasBoundedStringHelperDouble_type_identifier( header_MapInnerAliasBoundedStringHelperDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperDouble); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperDouble; { - return_code_MapInnerAliasBoundedStringHelperDouble = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_double; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_double_unbounded", type_ids_MapInnerAliasBoundedStringHelperDouble); + "anonymous_map_anonymous_string_10_double_unbounded", type_ids_var_map_inneraliasboundedstringhelper_double); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_double) { - return_code_MapInnerAliasBoundedStringHelperDouble = + return_code_var_map_inneraliasboundedstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapInnerAliasBoundedStringHelperDouble); + "_double", type_ids_var_map_inneraliasboundedstringhelper_double); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_double, element_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperDouble = + return_code_var_map_inneraliasboundedstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperDouble); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_double); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_double) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperDouble); - - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperDouble); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperDouble); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_double); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_double, key_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_double_unbounded = EK_BOTH; @@ -66564,68 +25846,21 @@ void register_MapInnerAliasBoundedStringHelperDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_double_unbounded), key_flags_anonymous_map_anonymous_string_10_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_double_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_double_unbounded", type_ids_var_map_inneraliasboundedstringhelper_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_double_unbounded", type_ids_MapInnerAliasBoundedStringHelperDouble); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_double; MemberId member_id_var_map_inneraliasboundedstringhelper_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_double, member_flags_var_map_inneraliasboundedstringhelper_double, type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_double, member_flags_var_map_inneraliasboundedstringhelper_double, type_ids_MapInnerAliasBoundedStringHelperDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_double_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_double, member_flags_var_map_inneraliasboundedstringhelper_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_double, common_var_map_inneraliasboundedstringhelper_double_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_double = "var_map_inneraliasboundedstringhelper_double"; @@ -66637,32 +25872,26 @@ void register_MapInnerAliasBoundedStringHelperDouble_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperDouble, header_MapInnerAliasBoundedStringHelperDouble, member_seq_MapInnerAliasBoundedStringHelperDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperDouble, type_name_MapInnerAliasBoundedStringHelperDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperDouble, type_name_MapInnerAliasBoundedStringHelperDouble.to_string(), type_ids_MapInnerAliasBoundedStringHelperDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperDouble", type_ids_MapInnerAliasBoundedStringHelperDouble); - if (return_code_MapInnerAliasBoundedStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperLongDouble) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperLongDouble", type_ids_MapInnerAliasBoundedStringHelperLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperLongDouble) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperLongDouble; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperLongDouble; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperLongDouble = "MapInnerAliasBoundedStringHelperLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperLongDouble; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperLongDouble; @@ -66671,215 +25900,46 @@ void register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier( header_MapInnerAliasBoundedStringHelperLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperLongDouble); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperLongDouble; { - return_code_MapInnerAliasBoundedStringHelperLongDouble = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_longdouble; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_longdouble_unbounded", type_ids_MapInnerAliasBoundedStringHelperLongDouble); + "anonymous_map_anonymous_string_10_longdouble_unbounded", type_ids_var_map_inneraliasboundedstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longdouble) { - return_code_MapInnerAliasBoundedStringHelperLongDouble = + return_code_var_map_inneraliasboundedstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapInnerAliasBoundedStringHelperLongDouble); + "_longdouble", type_ids_var_map_inneraliasboundedstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longdouble, element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperLongDouble = + return_code_var_map_inneraliasboundedstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLongDouble); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_longdouble) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLongDouble); - - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longdouble); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longdouble, key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_longdouble_unbounded = EK_BOTH; @@ -66902,68 +25962,21 @@ void register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded), key_flags_anonymous_map_anonymous_string_10_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_longdouble_unbounded", type_ids_var_map_inneraliasboundedstringhelper_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_longdouble_unbounded", type_ids_MapInnerAliasBoundedStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_longdouble; MemberId member_id_var_map_inneraliasboundedstringhelper_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longdouble, member_flags_var_map_inneraliasboundedstringhelper_longdouble, type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longdouble, member_flags_var_map_inneraliasboundedstringhelper_longdouble, type_ids_MapInnerAliasBoundedStringHelperLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_longdouble_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_longdouble, member_flags_var_map_inneraliasboundedstringhelper_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_longdouble, common_var_map_inneraliasboundedstringhelper_longdouble_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_longdouble = "var_map_inneraliasboundedstringhelper_longdouble"; @@ -66975,32 +25988,26 @@ void register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperLongDouble, header_MapInnerAliasBoundedStringHelperLongDouble, member_seq_MapInnerAliasBoundedStringHelperLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLongDouble, type_name_MapInnerAliasBoundedStringHelperLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperLongDouble, type_name_MapInnerAliasBoundedStringHelperLongDouble.to_string(), type_ids_MapInnerAliasBoundedStringHelperLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperLongDouble", type_ids_MapInnerAliasBoundedStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperBoolean) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperBoolean", type_ids_MapInnerAliasBoundedStringHelperBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperBoolean) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperBoolean; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperBoolean; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperBoolean = "MapInnerAliasBoundedStringHelperBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperBoolean; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperBoolean; @@ -67009,215 +26016,46 @@ void register_MapInnerAliasBoundedStringHelperBoolean_type_identifier( header_MapInnerAliasBoundedStringHelperBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperBoolean); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperBoolean; { - return_code_MapInnerAliasBoundedStringHelperBoolean = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_boolean; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_bool_unbounded", type_ids_MapInnerAliasBoundedStringHelperBoolean); + "anonymous_map_anonymous_string_10_bool_unbounded", type_ids_var_map_inneraliasboundedstringhelper_boolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_boolean) { - return_code_MapInnerAliasBoundedStringHelperBoolean = + return_code_var_map_inneraliasboundedstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapInnerAliasBoundedStringHelperBoolean); + "_bool", type_ids_var_map_inneraliasboundedstringhelper_boolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_boolean, element_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperBoolean = + return_code_var_map_inneraliasboundedstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperBoolean); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_boolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_boolean) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperBoolean); - - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperBoolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperBoolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_boolean); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_boolean, key_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_bool_unbounded = EK_BOTH; @@ -67240,68 +26078,21 @@ void register_MapInnerAliasBoundedStringHelperBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_bool_unbounded), key_flags_anonymous_map_anonymous_string_10_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_bool_unbounded", type_ids_var_map_inneraliasboundedstringhelper_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_bool_unbounded", type_ids_MapInnerAliasBoundedStringHelperBoolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_boolean; MemberId member_id_var_map_inneraliasboundedstringhelper_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_boolean, member_flags_var_map_inneraliasboundedstringhelper_boolean, type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_boolean, member_flags_var_map_inneraliasboundedstringhelper_boolean, type_ids_MapInnerAliasBoundedStringHelperBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_boolean_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_boolean, member_flags_var_map_inneraliasboundedstringhelper_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_boolean, common_var_map_inneraliasboundedstringhelper_boolean_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_boolean = "var_map_inneraliasboundedstringhelper_boolean"; @@ -67313,32 +26104,26 @@ void register_MapInnerAliasBoundedStringHelperBoolean_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperBoolean, header_MapInnerAliasBoundedStringHelperBoolean, member_seq_MapInnerAliasBoundedStringHelperBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperBoolean, type_name_MapInnerAliasBoundedStringHelperBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperBoolean, type_name_MapInnerAliasBoundedStringHelperBoolean.to_string(), type_ids_MapInnerAliasBoundedStringHelperBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperBoolean", type_ids_MapInnerAliasBoundedStringHelperBoolean); - if (return_code_MapInnerAliasBoundedStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperOctet) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperOctet", type_ids_MapInnerAliasBoundedStringHelperOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperOctet) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperOctet; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperOctet; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperOctet = "MapInnerAliasBoundedStringHelperOctet"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperOctet; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperOctet; @@ -67347,215 +26132,46 @@ void register_MapInnerAliasBoundedStringHelperOctet_type_identifier( header_MapInnerAliasBoundedStringHelperOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperOctet); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperOctet; { - return_code_MapInnerAliasBoundedStringHelperOctet = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_octet; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint8_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperOctet); + "anonymous_map_anonymous_string_10_uint8_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_octet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_octet) { - return_code_MapInnerAliasBoundedStringHelperOctet = + return_code_var_map_inneraliasboundedstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapInnerAliasBoundedStringHelperOctet); + "_byte", type_ids_var_map_inneraliasboundedstringhelper_octet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_octet, element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperOctet = + return_code_var_map_inneraliasboundedstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperOctet); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_octet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_octet) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperOctet); - - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperOctet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperOctet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_octet); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_octet, key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_uint8_t_unbounded = EK_BOTH; @@ -67578,68 +26194,21 @@ void register_MapInnerAliasBoundedStringHelperOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded), key_flags_anonymous_map_anonymous_string_10_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_uint8_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_uint8_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperOctet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_octet; MemberId member_id_var_map_inneraliasboundedstringhelper_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_octet, member_flags_var_map_inneraliasboundedstringhelper_octet, type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_octet, member_flags_var_map_inneraliasboundedstringhelper_octet, type_ids_MapInnerAliasBoundedStringHelperOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_octet_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_octet, member_flags_var_map_inneraliasboundedstringhelper_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_octet, common_var_map_inneraliasboundedstringhelper_octet_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_octet = "var_map_inneraliasboundedstringhelper_octet"; @@ -67651,32 +26220,26 @@ void register_MapInnerAliasBoundedStringHelperOctet_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperOctet, header_MapInnerAliasBoundedStringHelperOctet, member_seq_MapInnerAliasBoundedStringHelperOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperOctet, type_name_MapInnerAliasBoundedStringHelperOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperOctet, type_name_MapInnerAliasBoundedStringHelperOctet.to_string(), type_ids_MapInnerAliasBoundedStringHelperOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperOctet", type_ids_MapInnerAliasBoundedStringHelperOctet); - if (return_code_MapInnerAliasBoundedStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperChar) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperChar", type_ids_MapInnerAliasBoundedStringHelperChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperChar) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperChar; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperChar; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperChar = "MapInnerAliasBoundedStringHelperChar"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperChar; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperChar; @@ -67685,215 +26248,46 @@ void register_MapInnerAliasBoundedStringHelperChar_type_identifier( header_MapInnerAliasBoundedStringHelperChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperChar); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperChar; { - return_code_MapInnerAliasBoundedStringHelperChar = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_char; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_char_unbounded", type_ids_MapInnerAliasBoundedStringHelperChar); + "anonymous_map_anonymous_string_10_char_unbounded", type_ids_var_map_inneraliasboundedstringhelper_char); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_char) { - return_code_MapInnerAliasBoundedStringHelperChar = + return_code_var_map_inneraliasboundedstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapInnerAliasBoundedStringHelperChar); + "_char", type_ids_var_map_inneraliasboundedstringhelper_char); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_char, element_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperChar = + return_code_var_map_inneraliasboundedstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperChar); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_char); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_char) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperChar); - - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperChar); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperChar); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_char); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_char, key_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_char_unbounded = EK_BOTH; @@ -67916,68 +26310,21 @@ void register_MapInnerAliasBoundedStringHelperChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_char_unbounded), key_flags_anonymous_map_anonymous_string_10_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_char_unbounded", type_ids_var_map_inneraliasboundedstringhelper_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_char_unbounded", type_ids_MapInnerAliasBoundedStringHelperChar); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_char; MemberId member_id_var_map_inneraliasboundedstringhelper_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_char, member_flags_var_map_inneraliasboundedstringhelper_char, type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_char, member_flags_var_map_inneraliasboundedstringhelper_char, type_ids_MapInnerAliasBoundedStringHelperChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_char_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_char, member_flags_var_map_inneraliasboundedstringhelper_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_char, common_var_map_inneraliasboundedstringhelper_char_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_char = "var_map_inneraliasboundedstringhelper_char"; @@ -67989,32 +26336,26 @@ void register_MapInnerAliasBoundedStringHelperChar_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperChar, header_MapInnerAliasBoundedStringHelperChar, member_seq_MapInnerAliasBoundedStringHelperChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperChar, type_name_MapInnerAliasBoundedStringHelperChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperChar, type_name_MapInnerAliasBoundedStringHelperChar.to_string(), type_ids_MapInnerAliasBoundedStringHelperChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperChar", type_ids_MapInnerAliasBoundedStringHelperChar); - if (return_code_MapInnerAliasBoundedStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperWChar) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperWChar", type_ids_MapInnerAliasBoundedStringHelperWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperWChar) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperWChar; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperWChar; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperWChar = "MapInnerAliasBoundedStringHelperWChar"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperWChar; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperWChar; @@ -68023,215 +26364,46 @@ void register_MapInnerAliasBoundedStringHelperWChar_type_identifier( header_MapInnerAliasBoundedStringHelperWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperWChar); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperWChar; { - return_code_MapInnerAliasBoundedStringHelperWChar = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_wchar; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_wchar_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperWChar); + "anonymous_map_anonymous_string_10_wchar_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wchar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wchar) { - return_code_MapInnerAliasBoundedStringHelperWChar = + return_code_var_map_inneraliasboundedstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapInnerAliasBoundedStringHelperWChar); + "_wchar_t", type_ids_var_map_inneraliasboundedstringhelper_wchar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wchar, element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperWChar = + return_code_var_map_inneraliasboundedstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperWChar); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_wchar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wchar) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperWChar); - - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperWChar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperWChar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wchar); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wchar, key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_wchar_t_unbounded = EK_BOTH; @@ -68254,68 +26426,21 @@ void register_MapInnerAliasBoundedStringHelperWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded), key_flags_anonymous_map_anonymous_string_10_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_wchar_t_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_wchar_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperWChar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_wchar; MemberId member_id_var_map_inneraliasboundedstringhelper_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wchar, member_flags_var_map_inneraliasboundedstringhelper_wchar, type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wchar, member_flags_var_map_inneraliasboundedstringhelper_wchar, type_ids_MapInnerAliasBoundedStringHelperWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_wchar_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wchar, member_flags_var_map_inneraliasboundedstringhelper_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wchar, common_var_map_inneraliasboundedstringhelper_wchar_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_wchar = "var_map_inneraliasboundedstringhelper_wchar"; @@ -68327,32 +26452,26 @@ void register_MapInnerAliasBoundedStringHelperWChar_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperWChar, header_MapInnerAliasBoundedStringHelperWChar, member_seq_MapInnerAliasBoundedStringHelperWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperWChar, type_name_MapInnerAliasBoundedStringHelperWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperWChar, type_name_MapInnerAliasBoundedStringHelperWChar.to_string(), type_ids_MapInnerAliasBoundedStringHelperWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperWChar", type_ids_MapInnerAliasBoundedStringHelperWChar); - if (return_code_MapInnerAliasBoundedStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperString) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperString", type_ids_MapInnerAliasBoundedStringHelperString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperString) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperString; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperString; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperString = "MapInnerAliasBoundedStringHelperString"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperString; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperString; @@ -68361,232 +26480,54 @@ void register_MapInnerAliasBoundedStringHelperString_type_identifier( header_MapInnerAliasBoundedStringHelperString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperString); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperString; { - return_code_MapInnerAliasBoundedStringHelperString = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_string; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperString); + "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_string); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_string) { - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapInnerAliasBoundedStringHelperString); - - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapInnerAliasBoundedStringHelperString); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedStringHelperString = + return_code_var_map_inneraliasboundedstringhelper_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperString); + "anonymous_string_unbounded", type_ids_var_map_inneraliasboundedstringhelper_string); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_string) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperString); - - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperString); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperString); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_string_unbounded", type_ids_var_map_inneraliasboundedstringhelper_string)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_string, element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_var_map_inneraliasboundedstringhelper_string = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_string); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_string) + { + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_string); + } + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_string, key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -68609,68 +26550,21 @@ void register_MapInnerAliasBoundedStringHelperString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperString); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_string; MemberId member_id_var_map_inneraliasboundedstringhelper_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_string, member_flags_var_map_inneraliasboundedstringhelper_string, type_ids_MapInnerAliasBoundedStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_string, member_flags_var_map_inneraliasboundedstringhelper_string, type_ids_MapInnerAliasBoundedStringHelperString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_string_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_string, member_flags_var_map_inneraliasboundedstringhelper_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_string, common_var_map_inneraliasboundedstringhelper_string_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_string = "var_map_inneraliasboundedstringhelper_string"; @@ -68682,32 +26576,26 @@ void register_MapInnerAliasBoundedStringHelperString_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperString, header_MapInnerAliasBoundedStringHelperString, member_seq_MapInnerAliasBoundedStringHelperString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperString, type_name_MapInnerAliasBoundedStringHelperString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperString, type_name_MapInnerAliasBoundedStringHelperString.to_string(), type_ids_MapInnerAliasBoundedStringHelperString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperString already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperString", type_ids_MapInnerAliasBoundedStringHelperString); - if (return_code_MapInnerAliasBoundedStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperWString) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperWString", type_ids_MapInnerAliasBoundedStringHelperWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperWString) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperWString; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperWString; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperWString = "MapInnerAliasBoundedStringHelperWString"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperWString; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperWString; @@ -68716,232 +26604,54 @@ void register_MapInnerAliasBoundedStringHelperWString_type_identifier( header_MapInnerAliasBoundedStringHelperWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperWString); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperWString; { - return_code_MapInnerAliasBoundedStringHelperWString = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_wstring; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperWString); + "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wstring); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wstring) { - return_code_MapInnerAliasBoundedStringHelperWString = + return_code_var_map_inneraliasboundedstringhelper_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapInnerAliasBoundedStringHelperWString); + "anonymous_wstring_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wstring); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapInnerAliasBoundedStringHelperWString); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wstring, element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperWString = + return_code_var_map_inneraliasboundedstringhelper_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperWString); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_wstring); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_wstring) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperWString); - - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperWString); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperWString); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wstring); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wstring, key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -68964,68 +26674,21 @@ void register_MapInnerAliasBoundedStringHelperWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperWString); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_wstring; MemberId member_id_var_map_inneraliasboundedstringhelper_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wstring, member_flags_var_map_inneraliasboundedstringhelper_wstring, type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wstring, member_flags_var_map_inneraliasboundedstringhelper_wstring, type_ids_MapInnerAliasBoundedStringHelperWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_wstring_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_wstring, member_flags_var_map_inneraliasboundedstringhelper_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_wstring, common_var_map_inneraliasboundedstringhelper_wstring_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_wstring = "var_map_inneraliasboundedstringhelper_wstring"; @@ -69037,32 +26700,26 @@ void register_MapInnerAliasBoundedStringHelperWString_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperWString, header_MapInnerAliasBoundedStringHelperWString, member_seq_MapInnerAliasBoundedStringHelperWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperWString, type_name_MapInnerAliasBoundedStringHelperWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperWString, type_name_MapInnerAliasBoundedStringHelperWString.to_string(), type_ids_MapInnerAliasBoundedStringHelperWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperWString", type_ids_MapInnerAliasBoundedStringHelperWString); - if (return_code_MapInnerAliasBoundedStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper; @@ -69071,310 +26728,44 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type header_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper) { - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded = EK_BOTH; @@ -69397,68 +26788,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper, common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper = "var_map_inneraliasboundedstringhelper_inneraliasboundedstringhelper"; @@ -69470,32 +26814,26 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper, header_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper; @@ -69504,310 +26842,44 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_typ header_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper) { - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded = EK_BOTH; @@ -69830,68 +26902,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_typ eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper, common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper = "var_map_inneraliasboundedstringhelper_inneraliasboundedwstringhelper"; @@ -69903,32 +26928,26 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_typ } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper, header_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerEnumHelper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerEnumHelper = "MapInnerAliasBoundedStringHelperInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerEnumHelper; @@ -69937,268 +26956,44 @@ void register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier( header_MapInnerAliasBoundedStringHelperInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerEnumHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerEnumHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); + "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerenumhelper) { - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = + return_code_var_map_inneraliasboundedstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper, element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = + return_code_var_map_inneraliasboundedstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerenumhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper, key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded = EK_BOTH; @@ -70221,68 +27016,21 @@ void register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_innerenumhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedstringhelper_innerenumhelper, type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedstringhelper_innerenumhelper, type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_innerenumhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedstringhelper_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerenumhelper, common_var_map_inneraliasboundedstringhelper_innerenumhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_innerenumhelper = "var_map_inneraliasboundedstringhelper_innerenumhelper"; @@ -70294,335 +27042,72 @@ void register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerEnumHelper, header_MapInnerAliasBoundedStringHelperInnerEnumHelper, member_seq_MapInnerAliasBoundedStringHelperInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerEnumHelper, type_name_MapInnerAliasBoundedStringHelperInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerEnumHelper, type_name_MapInnerAliasBoundedStringHelperInnerEnumHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerEnumHelper", type_ids_MapInnerAliasBoundedStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) -{ - { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = "MapInnerAliasBoundedStringHelperInnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - CompleteTypeDetail detail_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, ann_custom_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.to_string()); - CompleteStructHeader header_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - header_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; - { - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } +void register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier( + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper) +{ + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerBitMaskHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper) + { + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, + false, false); + QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = "MapInnerAliasBoundedStringHelperInnerBitMaskHelper"; + eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; + eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; + CompleteTypeDetail detail_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, ann_custom_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.to_string()); + CompleteStructHeader header_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; + header_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerBitMaskHelper; + { + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper) + { + return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerBitMaskHelper", type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper) + { + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = + return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitmaskhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -70645,68 +27130,21 @@ void register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitmaskhelper, common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_innerbitmaskhelper = "var_map_inneraliasboundedstringhelper_innerbitmaskhelper"; @@ -70718,32 +27156,26 @@ void register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, header_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, member_seq_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitMaskHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerBitMaskHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasHelper = "MapInnerAliasBoundedStringHelperInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasHelper; @@ -70752,293 +27184,44 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier( header_MapInnerAliasBoundedStringHelperInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); + "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliashelper) { - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); + "InnerAliasHelper", type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliashelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper, element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliashelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper, key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded = EK_BOTH; @@ -71061,68 +27244,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliashelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliashelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliashelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliashelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliashelper, common_var_map_inneraliasboundedstringhelper_inneraliashelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliashelper = "var_map_inneraliasboundedstringhelper_inneraliashelper"; @@ -71134,32 +27270,26 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasHelper, header_MapInnerAliasBoundedStringHelperInnerAliasHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper; @@ -71168,374 +27298,44 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identif header_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper) { - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -71558,68 +27358,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identif eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper, common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliasarrayhelper = "var_map_inneraliasboundedstringhelper_inneraliasarrayhelper"; @@ -71631,32 +27384,26 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identif } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper, header_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper; @@ -71665,372 +27412,44 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_iden header_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper) { - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -72053,68 +27472,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_iden eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliassequencehelper, common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliassequencehelper = "var_map_inneraliasboundedstringhelper_inneraliassequencehelper"; @@ -72126,469 +27498,72 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_iden } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper, header_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerAliasMapHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = "MapInnerAliasBoundedStringHelperInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; CompleteTypeDetail detail_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, ann_custom_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.to_string()); CompleteStructHeader header_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; header_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; - { - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerAliasMapHelper; + { + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper) + { + return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_map_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper) + { + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = + return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_inneraliasmaphelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -72611,68 +27586,21 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifie eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper; MemberId member_id_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_inneraliasmaphelper, common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_inneraliasmaphelper = "var_map_inneraliasboundedstringhelper_inneraliasmaphelper"; @@ -72684,32 +27612,26 @@ void register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifie } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, header_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, member_seq_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedStringHelperInnerAliasMapHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerAliasMapHelper", type_ids_MapInnerAliasBoundedStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerUnionHelper", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerUnionHelper = "MapInnerAliasBoundedStringHelperInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerUnionHelper; @@ -72718,492 +27640,44 @@ void register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier( header_MapInnerAliasBoundedStringHelperInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerUnionHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerUnionHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); + "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerunionhelper) { - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = + return_code_var_map_inneraliasboundedstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper, element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = + return_code_var_map_inneraliasboundedstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerunionhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper, key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded = EK_BOTH; @@ -73226,68 +27700,21 @@ void register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_innerunionhelper; MemberId member_id_var_map_inneraliasboundedstringhelper_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedstringhelper_innerunionhelper, type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedstringhelper_innerunionhelper, type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_innerunionhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedstringhelper_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerunionhelper, common_var_map_inneraliasboundedstringhelper_innerunionhelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_innerunionhelper = "var_map_inneraliasboundedstringhelper_innerunionhelper"; @@ -73299,32 +27726,26 @@ void register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerUnionHelper, header_MapInnerAliasBoundedStringHelperInnerUnionHelper, member_seq_MapInnerAliasBoundedStringHelperInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerUnionHelper, type_name_MapInnerAliasBoundedStringHelperInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerUnionHelper, type_name_MapInnerAliasBoundedStringHelperInnerUnionHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerUnionHelper", type_ids_MapInnerAliasBoundedStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerStructureHelper", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerStructureHelper = "MapInnerAliasBoundedStringHelperInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerStructureHelper; @@ -73333,382 +27754,44 @@ void register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifi header_MapInnerAliasBoundedStringHelperInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerStructureHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerStructureHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); + "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper) { - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = + return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper, element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = + return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerstructurehelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper, key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded = EK_BOTH; @@ -73731,68 +27814,21 @@ void register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifi eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_innerstructurehelper; MemberId member_id_var_map_inneraliasboundedstringhelper_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedstringhelper_innerstructurehelper, type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedstringhelper_innerstructurehelper, type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedstringhelper_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerstructurehelper, common_var_map_inneraliasboundedstringhelper_innerstructurehelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_innerstructurehelper = "var_map_inneraliasboundedstringhelper_innerstructurehelper"; @@ -73804,32 +27840,26 @@ void register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifi } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerStructureHelper, header_MapInnerAliasBoundedStringHelperInnerStructureHelper, member_seq_MapInnerAliasBoundedStringHelperInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerStructureHelper, type_name_MapInnerAliasBoundedStringHelperInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerStructureHelper, type_name_MapInnerAliasBoundedStringHelperInnerStructureHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerStructureHelper", type_ids_MapInnerAliasBoundedStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedStringHelperInnerBitsetHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedStringHelperInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper; QualifiedTypeName type_name_MapInnerAliasBoundedStringHelperInnerBitsetHelper = "MapInnerAliasBoundedStringHelperInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedStringHelperInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedStringHelperInnerBitsetHelper; @@ -73838,287 +27868,44 @@ void register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier( header_MapInnerAliasBoundedStringHelperInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedStringHelperInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedStringHelperInnerBitsetHelper; { - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper; + ReturnCode_t return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); + "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper) { - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = + return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper, element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = + return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedstringhelper_innerbitsethelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper, key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded = EK_BOTH; @@ -74141,68 +27928,21 @@ void register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded), key_flags_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded", type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_10_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedstringhelper_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedstringhelper_innerbitsethelper; MemberId member_id_var_map_inneraliasboundedstringhelper_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitsethelper, type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedstringhelper_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitsethelper, type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedstringhelper_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedstringhelper_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedstringhelper_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedstringhelper_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedstringhelper_innerbitsethelper, common_var_map_inneraliasboundedstringhelper_innerbitsethelper_ec))}; + if (!common_var_map_inneraliasboundedstringhelper_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedstringhelper_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedstringhelper_innerbitsethelper = "var_map_inneraliasboundedstringhelper_innerbitsethelper"; @@ -74214,32 +27954,26 @@ void register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedStringHelperInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedStringHelperInnerBitsetHelper, header_MapInnerAliasBoundedStringHelperInnerBitsetHelper, member_seq_MapInnerAliasBoundedStringHelperInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerBitsetHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedStringHelperInnerBitsetHelper, type_name_MapInnerAliasBoundedStringHelperInnerBitsetHelper.to_string(), type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedStringHelperInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedStringHelperInnerBitsetHelper", type_ids_MapInnerAliasBoundedStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedStringHelperInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperShort) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperShort", type_ids_MapInnerAliasBoundedWStringHelperShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperShort) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperShort; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperShort; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperShort = "MapInnerAliasBoundedWStringHelperShort"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperShort; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperShort; @@ -74248,215 +27982,46 @@ void register_MapInnerAliasBoundedWStringHelperShort_type_identifier( header_MapInnerAliasBoundedWStringHelperShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperShort); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperShort; { - return_code_MapInnerAliasBoundedWStringHelperShort = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_short; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperShort); + "anonymous_map_anonymous_wstring_10_int16_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_short); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_short) { - return_code_MapInnerAliasBoundedWStringHelperShort = + return_code_var_map_inneraliasboundedwstringhelper_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedWStringHelperShort); + "_int16_t", type_ids_var_map_inneraliasboundedwstringhelper_short); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperShort); - - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperShort); - - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperShort); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperShort); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_short, element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_anonymous_wstring_10_int16_t_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_var_map_inneraliasboundedwstringhelper_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_short); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_short) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_short); + } + bool key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_short, key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_int16_t_unbounded = EK_BOTH; @@ -74479,68 +28044,21 @@ void register_MapInnerAliasBoundedWStringHelperShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int16_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperShort); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_short; MemberId member_id_var_map_inneraliasboundedwstringhelper_short = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_short, member_flags_var_map_inneraliasboundedwstringhelper_short, type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_short = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_short, member_flags_var_map_inneraliasboundedwstringhelper_short, type_ids_MapInnerAliasBoundedWStringHelperShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_short_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_short {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_short, member_flags_var_map_inneraliasboundedwstringhelper_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_short, common_var_map_inneraliasboundedwstringhelper_short_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_short_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_short member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_short = "var_map_inneraliasboundedwstringhelper_short"; @@ -74552,32 +28070,26 @@ void register_MapInnerAliasBoundedWStringHelperShort_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperShort, header_MapInnerAliasBoundedWStringHelperShort, member_seq_MapInnerAliasBoundedWStringHelperShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperShort, type_name_MapInnerAliasBoundedWStringHelperShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperShort, type_name_MapInnerAliasBoundedWStringHelperShort.to_string(), type_ids_MapInnerAliasBoundedWStringHelperShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperShort", type_ids_MapInnerAliasBoundedWStringHelperShort); - if (return_code_MapInnerAliasBoundedWStringHelperShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperUShort) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperUShort", type_ids_MapInnerAliasBoundedWStringHelperUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperUShort) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperUShort; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperUShort; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperUShort = "MapInnerAliasBoundedWStringHelperUShort"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperUShort; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperUShort; @@ -74586,215 +28098,46 @@ void register_MapInnerAliasBoundedWStringHelperUShort_type_identifier( header_MapInnerAliasBoundedWStringHelperUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperUShort); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperUShort; { - return_code_MapInnerAliasBoundedWStringHelperUShort = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_ushort; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperUShort); + "anonymous_map_anonymous_wstring_10_uint16_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ushort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ushort) { - return_code_MapInnerAliasBoundedWStringHelperUShort = + return_code_var_map_inneraliasboundedwstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MapInnerAliasBoundedWStringHelperUShort); + "_uint16_t", type_ids_var_map_inneraliasboundedwstringhelper_ushort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ushort, element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperUShort = + return_code_var_map_inneraliasboundedwstringhelper_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperUShort); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_ushort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ushort) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperUShort); - - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperUShort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperUShort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ushort); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ushort, key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_uint16_t_unbounded = EK_BOTH; @@ -74817,68 +28160,21 @@ void register_MapInnerAliasBoundedWStringHelperUShort_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_uint16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint16_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperUShort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_uint16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_ushort; MemberId member_id_var_map_inneraliasboundedwstringhelper_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ushort, member_flags_var_map_inneraliasboundedwstringhelper_ushort, type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ushort, member_flags_var_map_inneraliasboundedwstringhelper_ushort, type_ids_MapInnerAliasBoundedWStringHelperUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_ushort_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ushort, member_flags_var_map_inneraliasboundedwstringhelper_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ushort, common_var_map_inneraliasboundedwstringhelper_ushort_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_ushort_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_ushort = "var_map_inneraliasboundedwstringhelper_ushort"; @@ -74890,32 +28186,26 @@ void register_MapInnerAliasBoundedWStringHelperUShort_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperUShort, header_MapInnerAliasBoundedWStringHelperUShort, member_seq_MapInnerAliasBoundedWStringHelperUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperUShort, type_name_MapInnerAliasBoundedWStringHelperUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperUShort, type_name_MapInnerAliasBoundedWStringHelperUShort.to_string(), type_ids_MapInnerAliasBoundedWStringHelperUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperUShort already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperUShort", type_ids_MapInnerAliasBoundedWStringHelperUShort); - if (return_code_MapInnerAliasBoundedWStringHelperUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperLong", type_ids_MapInnerAliasBoundedWStringHelperLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperLong; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperLong = "MapInnerAliasBoundedWStringHelperLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperLong; @@ -74924,215 +28214,46 @@ void register_MapInnerAliasBoundedWStringHelperLong_type_identifier( header_MapInnerAliasBoundedWStringHelperLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperLong; { - return_code_MapInnerAliasBoundedWStringHelperLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_long; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLong); + "anonymous_map_anonymous_wstring_10_int32_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_long); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_long) { - return_code_MapInnerAliasBoundedWStringHelperLong = + return_code_var_map_inneraliasboundedwstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedWStringHelperLong); + "_int32_t", type_ids_var_map_inneraliasboundedwstringhelper_long); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_long, element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperLong = + return_code_var_map_inneraliasboundedwstringhelper_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLong); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_long); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_long) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLong); - - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLong); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLong); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_long); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_long, key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_int32_t_unbounded = EK_BOTH; @@ -75155,68 +28276,21 @@ void register_MapInnerAliasBoundedWStringHelperLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int32_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLong); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_long; MemberId member_id_var_map_inneraliasboundedwstringhelper_long = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_long, member_flags_var_map_inneraliasboundedwstringhelper_long, type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_long = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_long, member_flags_var_map_inneraliasboundedwstringhelper_long, type_ids_MapInnerAliasBoundedWStringHelperLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_long_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_long {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_long, member_flags_var_map_inneraliasboundedwstringhelper_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_long, common_var_map_inneraliasboundedwstringhelper_long_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_long_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_long member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_long = "var_map_inneraliasboundedwstringhelper_long"; @@ -75228,32 +28302,26 @@ void register_MapInnerAliasBoundedWStringHelperLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperLong, header_MapInnerAliasBoundedWStringHelperLong, member_seq_MapInnerAliasBoundedWStringHelperLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLong, type_name_MapInnerAliasBoundedWStringHelperLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLong, type_name_MapInnerAliasBoundedWStringHelperLong.to_string(), type_ids_MapInnerAliasBoundedWStringHelperLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperLong", type_ids_MapInnerAliasBoundedWStringHelperLong); - if (return_code_MapInnerAliasBoundedWStringHelperLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperULong) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperULong", type_ids_MapInnerAliasBoundedWStringHelperULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperULong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperULong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperULong; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperULong = "MapInnerAliasBoundedWStringHelperULong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperULong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperULong; @@ -75262,215 +28330,46 @@ void register_MapInnerAliasBoundedWStringHelperULong_type_identifier( header_MapInnerAliasBoundedWStringHelperULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperULong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperULong; { - return_code_MapInnerAliasBoundedWStringHelperULong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_ulong; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperULong); + "anonymous_map_anonymous_wstring_10_uint32_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ulong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulong) { - return_code_MapInnerAliasBoundedWStringHelperULong = + return_code_var_map_inneraliasboundedwstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MapInnerAliasBoundedWStringHelperULong); + "_uint32_t", type_ids_var_map_inneraliasboundedwstringhelper_ulong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulong, element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperULong = + return_code_var_map_inneraliasboundedwstringhelper_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperULong); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_ulong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperULong); - - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperULong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperULong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulong, key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_uint32_t_unbounded = EK_BOTH; @@ -75493,68 +28392,21 @@ void register_MapInnerAliasBoundedWStringHelperULong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_uint32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint32_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperULong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_uint32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_ulong; MemberId member_id_var_map_inneraliasboundedwstringhelper_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulong, member_flags_var_map_inneraliasboundedwstringhelper_ulong, type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulong, member_flags_var_map_inneraliasboundedwstringhelper_ulong, type_ids_MapInnerAliasBoundedWStringHelperULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_ulong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulong, member_flags_var_map_inneraliasboundedwstringhelper_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulong, common_var_map_inneraliasboundedwstringhelper_ulong_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_ulong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_ulong = "var_map_inneraliasboundedwstringhelper_ulong"; @@ -75566,32 +28418,26 @@ void register_MapInnerAliasBoundedWStringHelperULong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperULong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperULong, header_MapInnerAliasBoundedWStringHelperULong, member_seq_MapInnerAliasBoundedWStringHelperULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperULong, type_name_MapInnerAliasBoundedWStringHelperULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperULong, type_name_MapInnerAliasBoundedWStringHelperULong.to_string(), type_ids_MapInnerAliasBoundedWStringHelperULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperULong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperULong", type_ids_MapInnerAliasBoundedWStringHelperULong); - if (return_code_MapInnerAliasBoundedWStringHelperULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperLongLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperLongLong", type_ids_MapInnerAliasBoundedWStringHelperLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperLongLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLongLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperLongLong; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperLongLong = "MapInnerAliasBoundedWStringHelperLongLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperLongLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperLongLong; @@ -75600,215 +28446,46 @@ void register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier( header_MapInnerAliasBoundedWStringHelperLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperLongLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperLongLong; { - return_code_MapInnerAliasBoundedWStringHelperLongLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_longlong; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int64_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLongLong); + "anonymous_map_anonymous_wstring_10_int64_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_longlong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longlong) { - return_code_MapInnerAliasBoundedWStringHelperLongLong = + return_code_var_map_inneraliasboundedwstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MapInnerAliasBoundedWStringHelperLongLong); + "_int64_t", type_ids_var_map_inneraliasboundedwstringhelper_longlong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longlong, element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperLongLong = + return_code_var_map_inneraliasboundedwstringhelper_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLongLong); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_longlong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longlong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLongLong); - - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLongLong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLongLong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longlong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longlong, key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_int64_t_unbounded = EK_BOTH; @@ -75831,68 +28508,21 @@ void register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_int64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_int64_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_int64_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLongLong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_int64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_longlong; MemberId member_id_var_map_inneraliasboundedwstringhelper_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longlong, member_flags_var_map_inneraliasboundedwstringhelper_longlong, type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longlong, member_flags_var_map_inneraliasboundedwstringhelper_longlong, type_ids_MapInnerAliasBoundedWStringHelperLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_longlong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longlong, member_flags_var_map_inneraliasboundedwstringhelper_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longlong, common_var_map_inneraliasboundedwstringhelper_longlong_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_longlong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_longlong = "var_map_inneraliasboundedwstringhelper_longlong"; @@ -75904,32 +28534,26 @@ void register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperLongLong, header_MapInnerAliasBoundedWStringHelperLongLong, member_seq_MapInnerAliasBoundedWStringHelperLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLongLong, type_name_MapInnerAliasBoundedWStringHelperLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLongLong, type_name_MapInnerAliasBoundedWStringHelperLongLong.to_string(), type_ids_MapInnerAliasBoundedWStringHelperLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperLongLong", type_ids_MapInnerAliasBoundedWStringHelperLongLong); - if (return_code_MapInnerAliasBoundedWStringHelperLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperULongLong) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperULongLong", type_ids_MapInnerAliasBoundedWStringHelperULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperULongLong) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperULongLong; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperULongLong; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperULongLong = "MapInnerAliasBoundedWStringHelperULongLong"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperULongLong; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperULongLong; @@ -75938,215 +28562,46 @@ void register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier( header_MapInnerAliasBoundedWStringHelperULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperULongLong); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperULongLong; { - return_code_MapInnerAliasBoundedWStringHelperULongLong = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_ulonglong; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint64_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperULongLong); + "anonymous_map_anonymous_wstring_10_uint64_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulonglong) { - return_code_MapInnerAliasBoundedWStringHelperULongLong = + return_code_var_map_inneraliasboundedwstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MapInnerAliasBoundedWStringHelperULongLong); + "_uint64_t", type_ids_var_map_inneraliasboundedwstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulonglong, element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint64_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperULongLong = + return_code_var_map_inneraliasboundedwstringhelper_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperULongLong); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_ulonglong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_ulonglong) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperULongLong); - - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperULongLong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperULongLong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulonglong); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulonglong, key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint64_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_uint64_t_unbounded = EK_BOTH; @@ -76169,68 +28624,21 @@ void register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_uint64_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint64_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint64_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperULongLong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_uint64_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_ulonglong; MemberId member_id_var_map_inneraliasboundedwstringhelper_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulonglong, member_flags_var_map_inneraliasboundedwstringhelper_ulonglong, type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulonglong, member_flags_var_map_inneraliasboundedwstringhelper_ulonglong, type_ids_MapInnerAliasBoundedWStringHelperULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_ulonglong_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_ulonglong, member_flags_var_map_inneraliasboundedwstringhelper_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_ulonglong, common_var_map_inneraliasboundedwstringhelper_ulonglong_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_ulonglong_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_ulonglong = "var_map_inneraliasboundedwstringhelper_ulonglong"; @@ -76242,32 +28650,26 @@ void register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperULongLong, header_MapInnerAliasBoundedWStringHelperULongLong, member_seq_MapInnerAliasBoundedWStringHelperULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperULongLong, type_name_MapInnerAliasBoundedWStringHelperULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperULongLong, type_name_MapInnerAliasBoundedWStringHelperULongLong.to_string(), type_ids_MapInnerAliasBoundedWStringHelperULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperULongLong", type_ids_MapInnerAliasBoundedWStringHelperULongLong); - if (return_code_MapInnerAliasBoundedWStringHelperULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperFloat) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperFloat", type_ids_MapInnerAliasBoundedWStringHelperFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperFloat) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperFloat; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperFloat; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperFloat = "MapInnerAliasBoundedWStringHelperFloat"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperFloat; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperFloat; @@ -76276,215 +28678,46 @@ void register_MapInnerAliasBoundedWStringHelperFloat_type_identifier( header_MapInnerAliasBoundedWStringHelperFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperFloat); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperFloat; { - return_code_MapInnerAliasBoundedWStringHelperFloat = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_float; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_float_unbounded", type_ids_MapInnerAliasBoundedWStringHelperFloat); + "anonymous_map_anonymous_wstring_10_float_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_float); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_float) { - return_code_MapInnerAliasBoundedWStringHelperFloat = + return_code_var_map_inneraliasboundedwstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MapInnerAliasBoundedWStringHelperFloat); + "_float", type_ids_var_map_inneraliasboundedwstringhelper_float); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_float, element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_float_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperFloat = + return_code_var_map_inneraliasboundedwstringhelper_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperFloat); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_float); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_float) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperFloat); - - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperFloat); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperFloat); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_float); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_float, key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_float_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_float_unbounded = EK_BOTH; @@ -76507,68 +28740,21 @@ void register_MapInnerAliasBoundedWStringHelperFloat_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_float_unbounded), key_flags_anonymous_map_anonymous_wstring_10_float_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_float_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_float_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_float_unbounded", type_ids_MapInnerAliasBoundedWStringHelperFloat); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_float_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_float; MemberId member_id_var_map_inneraliasboundedwstringhelper_float = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_float, member_flags_var_map_inneraliasboundedwstringhelper_float, type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_float = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_float, member_flags_var_map_inneraliasboundedwstringhelper_float, type_ids_MapInnerAliasBoundedWStringHelperFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_float_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_float {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_float, member_flags_var_map_inneraliasboundedwstringhelper_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_float, common_var_map_inneraliasboundedwstringhelper_float_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_float_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_float member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_float = "var_map_inneraliasboundedwstringhelper_float"; @@ -76580,32 +28766,26 @@ void register_MapInnerAliasBoundedWStringHelperFloat_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperFloat, header_MapInnerAliasBoundedWStringHelperFloat, member_seq_MapInnerAliasBoundedWStringHelperFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperFloat, type_name_MapInnerAliasBoundedWStringHelperFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperFloat, type_name_MapInnerAliasBoundedWStringHelperFloat.to_string(), type_ids_MapInnerAliasBoundedWStringHelperFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperFloat already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperFloat", type_ids_MapInnerAliasBoundedWStringHelperFloat); - if (return_code_MapInnerAliasBoundedWStringHelperFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperDouble) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperDouble", type_ids_MapInnerAliasBoundedWStringHelperDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperDouble) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperDouble; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperDouble; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperDouble = "MapInnerAliasBoundedWStringHelperDouble"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperDouble; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperDouble; @@ -76614,215 +28794,46 @@ void register_MapInnerAliasBoundedWStringHelperDouble_type_identifier( header_MapInnerAliasBoundedWStringHelperDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperDouble); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperDouble; { - return_code_MapInnerAliasBoundedWStringHelperDouble = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_double; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_double_unbounded", type_ids_MapInnerAliasBoundedWStringHelperDouble); + "anonymous_map_anonymous_wstring_10_double_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_double); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_double) { - return_code_MapInnerAliasBoundedWStringHelperDouble = + return_code_var_map_inneraliasboundedwstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MapInnerAliasBoundedWStringHelperDouble); + "_double", type_ids_var_map_inneraliasboundedwstringhelper_double); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_double, element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_double_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperDouble = + return_code_var_map_inneraliasboundedwstringhelper_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperDouble); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_double); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_double) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperDouble); - - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperDouble); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperDouble); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_double); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_double, key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_double_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_double_unbounded = EK_BOTH; @@ -76845,68 +28856,21 @@ void register_MapInnerAliasBoundedWStringHelperDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_double_unbounded), key_flags_anonymous_map_anonymous_wstring_10_double_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_double_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_double_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_double_unbounded", type_ids_MapInnerAliasBoundedWStringHelperDouble); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_double_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_double_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_double)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_anonymous_wstring_10_double_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_double; MemberId member_id_var_map_inneraliasboundedwstringhelper_double = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_double, member_flags_var_map_inneraliasboundedwstringhelper_double, type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_double = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_double, member_flags_var_map_inneraliasboundedwstringhelper_double, type_ids_MapInnerAliasBoundedWStringHelperDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_double_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_double {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_double, member_flags_var_map_inneraliasboundedwstringhelper_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_double, common_var_map_inneraliasboundedwstringhelper_double_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_double_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_double member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_double = "var_map_inneraliasboundedwstringhelper_double"; @@ -76918,32 +28882,26 @@ void register_MapInnerAliasBoundedWStringHelperDouble_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperDouble, header_MapInnerAliasBoundedWStringHelperDouble, member_seq_MapInnerAliasBoundedWStringHelperDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperDouble, type_name_MapInnerAliasBoundedWStringHelperDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperDouble, type_name_MapInnerAliasBoundedWStringHelperDouble.to_string(), type_ids_MapInnerAliasBoundedWStringHelperDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperDouble", type_ids_MapInnerAliasBoundedWStringHelperDouble); - if (return_code_MapInnerAliasBoundedWStringHelperDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperLongDouble) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperLongDouble", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperLongDouble) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperLongDouble; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperLongDouble; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperLongDouble = "MapInnerAliasBoundedWStringHelperLongDouble"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperLongDouble; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperLongDouble; @@ -76952,215 +28910,46 @@ void register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier( header_MapInnerAliasBoundedWStringHelperLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperLongDouble); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperLongDouble; { - return_code_MapInnerAliasBoundedWStringHelperLongDouble = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_longdouble; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_longdouble_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); + "anonymous_map_anonymous_wstring_10_longdouble_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longdouble) { - return_code_MapInnerAliasBoundedWStringHelperLongDouble = + return_code_var_map_inneraliasboundedwstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); + "_longdouble", type_ids_var_map_inneraliasboundedwstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longdouble, element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_longdouble_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperLongDouble = + return_code_var_map_inneraliasboundedwstringhelper_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_longdouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_longdouble) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); - - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longdouble); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longdouble, key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_longdouble_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_longdouble_unbounded = EK_BOTH; @@ -77183,68 +28972,21 @@ void register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded), key_flags_anonymous_map_anonymous_wstring_10_longdouble_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_longdouble_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_longdouble_unbounded", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_longdouble_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_longdouble; MemberId member_id_var_map_inneraliasboundedwstringhelper_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longdouble, member_flags_var_map_inneraliasboundedwstringhelper_longdouble, type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longdouble, member_flags_var_map_inneraliasboundedwstringhelper_longdouble, type_ids_MapInnerAliasBoundedWStringHelperLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_longdouble_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_longdouble, member_flags_var_map_inneraliasboundedwstringhelper_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_longdouble, common_var_map_inneraliasboundedwstringhelper_longdouble_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_longdouble_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_longdouble = "var_map_inneraliasboundedwstringhelper_longdouble"; @@ -77256,32 +28998,26 @@ void register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperLongDouble, header_MapInnerAliasBoundedWStringHelperLongDouble, member_seq_MapInnerAliasBoundedWStringHelperLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLongDouble, type_name_MapInnerAliasBoundedWStringHelperLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperLongDouble, type_name_MapInnerAliasBoundedWStringHelperLongDouble.to_string(), type_ids_MapInnerAliasBoundedWStringHelperLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperLongDouble", type_ids_MapInnerAliasBoundedWStringHelperLongDouble); - if (return_code_MapInnerAliasBoundedWStringHelperLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperBoolean) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperBoolean", type_ids_MapInnerAliasBoundedWStringHelperBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperBoolean) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperBoolean; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperBoolean; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperBoolean = "MapInnerAliasBoundedWStringHelperBoolean"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperBoolean; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperBoolean; @@ -77290,215 +29026,46 @@ void register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier( header_MapInnerAliasBoundedWStringHelperBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperBoolean); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperBoolean; { - return_code_MapInnerAliasBoundedWStringHelperBoolean = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_boolean; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_bool_unbounded", type_ids_MapInnerAliasBoundedWStringHelperBoolean); + "anonymous_map_anonymous_wstring_10_bool_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_boolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_boolean) { - return_code_MapInnerAliasBoundedWStringHelperBoolean = + return_code_var_map_inneraliasboundedwstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MapInnerAliasBoundedWStringHelperBoolean); + "_bool", type_ids_var_map_inneraliasboundedwstringhelper_boolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_boolean, element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_bool_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperBoolean = + return_code_var_map_inneraliasboundedwstringhelper_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperBoolean); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_boolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_boolean) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperBoolean); - - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperBoolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperBoolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_boolean); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_boolean, key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_bool_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_bool_unbounded = EK_BOTH; @@ -77521,68 +29088,21 @@ void register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded), key_flags_anonymous_map_anonymous_wstring_10_bool_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_bool_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_bool_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_bool_unbounded", type_ids_MapInnerAliasBoundedWStringHelperBoolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_bool_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_boolean; MemberId member_id_var_map_inneraliasboundedwstringhelper_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_boolean, member_flags_var_map_inneraliasboundedwstringhelper_boolean, type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_boolean, member_flags_var_map_inneraliasboundedwstringhelper_boolean, type_ids_MapInnerAliasBoundedWStringHelperBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_boolean_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_boolean, member_flags_var_map_inneraliasboundedwstringhelper_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_boolean, common_var_map_inneraliasboundedwstringhelper_boolean_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_boolean_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_boolean = "var_map_inneraliasboundedwstringhelper_boolean"; @@ -77594,32 +29114,26 @@ void register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperBoolean, header_MapInnerAliasBoundedWStringHelperBoolean, member_seq_MapInnerAliasBoundedWStringHelperBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperBoolean, type_name_MapInnerAliasBoundedWStringHelperBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperBoolean, type_name_MapInnerAliasBoundedWStringHelperBoolean.to_string(), type_ids_MapInnerAliasBoundedWStringHelperBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperBoolean", type_ids_MapInnerAliasBoundedWStringHelperBoolean); - if (return_code_MapInnerAliasBoundedWStringHelperBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperOctet) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperOctet", type_ids_MapInnerAliasBoundedWStringHelperOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperOctet) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperOctet; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperOctet; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperOctet = "MapInnerAliasBoundedWStringHelperOctet"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperOctet; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperOctet; @@ -77628,215 +29142,46 @@ void register_MapInnerAliasBoundedWStringHelperOctet_type_identifier( header_MapInnerAliasBoundedWStringHelperOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperOctet); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperOctet; { - return_code_MapInnerAliasBoundedWStringHelperOctet = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_octet; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint8_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperOctet); + "anonymous_map_anonymous_wstring_10_uint8_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_octet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_octet) { - return_code_MapInnerAliasBoundedWStringHelperOctet = + return_code_var_map_inneraliasboundedwstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MapInnerAliasBoundedWStringHelperOctet); + "_byte", type_ids_var_map_inneraliasboundedwstringhelper_octet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_octet, element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint8_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperOctet = + return_code_var_map_inneraliasboundedwstringhelper_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperOctet); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_octet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_octet) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperOctet); - - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperOctet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperOctet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_octet); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_octet, key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint8_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_uint8_t_unbounded = EK_BOTH; @@ -77859,68 +29204,21 @@ void register_MapInnerAliasBoundedWStringHelperOctet_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_uint8_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_uint8_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_uint8_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperOctet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_uint8_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_octet; MemberId member_id_var_map_inneraliasboundedwstringhelper_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_octet, member_flags_var_map_inneraliasboundedwstringhelper_octet, type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_octet = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_octet, member_flags_var_map_inneraliasboundedwstringhelper_octet, type_ids_MapInnerAliasBoundedWStringHelperOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_octet_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_octet {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_octet, member_flags_var_map_inneraliasboundedwstringhelper_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_octet, common_var_map_inneraliasboundedwstringhelper_octet_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_octet_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_octet = "var_map_inneraliasboundedwstringhelper_octet"; @@ -77932,32 +29230,26 @@ void register_MapInnerAliasBoundedWStringHelperOctet_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperOctet, header_MapInnerAliasBoundedWStringHelperOctet, member_seq_MapInnerAliasBoundedWStringHelperOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperOctet, type_name_MapInnerAliasBoundedWStringHelperOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperOctet, type_name_MapInnerAliasBoundedWStringHelperOctet.to_string(), type_ids_MapInnerAliasBoundedWStringHelperOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperOctet already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperOctet", type_ids_MapInnerAliasBoundedWStringHelperOctet); - if (return_code_MapInnerAliasBoundedWStringHelperOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperChar) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperChar", type_ids_MapInnerAliasBoundedWStringHelperChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperChar) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperChar; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperChar; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperChar = "MapInnerAliasBoundedWStringHelperChar"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperChar; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperChar; @@ -77966,215 +29258,46 @@ void register_MapInnerAliasBoundedWStringHelperChar_type_identifier( header_MapInnerAliasBoundedWStringHelperChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperChar); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperChar; { - return_code_MapInnerAliasBoundedWStringHelperChar = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_char; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_char_unbounded", type_ids_MapInnerAliasBoundedWStringHelperChar); + "anonymous_map_anonymous_wstring_10_char_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_char); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_char) { - return_code_MapInnerAliasBoundedWStringHelperChar = + return_code_var_map_inneraliasboundedwstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MapInnerAliasBoundedWStringHelperChar); + "_char", type_ids_var_map_inneraliasboundedwstringhelper_char); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_char, element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_char_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperChar = + return_code_var_map_inneraliasboundedwstringhelper_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperChar); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_char); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_char) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperChar); - - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperChar); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperChar); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_char); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_char, key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_char_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_char_unbounded = EK_BOTH; @@ -78197,68 +29320,21 @@ void register_MapInnerAliasBoundedWStringHelperChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_char_unbounded), key_flags_anonymous_map_anonymous_wstring_10_char_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_char_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_char_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_char_unbounded", type_ids_MapInnerAliasBoundedWStringHelperChar); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_char_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_char; MemberId member_id_var_map_inneraliasboundedwstringhelper_char = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_char, member_flags_var_map_inneraliasboundedwstringhelper_char, type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_char = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_char, member_flags_var_map_inneraliasboundedwstringhelper_char, type_ids_MapInnerAliasBoundedWStringHelperChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_char_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_char {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_char, member_flags_var_map_inneraliasboundedwstringhelper_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_char, common_var_map_inneraliasboundedwstringhelper_char_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_char_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_char member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_char = "var_map_inneraliasboundedwstringhelper_char"; @@ -78270,32 +29346,26 @@ void register_MapInnerAliasBoundedWStringHelperChar_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperChar, header_MapInnerAliasBoundedWStringHelperChar, member_seq_MapInnerAliasBoundedWStringHelperChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperChar, type_name_MapInnerAliasBoundedWStringHelperChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperChar, type_name_MapInnerAliasBoundedWStringHelperChar.to_string(), type_ids_MapInnerAliasBoundedWStringHelperChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperChar", type_ids_MapInnerAliasBoundedWStringHelperChar); - if (return_code_MapInnerAliasBoundedWStringHelperChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperWChar) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperWChar", type_ids_MapInnerAliasBoundedWStringHelperWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperWChar) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperWChar; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperWChar; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperWChar = "MapInnerAliasBoundedWStringHelperWChar"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperWChar; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperWChar; @@ -78304,215 +29374,46 @@ void register_MapInnerAliasBoundedWStringHelperWChar_type_identifier( header_MapInnerAliasBoundedWStringHelperWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperWChar); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperWChar; { - return_code_MapInnerAliasBoundedWStringHelperWChar = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_wchar; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_wchar_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWChar); + "anonymous_map_anonymous_wstring_10_wchar_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wchar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wchar) { - return_code_MapInnerAliasBoundedWStringHelperWChar = + return_code_var_map_inneraliasboundedwstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MapInnerAliasBoundedWStringHelperWChar); + "_wchar_t", type_ids_var_map_inneraliasboundedwstringhelper_wchar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wchar, element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_wchar_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperWChar = + return_code_var_map_inneraliasboundedwstringhelper_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperWChar); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_wchar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wchar) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperWChar); - - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperWChar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperWChar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wchar); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wchar, key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_wchar_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_wchar_t_unbounded = EK_BOTH; @@ -78535,68 +29436,21 @@ void register_MapInnerAliasBoundedWStringHelperWChar_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded), key_flags_anonymous_map_anonymous_wstring_10_wchar_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_wchar_t_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_wchar_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWChar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_wchar_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_wchar; MemberId member_id_var_map_inneraliasboundedwstringhelper_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wchar, member_flags_var_map_inneraliasboundedwstringhelper_wchar, type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wchar, member_flags_var_map_inneraliasboundedwstringhelper_wchar, type_ids_MapInnerAliasBoundedWStringHelperWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_wchar_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wchar, member_flags_var_map_inneraliasboundedwstringhelper_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wchar, common_var_map_inneraliasboundedwstringhelper_wchar_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_wchar_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_wchar = "var_map_inneraliasboundedwstringhelper_wchar"; @@ -78608,32 +29462,26 @@ void register_MapInnerAliasBoundedWStringHelperWChar_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperWChar, header_MapInnerAliasBoundedWStringHelperWChar, member_seq_MapInnerAliasBoundedWStringHelperWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperWChar, type_name_MapInnerAliasBoundedWStringHelperWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperWChar, type_name_MapInnerAliasBoundedWStringHelperWChar.to_string(), type_ids_MapInnerAliasBoundedWStringHelperWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperWChar already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperWChar", type_ids_MapInnerAliasBoundedWStringHelperWChar); - if (return_code_MapInnerAliasBoundedWStringHelperWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperString) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperString", type_ids_MapInnerAliasBoundedWStringHelperString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperString) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperString; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperString; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperString = "MapInnerAliasBoundedWStringHelperString"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperString; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperString; @@ -78642,232 +29490,54 @@ void register_MapInnerAliasBoundedWStringHelperString_type_identifier( header_MapInnerAliasBoundedWStringHelperString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperString); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperString; { - return_code_MapInnerAliasBoundedWStringHelperString = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_string; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperString); + "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_string); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_string) { - return_code_MapInnerAliasBoundedWStringHelperString = + return_code_var_map_inneraliasboundedwstringhelper_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapInnerAliasBoundedWStringHelperString); + "anonymous_string_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_string); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MapInnerAliasBoundedWStringHelperString); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_string, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperString = + return_code_var_map_inneraliasboundedwstringhelper_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperString); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_string); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_string) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperString); - - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperString); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperString); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_string); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_string, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded = EK_BOTH; @@ -78890,68 +29560,21 @@ void register_MapInnerAliasBoundedWStringHelperString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperString); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_string_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_string; MemberId member_id_var_map_inneraliasboundedwstringhelper_string = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_string, member_flags_var_map_inneraliasboundedwstringhelper_string, type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_string = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_string, member_flags_var_map_inneraliasboundedwstringhelper_string, type_ids_MapInnerAliasBoundedWStringHelperString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_string_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_string {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_string, member_flags_var_map_inneraliasboundedwstringhelper_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_string, common_var_map_inneraliasboundedwstringhelper_string_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_string_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_string member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_string = "var_map_inneraliasboundedwstringhelper_string"; @@ -78963,32 +29586,26 @@ void register_MapInnerAliasBoundedWStringHelperString_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperString, header_MapInnerAliasBoundedWStringHelperString, member_seq_MapInnerAliasBoundedWStringHelperString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperString, type_name_MapInnerAliasBoundedWStringHelperString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperString, type_name_MapInnerAliasBoundedWStringHelperString.to_string(), type_ids_MapInnerAliasBoundedWStringHelperString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperString already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperString", type_ids_MapInnerAliasBoundedWStringHelperString); - if (return_code_MapInnerAliasBoundedWStringHelperString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperWString) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperWString", type_ids_MapInnerAliasBoundedWStringHelperWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperWString) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperWString; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperWString; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperWString = "MapInnerAliasBoundedWStringHelperWString"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperWString; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperWString; @@ -78997,232 +29614,54 @@ void register_MapInnerAliasBoundedWStringHelperWString_type_identifier( header_MapInnerAliasBoundedWStringHelperWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperWString); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperWString; { - return_code_MapInnerAliasBoundedWStringHelperWString = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_wstring; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWString); + "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wstring); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wstring) { - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWString); - - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWString); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedWStringHelperWString = + return_code_var_map_inneraliasboundedwstringhelper_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperWString); + "anonymous_wstring_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wstring); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wstring) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperWString); - - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperWString); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()); - } - else { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperWString); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + SBound bound = 0; + StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, + "anonymous_wstring_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wstring, true)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); + } } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wstring, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_var_map_inneraliasboundedwstringhelper_wstring = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_wstring); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_wstring) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wstring); + } + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wstring, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded = EK_BOTH; @@ -79245,68 +29684,21 @@ void register_MapInnerAliasBoundedWStringHelperWString_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperWString); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_wstring_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_wstring; MemberId member_id_var_map_inneraliasboundedwstringhelper_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wstring, member_flags_var_map_inneraliasboundedwstringhelper_wstring, type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wstring, member_flags_var_map_inneraliasboundedwstringhelper_wstring, type_ids_MapInnerAliasBoundedWStringHelperWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_wstring_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_wstring, member_flags_var_map_inneraliasboundedwstringhelper_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_wstring, common_var_map_inneraliasboundedwstringhelper_wstring_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_wstring_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_wstring = "var_map_inneraliasboundedwstringhelper_wstring"; @@ -79318,32 +29710,26 @@ void register_MapInnerAliasBoundedWStringHelperWString_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperWString = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperWString, header_MapInnerAliasBoundedWStringHelperWString, member_seq_MapInnerAliasBoundedWStringHelperWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperWString, type_name_MapInnerAliasBoundedWStringHelperWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperWString, type_name_MapInnerAliasBoundedWStringHelperWString.to_string(), type_ids_MapInnerAliasBoundedWStringHelperWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperWString already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperWString", type_ids_MapInnerAliasBoundedWStringHelperWString); - if (return_code_MapInnerAliasBoundedWStringHelperWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper; @@ -79352,310 +29738,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_typ header_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + "Inner_alias_bounded_string_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded = EK_BOTH; @@ -79678,68 +29798,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_typ eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_string_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper, common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper = "var_map_inneraliasboundedwstringhelper_inneraliasboundedstringhelper"; @@ -79751,32 +29824,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_typ } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper; @@ -79785,310 +29852,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_ty header_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded = EK_BOTH; @@ -80111,68 +29912,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_ty eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_wstring_10_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper, common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper = "var_map_inneraliasboundedwstringhelper_inneraliasboundedwstringhelper"; @@ -80184,32 +29938,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_ty } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerEnumHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerEnumHelper = "MapInnerAliasBoundedWStringHelperInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerEnumHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerEnumHelper; @@ -80218,268 +29966,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier( header_MapInnerAliasBoundedWStringHelperInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerEnumHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerEnumHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); + "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); + "InnerEnumHelper", type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerenumhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded = EK_BOTH; @@ -80502,68 +30026,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerEnumHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerenumhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerenumhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_innerenumhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerenumhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerenumhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerenumhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_innerenumhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_innerenumhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerenumhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerenumhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerenumhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerenumhelper, common_var_map_inneraliasboundedwstringhelper_innerenumhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_innerenumhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_innerenumhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_innerenumhelper = "var_map_inneraliasboundedwstringhelper_innerenumhelper"; @@ -80575,32 +30052,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerEnumHelper, header_MapInnerAliasBoundedWStringHelperInnerEnumHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerEnumHelper, type_name_MapInnerAliasBoundedWStringHelperInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerEnumHelper, type_name_MapInnerAliasBoundedWStringHelperInnerEnumHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerEnumHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerEnumHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper; @@ -80609,301 +30080,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifie header_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + "InnerBitMaskHelper", type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded = EK_BOTH; @@ -80926,68 +30140,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifie eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerBitMaskHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_innerbitmaskhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper, common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_innerbitmaskhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_innerbitmaskhelper = "var_map_inneraliasboundedwstringhelper_innerbitmaskhelper"; @@ -80999,32 +30166,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifie } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper, header_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper, type_name_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasHelper = "MapInnerAliasBoundedWStringHelperInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasHelper; @@ -81033,293 +30194,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier( header_MapInnerAliasBoundedWStringHelperInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); + "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerAliasHelper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper) + { + ::register_InnerAliasHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliashelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded = EK_BOTH; @@ -81342,68 +30254,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerAliasHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliashelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliashelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliashelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliashelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliashelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliashelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliashelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliashelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliashelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliashelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliashelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliashelper, common_var_map_inneraliasboundedwstringhelper_inneraliashelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliashelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliashelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliashelper = "var_map_inneraliasboundedwstringhelper_inneraliashelper"; @@ -81415,32 +30280,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper; @@ -81449,374 +30308,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identi header_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + "Inner_alias_array_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded = EK_BOTH; @@ -81839,68 +30368,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identi eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_array_int16_t_2_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper, common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper = "var_map_inneraliasboundedwstringhelper_inneraliasarrayhelper"; @@ -81912,32 +30394,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identi } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper; @@ -81946,372 +30422,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_ide header_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + "Inner_alias_sequence_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = + return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; @@ -82334,68 +30482,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_ide eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_sequence_int16_t_unbounded_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliassequencehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper, common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliassequencehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliassequencehelper = "var_map_inneraliasboundedwstringhelper_inneraliassequencehelper"; @@ -82407,469 +30508,72 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_ide } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; CompleteTypeDetail detail_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, ann_custom_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.to_string()); - CompleteStructHeader header_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; - header_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; - { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + CompleteStructHeader header_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; + header_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); + CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper; + { + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper) + { + return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_map_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper) + { + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper); + } + bool element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded inconsistent element TypeIdentifier."); + return; + } + return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper) + { + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; @@ -82892,68 +30596,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifi eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded), key_flags_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_anonymous_map_int32_t_int32_t_0_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_inneraliasmaphelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, member_flags_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper, common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_inneraliasmaphelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_inneraliasmaphelper = "var_map_inneraliasboundedwstringhelper_inneraliasmaphelper"; @@ -82965,32 +30622,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifi } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, header_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper, type_name_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerAliasMapHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerUnionHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerUnionHelper = "MapInnerAliasBoundedWStringHelperInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerUnionHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerUnionHelper; @@ -82999,492 +30650,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier( header_MapInnerAliasBoundedWStringHelperInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerUnionHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerUnionHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); + "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); + "InnerUnionHelper", type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = return_code_InnerUnionHelper; - type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerunionhelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded = EK_BOTH; @@ -83507,68 +30710,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerUnionHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerunionhelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerunionhelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_innerunionhelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerunionhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerunionhelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerunionhelper, type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_innerunionhelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_innerunionhelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerunionhelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerunionhelper, member_flags_var_map_inneraliasboundedwstringhelper_innerunionhelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerunionhelper, common_var_map_inneraliasboundedwstringhelper_innerunionhelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_innerunionhelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_innerunionhelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_innerunionhelper = "var_map_inneraliasboundedwstringhelper_innerunionhelper"; @@ -83580,32 +30736,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier( } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerUnionHelper, header_MapInnerAliasBoundedWStringHelperInnerUnionHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerUnionHelper, type_name_MapInnerAliasBoundedWStringHelperInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerUnionHelper, type_name_MapInnerAliasBoundedWStringHelperInnerUnionHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerUnionHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerUnionHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerStructureHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerStructureHelper = "MapInnerAliasBoundedWStringHelperInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerStructureHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerStructureHelper; @@ -83614,382 +30764,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identif header_MapInnerAliasBoundedWStringHelperInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerStructureHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerStructureHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); + "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); + "InnerStructureHelper", type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = return_code_InnerStructureHelper; - type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerstructurehelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded = EK_BOTH; @@ -84012,68 +30824,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identif eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerStructureHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerstructurehelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerstructurehelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_innerstructurehelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedwstringhelper_innerstructurehelper, type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerstructurehelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedwstringhelper_innerstructurehelper, type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_innerstructurehelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_innerstructurehelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerstructurehelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerstructurehelper, member_flags_var_map_inneraliasboundedwstringhelper_innerstructurehelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerstructurehelper, common_var_map_inneraliasboundedwstringhelper_innerstructurehelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_innerstructurehelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_innerstructurehelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_innerstructurehelper = "var_map_inneraliasboundedwstringhelper_innerstructurehelper"; @@ -84085,32 +30850,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identif } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerStructureHelper, header_MapInnerAliasBoundedWStringHelperInnerStructureHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerStructureHelper, type_name_MapInnerAliasBoundedWStringHelperInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerStructureHelper, type_name_MapInnerAliasBoundedWStringHelperInnerStructureHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerStructureHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerStructureHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper) { + + ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MapInnerAliasBoundedWStringHelperInnerBitsetHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper) { - StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper; - TypeIdentifierPair type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper; QualifiedTypeName type_name_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = "MapInnerAliasBoundedWStringHelperInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_MapInnerAliasBoundedWStringHelperInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_MapInnerAliasBoundedWStringHelperInnerBitsetHelper; @@ -84119,287 +30878,44 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier header_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); CompleteStructMemberSeq member_seq_MapInnerAliasBoundedWStringHelperInnerBitsetHelper; { - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = + TypeIdentifierPair type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper; + ReturnCode_t return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper) { - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + "InnerBitsetHelper", type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper); } - TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()); - } - else + bool element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper, element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = + return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); + "Inner_alias_bounded_wstring_helper", type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map_inneraliasboundedwstringhelper_innerbitsethelper) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper); } - TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper, key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec))}; + if (!key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded = EK_BOTH; @@ -84422,68 +30938,21 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded), key_flags_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded", type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_wstring_10_InnerBitsetHelper_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map_inneraliasboundedwstringhelper_innerbitsethelper = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerbitsethelper; MemberId member_id_var_map_inneraliasboundedwstringhelper_innerbitsethelper = 0x00000000; - if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitsethelper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map_inneraliasboundedwstringhelper_innerbitsethelper = TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitsethelper, type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map_inneraliasboundedwstringhelper_innerbitsethelper member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_map_inneraliasboundedwstringhelper_innerbitsethelper_ec {false}; + CommonStructMember common_var_map_inneraliasboundedwstringhelper_innerbitsethelper {TypeObjectUtils::build_common_struct_member(member_id_var_map_inneraliasboundedwstringhelper_innerbitsethelper, member_flags_var_map_inneraliasboundedwstringhelper_innerbitsethelper, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map_inneraliasboundedwstringhelper_innerbitsethelper, common_var_map_inneraliasboundedwstringhelper_innerbitsethelper_ec))}; + if (!common_var_map_inneraliasboundedwstringhelper_innerbitsethelper_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map_inneraliasboundedwstringhelper_innerbitsethelper member TypeIdentifier inconsistent."); return; } MemberName name_var_map_inneraliasboundedwstringhelper_innerbitsethelper = "var_map_inneraliasboundedwstringhelper_innerbitsethelper"; @@ -84495,32 +30964,26 @@ void register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier } CompleteStructType struct_type_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_MapInnerAliasBoundedWStringHelperInnerBitsetHelper, header_MapInnerAliasBoundedWStringHelperInnerBitsetHelper, member_seq_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerBitsetHelper, type_name_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MapInnerAliasBoundedWStringHelperInnerBitsetHelper, type_name_MapInnerAliasBoundedWStringHelperInnerBitsetHelper.to_string(), type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MapInnerAliasBoundedWStringHelperInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MapInnerAliasBoundedWStringHelperInnerBitsetHelper", type_ids_MapInnerAliasBoundedWStringHelperInnerBitsetHelper); - if (return_code_MapInnerAliasBoundedWStringHelperInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MapInnerAliasBoundedWStringHelperInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedSmallMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedSmallMap) { + + ReturnCode_t return_code_BoundedSmallMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedSmallMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedSmallMap", type_ids_BoundedSmallMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedSmallMap) { - StructTypeFlag struct_flags_BoundedSmallMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedSmallMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedSmallMap; - TypeIdentifierPair type_ids_BoundedSmallMap; QualifiedTypeName type_name_BoundedSmallMap = "BoundedSmallMap"; eprosima::fastcdr::optional type_ann_builtin_BoundedSmallMap; eprosima::fastcdr::optional ann_custom_BoundedSmallMap; @@ -84529,120 +30992,48 @@ void register_BoundedSmallMap_type_identifier( header_BoundedSmallMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedSmallMap); CompleteStructMemberSeq member_seq_BoundedSmallMap; { - return_code_BoundedSmallMap = + TypeIdentifierPair type_ids_var_small_map; + ReturnCode_t return_code_var_small_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_1", type_ids_BoundedSmallMap); + "anonymous_map_int32_t_int32_t_1", type_ids_var_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_small_map) { - return_code_BoundedSmallMap = + return_code_var_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedSmallMap); + "_int32_t", type_ids_var_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_small_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_1 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_1 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_1 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_int32_t_1_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_1 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_small_map, element_identifier_anonymous_map_int32_t_int32_t_1_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_1_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_1 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedSmallMap = + return_code_var_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedSmallMap); + "_int32_t", type_ids_var_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_small_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_1 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_1 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_1 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_int32_t_1_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_1 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_small_map, key_identifier_anonymous_map_int32_t_int32_t_1_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_1_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_1 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_1 = EK_BOTH; @@ -84665,68 +31056,21 @@ void register_BoundedSmallMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_1), key_flags_anonymous_map_int32_t_int32_t_1, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_1)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_1")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_1", type_ids_var_small_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_1", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_1: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_small_map; MemberId member_id_var_small_map = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_small_map, member_flags_var_small_map, type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_small_map, member_flags_var_small_map, type_ids_BoundedSmallMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_small_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_small_map_ec {false}; + CommonStructMember common_var_small_map {TypeObjectUtils::build_common_struct_member(member_id_var_small_map, member_flags_var_small_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_small_map, common_var_small_map_ec))}; + if (!common_var_small_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_small_map member TypeIdentifier inconsistent."); return; } MemberName name_var_small_map = "var_small_map"; @@ -84737,137 +31081,56 @@ void register_BoundedSmallMap_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedSmallMap, member_var_small_map); } { - return_code_BoundedSmallMap = + TypeIdentifierPair type_ids_var_unbounded_string_long_bounded_small_map; + ReturnCode_t return_code_var_unbounded_string_long_bounded_small_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_unbounded_string_long_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_5", type_ids_BoundedSmallMap); + "anonymous_map_anonymous_string_unbounded_int32_t_5", type_ids_var_unbounded_string_long_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_small_map) { - return_code_BoundedSmallMap = + return_code_var_unbounded_string_long_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedSmallMap); + "_int32_t", type_ids_var_unbounded_string_long_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_small_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_small_map, element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_5 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedSmallMap = + return_code_var_unbounded_string_long_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallMap); + "anonymous_string_unbounded", type_ids_var_unbounded_string_long_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_small_map) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_unbounded_string_long_bounded_small_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_small_map, key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_5 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_int32_t_5 = EK_BOTH; @@ -84890,68 +31153,21 @@ void register_BoundedSmallMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5), key_flags_anonymous_map_anonymous_string_unbounded_int32_t_5, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_5")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_5", type_ids_var_unbounded_string_long_bounded_small_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_5", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_int32_t_5: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_unbounded_string_long_bounded_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_unbounded_string_long_bounded_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_unbounded_string_long_bounded_small_map; MemberId member_id_var_unbounded_string_long_bounded_small_map = 0x00000001; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_long_bounded_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_small_map, member_flags_var_unbounded_string_long_bounded_small_map, type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_long_bounded_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_small_map, member_flags_var_unbounded_string_long_bounded_small_map, type_ids_BoundedSmallMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_unbounded_string_long_bounded_small_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_unbounded_string_long_bounded_small_map_ec {false}; + CommonStructMember common_var_unbounded_string_long_bounded_small_map {TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_small_map, member_flags_var_unbounded_string_long_bounded_small_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_small_map, common_var_unbounded_string_long_bounded_small_map_ec))}; + if (!common_var_unbounded_string_long_bounded_small_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_unbounded_string_long_bounded_small_map member TypeIdentifier inconsistent."); return; } MemberName name_var_unbounded_string_long_bounded_small_map = "var_unbounded_string_long_bounded_small_map"; @@ -84962,137 +31178,56 @@ void register_BoundedSmallMap_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedSmallMap, member_var_unbounded_string_long_bounded_small_map); } { - return_code_BoundedSmallMap = + TypeIdentifierPair type_ids_var_long_unbounded_string_bounded_small_map; + ReturnCode_t return_code_var_long_unbounded_string_bounded_small_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long_unbounded_string_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_5", type_ids_BoundedSmallMap); + "anonymous_map_int32_t_anonymous_string_unbounded_5", type_ids_var_long_unbounded_string_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_small_map) { - return_code_BoundedSmallMap = + return_code_var_long_unbounded_string_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallMap); + "anonymous_string_unbounded", type_ids_var_long_unbounded_string_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_small_map) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_long_unbounded_string_bounded_small_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_small_map, element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_5 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedSmallMap = + return_code_var_long_unbounded_string_bounded_small_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedSmallMap); + "_int32_t", type_ids_var_long_unbounded_string_bounded_small_map); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_small_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallMap.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_small_map, key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_5 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_string_unbounded_5 = EK_BOTH; @@ -85115,68 +31250,21 @@ void register_BoundedSmallMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5), key_flags_anonymous_map_int32_t_anonymous_string_unbounded_5, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_5")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_5", type_ids_var_long_unbounded_string_bounded_small_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_5", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_string_unbounded_5: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_long_unbounded_string_bounded_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long_unbounded_string_bounded_small_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long_unbounded_string_bounded_small_map; MemberId member_id_var_long_unbounded_string_bounded_small_map = 0x00000002; - if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long_unbounded_string_bounded_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_small_map, member_flags_var_long_unbounded_string_bounded_small_map, type_ids_BoundedSmallMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long_unbounded_string_bounded_small_map = TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_small_map, member_flags_var_long_unbounded_string_bounded_small_map, type_ids_BoundedSmallMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long_unbounded_string_bounded_small_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_long_unbounded_string_bounded_small_map_ec {false}; + CommonStructMember common_var_long_unbounded_string_bounded_small_map {TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_small_map, member_flags_var_long_unbounded_string_bounded_small_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_small_map, common_var_long_unbounded_string_bounded_small_map_ec))}; + if (!common_var_long_unbounded_string_bounded_small_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long_unbounded_string_bounded_small_map member TypeIdentifier inconsistent."); return; } MemberName name_var_long_unbounded_string_bounded_small_map = "var_long_unbounded_string_bounded_small_map"; @@ -85188,32 +31276,26 @@ void register_BoundedSmallMap_type_identifier( } CompleteStructType struct_type_BoundedSmallMap = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedSmallMap, header_BoundedSmallMap, member_seq_BoundedSmallMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallMap, type_name_BoundedSmallMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallMap, type_name_BoundedSmallMap.to_string(), type_ids_BoundedSmallMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedSmallMap already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedSmallMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedSmallMap", type_ids_BoundedSmallMap); - if (return_code_BoundedSmallMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedSmallMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedLargeMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedLargeMap) { + + ReturnCode_t return_code_BoundedLargeMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedLargeMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedLargeMap", type_ids_BoundedLargeMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedLargeMap) { - StructTypeFlag struct_flags_BoundedLargeMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedLargeMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedLargeMap; - TypeIdentifierPair type_ids_BoundedLargeMap; QualifiedTypeName type_name_BoundedLargeMap = "BoundedLargeMap"; eprosima::fastcdr::optional type_ann_builtin_BoundedLargeMap; eprosima::fastcdr::optional ann_custom_BoundedLargeMap; @@ -85222,120 +31304,48 @@ void register_BoundedLargeMap_type_identifier( header_BoundedLargeMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedLargeMap); CompleteStructMemberSeq member_seq_BoundedLargeMap; { - return_code_BoundedLargeMap = + TypeIdentifierPair type_ids_var_large_map; + ReturnCode_t return_code_var_large_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_41925", type_ids_BoundedLargeMap); + "anonymous_map_int32_t_int32_t_41925", type_ids_var_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_large_map) { - return_code_BoundedLargeMap = + return_code_var_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedLargeMap); + "_int32_t", type_ids_var_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_large_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_41925 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_41925 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_41925 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_int32_t_int32_t_41925_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_41925 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_large_map, element_identifier_anonymous_map_int32_t_int32_t_41925_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_41925_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_41925 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedLargeMap = + return_code_var_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedLargeMap); + "_int32_t", type_ids_var_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_large_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_41925 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_41925 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_41925 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_int32_t_41925_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_41925 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_large_map, key_identifier_anonymous_map_int32_t_int32_t_41925_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_41925_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_41925 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_41925 = EK_BOTH; @@ -85358,68 +31368,21 @@ void register_BoundedLargeMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_41925), key_flags_anonymous_map_int32_t_int32_t_41925, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_41925)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_map_type_identifier(map_ldefn, "anonymous_map_int32_t_int32_t_41925")) + TypeObjectUtils::build_and_register_l_map_type_identifier(map_ldefn, "anonymous_map_int32_t_int32_t_41925", type_ids_var_large_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_41925 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_41925", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_41925: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_large_map; MemberId member_id_var_large_map = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_large_map, member_flags_var_large_map, type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_large_map, member_flags_var_large_map, type_ids_BoundedLargeMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_large_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_large_map_ec {false}; + CommonStructMember common_var_large_map {TypeObjectUtils::build_common_struct_member(member_id_var_large_map, member_flags_var_large_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_large_map, common_var_large_map_ec))}; + if (!common_var_large_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_large_map member TypeIdentifier inconsistent."); return; } MemberName name_var_large_map = "var_large_map"; @@ -85430,137 +31393,56 @@ void register_BoundedLargeMap_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedLargeMap, member_var_large_map); } { - return_code_BoundedLargeMap = + TypeIdentifierPair type_ids_var_unbounded_string_long_bounded_large_map; + ReturnCode_t return_code_var_unbounded_string_long_bounded_large_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_unbounded_string_long_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_255", type_ids_BoundedLargeMap); + "anonymous_map_anonymous_string_unbounded_int32_t_255", type_ids_var_unbounded_string_long_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_large_map) { - return_code_BoundedLargeMap = + return_code_var_unbounded_string_long_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedLargeMap); + "_int32_t", type_ids_var_unbounded_string_long_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_large_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + return; + } + bool element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_large_map, element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec))}; + if (!element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_255 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedLargeMap = + return_code_var_unbounded_string_long_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedLargeMap); + "anonymous_string_unbounded", type_ids_var_unbounded_string_long_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_long_bounded_large_map) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_unbounded_string_long_bounded_large_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_large_map, key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec))}; + if (!key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_255 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_int32_t_255 = EK_BOTH; @@ -85583,68 +31465,21 @@ void register_BoundedLargeMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255), key_flags_anonymous_map_anonymous_string_unbounded_int32_t_255, eprosima::fastcdr::external(key_identifier_anonymous_map_anonymous_string_unbounded_int32_t_255)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_255")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_anonymous_string_unbounded_int32_t_255", type_ids_var_unbounded_string_long_bounded_large_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_anonymous_string_unbounded_int32_t_255 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_anonymous_string_unbounded_int32_t_255", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_anonymous_string_unbounded_int32_t_255: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_unbounded_string_long_bounded_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_unbounded_string_long_bounded_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_unbounded_string_long_bounded_large_map; MemberId member_id_var_unbounded_string_long_bounded_large_map = 0x00000001; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_long_bounded_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_large_map, member_flags_var_unbounded_string_long_bounded_large_map, type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_long_bounded_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_large_map, member_flags_var_unbounded_string_long_bounded_large_map, type_ids_BoundedLargeMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_unbounded_string_long_bounded_large_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_unbounded_string_long_bounded_large_map_ec {false}; + CommonStructMember common_var_unbounded_string_long_bounded_large_map {TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_long_bounded_large_map, member_flags_var_unbounded_string_long_bounded_large_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_long_bounded_large_map, common_var_unbounded_string_long_bounded_large_map_ec))}; + if (!common_var_unbounded_string_long_bounded_large_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_unbounded_string_long_bounded_large_map member TypeIdentifier inconsistent."); return; } MemberName name_var_unbounded_string_long_bounded_large_map = "var_unbounded_string_long_bounded_large_map"; @@ -85655,137 +31490,56 @@ void register_BoundedLargeMap_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedLargeMap, member_var_unbounded_string_long_bounded_large_map); } { - return_code_BoundedLargeMap = + TypeIdentifierPair type_ids_var_long_unbounded_string_bounded_large_map; + ReturnCode_t return_code_var_long_unbounded_string_bounded_large_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long_unbounded_string_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_255", type_ids_BoundedLargeMap); + "anonymous_map_int32_t_anonymous_string_unbounded_255", type_ids_var_long_unbounded_string_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_large_map) { - return_code_BoundedLargeMap = + return_code_var_long_unbounded_string_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedLargeMap); + "anonymous_string_unbounded", type_ids_var_long_unbounded_string_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_large_map) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_long_unbounded_string_bounded_large_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_large_map, element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec))}; + if (!element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_255 inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_BoundedLargeMap = + return_code_var_long_unbounded_string_bounded_large_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_BoundedLargeMap); + "_int32_t", type_ids_var_long_unbounded_string_bounded_large_map); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long_unbounded_string_bounded_large_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 = new TypeIdentifier(type_ids_BoundedLargeMap.type_identifier2()); - } - else + return; + } + bool key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_large_map, key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec))}; + if (!key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_255 inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_anonymous_string_unbounded_255 = EK_BOTH; @@ -85808,68 +31562,21 @@ void register_BoundedLargeMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255), key_flags_anonymous_map_int32_t_anonymous_string_unbounded_255, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_anonymous_string_unbounded_255)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_255")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_anonymous_string_unbounded_255", type_ids_var_long_unbounded_string_bounded_large_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_anonymous_string_unbounded_255 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_anonymous_string_unbounded_255", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_anonymous_string_unbounded_255: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_long_unbounded_string_bounded_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long_unbounded_string_bounded_large_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long_unbounded_string_bounded_large_map; MemberId member_id_var_long_unbounded_string_bounded_large_map = 0x00000002; - if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1()._d() || TK_NONE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long_unbounded_string_bounded_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_large_map, member_flags_var_long_unbounded_string_bounded_large_map, type_ids_BoundedLargeMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedLargeMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedLargeMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long_unbounded_string_bounded_large_map = TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_large_map, member_flags_var_long_unbounded_string_bounded_large_map, type_ids_BoundedLargeMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long_unbounded_string_bounded_large_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + bool common_var_long_unbounded_string_bounded_large_map_ec {false}; + CommonStructMember common_var_long_unbounded_string_bounded_large_map {TypeObjectUtils::build_common_struct_member(member_id_var_long_unbounded_string_bounded_large_map, member_flags_var_long_unbounded_string_bounded_large_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long_unbounded_string_bounded_large_map, common_var_long_unbounded_string_bounded_large_map_ec))}; + if (!common_var_long_unbounded_string_bounded_large_map_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long_unbounded_string_bounded_large_map member TypeIdentifier inconsistent."); return; } MemberName name_var_long_unbounded_string_bounded_large_map = "var_long_unbounded_string_bounded_large_map"; @@ -85881,21 +31588,11 @@ void register_BoundedLargeMap_type_identifier( } CompleteStructType struct_type_BoundedLargeMap = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedLargeMap, header_BoundedLargeMap, member_seq_BoundedLargeMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedLargeMap, type_name_BoundedLargeMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedLargeMap, type_name_BoundedLargeMap.to_string(), type_ids_BoundedLargeMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedLargeMap already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedLargeMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedLargeMap", type_ids_BoundedLargeMap); - if (return_code_BoundedLargeMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedLargeMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/mapsTypeObjectSupport.hpp b/test/dds-types-test/mapsTypeObjectSupport.hpp index 5ca4ef74d7b..22127289b88 100644 --- a/test/dds-types-test/mapsTypeObjectSupport.hpp +++ b/test/dds-types-test/mapsTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_maps_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_maps_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_MapShortShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_MapShortUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_MapShortLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_MapShortULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_MapShortLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_MapShortULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_MapShortFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_MapShortDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_MapShortLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_MapShortBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_MapShortOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_MapShortChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_MapShortWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_MapShortString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_MapShortWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasBoundedStringHelper_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasBoundedWStringHelper_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_MapShortInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_MapShortInnerBitMaskHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasArrayHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasSequenceHelper_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_MapShortInnerAliasMapHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_MapShortInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapShortInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_MapShortInnerStructureHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapShortInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_MapShortInnerBitsetHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,7 +373,7 @@ eProsima_user_DllExport void register_MapUShortShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -390,7 +385,7 @@ eProsima_user_DllExport void register_MapUShortUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -402,7 +397,7 @@ eProsima_user_DllExport void register_MapUShortLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -414,7 +409,7 @@ eProsima_user_DllExport void register_MapUShortULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -426,7 +421,7 @@ eProsima_user_DllExport void register_MapUShortLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -438,7 +433,7 @@ eProsima_user_DllExport void register_MapUShortULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -450,7 +445,7 @@ eProsima_user_DllExport void register_MapUShortFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -462,7 +457,7 @@ eProsima_user_DllExport void register_MapUShortDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -474,7 +469,7 @@ eProsima_user_DllExport void register_MapUShortLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -486,7 +481,7 @@ eProsima_user_DllExport void register_MapUShortBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -498,7 +493,7 @@ eProsima_user_DllExport void register_MapUShortOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -510,7 +505,7 @@ eProsima_user_DllExport void register_MapUShortChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -522,7 +517,7 @@ eProsima_user_DllExport void register_MapUShortWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -534,7 +529,7 @@ eProsima_user_DllExport void register_MapUShortString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -546,7 +541,7 @@ eProsima_user_DllExport void register_MapUShortWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -558,7 +553,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasBoundedStringHelper_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -570,7 +565,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasBoundedWStringHelper_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -582,7 +577,7 @@ eProsima_user_DllExport void register_MapUShortInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -594,7 +589,7 @@ eProsima_user_DllExport void register_MapUShortInnerBitMaskHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -606,7 +601,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -618,7 +613,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasArrayHelper_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -630,7 +625,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasSequenceHelper_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -642,7 +637,7 @@ eProsima_user_DllExport void register_MapUShortInnerAliasMapHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -654,7 +649,7 @@ eProsima_user_DllExport void register_MapUShortInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapUShortInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -666,7 +661,7 @@ eProsima_user_DllExport void register_MapUShortInnerStructureHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapUShortInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -678,7 +673,7 @@ eProsima_user_DllExport void register_MapUShortInnerBitsetHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -690,7 +685,7 @@ eProsima_user_DllExport void register_MapLongShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -702,7 +697,7 @@ eProsima_user_DllExport void register_MapLongUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -714,7 +709,7 @@ eProsima_user_DllExport void register_MapLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongKeyLongLongValue related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -726,7 +721,7 @@ eProsima_user_DllExport void register_MapLongULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongKeyLongLongValue_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -738,7 +733,7 @@ eProsima_user_DllExport void register_MapLongKeyLongLongValue_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -750,7 +745,7 @@ eProsima_user_DllExport void register_MapLongULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -762,7 +757,7 @@ eProsima_user_DllExport void register_MapLongFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongKeyLongDoubleValue related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -774,7 +769,7 @@ eProsima_user_DllExport void register_MapLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongKeyLongDoubleValue_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -786,7 +781,7 @@ eProsima_user_DllExport void register_MapLongKeyLongDoubleValue_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -798,7 +793,7 @@ eProsima_user_DllExport void register_MapLongBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -810,7 +805,7 @@ eProsima_user_DllExport void register_MapLongOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -822,7 +817,7 @@ eProsima_user_DllExport void register_MapLongChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -834,7 +829,7 @@ eProsima_user_DllExport void register_MapLongWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -846,7 +841,7 @@ eProsima_user_DllExport void register_MapLongString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -858,7 +853,7 @@ eProsima_user_DllExport void register_MapLongWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -870,7 +865,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasBoundedStringHelper_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -882,7 +877,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasBoundedWStringHelper_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -894,7 +889,7 @@ eProsima_user_DllExport void register_MapLongInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -906,7 +901,7 @@ eProsima_user_DllExport void register_MapLongInnerBitMaskHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -918,7 +913,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -930,7 +925,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasArrayHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -942,7 +937,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasSequenceHelper_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -954,7 +949,7 @@ eProsima_user_DllExport void register_MapLongInnerAliasMapHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -966,7 +961,7 @@ eProsima_user_DllExport void register_MapLongInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -978,7 +973,7 @@ eProsima_user_DllExport void register_MapLongInnerStructureHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -990,7 +985,7 @@ eProsima_user_DllExport void register_MapLongInnerBitsetHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1002,7 +997,7 @@ eProsima_user_DllExport void register_MapULongShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1014,7 +1009,7 @@ eProsima_user_DllExport void register_MapULongUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1026,7 +1021,7 @@ eProsima_user_DllExport void register_MapULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapKeyULongValueLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1038,7 +1033,7 @@ eProsima_user_DllExport void register_MapULongULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapKeyULongValueLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1050,7 +1045,7 @@ eProsima_user_DllExport void register_MapKeyULongValueLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1062,7 +1057,7 @@ eProsima_user_DllExport void register_MapULongULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1074,7 +1069,7 @@ eProsima_user_DllExport void register_MapULongFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapKeyULongValueLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1086,7 +1081,7 @@ eProsima_user_DllExport void register_MapULongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapKeyULongValueLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1098,7 +1093,7 @@ eProsima_user_DllExport void register_MapKeyULongValueLongDouble_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1110,7 +1105,7 @@ eProsima_user_DllExport void register_MapULongBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1122,7 +1117,7 @@ eProsima_user_DllExport void register_MapULongOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1134,7 +1129,7 @@ eProsima_user_DllExport void register_MapULongChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1146,7 +1141,7 @@ eProsima_user_DllExport void register_MapULongWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1158,7 +1153,7 @@ eProsima_user_DllExport void register_MapULongString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1170,7 +1165,7 @@ eProsima_user_DllExport void register_MapULongWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1182,7 +1177,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasBoundedStringHelper_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1194,7 +1189,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasBoundedWStringHelper_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1206,7 +1201,7 @@ eProsima_user_DllExport void register_MapULongInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1218,7 +1213,7 @@ eProsima_user_DllExport void register_MapULongInnerBitMaskHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1230,7 +1225,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1242,7 +1237,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasArrayHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1254,7 +1249,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasSequenceHelper_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1266,7 +1261,7 @@ eProsima_user_DllExport void register_MapULongInnerAliasMapHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1278,7 +1273,7 @@ eProsima_user_DllExport void register_MapULongInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1290,7 +1285,7 @@ eProsima_user_DllExport void register_MapULongInnerStructureHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1302,7 +1297,7 @@ eProsima_user_DllExport void register_MapULongInnerBitsetHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1314,7 +1309,7 @@ eProsima_user_DllExport void register_MapLongLongShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongKeyLongValue related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1326,7 +1321,7 @@ eProsima_user_DllExport void register_MapLongLongUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongKeyLongValue_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1338,7 +1333,7 @@ eProsima_user_DllExport void register_MapLongLongKeyLongValue_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1350,7 +1345,7 @@ eProsima_user_DllExport void register_MapLongLongULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1362,7 +1357,7 @@ eProsima_user_DllExport void register_MapLongLongLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1374,7 +1369,7 @@ eProsima_user_DllExport void register_MapLongLongULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongKeyDoubleValue related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1386,7 +1381,7 @@ eProsima_user_DllExport void register_MapLongLongFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongKeyDoubleValue_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1398,7 +1393,7 @@ eProsima_user_DllExport void register_MapLongLongKeyDoubleValue_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1410,7 +1405,7 @@ eProsima_user_DllExport void register_MapLongLongLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1422,7 +1417,7 @@ eProsima_user_DllExport void register_MapLongLongBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1434,7 +1429,7 @@ eProsima_user_DllExport void register_MapLongLongOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1446,7 +1441,7 @@ eProsima_user_DllExport void register_MapLongLongChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1458,7 +1453,7 @@ eProsima_user_DllExport void register_MapLongLongWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1470,7 +1465,7 @@ eProsima_user_DllExport void register_MapLongLongString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1482,7 +1477,7 @@ eProsima_user_DllExport void register_MapLongLongWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1494,7 +1489,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasBoundedStringHelper_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1506,7 +1501,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasBoundedWStringHelper_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1518,7 +1513,7 @@ eProsima_user_DllExport void register_MapLongLongInnerEnumHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1530,7 +1525,7 @@ eProsima_user_DllExport void register_MapLongLongInnerBitMaskHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1542,7 +1537,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1554,7 +1549,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasArrayHelper_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1566,7 +1561,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasSequenceHelper_type_i * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1578,7 +1573,7 @@ eProsima_user_DllExport void register_MapLongLongInnerAliasMapHelper_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1590,7 +1585,7 @@ eProsima_user_DllExport void register_MapLongLongInnerUnionHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapLongLongInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1602,7 +1597,7 @@ eProsima_user_DllExport void register_MapLongLongInnerStructureHelper_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapLongLongInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1614,7 +1609,7 @@ eProsima_user_DllExport void register_MapLongLongInnerBitsetHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1626,7 +1621,7 @@ eProsima_user_DllExport void register_MapULongLongShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1638,7 +1633,7 @@ eProsima_user_DllExport void register_MapULongLongUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1650,7 +1645,7 @@ eProsima_user_DllExport void register_MapULongLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1662,7 +1657,7 @@ eProsima_user_DllExport void register_MapULongLongULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1674,7 +1669,7 @@ eProsima_user_DllExport void register_MapULongLongLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1686,7 +1681,7 @@ eProsima_user_DllExport void register_MapULongLongULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapKeyULongLongValueDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1698,7 +1693,7 @@ eProsima_user_DllExport void register_MapULongLongFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapKeyULongLongValueDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1710,7 +1705,7 @@ eProsima_user_DllExport void register_MapKeyULongLongValueDouble_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1722,7 +1717,7 @@ eProsima_user_DllExport void register_MapULongLongLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1734,7 +1729,7 @@ eProsima_user_DllExport void register_MapULongLongBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1746,7 +1741,7 @@ eProsima_user_DllExport void register_MapULongLongOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1758,7 +1753,7 @@ eProsima_user_DllExport void register_MapULongLongChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1770,7 +1765,7 @@ eProsima_user_DllExport void register_MapULongLongWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1782,7 +1777,7 @@ eProsima_user_DllExport void register_MapULongLongString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1794,7 +1789,7 @@ eProsima_user_DllExport void register_MapULongLongWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1806,7 +1801,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasBoundedStringHelper_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1818,7 +1813,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasBoundedWStringHelper * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1830,7 +1825,7 @@ eProsima_user_DllExport void register_MapULongLongInnerEnumHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1842,7 +1837,7 @@ eProsima_user_DllExport void register_MapULongLongInnerBitMaskHelper_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1854,7 +1849,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1866,7 +1861,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasArrayHelper_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1878,7 +1873,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasSequenceHelper_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1890,7 +1885,7 @@ eProsima_user_DllExport void register_MapULongLongInnerAliasMapHelper_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1902,7 +1897,7 @@ eProsima_user_DllExport void register_MapULongLongInnerUnionHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapULongLongInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1914,7 +1909,7 @@ eProsima_user_DllExport void register_MapULongLongInnerStructureHelper_type_iden * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapULongLongInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1926,7 +1921,7 @@ eProsima_user_DllExport void register_MapULongLongInnerBitsetHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1938,7 +1933,7 @@ eProsima_user_DllExport void register_MapStringShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1950,7 +1945,7 @@ eProsima_user_DllExport void register_MapStringUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1962,7 +1957,7 @@ eProsima_user_DllExport void register_MapStringLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1974,7 +1969,7 @@ eProsima_user_DllExport void register_MapStringULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1986,7 +1981,7 @@ eProsima_user_DllExport void register_MapStringLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1998,7 +1993,7 @@ eProsima_user_DllExport void register_MapStringULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2010,7 +2005,7 @@ eProsima_user_DllExport void register_MapStringFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2022,7 +2017,7 @@ eProsima_user_DllExport void register_MapStringDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2034,7 +2029,7 @@ eProsima_user_DllExport void register_MapStringLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2046,7 +2041,7 @@ eProsima_user_DllExport void register_MapStringBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2058,7 +2053,7 @@ eProsima_user_DllExport void register_MapStringOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2070,7 +2065,7 @@ eProsima_user_DllExport void register_MapStringChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2082,7 +2077,7 @@ eProsima_user_DllExport void register_MapStringWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2094,7 +2089,7 @@ eProsima_user_DllExport void register_MapStringString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2106,7 +2101,7 @@ eProsima_user_DllExport void register_MapStringWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2118,7 +2113,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasBoundedStringHelper_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2130,7 +2125,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasBoundedWStringHelper_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2142,7 +2137,7 @@ eProsima_user_DllExport void register_MapStringInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2154,7 +2149,7 @@ eProsima_user_DllExport void register_MapStringInnerBitMaskHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2166,7 +2161,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2178,7 +2173,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasArrayHelper_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2190,7 +2185,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasSequenceHelper_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2202,7 +2197,7 @@ eProsima_user_DllExport void register_MapStringInnerAliasMapHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2214,7 +2209,7 @@ eProsima_user_DllExport void register_MapStringInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapStringInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2226,7 +2221,7 @@ eProsima_user_DllExport void register_MapStringInnerStructureHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapStringInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2238,7 +2233,7 @@ eProsima_user_DllExport void register_MapStringInnerBitsetHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2250,7 +2245,7 @@ eProsima_user_DllExport void register_MapWStringShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2262,7 +2257,7 @@ eProsima_user_DllExport void register_MapWStringUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2274,7 +2269,7 @@ eProsima_user_DllExport void register_MapWStringLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2286,7 +2281,7 @@ eProsima_user_DllExport void register_MapWStringULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2298,7 +2293,7 @@ eProsima_user_DllExport void register_MapWStringLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2310,7 +2305,7 @@ eProsima_user_DllExport void register_MapWStringULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2322,7 +2317,7 @@ eProsima_user_DllExport void register_MapWStringFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2334,7 +2329,7 @@ eProsima_user_DllExport void register_MapWStringDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2346,7 +2341,7 @@ eProsima_user_DllExport void register_MapWStringLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2358,7 +2353,7 @@ eProsima_user_DllExport void register_MapWStringBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2370,7 +2365,7 @@ eProsima_user_DllExport void register_MapWStringOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2382,7 +2377,7 @@ eProsima_user_DllExport void register_MapWStringChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2394,7 +2389,7 @@ eProsima_user_DllExport void register_MapWStringWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2406,7 +2401,7 @@ eProsima_user_DllExport void register_MapWStringString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2418,7 +2413,7 @@ eProsima_user_DllExport void register_MapWStringWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2430,7 +2425,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasBoundedStringHelper_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2442,7 +2437,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasBoundedWStringHelper_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2454,7 +2449,7 @@ eProsima_user_DllExport void register_MapWStringInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2466,7 +2461,7 @@ eProsima_user_DllExport void register_MapWStringInnerBitMaskHelper_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2478,7 +2473,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2490,7 +2485,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasArrayHelper_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2502,7 +2497,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasSequenceHelper_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2514,7 +2509,7 @@ eProsima_user_DllExport void register_MapWStringInnerAliasMapHelper_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2526,7 +2521,7 @@ eProsima_user_DllExport void register_MapWStringInnerUnionHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapWStringInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2538,7 +2533,7 @@ eProsima_user_DllExport void register_MapWStringInnerStructureHelper_type_identi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapWStringInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2550,7 +2545,7 @@ eProsima_user_DllExport void register_MapWStringInnerBitsetHelper_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2562,7 +2557,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperShort_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2574,7 +2569,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperUShort_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2586,7 +2581,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLong_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2598,7 +2593,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperULong_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2610,7 +2605,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLongLong_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2622,7 +2617,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperULongLong_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2634,7 +2629,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperFloat_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2646,7 +2641,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperDouble_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2658,7 +2653,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperLongDouble * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2670,7 +2665,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperBoolean_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2682,7 +2677,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperOctet_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2694,7 +2689,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperChar_type_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2706,7 +2701,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperWChar_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2718,7 +2713,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperString_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2730,7 +2725,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperWString_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2742,7 +2737,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2754,7 +2749,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2766,7 +2761,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerEnumH * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2778,7 +2773,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerBitMa * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2790,7 +2785,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2802,7 +2797,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2814,7 +2809,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2826,7 +2821,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerAlias * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2838,7 +2833,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerUnion * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedStringHelperInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2850,7 +2845,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerStruc * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2862,7 +2857,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedStringHelperInnerBitse * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2874,7 +2869,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperShort_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2886,7 +2881,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperUShort_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2898,7 +2893,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLong_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2910,7 +2905,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperULong_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2922,7 +2917,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLongLong_ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2934,7 +2929,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperULongLong * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2946,7 +2941,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperFloat_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2958,7 +2953,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperDouble_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2970,7 +2965,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperLongDoubl * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2982,7 +2977,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperBoolean_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -2994,7 +2989,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperOctet_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3006,7 +3001,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperChar_type * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3018,7 +3013,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperWChar_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3030,7 +3025,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperString_ty * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3042,7 +3037,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperWString_t * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3054,7 +3049,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasBoundedWStringHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3066,7 +3061,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3078,7 +3073,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerEnum * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3090,7 +3085,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerBitM * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3102,7 +3097,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasArrayHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3114,7 +3109,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasSequenceHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerAliasMapHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3126,7 +3121,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAliasMapHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3138,7 +3133,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerAlia * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3150,7 +3145,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerUnio * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MapInnerAliasBoundedWStringHelperInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3162,7 +3157,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerStru * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedSmallMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3174,7 +3169,7 @@ eProsima_user_DllExport void register_MapInnerAliasBoundedWStringHelperInnerBits * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedSmallMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedLargeMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -3186,7 +3181,7 @@ eProsima_user_DllExport void register_BoundedSmallMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedLargeMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/member_idPubSubTypes.cxx b/test/dds-types-test/member_idPubSubTypes.cxx index 01e2904a54f..32379122784 100644 --- a/test/dds-types-test/member_idPubSubTypes.cxx +++ b/test/dds-types-test/member_idPubSubTypes.cxx @@ -219,9 +219,9 @@ bool FixIdPubSubType::getKey( return true; } -void FixIdPubSubType::register_type_object_representation() const +void FixIdPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_FixId_type_identifier(type_identifiers_); } FixHexIdPubSubType::FixHexIdPubSubType() @@ -412,9 +412,9 @@ bool FixHexIdPubSubType::getKey( return true; } -void FixHexIdPubSubType::register_type_object_representation() const +void FixHexIdPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_FixHexId_type_identifier(type_identifiers_); } FixHashidDefaultPubSubType::FixHashidDefaultPubSubType() @@ -605,9 +605,9 @@ bool FixHashidDefaultPubSubType::getKey( return true; } -void FixHashidDefaultPubSubType::register_type_object_representation() const +void FixHashidDefaultPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_FixHashidDefault_type_identifier(type_identifiers_); } FixHashidPubSubType::FixHashidPubSubType() @@ -798,9 +798,9 @@ bool FixHashidPubSubType::getKey( return true; } -void FixHashidPubSubType::register_type_object_representation() const +void FixHashidPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_FixHashid_type_identifier(type_identifiers_); } FixMixPubSubType::FixMixPubSubType() @@ -991,9 +991,9 @@ bool FixMixPubSubType::getKey( return true; } -void FixMixPubSubType::register_type_object_representation() const +void FixMixPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_FixMix_type_identifier(type_identifiers_); } AutoidDefaultPubSubType::AutoidDefaultPubSubType() @@ -1184,9 +1184,9 @@ bool AutoidDefaultPubSubType::getKey( return true; } -void AutoidDefaultPubSubType::register_type_object_representation() const +void AutoidDefaultPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_AutoidDefault_type_identifier(type_identifiers_); } AutoidSequentialPubSubType::AutoidSequentialPubSubType() @@ -1377,9 +1377,9 @@ bool AutoidSequentialPubSubType::getKey( return true; } -void AutoidSequentialPubSubType::register_type_object_representation() const +void AutoidSequentialPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_AutoidSequential_type_identifier(type_identifiers_); } AutoidHashPubSubType::AutoidHashPubSubType() @@ -1570,9 +1570,9 @@ bool AutoidHashPubSubType::getKey( return true; } -void AutoidHashPubSubType::register_type_object_representation() const +void AutoidHashPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_AutoidHash_type_identifier(type_identifiers_); } DerivedAutoidDefaultPubSubType::DerivedAutoidDefaultPubSubType() @@ -1763,9 +1763,9 @@ bool DerivedAutoidDefaultPubSubType::getKey( return true; } -void DerivedAutoidDefaultPubSubType::register_type_object_representation() const +void DerivedAutoidDefaultPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_DerivedAutoidDefault_type_identifier(type_identifiers_); } DerivedEmptyAutoidSequentialPubSubType::DerivedEmptyAutoidSequentialPubSubType() @@ -1956,9 +1956,9 @@ bool DerivedEmptyAutoidSequentialPubSubType::getKey( return true; } -void DerivedEmptyAutoidSequentialPubSubType::register_type_object_representation() const +void DerivedEmptyAutoidSequentialPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_DerivedEmptyAutoidSequential_type_identifier(type_identifiers_); } DerivedAutoidSequentialPubSubType::DerivedAutoidSequentialPubSubType() @@ -2149,9 +2149,9 @@ bool DerivedAutoidSequentialPubSubType::getKey( return true; } -void DerivedAutoidSequentialPubSubType::register_type_object_representation() const +void DerivedAutoidSequentialPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_DerivedAutoidSequential_type_identifier(type_identifiers_); } DerivedAutoidHashPubSubType::DerivedAutoidHashPubSubType() @@ -2342,9 +2342,9 @@ bool DerivedAutoidHashPubSubType::getKey( return true; } -void DerivedAutoidHashPubSubType::register_type_object_representation() const +void DerivedAutoidHashPubSubType::register_type_object_representation() { - register_member_id_type_objects(); + register_DerivedAutoidHash_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/member_idPubSubTypes.h b/test/dds-types-test/member_idPubSubTypes.h index 24ad3f2713d..5df18b22d0d 100644 --- a/test/dds-types-test/member_idPubSubTypes.h +++ b/test/dds-types-test/member_idPubSubTypes.h @@ -89,7 +89,7 @@ class FixIdPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -180,7 +180,7 @@ class FixHexIdPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -271,7 +271,7 @@ class FixHashidDefaultPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -362,7 +362,7 @@ class FixHashidPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -453,7 +453,7 @@ class FixMixPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -544,7 +544,7 @@ class AutoidDefaultPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -635,7 +635,7 @@ class AutoidSequentialPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -726,7 +726,7 @@ class AutoidHashPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -817,7 +817,7 @@ class DerivedAutoidDefaultPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -908,7 +908,7 @@ class DerivedEmptyAutoidSequentialPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -999,7 +999,7 @@ class DerivedAutoidSequentialPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1090,7 +1090,7 @@ class DerivedAutoidHashPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/member_idTypeObjectSupport.cxx b/test/dds-types-test/member_idTypeObjectSupport.cxx index 17eced5856a..0d2785e68a1 100644 --- a/test/dds-types-test/member_idTypeObjectSupport.cxx +++ b/test/dds-types-test/member_idTypeObjectSupport.cxx @@ -38,48 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_member_id_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_FixId_type_identifier(type_id); - - register_FixHexId_type_identifier(type_id); - - register_FixHashidDefault_type_identifier(type_id); - - register_FixHashid_type_identifier(type_id); - - register_FixMix_type_identifier(type_id); - - register_AutoidDefault_type_identifier(type_id); - - register_AutoidSequential_type_identifier(type_id); - - register_AutoidHash_type_identifier(type_id); - - register_DerivedAutoidDefault_type_identifier(type_id); - - register_DerivedEmptyAutoidSequential_type_identifier(type_id); - - register_DerivedAutoidSequential_type_identifier(type_id); - - register_DerivedAutoidHash_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixId_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixId) { + + ReturnCode_t return_code_FixId {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixId = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixId", type_ids_FixId); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixId) { StructTypeFlag struct_flags_FixId = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_FixId; - TypeIdentifierPair type_ids_FixId; QualifiedTypeName type_name_FixId = "FixId"; eprosima::fastcdr::optional type_ann_builtin_FixId; eprosima::fastcdr::optional ann_custom_FixId; @@ -95,62 +66,26 @@ void register_FixId_type_identifier( header_FixId = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixId); CompleteStructMemberSeq member_seq_FixId; { - return_code_FixId = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixId); + "_byte", type_ids_o); - if (return_code_FixId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_FixId.type_identifier1()._d() || TK_NONE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixId.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -174,62 +109,26 @@ void register_FixId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixId, member_o); } { - return_code_FixId = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FixId); + "_int16_t", type_ids_s); - if (return_code_FixId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0000012c; - if (EK_COMPLETE == type_ids_FixId.type_identifier1()._d() || TK_NONE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixId.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -253,62 +152,26 @@ void register_FixId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixId, member_s); } { - return_code_FixId = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FixId); + "_int32_t", type_ids_l); - if (return_code_FixId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x000001f4; - if (EK_COMPLETE == type_ids_FixId.type_identifier1()._d() || TK_NONE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixId.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -332,62 +195,26 @@ void register_FixId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixId, member_l); } { - return_code_FixId = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FixId); + "_int64_t", type_ids_ll); - if (return_code_FixId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x000001f5; - if (EK_COMPLETE == type_ids_FixId.type_identifier1()._d() || TK_NONE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixId.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -399,32 +226,26 @@ void register_FixId_type_identifier( } CompleteStructType struct_type_FixId = TypeObjectUtils::build_complete_struct_type(struct_flags_FixId, header_FixId, member_seq_FixId); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixId, type_name_FixId.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixId, type_name_FixId.to_string(), type_ids_FixId)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixId already registered in TypeObjectRegistry for a different type."); } - return_code_FixId = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixId", type_ids_FixId); - if (return_code_FixId != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixId: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixHexId_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixHexId) { + + ReturnCode_t return_code_FixHexId {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixHexId = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixHexId", type_ids_FixHexId); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixHexId) { StructTypeFlag struct_flags_FixHexId = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_FixHexId; - TypeIdentifierPair type_ids_FixHexId; QualifiedTypeName type_name_FixHexId = "FixHexId"; eprosima::fastcdr::optional type_ann_builtin_FixHexId; eprosima::fastcdr::optional ann_custom_FixHexId; @@ -440,62 +261,26 @@ void register_FixHexId_type_identifier( header_FixHexId = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixHexId); CompleteStructMemberSeq member_seq_FixHexId; { - return_code_FixHexId = + TypeIdentifierPair type_ids_ho; + ReturnCode_t return_code_ho {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ho = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixHexId); + "_byte", type_ids_ho); - if (return_code_FixHexId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ho) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ho Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ho = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ho = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ho; MemberId member_id_ho = 0x00000100; - if (EK_COMPLETE == type_ids_FixHexId.type_identifier1()._d() || TK_NONE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ho = TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, type_ids_FixHexId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ho = TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, type_ids_FixHexId.type_identifier2()); - } - else + bool common_ho_ec {false}; + CommonStructMember common_ho {TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ho, common_ho_ec))}; + if (!common_ho_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ho member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ho member TypeIdentifier inconsistent."); return; } MemberName name_ho = "ho"; @@ -519,62 +304,26 @@ void register_FixHexId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHexId, member_ho); } { - return_code_FixHexId = + TypeIdentifierPair type_ids_hs; + ReturnCode_t return_code_hs {eprosima::fastdds::dds::RETCODE_OK}; + return_code_hs = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FixHexId); + "_int16_t", type_ids_hs); - if (return_code_FixHexId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_hs) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "hs Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_hs = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_hs = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_hs; MemberId member_id_hs = 0x00000300; - if (EK_COMPLETE == type_ids_FixHexId.type_identifier1()._d() || TK_NONE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_hs = TypeObjectUtils::build_common_struct_member(member_id_hs, member_flags_hs, type_ids_FixHexId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_hs = TypeObjectUtils::build_common_struct_member(member_id_hs, member_flags_hs, type_ids_FixHexId.type_identifier2()); - } - else + bool common_hs_ec {false}; + CommonStructMember common_hs {TypeObjectUtils::build_common_struct_member(member_id_hs, member_flags_hs, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_hs, common_hs_ec))}; + if (!common_hs_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure hs member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure hs member TypeIdentifier inconsistent."); return; } MemberName name_hs = "hs"; @@ -598,62 +347,26 @@ void register_FixHexId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHexId, member_hs); } { - return_code_FixHexId = + TypeIdentifierPair type_ids_hl; + ReturnCode_t return_code_hl {eprosima::fastdds::dds::RETCODE_OK}; + return_code_hl = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FixHexId); + "_int32_t", type_ids_hl); - if (return_code_FixHexId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_hl) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "hl Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_hl = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_hl = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_hl; MemberId member_id_hl = 0x00000500; - if (EK_COMPLETE == type_ids_FixHexId.type_identifier1()._d() || TK_NONE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_hl = TypeObjectUtils::build_common_struct_member(member_id_hl, member_flags_hl, type_ids_FixHexId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_hl = TypeObjectUtils::build_common_struct_member(member_id_hl, member_flags_hl, type_ids_FixHexId.type_identifier2()); - } - else + bool common_hl_ec {false}; + CommonStructMember common_hl {TypeObjectUtils::build_common_struct_member(member_id_hl, member_flags_hl, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_hl, common_hl_ec))}; + if (!common_hl_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure hl member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure hl member TypeIdentifier inconsistent."); return; } MemberName name_hl = "hl"; @@ -677,62 +390,26 @@ void register_FixHexId_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHexId, member_hl); } { - return_code_FixHexId = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FixHexId); + "_int64_t", type_ids_ll); - if (return_code_FixHexId != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x00000501; - if (EK_COMPLETE == type_ids_FixHexId.type_identifier1()._d() || TK_NONE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHexId.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHexId.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHexId.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHexId.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHexId.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHexId.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHexId.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -744,32 +421,26 @@ void register_FixHexId_type_identifier( } CompleteStructType struct_type_FixHexId = TypeObjectUtils::build_complete_struct_type(struct_flags_FixHexId, header_FixHexId, member_seq_FixHexId); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHexId, type_name_FixHexId.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHexId, type_name_FixHexId.to_string(), type_ids_FixHexId)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixHexId already registered in TypeObjectRegistry for a different type."); } - return_code_FixHexId = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixHexId", type_ids_FixHexId); - if (return_code_FixHexId != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixHexId: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixHashidDefault_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixHashidDefault) { + + ReturnCode_t return_code_FixHashidDefault {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixHashidDefault = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixHashidDefault", type_ids_FixHashidDefault); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixHashidDefault) { StructTypeFlag struct_flags_FixHashidDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_FixHashidDefault; - TypeIdentifierPair type_ids_FixHashidDefault; QualifiedTypeName type_name_FixHashidDefault = "FixHashidDefault"; eprosima::fastcdr::optional type_ann_builtin_FixHashidDefault; eprosima::fastcdr::optional ann_custom_FixHashidDefault; @@ -785,62 +456,26 @@ void register_FixHashidDefault_type_identifier( header_FixHashidDefault = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixHashidDefault); CompleteStructMemberSeq member_seq_FixHashidDefault; { - return_code_FixHashidDefault = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixHashidDefault); + "_byte", type_ids_o); - if (return_code_FixHashidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x057956d9; - if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1()._d() || TK_NONE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixHashidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixHashidDefault.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -866,62 +501,26 @@ void register_FixHashidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashidDefault, member_o); } { - return_code_FixHashidDefault = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FixHashidDefault); + "_int16_t", type_ids_s); - if (return_code_FixHashidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1()._d() || TK_NONE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixHashidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixHashidDefault.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -947,62 +546,26 @@ void register_FixHashidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashidDefault, member_s); } { - return_code_FixHashidDefault = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FixHashidDefault); + "_int32_t", type_ids_l); - if (return_code_FixHashidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0e5eb92d; - if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1()._d() || TK_NONE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixHashidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixHashidDefault.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -1028,62 +591,26 @@ void register_FixHashidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashidDefault, member_l); } { - return_code_FixHashidDefault = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FixHashidDefault); + "_int64_t", type_ids_ll); - if (return_code_FixHashidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x0e5eb92e; - if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1()._d() || TK_NONE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHashidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHashidDefault.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -1095,32 +622,26 @@ void register_FixHashidDefault_type_identifier( } CompleteStructType struct_type_FixHashidDefault = TypeObjectUtils::build_complete_struct_type(struct_flags_FixHashidDefault, header_FixHashidDefault, member_seq_FixHashidDefault); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHashidDefault, type_name_FixHashidDefault.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHashidDefault, type_name_FixHashidDefault.to_string(), type_ids_FixHashidDefault)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixHashidDefault already registered in TypeObjectRegistry for a different type."); } - return_code_FixHashidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixHashidDefault", type_ids_FixHashidDefault); - if (return_code_FixHashidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixHashidDefault: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixHashid_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixHashid) { + + ReturnCode_t return_code_FixHashid {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixHashid = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixHashid", type_ids_FixHashid); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixHashid) { StructTypeFlag struct_flags_FixHashid = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_FixHashid; - TypeIdentifierPair type_ids_FixHashid; QualifiedTypeName type_name_FixHashid = "FixHashid"; eprosima::fastcdr::optional type_ann_builtin_FixHashid; eprosima::fastcdr::optional ann_custom_FixHashid; @@ -1136,62 +657,26 @@ void register_FixHashid_type_identifier( header_FixHashid = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixHashid); CompleteStructMemberSeq member_seq_FixHashid; { - return_code_FixHashid = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixHashid); + "_byte", type_ids_o); - if (return_code_FixHashid != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x02b9e4e7; - if (EK_COMPLETE == type_ids_FixHashid.type_identifier1()._d() || TK_NONE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixHashid.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixHashid.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -1217,62 +702,26 @@ void register_FixHashid_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashid, member_o); } { - return_code_FixHashid = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FixHashid); + "_int16_t", type_ids_s); - if (return_code_FixHashid != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x09da094f; - if (EK_COMPLETE == type_ids_FixHashid.type_identifier1()._d() || TK_NONE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixHashid.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixHashid.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -1298,62 +747,26 @@ void register_FixHashid_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashid, member_s); } { - return_code_FixHashid = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FixHashid); + "_int32_t", type_ids_l); - if (return_code_FixHashid != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_FixHashid.type_identifier1()._d() || TK_NONE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixHashid.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixHashid.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -1379,62 +792,26 @@ void register_FixHashid_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixHashid, member_l); } { - return_code_FixHashid = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FixHashid); + "_int64_t", type_ids_ll); - if (return_code_FixHashid != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x03645210; - if (EK_COMPLETE == type_ids_FixHashid.type_identifier1()._d() || TK_NONE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHashid.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixHashid.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixHashid.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixHashid.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixHashid.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixHashid.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixHashid.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -1446,32 +823,26 @@ void register_FixHashid_type_identifier( } CompleteStructType struct_type_FixHashid = TypeObjectUtils::build_complete_struct_type(struct_flags_FixHashid, header_FixHashid, member_seq_FixHashid); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHashid, type_name_FixHashid.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixHashid, type_name_FixHashid.to_string(), type_ids_FixHashid)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixHashid already registered in TypeObjectRegistry for a different type."); } - return_code_FixHashid = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixHashid", type_ids_FixHashid); - if (return_code_FixHashid != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixHashid: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FixMix_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FixMix) { + + ReturnCode_t return_code_FixMix {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FixMix = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FixMix", type_ids_FixMix); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FixMix) { StructTypeFlag struct_flags_FixMix = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_FixMix; - TypeIdentifierPair type_ids_FixMix; QualifiedTypeName type_name_FixMix = "FixMix"; eprosima::fastcdr::optional type_ann_builtin_FixMix; eprosima::fastcdr::optional ann_custom_FixMix; @@ -1487,62 +858,26 @@ void register_FixMix_type_identifier( header_FixMix = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FixMix); CompleteStructMemberSeq member_seq_FixMix; { - return_code_FixMix = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixMix); + "_byte", type_ids_o); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_FixMix.type_identifier1()._d() || TK_NONE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixMix.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_FixMix.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -1566,62 +901,26 @@ void register_FixMix_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixMix, member_o); } { - return_code_FixMix = + TypeIdentifierPair type_ids_ho; + ReturnCode_t return_code_ho {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ho = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_FixMix); + "_byte", type_ids_ho); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ho) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ho Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ho = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ho = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ho; MemberId member_id_ho = 0x00000200; - if (EK_COMPLETE == type_ids_FixMix.type_identifier1()._d() || TK_NONE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ho = TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, type_ids_FixMix.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ho = TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, type_ids_FixMix.type_identifier2()); - } - else + bool common_ho_ec {false}; + CommonStructMember common_ho {TypeObjectUtils::build_common_struct_member(member_id_ho, member_flags_ho, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ho, common_ho_ec))}; + if (!common_ho_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ho member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ho member TypeIdentifier inconsistent."); return; } MemberName name_ho = "ho"; @@ -1645,62 +944,26 @@ void register_FixMix_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixMix, member_ho); } { - return_code_FixMix = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_FixMix); + "_int16_t", type_ids_s); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_FixMix.type_identifier1()._d() || TK_NONE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixMix.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_FixMix.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -1726,62 +989,26 @@ void register_FixMix_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixMix, member_s); } { - return_code_FixMix = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_FixMix); + "_int32_t", type_ids_l); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_FixMix.type_identifier1()._d() || TK_NONE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixMix.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_FixMix.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -1807,62 +1034,26 @@ void register_FixMix_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_FixMix, member_l); } { - return_code_FixMix = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_FixMix); + "_int64_t", type_ids_ll); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x03645210; - if (EK_COMPLETE == type_ids_FixMix.type_identifier1()._d() || TK_NONE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier1()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixMix.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FixMix.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FixMix.type_identifier2()._d() && - EK_COMPLETE == type_ids_FixMix.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FixMix.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FixMix.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_FixMix.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -1874,32 +1065,26 @@ void register_FixMix_type_identifier( } CompleteStructType struct_type_FixMix = TypeObjectUtils::build_complete_struct_type(struct_flags_FixMix, header_FixMix, member_seq_FixMix); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixMix, type_name_FixMix.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FixMix, type_name_FixMix.to_string(), type_ids_FixMix)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FixMix already registered in TypeObjectRegistry for a different type."); } - return_code_FixMix = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FixMix", type_ids_FixMix); - if (return_code_FixMix != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FixMix: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AutoidDefault_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AutoidDefault) { + + ReturnCode_t return_code_AutoidDefault {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AutoidDefault = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AutoidDefault", type_ids_AutoidDefault); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AutoidDefault) { StructTypeFlag struct_flags_AutoidDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, true); - ReturnCode_t return_code_AutoidDefault; - TypeIdentifierPair type_ids_AutoidDefault; QualifiedTypeName type_name_AutoidDefault = "AutoidDefault"; eprosima::fastcdr::optional type_ann_builtin_AutoidDefault; eprosima::fastcdr::optional ann_custom_AutoidDefault; @@ -1915,62 +1100,26 @@ void register_AutoidDefault_type_identifier( header_AutoidDefault = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidDefault); CompleteStructMemberSeq member_seq_AutoidDefault; { - return_code_AutoidDefault = + TypeIdentifierPair type_ids_c; + ReturnCode_t return_code_c {eprosima::fastdds::dds::RETCODE_OK}; + return_code_c = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidDefault); + "_char", type_ids_c); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_c) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_c; MemberId member_id_c = 0x00088a4a; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidDefault.type_identifier2()); - } - else + bool common_c_ec {false}; + CommonStructMember common_c {TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_c, common_c_ec))}; + if (!common_c_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -1981,62 +1130,26 @@ void register_AutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_c); } { - return_code_AutoidDefault = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidDefault); + "_byte", type_ids_o); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidDefault.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -2060,62 +1173,26 @@ void register_AutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_o); } { - return_code_AutoidDefault = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidDefault); + "_int16_t", type_ids_s); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidDefault.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -2141,62 +1218,26 @@ void register_AutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_s); } { - return_code_AutoidDefault = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidDefault); + "_int32_t", type_ids_l); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidDefault.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -2222,62 +1263,26 @@ void register_AutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_l); } { - return_code_AutoidDefault = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidDefault); + "_int64_t", type_ids_ll); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x00c0545b; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidDefault.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -2289,32 +1294,26 @@ void register_AutoidDefault_type_identifier( } CompleteStructType struct_type_AutoidDefault = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidDefault, header_AutoidDefault, member_seq_AutoidDefault); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidDefault, type_name_AutoidDefault.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidDefault, type_name_AutoidDefault.to_string(), type_ids_AutoidDefault)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AutoidDefault already registered in TypeObjectRegistry for a different type."); } - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidDefault", type_ids_AutoidDefault); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidDefault: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AutoidSequential_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AutoidSequential) { + + ReturnCode_t return_code_AutoidSequential {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AutoidSequential = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AutoidSequential", type_ids_AutoidSequential); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AutoidSequential) { StructTypeFlag struct_flags_AutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_AutoidSequential; - TypeIdentifierPair type_ids_AutoidSequential; QualifiedTypeName type_name_AutoidSequential = "AutoidSequential"; eprosima::fastcdr::optional type_ann_builtin_AutoidSequential; eprosima::fastcdr::optional ann_custom_AutoidSequential; @@ -2330,62 +1329,26 @@ void register_AutoidSequential_type_identifier( header_AutoidSequential = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidSequential); CompleteStructMemberSeq member_seq_AutoidSequential; { - return_code_AutoidSequential = + TypeIdentifierPair type_ids_c; + ReturnCode_t return_code_c {eprosima::fastdds::dds::RETCODE_OK}; + return_code_c = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidSequential); + "_char", type_ids_c); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_c) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_c; MemberId member_id_c = 0x00000000; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier2()); - } - else + bool common_c_ec {false}; + CommonStructMember common_c {TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_c, common_c_ec))}; + if (!common_c_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -2396,62 +1359,26 @@ void register_AutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_c); } { - return_code_AutoidSequential = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidSequential); + "_byte", type_ids_o); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -2475,62 +1402,26 @@ void register_AutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_o); } { - return_code_AutoidSequential = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidSequential); + "_int16_t", type_ids_s); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -2556,62 +1447,26 @@ void register_AutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_s); } { - return_code_AutoidSequential = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidSequential); + "_int32_t", type_ids_l); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -2637,62 +1492,26 @@ void register_AutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_l); } { - return_code_AutoidSequential = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidSequential); + "_int64_t", type_ids_ll); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x03645210; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -2704,32 +1523,26 @@ void register_AutoidSequential_type_identifier( } CompleteStructType struct_type_AutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidSequential, header_AutoidSequential, member_seq_AutoidSequential); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidSequential, type_name_AutoidSequential.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidSequential, type_name_AutoidSequential.to_string(), type_ids_AutoidSequential)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AutoidSequential already registered in TypeObjectRegistry for a different type."); } - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidSequential", type_ids_AutoidSequential); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AutoidHash_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AutoidHash) { + + ReturnCode_t return_code_AutoidHash {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AutoidHash = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AutoidHash", type_ids_AutoidHash); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AutoidHash) { StructTypeFlag struct_flags_AutoidHash = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, true); - ReturnCode_t return_code_AutoidHash; - TypeIdentifierPair type_ids_AutoidHash; QualifiedTypeName type_name_AutoidHash = "AutoidHash"; eprosima::fastcdr::optional type_ann_builtin_AutoidHash; eprosima::fastcdr::optional ann_custom_AutoidHash; @@ -2745,62 +1558,26 @@ void register_AutoidHash_type_identifier( header_AutoidHash = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidHash); CompleteStructMemberSeq member_seq_AutoidHash; { - return_code_AutoidHash = + TypeIdentifierPair type_ids_c; + ReturnCode_t return_code_c {eprosima::fastdds::dds::RETCODE_OK}; + return_code_c = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidHash); + "_char", type_ids_c); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_c) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_c; MemberId member_id_c = 0x00088a4a; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidHash.type_identifier2()); - } - else + bool common_c_ec {false}; + CommonStructMember common_c {TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_c, common_c_ec))}; + if (!common_c_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -2811,62 +1588,26 @@ void register_AutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_c); } { - return_code_AutoidHash = + TypeIdentifierPair type_ids_o; + ReturnCode_t return_code_o {eprosima::fastdds::dds::RETCODE_OK}; + return_code_o = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidHash); + "_byte", type_ids_o); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_o) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_o; MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidHash.type_identifier2()); - } - else + bool common_o_ec {false}; + CommonStructMember common_o {TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_o, common_o_ec))}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -2890,62 +1631,26 @@ void register_AutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_o); } { - return_code_AutoidHash = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidHash); + "_int16_t", type_ids_s); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidHash.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -2971,62 +1676,26 @@ void register_AutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_s); } { - return_code_AutoidHash = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidHash); + "_int32_t", type_ids_l); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidHash.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -3052,62 +1721,26 @@ void register_AutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_l); } { - return_code_AutoidHash = + TypeIdentifierPair type_ids_ll; + ReturnCode_t return_code_ll {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ll = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidHash); + "_int64_t", type_ids_ll); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ll) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ll; MemberId member_id_ll = 0x00c0545b; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidHash.type_identifier2()); - } - else + bool common_ll_ec {false}; + CommonStructMember common_ll {TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ll, common_ll_ec))}; + if (!common_ll_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ll member TypeIdentifier inconsistent."); return; } MemberName name_ll = "ll"; @@ -3119,450 +1752,33 @@ void register_AutoidHash_type_identifier( } CompleteStructType struct_type_AutoidHash = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidHash, header_AutoidHash, member_seq_AutoidHash); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidHash, type_name_AutoidHash.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidHash, type_name_AutoidHash.to_string(), type_ids_AutoidHash)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AutoidHash already registered in TypeObjectRegistry for a different type."); } - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidHash", type_ids_AutoidHash); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidHash: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_DerivedAutoidDefault_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_DerivedAutoidDefault) { + + ReturnCode_t return_code_DerivedAutoidDefault {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DerivedAutoidDefault = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "DerivedAutoidDefault", type_ids_DerivedAutoidDefault); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DerivedAutoidDefault) { - StructTypeFlag struct_flags_DerivedAutoidDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DerivedAutoidDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, true); - ReturnCode_t return_code_DerivedAutoidDefault; - TypeIdentifierPair type_ids_DerivedAutoidDefault; return_code_DerivedAutoidDefault = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AutoidDefault", type_ids_DerivedAutoidDefault); if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AutoidDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, true); - ReturnCode_t return_code_AutoidDefault; - TypeIdentifierPair type_ids_AutoidDefault; - QualifiedTypeName type_name_AutoidDefault = "AutoidDefault"; - eprosima::fastcdr::optional type_ann_builtin_AutoidDefault; - eprosima::fastcdr::optional ann_custom_AutoidDefault; - AppliedAnnotationSeq tmp_ann_custom_AutoidDefault; - eprosima::fastcdr::optional verbatim_AutoidDefault; - if (!tmp_ann_custom_AutoidDefault.empty()) - { - ann_custom_AutoidDefault = tmp_ann_custom_AutoidDefault; - } - - CompleteTypeDetail detail_AutoidDefault = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AutoidDefault, ann_custom_AutoidDefault, type_name_AutoidDefault.to_string()); - CompleteStructHeader header_AutoidDefault; - header_AutoidDefault = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidDefault); - CompleteStructMemberSeq member_seq_AutoidDefault; - { - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidDefault); - - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_c; - MemberId member_id_c = 0x00088a4a; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_AutoidDefault.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_AutoidDefault); - CompleteStructMember member_c = TypeObjectUtils::build_complete_struct_member(common_c, detail_c); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_c); - } - { - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidDefault); - - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_o; - MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_o = "o"; - eprosima::fastcdr::optional member_ann_builtin_o; - ann_custom_AutoidDefault.reset(); - AppliedAnnotationSeq tmp_ann_custom_o; - eprosima::fastcdr::optional unit_o; - eprosima::fastcdr::optional min_o; - eprosima::fastcdr::optional max_o; - eprosima::fastcdr::optional hash_id_o; - if (unit_o.has_value() || min_o.has_value() || max_o.has_value() || hash_id_o.has_value()) - { - member_ann_builtin_o = TypeObjectUtils::build_applied_builtin_member_annotations(unit_o, min_o, max_o, hash_id_o); - } - if (!tmp_ann_custom_o.empty()) - { - ann_custom_AutoidDefault = tmp_ann_custom_o; - } - CompleteMemberDetail detail_o = TypeObjectUtils::build_complete_member_detail(name_o, member_ann_builtin_o, ann_custom_AutoidDefault); - CompleteStructMember member_o = TypeObjectUtils::build_complete_struct_member(common_o, detail_o); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_o); - } - { - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidDefault); - - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_AutoidDefault.reset(); - AppliedAnnotationSeq tmp_ann_custom_s; - eprosima::fastcdr::optional unit_s; - eprosima::fastcdr::optional min_s; - eprosima::fastcdr::optional max_s; - eprosima::fastcdr::optional hash_id_s; - hash_id_s = ""; - - if (unit_s.has_value() || min_s.has_value() || max_s.has_value() || hash_id_s.has_value()) - { - member_ann_builtin_s = TypeObjectUtils::build_applied_builtin_member_annotations(unit_s, min_s, max_s, hash_id_s); - } - if (!tmp_ann_custom_s.empty()) - { - ann_custom_AutoidDefault = tmp_ann_custom_s; - } - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_AutoidDefault); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_s); - } - { - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidDefault); - - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_AutoidDefault.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - hash_id_l = "long"; - - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_AutoidDefault = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_AutoidDefault); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_l); - } - { - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidDefault); - - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_ll; - MemberId member_id_ll = 0x00c0545b; - if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_ll = "ll"; - eprosima::fastcdr::optional member_ann_builtin_ll; - ann_custom_AutoidDefault.reset(); - CompleteMemberDetail detail_ll = TypeObjectUtils::build_complete_member_detail(name_ll, member_ann_builtin_ll, ann_custom_AutoidDefault); - CompleteStructMember member_ll = TypeObjectUtils::build_complete_struct_member(common_ll, detail_ll); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidDefault, member_ll); - } - CompleteStructType struct_type_AutoidDefault = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidDefault, header_AutoidDefault, member_seq_AutoidDefault); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidDefault, type_name_AutoidDefault.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidDefault already registered in TypeObjectRegistry for a different type."); - } - return_code_AutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidDefault", type_ids_AutoidDefault); - if (return_code_AutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidDefault: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DerivedAutoidDefault = return_code_AutoidDefault; - type_ids_DerivedAutoidDefault = type_ids_AutoidDefault; - } +::register_AutoidDefault_type_identifier(type_ids_DerivedAutoidDefault); } QualifiedTypeName type_name_DerivedAutoidDefault = "DerivedAutoidDefault"; eprosima::fastcdr::optional type_ann_builtin_DerivedAutoidDefault; @@ -3588,67 +1804,30 @@ void register_DerivedAutoidDefault_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidDefault Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_DerivedAutoidDefault; { - return_code_DerivedAutoidDefault = + TypeIdentifierPair type_ids_cd; + ReturnCode_t return_code_cd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_cd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_DerivedAutoidDefault); + "_char", type_ids_cd); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_cd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "cd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_cd; MemberId member_id_cd = 0x03ae6568; - if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidDefault.type_identifier2()); - } - else + bool common_cd_ec {false}; + CommonStructMember common_cd {TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_cd, common_cd_ec))}; + if (!common_cd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure cd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure cd member TypeIdentifier inconsistent."); return; } MemberName name_cd = "cd"; @@ -3659,62 +1838,26 @@ void register_DerivedAutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidDefault, member_cd); } { - return_code_DerivedAutoidDefault = + TypeIdentifierPair type_ids_od; + ReturnCode_t return_code_od {eprosima::fastdds::dds::RETCODE_OK}; + return_code_od = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DerivedAutoidDefault); + "_byte", type_ids_od); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_od) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "od Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_od; MemberId member_id_od = 0x00000065; - if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidDefault.type_identifier2()); - } - else + bool common_od_ec {false}; + CommonStructMember common_od {TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_od, common_od_ec))}; + if (!common_od_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure od member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure od member TypeIdentifier inconsistent."); return; } MemberName name_od = "od"; @@ -3738,62 +1881,26 @@ void register_DerivedAutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidDefault, member_od); } { - return_code_DerivedAutoidDefault = + TypeIdentifierPair type_ids_sd; + ReturnCode_t return_code_sd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_DerivedAutoidDefault); + "_int16_t", type_ids_sd); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_sd; MemberId member_id_sd = 0x0bf72662; - if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidDefault.type_identifier2()); - } - else + bool common_sd_ec {false}; + CommonStructMember common_sd {TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sd, common_sd_ec))}; + if (!common_sd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sd member TypeIdentifier inconsistent."); return; } MemberName name_sd = "sd"; @@ -3819,62 +1926,26 @@ void register_DerivedAutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidDefault, member_sd); } { - return_code_DerivedAutoidDefault = + TypeIdentifierPair type_ids_ld; + ReturnCode_t return_code_ld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_DerivedAutoidDefault); + "_int32_t", type_ids_ld); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ld; MemberId member_id_ld = 0x07f89ae6; - if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidDefault.type_identifier2()); - } - else + bool common_ld_ec {false}; + CommonStructMember common_ld {TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ld, common_ld_ec))}; + if (!common_ld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ld member TypeIdentifier inconsistent."); return; } MemberName name_ld = "ld"; @@ -3900,62 +1971,26 @@ void register_DerivedAutoidDefault_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidDefault, member_ld); } { - return_code_DerivedAutoidDefault = + TypeIdentifierPair type_ids_lld; + ReturnCode_t return_code_lld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_lld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_DerivedAutoidDefault); + "_int64_t", type_ids_lld); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_lld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "lld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_lld; MemberId member_id_lld = 0x00e90b05; - if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidDefault.type_identifier2()); - } - else + bool common_lld_ec {false}; + CommonStructMember common_lld {TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_lld, common_lld_ec))}; + if (!common_lld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure lld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure lld member TypeIdentifier inconsistent."); return; } MemberName name_lld = "lld"; @@ -3967,450 +2002,33 @@ void register_DerivedAutoidDefault_type_identifier( } CompleteStructType struct_type_DerivedAutoidDefault = TypeObjectUtils::build_complete_struct_type(struct_flags_DerivedAutoidDefault, header_DerivedAutoidDefault, member_seq_DerivedAutoidDefault); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidDefault, type_name_DerivedAutoidDefault.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidDefault, type_name_DerivedAutoidDefault.to_string(), type_ids_DerivedAutoidDefault)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidDefault already registered in TypeObjectRegistry for a different type."); } - return_code_DerivedAutoidDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DerivedAutoidDefault", type_ids_DerivedAutoidDefault); - if (return_code_DerivedAutoidDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedAutoidDefault: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_DerivedEmptyAutoidSequential_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_DerivedEmptyAutoidSequential) { + + ReturnCode_t return_code_DerivedEmptyAutoidSequential {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DerivedEmptyAutoidSequential = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "DerivedEmptyAutoidSequential", type_ids_DerivedEmptyAutoidSequential); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DerivedEmptyAutoidSequential) { - StructTypeFlag struct_flags_DerivedEmptyAutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DerivedEmptyAutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_DerivedEmptyAutoidSequential; - TypeIdentifierPair type_ids_DerivedEmptyAutoidSequential; return_code_DerivedEmptyAutoidSequential = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AutoidSequential", type_ids_DerivedEmptyAutoidSequential); if (return_code_DerivedEmptyAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_AutoidSequential; - TypeIdentifierPair type_ids_AutoidSequential; - QualifiedTypeName type_name_AutoidSequential = "AutoidSequential"; - eprosima::fastcdr::optional type_ann_builtin_AutoidSequential; - eprosima::fastcdr::optional ann_custom_AutoidSequential; - AppliedAnnotationSeq tmp_ann_custom_AutoidSequential; - eprosima::fastcdr::optional verbatim_AutoidSequential; - if (!tmp_ann_custom_AutoidSequential.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_AutoidSequential; - } - - CompleteTypeDetail detail_AutoidSequential = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AutoidSequential, ann_custom_AutoidSequential, type_name_AutoidSequential.to_string()); - CompleteStructHeader header_AutoidSequential; - header_AutoidSequential = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidSequential); - CompleteStructMemberSeq member_seq_AutoidSequential; - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_c; - MemberId member_id_c = 0x00000000; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_AutoidSequential.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_AutoidSequential); - CompleteStructMember member_c = TypeObjectUtils::build_complete_struct_member(common_c, detail_c); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_c); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_o; - MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_o = "o"; - eprosima::fastcdr::optional member_ann_builtin_o; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_o; - eprosima::fastcdr::optional unit_o; - eprosima::fastcdr::optional min_o; - eprosima::fastcdr::optional max_o; - eprosima::fastcdr::optional hash_id_o; - if (unit_o.has_value() || min_o.has_value() || max_o.has_value() || hash_id_o.has_value()) - { - member_ann_builtin_o = TypeObjectUtils::build_applied_builtin_member_annotations(unit_o, min_o, max_o, hash_id_o); - } - if (!tmp_ann_custom_o.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_o; - } - CompleteMemberDetail detail_o = TypeObjectUtils::build_complete_member_detail(name_o, member_ann_builtin_o, ann_custom_AutoidSequential); - CompleteStructMember member_o = TypeObjectUtils::build_complete_struct_member(common_o, detail_o); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_o); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_s; - eprosima::fastcdr::optional unit_s; - eprosima::fastcdr::optional min_s; - eprosima::fastcdr::optional max_s; - eprosima::fastcdr::optional hash_id_s; - hash_id_s = ""; - - if (unit_s.has_value() || min_s.has_value() || max_s.has_value() || hash_id_s.has_value()) - { - member_ann_builtin_s = TypeObjectUtils::build_applied_builtin_member_annotations(unit_s, min_s, max_s, hash_id_s); - } - if (!tmp_ann_custom_s.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_s; - } - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_AutoidSequential); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_s); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - hash_id_l = "long"; - - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_AutoidSequential); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_l); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_ll; - MemberId member_id_ll = 0x03645210; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_ll = "ll"; - eprosima::fastcdr::optional member_ann_builtin_ll; - ann_custom_AutoidSequential.reset(); - CompleteMemberDetail detail_ll = TypeObjectUtils::build_complete_member_detail(name_ll, member_ann_builtin_ll, ann_custom_AutoidSequential); - CompleteStructMember member_ll = TypeObjectUtils::build_complete_struct_member(common_ll, detail_ll); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_ll); - } - CompleteStructType struct_type_AutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidSequential, header_AutoidSequential, member_seq_AutoidSequential); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidSequential, type_name_AutoidSequential.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidSequential already registered in TypeObjectRegistry for a different type."); - } - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidSequential", type_ids_AutoidSequential); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DerivedEmptyAutoidSequential = return_code_AutoidSequential; - type_ids_DerivedEmptyAutoidSequential = type_ids_AutoidSequential; - } +::register_AutoidSequential_type_identifier(type_ids_DerivedEmptyAutoidSequential); } QualifiedTypeName type_name_DerivedEmptyAutoidSequential = "DerivedEmptyAutoidSequential"; eprosima::fastcdr::optional type_ann_builtin_DerivedEmptyAutoidSequential; @@ -4436,516 +2054,38 @@ void register_DerivedEmptyAutoidSequential_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedEmptyAutoidSequential Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_DerivedEmptyAutoidSequential; CompleteStructType struct_type_DerivedEmptyAutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_DerivedEmptyAutoidSequential, header_DerivedEmptyAutoidSequential, member_seq_DerivedEmptyAutoidSequential); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedEmptyAutoidSequential, type_name_DerivedEmptyAutoidSequential.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedEmptyAutoidSequential, type_name_DerivedEmptyAutoidSequential.to_string(), type_ids_DerivedEmptyAutoidSequential)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedEmptyAutoidSequential already registered in TypeObjectRegistry for a different type."); } - return_code_DerivedEmptyAutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DerivedEmptyAutoidSequential", type_ids_DerivedEmptyAutoidSequential); - if (return_code_DerivedEmptyAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedEmptyAutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_DerivedAutoidSequential_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_DerivedAutoidSequential) { + + ReturnCode_t return_code_DerivedAutoidSequential {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DerivedAutoidSequential = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "DerivedAutoidSequential", type_ids_DerivedAutoidSequential); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DerivedAutoidSequential) { - StructTypeFlag struct_flags_DerivedAutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DerivedAutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_DerivedAutoidSequential; - TypeIdentifierPair type_ids_DerivedAutoidSequential; return_code_DerivedAutoidSequential = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "DerivedEmptyAutoidSequential", type_ids_DerivedAutoidSequential); if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_DerivedEmptyAutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_DerivedEmptyAutoidSequential; - TypeIdentifierPair type_ids_DerivedEmptyAutoidSequential; - return_code_DerivedEmptyAutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidSequential", type_ids_DerivedEmptyAutoidSequential); - - if (return_code_DerivedEmptyAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_AutoidSequential = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_AutoidSequential; - TypeIdentifierPair type_ids_AutoidSequential; - QualifiedTypeName type_name_AutoidSequential = "AutoidSequential"; - eprosima::fastcdr::optional type_ann_builtin_AutoidSequential; - eprosima::fastcdr::optional ann_custom_AutoidSequential; - AppliedAnnotationSeq tmp_ann_custom_AutoidSequential; - eprosima::fastcdr::optional verbatim_AutoidSequential; - if (!tmp_ann_custom_AutoidSequential.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_AutoidSequential; - } - - CompleteTypeDetail detail_AutoidSequential = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AutoidSequential, ann_custom_AutoidSequential, type_name_AutoidSequential.to_string()); - CompleteStructHeader header_AutoidSequential; - header_AutoidSequential = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidSequential); - CompleteStructMemberSeq member_seq_AutoidSequential; - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_c; - MemberId member_id_c = 0x00000000; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_AutoidSequential.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_AutoidSequential); - CompleteStructMember member_c = TypeObjectUtils::build_complete_struct_member(common_c, detail_c); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_c); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_o; - MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_o = "o"; - eprosima::fastcdr::optional member_ann_builtin_o; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_o; - eprosima::fastcdr::optional unit_o; - eprosima::fastcdr::optional min_o; - eprosima::fastcdr::optional max_o; - eprosima::fastcdr::optional hash_id_o; - if (unit_o.has_value() || min_o.has_value() || max_o.has_value() || hash_id_o.has_value()) - { - member_ann_builtin_o = TypeObjectUtils::build_applied_builtin_member_annotations(unit_o, min_o, max_o, hash_id_o); - } - if (!tmp_ann_custom_o.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_o; - } - CompleteMemberDetail detail_o = TypeObjectUtils::build_complete_member_detail(name_o, member_ann_builtin_o, ann_custom_AutoidSequential); - CompleteStructMember member_o = TypeObjectUtils::build_complete_struct_member(common_o, detail_o); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_o); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_s; - eprosima::fastcdr::optional unit_s; - eprosima::fastcdr::optional min_s; - eprosima::fastcdr::optional max_s; - eprosima::fastcdr::optional hash_id_s; - hash_id_s = ""; - - if (unit_s.has_value() || min_s.has_value() || max_s.has_value() || hash_id_s.has_value()) - { - member_ann_builtin_s = TypeObjectUtils::build_applied_builtin_member_annotations(unit_s, min_s, max_s, hash_id_s); - } - if (!tmp_ann_custom_s.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_s; - } - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_AutoidSequential); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_s); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_AutoidSequential.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - hash_id_l = "long"; - - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_AutoidSequential = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_AutoidSequential); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_l); - } - { - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidSequential); - - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_ll; - MemberId member_id_ll = 0x03645210; - if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidSequential.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_ll = "ll"; - eprosima::fastcdr::optional member_ann_builtin_ll; - ann_custom_AutoidSequential.reset(); - CompleteMemberDetail detail_ll = TypeObjectUtils::build_complete_member_detail(name_ll, member_ann_builtin_ll, ann_custom_AutoidSequential); - CompleteStructMember member_ll = TypeObjectUtils::build_complete_struct_member(common_ll, detail_ll); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidSequential, member_ll); - } - CompleteStructType struct_type_AutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidSequential, header_AutoidSequential, member_seq_AutoidSequential); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidSequential, type_name_AutoidSequential.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidSequential already registered in TypeObjectRegistry for a different type."); - } - return_code_AutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidSequential", type_ids_AutoidSequential); - if (return_code_AutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DerivedEmptyAutoidSequential = return_code_AutoidSequential; - type_ids_DerivedEmptyAutoidSequential = type_ids_AutoidSequential; - } - } - QualifiedTypeName type_name_DerivedEmptyAutoidSequential = "DerivedEmptyAutoidSequential"; - eprosima::fastcdr::optional type_ann_builtin_DerivedEmptyAutoidSequential; - eprosima::fastcdr::optional ann_custom_DerivedEmptyAutoidSequential; - AppliedAnnotationSeq tmp_ann_custom_DerivedEmptyAutoidSequential; - eprosima::fastcdr::optional verbatim_DerivedEmptyAutoidSequential; - if (!tmp_ann_custom_DerivedEmptyAutoidSequential.empty()) - { - ann_custom_DerivedEmptyAutoidSequential = tmp_ann_custom_DerivedEmptyAutoidSequential; - } - - CompleteTypeDetail detail_DerivedEmptyAutoidSequential = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_DerivedEmptyAutoidSequential, ann_custom_DerivedEmptyAutoidSequential, type_name_DerivedEmptyAutoidSequential.to_string()); - CompleteStructHeader header_DerivedEmptyAutoidSequential; - if (EK_COMPLETE == type_ids_DerivedEmptyAutoidSequential.type_identifier1()._d()) - { - header_DerivedEmptyAutoidSequential = TypeObjectUtils::build_complete_struct_header(type_ids_DerivedEmptyAutoidSequential.type_identifier1(), detail_DerivedEmptyAutoidSequential); - } - else if (EK_COMPLETE == type_ids_DerivedEmptyAutoidSequential.type_identifier2()._d()) - { - header_DerivedEmptyAutoidSequential = TypeObjectUtils::build_complete_struct_header(type_ids_DerivedEmptyAutoidSequential.type_identifier2(), detail_DerivedEmptyAutoidSequential); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedEmptyAutoidSequential Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); - return; - } - CompleteStructMemberSeq member_seq_DerivedEmptyAutoidSequential; - CompleteStructType struct_type_DerivedEmptyAutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_DerivedEmptyAutoidSequential, header_DerivedEmptyAutoidSequential, member_seq_DerivedEmptyAutoidSequential); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedEmptyAutoidSequential, type_name_DerivedEmptyAutoidSequential.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedEmptyAutoidSequential already registered in TypeObjectRegistry for a different type."); - } - return_code_DerivedEmptyAutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DerivedEmptyAutoidSequential", type_ids_DerivedEmptyAutoidSequential); - if (return_code_DerivedEmptyAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedEmptyAutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DerivedAutoidSequential = return_code_DerivedEmptyAutoidSequential; - type_ids_DerivedAutoidSequential = type_ids_DerivedEmptyAutoidSequential; - } +::register_DerivedEmptyAutoidSequential_type_identifier(type_ids_DerivedAutoidSequential); } QualifiedTypeName type_name_DerivedAutoidSequential = "DerivedAutoidSequential"; eprosima::fastcdr::optional type_ann_builtin_DerivedAutoidSequential; @@ -4971,67 +2111,30 @@ void register_DerivedAutoidSequential_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidSequential Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_DerivedAutoidSequential; { - return_code_DerivedAutoidSequential = + TypeIdentifierPair type_ids_cd; + ReturnCode_t return_code_cd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_cd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_DerivedAutoidSequential); + "_char", type_ids_cd); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_cd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "cd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_cd; MemberId member_id_cd = 0x03645211; - if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidSequential.type_identifier2()); - } - else + bool common_cd_ec {false}; + CommonStructMember common_cd {TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_cd, common_cd_ec))}; + if (!common_cd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure cd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure cd member TypeIdentifier inconsistent."); return; } MemberName name_cd = "cd"; @@ -5042,62 +2145,26 @@ void register_DerivedAutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidSequential, member_cd); } { - return_code_DerivedAutoidSequential = + TypeIdentifierPair type_ids_od; + ReturnCode_t return_code_od {eprosima::fastdds::dds::RETCODE_OK}; + return_code_od = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DerivedAutoidSequential); + "_byte", type_ids_od); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_od) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "od Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_od; MemberId member_id_od = 0x00000065; - if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidSequential.type_identifier2()); - } - else + bool common_od_ec {false}; + CommonStructMember common_od {TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_od, common_od_ec))}; + if (!common_od_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure od member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure od member TypeIdentifier inconsistent."); return; } MemberName name_od = "od"; @@ -5121,62 +2188,26 @@ void register_DerivedAutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidSequential, member_od); } { - return_code_DerivedAutoidSequential = + TypeIdentifierPair type_ids_sd; + ReturnCode_t return_code_sd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_DerivedAutoidSequential); + "_int16_t", type_ids_sd); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_sd; MemberId member_id_sd = 0x0bf72662; - if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidSequential.type_identifier2()); - } - else + bool common_sd_ec {false}; + CommonStructMember common_sd {TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sd, common_sd_ec))}; + if (!common_sd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sd member TypeIdentifier inconsistent."); return; } MemberName name_sd = "sd"; @@ -5202,62 +2233,26 @@ void register_DerivedAutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidSequential, member_sd); } { - return_code_DerivedAutoidSequential = + TypeIdentifierPair type_ids_ld; + ReturnCode_t return_code_ld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_DerivedAutoidSequential); + "_int32_t", type_ids_ld); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ld; MemberId member_id_ld = 0x07f89ae6; - if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidSequential.type_identifier2()); - } - else + bool common_ld_ec {false}; + CommonStructMember common_ld {TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ld, common_ld_ec))}; + if (!common_ld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ld member TypeIdentifier inconsistent."); return; } MemberName name_ld = "ld"; @@ -5283,62 +2278,26 @@ void register_DerivedAutoidSequential_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidSequential, member_ld); } { - return_code_DerivedAutoidSequential = + TypeIdentifierPair type_ids_lld; + ReturnCode_t return_code_lld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_lld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_DerivedAutoidSequential); + "_int64_t", type_ids_lld); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_lld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "lld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_lld; MemberId member_id_lld = 0x07f89ae7; - if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidSequential.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidSequential.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidSequential.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidSequential.type_identifier2()); - } - else + bool common_lld_ec {false}; + CommonStructMember common_lld {TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_lld, common_lld_ec))}; + if (!common_lld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure lld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure lld member TypeIdentifier inconsistent."); return; } MemberName name_lld = "lld"; @@ -5350,450 +2309,33 @@ void register_DerivedAutoidSequential_type_identifier( } CompleteStructType struct_type_DerivedAutoidSequential = TypeObjectUtils::build_complete_struct_type(struct_flags_DerivedAutoidSequential, header_DerivedAutoidSequential, member_seq_DerivedAutoidSequential); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidSequential, type_name_DerivedAutoidSequential.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidSequential, type_name_DerivedAutoidSequential.to_string(), type_ids_DerivedAutoidSequential)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidSequential already registered in TypeObjectRegistry for a different type."); } - return_code_DerivedAutoidSequential = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DerivedAutoidSequential", type_ids_DerivedAutoidSequential); - if (return_code_DerivedAutoidSequential != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedAutoidSequential: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_DerivedAutoidHash_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_DerivedAutoidHash) { + + ReturnCode_t return_code_DerivedAutoidHash {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DerivedAutoidHash = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "DerivedAutoidHash", type_ids_DerivedAutoidHash); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DerivedAutoidHash) { - StructTypeFlag struct_flags_DerivedAutoidHash = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DerivedAutoidHash = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, true); - ReturnCode_t return_code_DerivedAutoidHash; - TypeIdentifierPair type_ids_DerivedAutoidHash; return_code_DerivedAutoidHash = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "AutoidHash", type_ids_DerivedAutoidHash); if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_AutoidHash = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, true); - ReturnCode_t return_code_AutoidHash; - TypeIdentifierPair type_ids_AutoidHash; - QualifiedTypeName type_name_AutoidHash = "AutoidHash"; - eprosima::fastcdr::optional type_ann_builtin_AutoidHash; - eprosima::fastcdr::optional ann_custom_AutoidHash; - AppliedAnnotationSeq tmp_ann_custom_AutoidHash; - eprosima::fastcdr::optional verbatim_AutoidHash; - if (!tmp_ann_custom_AutoidHash.empty()) - { - ann_custom_AutoidHash = tmp_ann_custom_AutoidHash; - } - - CompleteTypeDetail detail_AutoidHash = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_AutoidHash, ann_custom_AutoidHash, type_name_AutoidHash.to_string()); - CompleteStructHeader header_AutoidHash; - header_AutoidHash = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AutoidHash); - CompleteStructMemberSeq member_seq_AutoidHash; - { - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_AutoidHash); - - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_c; - MemberId member_id_c = 0x00088a4a; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_AutoidHash.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_AutoidHash.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_AutoidHash); - CompleteStructMember member_c = TypeObjectUtils::build_complete_struct_member(common_c, detail_c); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_c); - } - { - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_AutoidHash); - - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "o Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_o = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_o; - MemberId member_id_o = 0x00000064; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_struct_member(member_id_o, member_flags_o, type_ids_AutoidHash.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_o = "o"; - eprosima::fastcdr::optional member_ann_builtin_o; - ann_custom_AutoidHash.reset(); - AppliedAnnotationSeq tmp_ann_custom_o; - eprosima::fastcdr::optional unit_o; - eprosima::fastcdr::optional min_o; - eprosima::fastcdr::optional max_o; - eprosima::fastcdr::optional hash_id_o; - if (unit_o.has_value() || min_o.has_value() || max_o.has_value() || hash_id_o.has_value()) - { - member_ann_builtin_o = TypeObjectUtils::build_applied_builtin_member_annotations(unit_o, min_o, max_o, hash_id_o); - } - if (!tmp_ann_custom_o.empty()) - { - ann_custom_AutoidHash = tmp_ann_custom_o; - } - CompleteMemberDetail detail_o = TypeObjectUtils::build_complete_member_detail(name_o, member_ann_builtin_o, ann_custom_AutoidHash); - CompleteStructMember member_o = TypeObjectUtils::build_complete_struct_member(common_o, detail_o); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_o); - } - { - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_AutoidHash); - - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x0cc0c703; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_AutoidHash.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_AutoidHash.reset(); - AppliedAnnotationSeq tmp_ann_custom_s; - eprosima::fastcdr::optional unit_s; - eprosima::fastcdr::optional min_s; - eprosima::fastcdr::optional max_s; - eprosima::fastcdr::optional hash_id_s; - hash_id_s = ""; - - if (unit_s.has_value() || min_s.has_value() || max_s.has_value() || hash_id_s.has_value()) - { - member_ann_builtin_s = TypeObjectUtils::build_applied_builtin_member_annotations(unit_s, min_s, max_s, hash_id_s); - } - if (!tmp_ann_custom_s.empty()) - { - ann_custom_AutoidHash = tmp_ann_custom_s; - } - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_AutoidHash); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_s); - } - { - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_AutoidHash); - - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x0364520f; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_AutoidHash.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_AutoidHash.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - hash_id_l = "long"; - - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_AutoidHash = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_AutoidHash); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_l); - } - { - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_AutoidHash); - - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ll Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_ll = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_ll; - MemberId member_id_ll = 0x00c0545b; - if (EK_COMPLETE == type_ids_AutoidHash.type_identifier1()._d() || TK_NONE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ll = TypeObjectUtils::build_common_struct_member(member_id_ll, member_flags_ll, type_ids_AutoidHash.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ll member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_ll = "ll"; - eprosima::fastcdr::optional member_ann_builtin_ll; - ann_custom_AutoidHash.reset(); - CompleteMemberDetail detail_ll = TypeObjectUtils::build_complete_member_detail(name_ll, member_ann_builtin_ll, ann_custom_AutoidHash); - CompleteStructMember member_ll = TypeObjectUtils::build_complete_struct_member(common_ll, detail_ll); - TypeObjectUtils::add_complete_struct_member(member_seq_AutoidHash, member_ll); - } - CompleteStructType struct_type_AutoidHash = TypeObjectUtils::build_complete_struct_type(struct_flags_AutoidHash, header_AutoidHash, member_seq_AutoidHash); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AutoidHash, type_name_AutoidHash.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidHash already registered in TypeObjectRegistry for a different type."); - } - return_code_AutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AutoidHash", type_ids_AutoidHash); - if (return_code_AutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AutoidHash: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_DerivedAutoidHash = return_code_AutoidHash; - type_ids_DerivedAutoidHash = type_ids_AutoidHash; - } +::register_AutoidHash_type_identifier(type_ids_DerivedAutoidHash); } QualifiedTypeName type_name_DerivedAutoidHash = "DerivedAutoidHash"; eprosima::fastcdr::optional type_ann_builtin_DerivedAutoidHash; @@ -5819,67 +2361,30 @@ void register_DerivedAutoidHash_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidHash Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_DerivedAutoidHash; { - return_code_DerivedAutoidHash = + TypeIdentifierPair type_ids_cd; + ReturnCode_t return_code_cd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_cd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_DerivedAutoidHash); + "_char", type_ids_cd); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_cd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "cd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_cd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_cd; MemberId member_id_cd = 0x03ae6568; - if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_cd = TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, type_ids_DerivedAutoidHash.type_identifier2()); - } - else + bool common_cd_ec {false}; + CommonStructMember common_cd {TypeObjectUtils::build_common_struct_member(member_id_cd, member_flags_cd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_cd, common_cd_ec))}; + if (!common_cd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure cd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure cd member TypeIdentifier inconsistent."); return; } MemberName name_cd = "cd"; @@ -5890,62 +2395,26 @@ void register_DerivedAutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidHash, member_cd); } { - return_code_DerivedAutoidHash = + TypeIdentifierPair type_ids_od; + ReturnCode_t return_code_od {eprosima::fastdds::dds::RETCODE_OK}; + return_code_od = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_DerivedAutoidHash); + "_byte", type_ids_od); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_od) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "od Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_od = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_od; MemberId member_id_od = 0x00000065; - if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_od = TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, type_ids_DerivedAutoidHash.type_identifier2()); - } - else + bool common_od_ec {false}; + CommonStructMember common_od {TypeObjectUtils::build_common_struct_member(member_id_od, member_flags_od, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_od, common_od_ec))}; + if (!common_od_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure od member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure od member TypeIdentifier inconsistent."); return; } MemberName name_od = "od"; @@ -5969,62 +2438,26 @@ void register_DerivedAutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidHash, member_od); } { - return_code_DerivedAutoidHash = + TypeIdentifierPair type_ids_sd; + ReturnCode_t return_code_sd {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sd = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_DerivedAutoidHash); + "_int16_t", type_ids_sd); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sd) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sd Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_sd = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_sd; MemberId member_id_sd = 0x0bf72662; - if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_sd = TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, type_ids_DerivedAutoidHash.type_identifier2()); - } - else + bool common_sd_ec {false}; + CommonStructMember common_sd {TypeObjectUtils::build_common_struct_member(member_id_sd, member_flags_sd, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_sd, common_sd_ec))}; + if (!common_sd_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure sd member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure sd member TypeIdentifier inconsistent."); return; } MemberName name_sd = "sd"; @@ -6050,62 +2483,26 @@ void register_DerivedAutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidHash, member_sd); } { - return_code_DerivedAutoidHash = + TypeIdentifierPair type_ids_ld; + ReturnCode_t return_code_ld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_DerivedAutoidHash); + "_int32_t", type_ids_ld); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_ld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_ld; MemberId member_id_ld = 0x07f89ae6; - if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_ld = TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, type_ids_DerivedAutoidHash.type_identifier2()); - } - else + bool common_ld_ec {false}; + CommonStructMember common_ld {TypeObjectUtils::build_common_struct_member(member_id_ld, member_flags_ld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_ld, common_ld_ec))}; + if (!common_ld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure ld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure ld member TypeIdentifier inconsistent."); return; } MemberName name_ld = "ld"; @@ -6131,62 +2528,26 @@ void register_DerivedAutoidHash_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_DerivedAutoidHash, member_ld); } { - return_code_DerivedAutoidHash = + TypeIdentifierPair type_ids_lld; + ReturnCode_t return_code_lld {eprosima::fastdds::dds::RETCODE_OK}; + return_code_lld = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_DerivedAutoidHash); + "_int64_t", type_ids_lld); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_lld) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "lld Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_lld = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_lld; MemberId member_id_lld = 0x00e90b05; - if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1()._d() || TK_NONE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidHash.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DerivedAutoidHash.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DerivedAutoidHash.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_lld = TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, type_ids_DerivedAutoidHash.type_identifier2()); - } - else + bool common_lld_ec {false}; + CommonStructMember common_lld {TypeObjectUtils::build_common_struct_member(member_id_lld, member_flags_lld, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_lld, common_lld_ec))}; + if (!common_lld_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure lld member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure lld member TypeIdentifier inconsistent."); return; } MemberName name_lld = "lld"; @@ -6198,21 +2559,11 @@ void register_DerivedAutoidHash_type_identifier( } CompleteStructType struct_type_DerivedAutoidHash = TypeObjectUtils::build_complete_struct_type(struct_flags_DerivedAutoidHash, header_DerivedAutoidHash, member_seq_DerivedAutoidHash); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidHash, type_name_DerivedAutoidHash.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DerivedAutoidHash, type_name_DerivedAutoidHash.to_string(), type_ids_DerivedAutoidHash)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DerivedAutoidHash already registered in TypeObjectRegistry for a different type."); } - return_code_DerivedAutoidHash = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DerivedAutoidHash", type_ids_DerivedAutoidHash); - if (return_code_DerivedAutoidHash != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DerivedAutoidHash: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/member_idTypeObjectSupport.hpp b/test/dds-types-test/member_idTypeObjectSupport.hpp index 5ae8cd86737..e2ab0b1b632 100644 --- a/test/dds-types-test/member_idTypeObjectSupport.hpp +++ b/test/dds-types-test/member_idTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_member_id_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_member_id_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixId_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FixHexId related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +60,7 @@ eProsima_user_DllExport void register_FixId_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixHexId_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FixHashidDefault related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -77,7 +72,7 @@ eProsima_user_DllExport void register_FixHexId_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixHashidDefault_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FixHashid related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -89,7 +84,7 @@ eProsima_user_DllExport void register_FixHashidDefault_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixHashid_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FixMix related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -101,7 +96,7 @@ eProsima_user_DllExport void register_FixHashid_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FixMix_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AutoidDefault related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -113,7 +108,7 @@ eProsima_user_DllExport void register_FixMix_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AutoidDefault_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AutoidSequential related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -125,7 +120,7 @@ eProsima_user_DllExport void register_AutoidDefault_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AutoidSequential_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register AutoidHash related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -137,7 +132,7 @@ eProsima_user_DllExport void register_AutoidSequential_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AutoidHash_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register DerivedAutoidDefault related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -149,7 +144,7 @@ eProsima_user_DllExport void register_AutoidHash_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_DerivedAutoidDefault_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register DerivedEmptyAutoidSequential related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -161,7 +156,7 @@ eProsima_user_DllExport void register_DerivedAutoidDefault_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_DerivedEmptyAutoidSequential_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register DerivedAutoidSequential related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -173,7 +168,7 @@ eProsima_user_DllExport void register_DerivedEmptyAutoidSequential_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_DerivedAutoidSequential_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register DerivedAutoidHash related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -185,7 +180,7 @@ eProsima_user_DllExport void register_DerivedAutoidSequential_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_DerivedAutoidHash_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/mutablePubSubTypes.cxx b/test/dds-types-test/mutablePubSubTypes.cxx index 279d0d985a4..28855de83b9 100644 --- a/test/dds-types-test/mutablePubSubTypes.cxx +++ b/test/dds-types-test/mutablePubSubTypes.cxx @@ -219,9 +219,9 @@ bool MutableShortStructPubSubType::getKey( return true; } -void MutableShortStructPubSubType::register_type_object_representation() const +void MutableShortStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableShortStruct_type_identifier(type_identifiers_); } MutableUShortStructPubSubType::MutableUShortStructPubSubType() @@ -412,9 +412,9 @@ bool MutableUShortStructPubSubType::getKey( return true; } -void MutableUShortStructPubSubType::register_type_object_representation() const +void MutableUShortStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableUShortStruct_type_identifier(type_identifiers_); } MutableLongStructPubSubType::MutableLongStructPubSubType() @@ -605,9 +605,9 @@ bool MutableLongStructPubSubType::getKey( return true; } -void MutableLongStructPubSubType::register_type_object_representation() const +void MutableLongStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableLongStruct_type_identifier(type_identifiers_); } MutableULongStructPubSubType::MutableULongStructPubSubType() @@ -798,9 +798,9 @@ bool MutableULongStructPubSubType::getKey( return true; } -void MutableULongStructPubSubType::register_type_object_representation() const +void MutableULongStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableULongStruct_type_identifier(type_identifiers_); } MutableLongLongStructPubSubType::MutableLongLongStructPubSubType() @@ -991,9 +991,9 @@ bool MutableLongLongStructPubSubType::getKey( return true; } -void MutableLongLongStructPubSubType::register_type_object_representation() const +void MutableLongLongStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableLongLongStruct_type_identifier(type_identifiers_); } MutableULongLongStructPubSubType::MutableULongLongStructPubSubType() @@ -1184,9 +1184,9 @@ bool MutableULongLongStructPubSubType::getKey( return true; } -void MutableULongLongStructPubSubType::register_type_object_representation() const +void MutableULongLongStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableULongLongStruct_type_identifier(type_identifiers_); } MutableFloatStructPubSubType::MutableFloatStructPubSubType() @@ -1377,9 +1377,9 @@ bool MutableFloatStructPubSubType::getKey( return true; } -void MutableFloatStructPubSubType::register_type_object_representation() const +void MutableFloatStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableFloatStruct_type_identifier(type_identifiers_); } MutableDoubleStructPubSubType::MutableDoubleStructPubSubType() @@ -1570,9 +1570,9 @@ bool MutableDoubleStructPubSubType::getKey( return true; } -void MutableDoubleStructPubSubType::register_type_object_representation() const +void MutableDoubleStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableDoubleStruct_type_identifier(type_identifiers_); } MutableLongDoubleStructPubSubType::MutableLongDoubleStructPubSubType() @@ -1763,9 +1763,9 @@ bool MutableLongDoubleStructPubSubType::getKey( return true; } -void MutableLongDoubleStructPubSubType::register_type_object_representation() const +void MutableLongDoubleStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableLongDoubleStruct_type_identifier(type_identifiers_); } MutableBooleanStructPubSubType::MutableBooleanStructPubSubType() @@ -1956,9 +1956,9 @@ bool MutableBooleanStructPubSubType::getKey( return true; } -void MutableBooleanStructPubSubType::register_type_object_representation() const +void MutableBooleanStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableBooleanStruct_type_identifier(type_identifiers_); } MutableOctetStructPubSubType::MutableOctetStructPubSubType() @@ -2149,9 +2149,9 @@ bool MutableOctetStructPubSubType::getKey( return true; } -void MutableOctetStructPubSubType::register_type_object_representation() const +void MutableOctetStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableOctetStruct_type_identifier(type_identifiers_); } MutableCharStructPubSubType::MutableCharStructPubSubType() @@ -2342,9 +2342,9 @@ bool MutableCharStructPubSubType::getKey( return true; } -void MutableCharStructPubSubType::register_type_object_representation() const +void MutableCharStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableCharStruct_type_identifier(type_identifiers_); } MutableWCharStructPubSubType::MutableWCharStructPubSubType() @@ -2535,9 +2535,9 @@ bool MutableWCharStructPubSubType::getKey( return true; } -void MutableWCharStructPubSubType::register_type_object_representation() const +void MutableWCharStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableWCharStruct_type_identifier(type_identifiers_); } MutableUnionStructPubSubType::MutableUnionStructPubSubType() @@ -2728,9 +2728,9 @@ bool MutableUnionStructPubSubType::getKey( return true; } -void MutableUnionStructPubSubType::register_type_object_representation() const +void MutableUnionStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableUnionStruct_type_identifier(type_identifiers_); } MutableEmptyStructPubSubType::MutableEmptyStructPubSubType() @@ -2921,9 +2921,9 @@ bool MutableEmptyStructPubSubType::getKey( return true; } -void MutableEmptyStructPubSubType::register_type_object_representation() const +void MutableEmptyStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableEmptyStruct_type_identifier(type_identifiers_); } MutableEmptyInheritanceStructPubSubType::MutableEmptyInheritanceStructPubSubType() @@ -3114,9 +3114,9 @@ bool MutableEmptyInheritanceStructPubSubType::getKey( return true; } -void MutableEmptyInheritanceStructPubSubType::register_type_object_representation() const +void MutableEmptyInheritanceStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableEmptyInheritanceStruct_type_identifier(type_identifiers_); } MutableInheritanceStructPubSubType::MutableInheritanceStructPubSubType() @@ -3307,9 +3307,9 @@ bool MutableInheritanceStructPubSubType::getKey( return true; } -void MutableInheritanceStructPubSubType::register_type_object_representation() const +void MutableInheritanceStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableInheritanceStruct_type_identifier(type_identifiers_); } MutableInheritanceEmptyStructPubSubType::MutableInheritanceEmptyStructPubSubType() @@ -3500,9 +3500,9 @@ bool MutableInheritanceEmptyStructPubSubType::getKey( return true; } -void MutableInheritanceEmptyStructPubSubType::register_type_object_representation() const +void MutableInheritanceEmptyStructPubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableInheritanceEmptyStruct_type_identifier(type_identifiers_); } MutableExtensibilityInheritancePubSubType::MutableExtensibilityInheritancePubSubType() @@ -3693,9 +3693,9 @@ bool MutableExtensibilityInheritancePubSubType::getKey( return true; } -void MutableExtensibilityInheritancePubSubType::register_type_object_representation() const +void MutableExtensibilityInheritancePubSubType::register_type_object_representation() { - register_mutable_type_objects(); + register_MutableExtensibilityInheritance_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/mutablePubSubTypes.h b/test/dds-types-test/mutablePubSubTypes.h index a65751da51e..70760bd0566 100644 --- a/test/dds-types-test/mutablePubSubTypes.h +++ b/test/dds-types-test/mutablePubSubTypes.h @@ -90,7 +90,7 @@ class MutableShortStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class MutableUShortStructPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class MutableLongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class MutableULongStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class MutableLongLongStructPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class MutableULongLongStructPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class MutableFloatStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class MutableDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class MutableLongDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class MutableBooleanStructPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class MutableOctetStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class MutableCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class MutableWCharStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class MutableUnionStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class MutableEmptyStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class MutableEmptyInheritanceStructPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class MutableInheritanceStructPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class MutableInheritanceEmptyStructPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class MutableExtensibilityInheritancePubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/mutableTypeObjectSupport.cxx b/test/dds-types-test/mutableTypeObjectSupport.cxx index 6747769ab24..de4c1b674c8 100644 --- a/test/dds-types-test/mutableTypeObjectSupport.cxx +++ b/test/dds-types-test/mutableTypeObjectSupport.cxx @@ -39,68 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_mutable_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_MutableShortStruct_type_identifier(type_id); - - register_MutableUShortStruct_type_identifier(type_id); - - register_MutableLongStruct_type_identifier(type_id); - - register_MutableULongStruct_type_identifier(type_id); - - register_MutableLongLongStruct_type_identifier(type_id); - - register_MutableULongLongStruct_type_identifier(type_id); - - register_MutableFloatStruct_type_identifier(type_id); - - register_MutableDoubleStruct_type_identifier(type_id); - - register_MutableLongDoubleStruct_type_identifier(type_id); - - register_MutableBooleanStruct_type_identifier(type_id); - - register_MutableOctetStruct_type_identifier(type_id); - - register_MutableCharStruct_type_identifier(type_id); - - register_MutableWCharStruct_type_identifier(type_id); - - register_MutableUnionStruct_type_identifier(type_id); - - register_MutableEmptyStruct_type_identifier(type_id); - - register_MutableEmptyInheritanceStruct_type_identifier(type_id); - - register_MutableInheritanceStruct_type_identifier(type_id); - - register_MutableInheritanceEmptyStruct_type_identifier(type_id); - - register_MutableExtensibilityInheritance_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableShortStruct) { + + ReturnCode_t return_code_MutableShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableShortStruct", type_ids_MutableShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableShortStruct) { StructTypeFlag struct_flags_MutableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableShortStruct; - TypeIdentifierPair type_ids_MutableShortStruct; QualifiedTypeName type_name_MutableShortStruct = "MutableShortStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableShortStruct; eprosima::fastcdr::optional ann_custom_MutableShortStruct; @@ -116,62 +67,26 @@ void register_MutableShortStruct_type_identifier( header_MutableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableShortStruct); CompleteStructMemberSeq member_seq_MutableShortStruct; { - return_code_MutableShortStruct = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MutableShortStruct); + "_int16_t", type_ids_var_short); - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -183,32 +98,26 @@ void register_MutableShortStruct_type_identifier( } CompleteStructType struct_type_MutableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableShortStruct, header_MutableShortStruct, member_seq_MutableShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableShortStruct, type_name_MutableShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableShortStruct, type_name_MutableShortStruct.to_string(), type_ids_MutableShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableShortStruct", type_ids_MutableShortStruct); - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableUShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableUShortStruct) { + + ReturnCode_t return_code_MutableUShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableUShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableUShortStruct", type_ids_MutableUShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableUShortStruct) { StructTypeFlag struct_flags_MutableUShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableUShortStruct; - TypeIdentifierPair type_ids_MutableUShortStruct; QualifiedTypeName type_name_MutableUShortStruct = "MutableUShortStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableUShortStruct; eprosima::fastcdr::optional ann_custom_MutableUShortStruct; @@ -224,62 +133,26 @@ void register_MutableUShortStruct_type_identifier( header_MutableUShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableUShortStruct); CompleteStructMemberSeq member_seq_MutableUShortStruct; { - return_code_MutableUShortStruct = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_MutableUShortStruct); + "_uint16_t", type_ids_var_ushort); - if (return_code_MutableUShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableUShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableUShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_MutableUShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableUShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableUShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_MutableUShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -291,32 +164,26 @@ void register_MutableUShortStruct_type_identifier( } CompleteStructType struct_type_MutableUShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableUShortStruct, header_MutableUShortStruct, member_seq_MutableUShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableUShortStruct, type_name_MutableUShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableUShortStruct, type_name_MutableUShortStruct.to_string(), type_ids_MutableUShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableUShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableUShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableUShortStruct", type_ids_MutableUShortStruct); - if (return_code_MutableUShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableUShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableLongStruct) { + + ReturnCode_t return_code_MutableLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableLongStruct", type_ids_MutableLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableLongStruct) { StructTypeFlag struct_flags_MutableLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableLongStruct; - TypeIdentifierPair type_ids_MutableLongStruct; QualifiedTypeName type_name_MutableLongStruct = "MutableLongStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableLongStruct; eprosima::fastcdr::optional ann_custom_MutableLongStruct; @@ -332,62 +199,26 @@ void register_MutableLongStruct_type_identifier( header_MutableLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableLongStruct); CompleteStructMemberSeq member_seq_MutableLongStruct; { - return_code_MutableLongStruct = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MutableLongStruct); + "_int32_t", type_ids_var_long); - if (return_code_MutableLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_MutableLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_MutableLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -399,32 +230,26 @@ void register_MutableLongStruct_type_identifier( } CompleteStructType struct_type_MutableLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableLongStruct, header_MutableLongStruct, member_seq_MutableLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongStruct, type_name_MutableLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongStruct, type_name_MutableLongStruct.to_string(), type_ids_MutableLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableLongStruct", type_ids_MutableLongStruct); - if (return_code_MutableLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableULongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableULongStruct) { + + ReturnCode_t return_code_MutableULongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableULongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableULongStruct", type_ids_MutableULongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableULongStruct) { StructTypeFlag struct_flags_MutableULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableULongStruct; - TypeIdentifierPair type_ids_MutableULongStruct; QualifiedTypeName type_name_MutableULongStruct = "MutableULongStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableULongStruct; eprosima::fastcdr::optional ann_custom_MutableULongStruct; @@ -440,62 +265,26 @@ void register_MutableULongStruct_type_identifier( header_MutableULongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableULongStruct); CompleteStructMemberSeq member_seq_MutableULongStruct; { - return_code_MutableULongStruct = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_MutableULongStruct); + "_uint32_t", type_ids_var_ulong); - if (return_code_MutableULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_MutableULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_MutableULongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -507,32 +296,26 @@ void register_MutableULongStruct_type_identifier( } CompleteStructType struct_type_MutableULongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableULongStruct, header_MutableULongStruct, member_seq_MutableULongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableULongStruct, type_name_MutableULongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableULongStruct, type_name_MutableULongStruct.to_string(), type_ids_MutableULongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableULongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableULongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableULongStruct", type_ids_MutableULongStruct); - if (return_code_MutableULongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableULongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableLongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableLongLongStruct) { + + ReturnCode_t return_code_MutableLongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableLongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableLongLongStruct", type_ids_MutableLongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableLongLongStruct) { StructTypeFlag struct_flags_MutableLongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableLongLongStruct; - TypeIdentifierPair type_ids_MutableLongLongStruct; QualifiedTypeName type_name_MutableLongLongStruct = "MutableLongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableLongLongStruct; eprosima::fastcdr::optional ann_custom_MutableLongLongStruct; @@ -548,62 +331,26 @@ void register_MutableLongLongStruct_type_identifier( header_MutableLongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableLongLongStruct); CompleteStructMemberSeq member_seq_MutableLongLongStruct; { - return_code_MutableLongLongStruct = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_MutableLongLongStruct); + "_int64_t", type_ids_var_longlong); - if (return_code_MutableLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_MutableLongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_MutableLongLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -615,32 +362,26 @@ void register_MutableLongLongStruct_type_identifier( } CompleteStructType struct_type_MutableLongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableLongLongStruct, header_MutableLongLongStruct, member_seq_MutableLongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongLongStruct, type_name_MutableLongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongLongStruct, type_name_MutableLongLongStruct.to_string(), type_ids_MutableLongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableLongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableLongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableLongLongStruct", type_ids_MutableLongLongStruct); - if (return_code_MutableLongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableLongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableULongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableULongLongStruct) { + + ReturnCode_t return_code_MutableULongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableULongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableULongLongStruct", type_ids_MutableULongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableULongLongStruct) { StructTypeFlag struct_flags_MutableULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableULongLongStruct; - TypeIdentifierPair type_ids_MutableULongLongStruct; QualifiedTypeName type_name_MutableULongLongStruct = "MutableULongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableULongLongStruct; eprosima::fastcdr::optional ann_custom_MutableULongLongStruct; @@ -656,62 +397,26 @@ void register_MutableULongLongStruct_type_identifier( header_MutableULongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableULongLongStruct); CompleteStructMemberSeq member_seq_MutableULongLongStruct; { - return_code_MutableULongLongStruct = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_MutableULongLongStruct); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_MutableULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_MutableULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_MutableULongLongStruct.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -723,32 +428,26 @@ void register_MutableULongLongStruct_type_identifier( } CompleteStructType struct_type_MutableULongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableULongLongStruct, header_MutableULongLongStruct, member_seq_MutableULongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableULongLongStruct, type_name_MutableULongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableULongLongStruct, type_name_MutableULongLongStruct.to_string(), type_ids_MutableULongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableULongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableULongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableULongLongStruct", type_ids_MutableULongLongStruct); - if (return_code_MutableULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableULongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableFloatStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableFloatStruct) { + + ReturnCode_t return_code_MutableFloatStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableFloatStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableFloatStruct", type_ids_MutableFloatStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableFloatStruct) { StructTypeFlag struct_flags_MutableFloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableFloatStruct; - TypeIdentifierPair type_ids_MutableFloatStruct; QualifiedTypeName type_name_MutableFloatStruct = "MutableFloatStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableFloatStruct; eprosima::fastcdr::optional ann_custom_MutableFloatStruct; @@ -764,62 +463,26 @@ void register_MutableFloatStruct_type_identifier( header_MutableFloatStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableFloatStruct); CompleteStructMemberSeq member_seq_MutableFloatStruct; { - return_code_MutableFloatStruct = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_MutableFloatStruct); + "_float", type_ids_var_float); - if (return_code_MutableFloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableFloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableFloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_MutableFloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableFloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableFloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableFloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_MutableFloatStruct.type_identifier2()); - } - else + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -831,32 +494,26 @@ void register_MutableFloatStruct_type_identifier( } CompleteStructType struct_type_MutableFloatStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableFloatStruct, header_MutableFloatStruct, member_seq_MutableFloatStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableFloatStruct, type_name_MutableFloatStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableFloatStruct, type_name_MutableFloatStruct.to_string(), type_ids_MutableFloatStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableFloatStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableFloatStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableFloatStruct", type_ids_MutableFloatStruct); - if (return_code_MutableFloatStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableFloatStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableDoubleStruct) { + + ReturnCode_t return_code_MutableDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableDoubleStruct", type_ids_MutableDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableDoubleStruct) { StructTypeFlag struct_flags_MutableDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableDoubleStruct; - TypeIdentifierPair type_ids_MutableDoubleStruct; QualifiedTypeName type_name_MutableDoubleStruct = "MutableDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableDoubleStruct; eprosima::fastcdr::optional ann_custom_MutableDoubleStruct; @@ -872,62 +529,26 @@ void register_MutableDoubleStruct_type_identifier( header_MutableDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableDoubleStruct); CompleteStructMemberSeq member_seq_MutableDoubleStruct; { - return_code_MutableDoubleStruct = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_MutableDoubleStruct); + "_double", type_ids_var_double); - if (return_code_MutableDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_MutableDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_MutableDoubleStruct.type_identifier2()); - } - else + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -939,32 +560,26 @@ void register_MutableDoubleStruct_type_identifier( } CompleteStructType struct_type_MutableDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableDoubleStruct, header_MutableDoubleStruct, member_seq_MutableDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableDoubleStruct, type_name_MutableDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableDoubleStruct, type_name_MutableDoubleStruct.to_string(), type_ids_MutableDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableDoubleStruct", type_ids_MutableDoubleStruct); - if (return_code_MutableDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableLongDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableLongDoubleStruct) { + + ReturnCode_t return_code_MutableLongDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableLongDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableLongDoubleStruct", type_ids_MutableLongDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableLongDoubleStruct) { StructTypeFlag struct_flags_MutableLongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableLongDoubleStruct; - TypeIdentifierPair type_ids_MutableLongDoubleStruct; QualifiedTypeName type_name_MutableLongDoubleStruct = "MutableLongDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableLongDoubleStruct; eprosima::fastcdr::optional ann_custom_MutableLongDoubleStruct; @@ -980,62 +595,26 @@ void register_MutableLongDoubleStruct_type_identifier( header_MutableLongDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableLongDoubleStruct); CompleteStructMemberSeq member_seq_MutableLongDoubleStruct; { - return_code_MutableLongDoubleStruct = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_MutableLongDoubleStruct); + "_longdouble", type_ids_var_longdouble); - if (return_code_MutableLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_MutableLongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableLongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableLongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_MutableLongDoubleStruct.type_identifier2()); - } - else + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -1047,32 +626,26 @@ void register_MutableLongDoubleStruct_type_identifier( } CompleteStructType struct_type_MutableLongDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableLongDoubleStruct, header_MutableLongDoubleStruct, member_seq_MutableLongDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongDoubleStruct, type_name_MutableLongDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableLongDoubleStruct, type_name_MutableLongDoubleStruct.to_string(), type_ids_MutableLongDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableLongDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableLongDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableLongDoubleStruct", type_ids_MutableLongDoubleStruct); - if (return_code_MutableLongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableLongDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableBooleanStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableBooleanStruct) { + + ReturnCode_t return_code_MutableBooleanStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableBooleanStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableBooleanStruct", type_ids_MutableBooleanStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableBooleanStruct) { StructTypeFlag struct_flags_MutableBooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableBooleanStruct; - TypeIdentifierPair type_ids_MutableBooleanStruct; QualifiedTypeName type_name_MutableBooleanStruct = "MutableBooleanStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableBooleanStruct; eprosima::fastcdr::optional ann_custom_MutableBooleanStruct; @@ -1088,62 +661,26 @@ void register_MutableBooleanStruct_type_identifier( header_MutableBooleanStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableBooleanStruct); CompleteStructMemberSeq member_seq_MutableBooleanStruct; { - return_code_MutableBooleanStruct = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_MutableBooleanStruct); + "_bool", type_ids_var_boolean); - if (return_code_MutableBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableBooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableBooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_MutableBooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableBooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableBooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableBooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_MutableBooleanStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1155,32 +692,26 @@ void register_MutableBooleanStruct_type_identifier( } CompleteStructType struct_type_MutableBooleanStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableBooleanStruct, header_MutableBooleanStruct, member_seq_MutableBooleanStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableBooleanStruct, type_name_MutableBooleanStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableBooleanStruct, type_name_MutableBooleanStruct.to_string(), type_ids_MutableBooleanStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableBooleanStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableBooleanStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableBooleanStruct", type_ids_MutableBooleanStruct); - if (return_code_MutableBooleanStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableBooleanStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableOctetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableOctetStruct) { + + ReturnCode_t return_code_MutableOctetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableOctetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableOctetStruct", type_ids_MutableOctetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableOctetStruct) { StructTypeFlag struct_flags_MutableOctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableOctetStruct; - TypeIdentifierPair type_ids_MutableOctetStruct; QualifiedTypeName type_name_MutableOctetStruct = "MutableOctetStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableOctetStruct; eprosima::fastcdr::optional ann_custom_MutableOctetStruct; @@ -1196,62 +727,26 @@ void register_MutableOctetStruct_type_identifier( header_MutableOctetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableOctetStruct); CompleteStructMemberSeq member_seq_MutableOctetStruct; { - return_code_MutableOctetStruct = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_MutableOctetStruct); + "_byte", type_ids_var_octet); - if (return_code_MutableOctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableOctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableOctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_MutableOctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableOctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableOctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableOctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_MutableOctetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -1263,32 +758,26 @@ void register_MutableOctetStruct_type_identifier( } CompleteStructType struct_type_MutableOctetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableOctetStruct, header_MutableOctetStruct, member_seq_MutableOctetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableOctetStruct, type_name_MutableOctetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableOctetStruct, type_name_MutableOctetStruct.to_string(), type_ids_MutableOctetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableOctetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableOctetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableOctetStruct", type_ids_MutableOctetStruct); - if (return_code_MutableOctetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableOctetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableCharStruct) { + + ReturnCode_t return_code_MutableCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableCharStruct", type_ids_MutableCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableCharStruct) { StructTypeFlag struct_flags_MutableCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableCharStruct; - TypeIdentifierPair type_ids_MutableCharStruct; QualifiedTypeName type_name_MutableCharStruct = "MutableCharStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableCharStruct; eprosima::fastcdr::optional ann_custom_MutableCharStruct; @@ -1304,62 +793,26 @@ void register_MutableCharStruct_type_identifier( header_MutableCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableCharStruct); CompleteStructMemberSeq member_seq_MutableCharStruct; { - return_code_MutableCharStruct = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_MutableCharStruct); + "_char", type_ids_var_char8); - if (return_code_MutableCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_MutableCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_MutableCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -1371,32 +824,26 @@ void register_MutableCharStruct_type_identifier( } CompleteStructType struct_type_MutableCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableCharStruct, header_MutableCharStruct, member_seq_MutableCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableCharStruct, type_name_MutableCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableCharStruct, type_name_MutableCharStruct.to_string(), type_ids_MutableCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableCharStruct", type_ids_MutableCharStruct); - if (return_code_MutableCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableWCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableWCharStruct) { + + ReturnCode_t return_code_MutableWCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableWCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableWCharStruct", type_ids_MutableWCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableWCharStruct) { StructTypeFlag struct_flags_MutableWCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableWCharStruct; - TypeIdentifierPair type_ids_MutableWCharStruct; QualifiedTypeName type_name_MutableWCharStruct = "MutableWCharStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableWCharStruct; eprosima::fastcdr::optional ann_custom_MutableWCharStruct; @@ -1412,62 +859,26 @@ void register_MutableWCharStruct_type_identifier( header_MutableWCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableWCharStruct); CompleteStructMemberSeq member_seq_MutableWCharStruct; { - return_code_MutableWCharStruct = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_MutableWCharStruct); + "_wchar_t", type_ids_var_char16); - if (return_code_MutableWCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableWCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableWCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_MutableWCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableWCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableWCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableWCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_MutableWCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -1479,32 +890,26 @@ void register_MutableWCharStruct_type_identifier( } CompleteStructType struct_type_MutableWCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableWCharStruct, header_MutableWCharStruct, member_seq_MutableWCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableWCharStruct, type_name_MutableWCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableWCharStruct, type_name_MutableWCharStruct.to_string(), type_ids_MutableWCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableWCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableWCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableWCharStruct", type_ids_MutableWCharStruct); - if (return_code_MutableWCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableWCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableUnionStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableUnionStruct) { + + ReturnCode_t return_code_MutableUnionStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableUnionStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableUnionStruct", type_ids_MutableUnionStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableUnionStruct) { StructTypeFlag struct_flags_MutableUnionStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableUnionStruct; - TypeIdentifierPair type_ids_MutableUnionStruct; QualifiedTypeName type_name_MutableUnionStruct = "MutableUnionStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableUnionStruct; eprosima::fastcdr::optional ann_custom_MutableUnionStruct; @@ -1520,339 +925,24 @@ void register_MutableUnionStruct_type_identifier( header_MutableUnionStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableUnionStruct); CompleteStructMemberSeq member_seq_MutableUnionStruct; { - return_code_MutableUnionStruct = + TypeIdentifierPair type_ids_var_union; + ReturnCode_t return_code_var_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_MutableUnionStruct); + "InnerUnionHelper", type_ids_var_union); - if (return_code_MutableUnionStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MutableUnionStruct = return_code_InnerUnionHelper; - type_ids_MutableUnionStruct = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_union); } - StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union; MemberId member_id_var_union = 0x00000000; - if (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableUnionStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableUnionStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_union_ec {false}; + CommonStructMember common_var_union {TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union, common_var_union_ec))}; + if (!common_var_union_ec) { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_MutableUnionStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableUnionStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableUnionStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableUnionStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_MutableUnionStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union member TypeIdentifier inconsistent."); return; } MemberName name_var_union = "var_union"; @@ -1864,32 +954,26 @@ void register_MutableUnionStruct_type_identifier( } CompleteStructType struct_type_MutableUnionStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableUnionStruct, header_MutableUnionStruct, member_seq_MutableUnionStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableUnionStruct, type_name_MutableUnionStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableUnionStruct, type_name_MutableUnionStruct.to_string(), type_ids_MutableUnionStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableUnionStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableUnionStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableUnionStruct", type_ids_MutableUnionStruct); - if (return_code_MutableUnionStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableUnionStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableEmptyStruct) { + + ReturnCode_t return_code_MutableEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableEmptyStruct", type_ids_MutableEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableEmptyStruct) { StructTypeFlag struct_flags_MutableEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableEmptyStruct; - TypeIdentifierPair type_ids_MutableEmptyStruct; QualifiedTypeName type_name_MutableEmptyStruct = "MutableEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableEmptyStruct; eprosima::fastcdr::optional ann_custom_MutableEmptyStruct; @@ -1906,77 +990,33 @@ void register_MutableEmptyStruct_type_identifier( CompleteStructMemberSeq member_seq_MutableEmptyStruct; CompleteStructType struct_type_MutableEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableEmptyStruct, header_MutableEmptyStruct, member_seq_MutableEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableEmptyStruct, type_name_MutableEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableEmptyStruct, type_name_MutableEmptyStruct.to_string(), type_ids_MutableEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableEmptyStruct", type_ids_MutableEmptyStruct); - if (return_code_MutableEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableEmptyInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableEmptyInheritanceStruct) { + + ReturnCode_t return_code_MutableEmptyInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableEmptyInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableEmptyInheritanceStruct", type_ids_MutableEmptyInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableEmptyInheritanceStruct) { StructTypeFlag struct_flags_MutableEmptyInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableEmptyInheritanceStruct; - TypeIdentifierPair type_ids_MutableEmptyInheritanceStruct; return_code_MutableEmptyInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "MutableEmptyStruct", type_ids_MutableEmptyInheritanceStruct); if (return_code_MutableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_MutableEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_MutableEmptyStruct; - TypeIdentifierPair type_ids_MutableEmptyStruct; - QualifiedTypeName type_name_MutableEmptyStruct = "MutableEmptyStruct"; - eprosima::fastcdr::optional type_ann_builtin_MutableEmptyStruct; - eprosima::fastcdr::optional ann_custom_MutableEmptyStruct; - AppliedAnnotationSeq tmp_ann_custom_MutableEmptyStruct; - eprosima::fastcdr::optional verbatim_MutableEmptyStruct; - if (!tmp_ann_custom_MutableEmptyStruct.empty()) - { - ann_custom_MutableEmptyStruct = tmp_ann_custom_MutableEmptyStruct; - } - - CompleteTypeDetail detail_MutableEmptyStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MutableEmptyStruct, ann_custom_MutableEmptyStruct, type_name_MutableEmptyStruct.to_string()); - CompleteStructHeader header_MutableEmptyStruct; - header_MutableEmptyStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableEmptyStruct); - CompleteStructMemberSeq member_seq_MutableEmptyStruct; - CompleteStructType struct_type_MutableEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableEmptyStruct, header_MutableEmptyStruct, member_seq_MutableEmptyStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableEmptyStruct, type_name_MutableEmptyStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableEmptyStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_MutableEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableEmptyStruct", type_ids_MutableEmptyStruct); - if (return_code_MutableEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MutableEmptyInheritanceStruct = return_code_MutableEmptyStruct; - type_ids_MutableEmptyInheritanceStruct = type_ids_MutableEmptyStruct; - } +::register_MutableEmptyStruct_type_identifier(type_ids_MutableEmptyInheritanceStruct); } QualifiedTypeName type_name_MutableEmptyInheritanceStruct = "MutableEmptyInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableEmptyInheritanceStruct; @@ -2002,84 +1042,38 @@ void register_MutableEmptyInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableEmptyInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_MutableEmptyInheritanceStruct; { - return_code_MutableEmptyInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MutableEmptyInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_MutableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MutableEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MutableEmptyInheritanceStruct); - if (return_code_MutableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000000; - if (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_MutableEmptyInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableEmptyInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableEmptyInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_MutableEmptyInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2091,143 +1085,33 @@ void register_MutableEmptyInheritanceStruct_type_identifier( } CompleteStructType struct_type_MutableEmptyInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableEmptyInheritanceStruct, header_MutableEmptyInheritanceStruct, member_seq_MutableEmptyInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableEmptyInheritanceStruct, type_name_MutableEmptyInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableEmptyInheritanceStruct, type_name_MutableEmptyInheritanceStruct.to_string(), type_ids_MutableEmptyInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableEmptyInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableEmptyInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableEmptyInheritanceStruct", type_ids_MutableEmptyInheritanceStruct); - if (return_code_MutableEmptyInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableEmptyInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableInheritanceStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableInheritanceStruct) { + + ReturnCode_t return_code_MutableInheritanceStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableInheritanceStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableInheritanceStruct", type_ids_MutableInheritanceStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableInheritanceStruct) { StructTypeFlag struct_flags_MutableInheritanceStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableInheritanceStruct; - TypeIdentifierPair type_ids_MutableInheritanceStruct; return_code_MutableInheritanceStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "MutableShortStruct", type_ids_MutableInheritanceStruct); if (return_code_MutableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_MutableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_MutableShortStruct; - TypeIdentifierPair type_ids_MutableShortStruct; - QualifiedTypeName type_name_MutableShortStruct = "MutableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_MutableShortStruct; - eprosima::fastcdr::optional ann_custom_MutableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_MutableShortStruct; - eprosima::fastcdr::optional verbatim_MutableShortStruct; - if (!tmp_ann_custom_MutableShortStruct.empty()) - { - ann_custom_MutableShortStruct = tmp_ann_custom_MutableShortStruct; - } - - CompleteTypeDetail detail_MutableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MutableShortStruct, ann_custom_MutableShortStruct, type_name_MutableShortStruct.to_string()); - CompleteStructHeader header_MutableShortStruct; - header_MutableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableShortStruct); - CompleteStructMemberSeq member_seq_MutableShortStruct; - { - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MutableShortStruct); - - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_MutableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_MutableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_MutableShortStruct, member_var_short); - } - CompleteStructType struct_type_MutableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableShortStruct, header_MutableShortStruct, member_seq_MutableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableShortStruct, type_name_MutableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableShortStruct", type_ids_MutableShortStruct); - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MutableInheritanceStruct = return_code_MutableShortStruct; - type_ids_MutableInheritanceStruct = type_ids_MutableShortStruct; - } +::register_MutableShortStruct_type_identifier(type_ids_MutableInheritanceStruct); } QualifiedTypeName type_name_MutableInheritanceStruct = "MutableInheritanceStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableInheritanceStruct; @@ -2253,84 +1137,38 @@ void register_MutableInheritanceStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableInheritanceStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_MutableInheritanceStruct; { - return_code_MutableInheritanceStruct = + TypeIdentifierPair type_ids_var_str; + ReturnCode_t return_code_var_str {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_str = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MutableInheritanceStruct); + "anonymous_string_unbounded", type_ids_var_str); - if (return_code_MutableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_str) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_str)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_MutableInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_MutableInheritanceStruct); - if (return_code_MutableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_str = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_str; MemberId member_id_var_str = 0x00000001; - if (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableInheritanceStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_MutableInheritanceStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableInheritanceStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableInheritanceStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_str = TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, type_ids_MutableInheritanceStruct.type_identifier2()); - } - else + bool common_var_str_ec {false}; + CommonStructMember common_var_str {TypeObjectUtils::build_common_struct_member(member_id_var_str, member_flags_var_str, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_str, common_var_str_ec))}; + if (!common_var_str_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_str member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_str member TypeIdentifier inconsistent."); return; } MemberName name_var_str = "var_str"; @@ -2342,143 +1180,33 @@ void register_MutableInheritanceStruct_type_identifier( } CompleteStructType struct_type_MutableInheritanceStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableInheritanceStruct, header_MutableInheritanceStruct, member_seq_MutableInheritanceStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableInheritanceStruct, type_name_MutableInheritanceStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableInheritanceStruct, type_name_MutableInheritanceStruct.to_string(), type_ids_MutableInheritanceStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableInheritanceStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableInheritanceStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableInheritanceStruct", type_ids_MutableInheritanceStruct); - if (return_code_MutableInheritanceStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableInheritanceStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableInheritanceEmptyStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableInheritanceEmptyStruct) { + + ReturnCode_t return_code_MutableInheritanceEmptyStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableInheritanceEmptyStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableInheritanceEmptyStruct", type_ids_MutableInheritanceEmptyStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableInheritanceEmptyStruct) { StructTypeFlag struct_flags_MutableInheritanceEmptyStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableInheritanceEmptyStruct; - TypeIdentifierPair type_ids_MutableInheritanceEmptyStruct; return_code_MutableInheritanceEmptyStruct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "MutableShortStruct", type_ids_MutableInheritanceEmptyStruct); if (return_code_MutableInheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_MutableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_MutableShortStruct; - TypeIdentifierPair type_ids_MutableShortStruct; - QualifiedTypeName type_name_MutableShortStruct = "MutableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_MutableShortStruct; - eprosima::fastcdr::optional ann_custom_MutableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_MutableShortStruct; - eprosima::fastcdr::optional verbatim_MutableShortStruct; - if (!tmp_ann_custom_MutableShortStruct.empty()) - { - ann_custom_MutableShortStruct = tmp_ann_custom_MutableShortStruct; - } - - CompleteTypeDetail detail_MutableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MutableShortStruct, ann_custom_MutableShortStruct, type_name_MutableShortStruct.to_string()); - CompleteStructHeader header_MutableShortStruct; - header_MutableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableShortStruct); - CompleteStructMemberSeq member_seq_MutableShortStruct; - { - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MutableShortStruct); - - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_MutableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_MutableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_MutableShortStruct, member_var_short); - } - CompleteStructType struct_type_MutableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableShortStruct, header_MutableShortStruct, member_seq_MutableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableShortStruct, type_name_MutableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableShortStruct", type_ids_MutableShortStruct); - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MutableInheritanceEmptyStruct = return_code_MutableShortStruct; - type_ids_MutableInheritanceEmptyStruct = type_ids_MutableShortStruct; - } +::register_MutableShortStruct_type_identifier(type_ids_MutableInheritanceEmptyStruct); } QualifiedTypeName type_name_MutableInheritanceEmptyStruct = "MutableInheritanceEmptyStruct"; eprosima::fastcdr::optional type_ann_builtin_MutableInheritanceEmptyStruct; @@ -2504,149 +1232,38 @@ void register_MutableInheritanceEmptyStruct_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableInheritanceEmptyStruct Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_MutableInheritanceEmptyStruct; CompleteStructType struct_type_MutableInheritanceEmptyStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableInheritanceEmptyStruct, header_MutableInheritanceEmptyStruct, member_seq_MutableInheritanceEmptyStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableInheritanceEmptyStruct, type_name_MutableInheritanceEmptyStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableInheritanceEmptyStruct, type_name_MutableInheritanceEmptyStruct.to_string(), type_ids_MutableInheritanceEmptyStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableInheritanceEmptyStruct already registered in TypeObjectRegistry for a different type."); } - return_code_MutableInheritanceEmptyStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableInheritanceEmptyStruct", type_ids_MutableInheritanceEmptyStruct); - if (return_code_MutableInheritanceEmptyStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableInheritanceEmptyStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_MutableExtensibilityInheritance_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_MutableExtensibilityInheritance) { + + ReturnCode_t return_code_MutableExtensibilityInheritance {eprosima::fastdds::dds::RETCODE_OK}; + return_code_MutableExtensibilityInheritance = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "MutableExtensibilityInheritance", type_ids_MutableExtensibilityInheritance); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_MutableExtensibilityInheritance) { - StructTypeFlag struct_flags_MutableExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_MutableExtensibilityInheritance = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); - ReturnCode_t return_code_MutableExtensibilityInheritance; - TypeIdentifierPair type_ids_MutableExtensibilityInheritance; return_code_MutableExtensibilityInheritance = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "MutableShortStruct", type_ids_MutableExtensibilityInheritance); if (return_code_MutableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) { - { - StructTypeFlag struct_flags_MutableShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, - false, false); - ReturnCode_t return_code_MutableShortStruct; - TypeIdentifierPair type_ids_MutableShortStruct; - QualifiedTypeName type_name_MutableShortStruct = "MutableShortStruct"; - eprosima::fastcdr::optional type_ann_builtin_MutableShortStruct; - eprosima::fastcdr::optional ann_custom_MutableShortStruct; - AppliedAnnotationSeq tmp_ann_custom_MutableShortStruct; - eprosima::fastcdr::optional verbatim_MutableShortStruct; - if (!tmp_ann_custom_MutableShortStruct.empty()) - { - ann_custom_MutableShortStruct = tmp_ann_custom_MutableShortStruct; - } - - CompleteTypeDetail detail_MutableShortStruct = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MutableShortStruct, ann_custom_MutableShortStruct, type_name_MutableShortStruct.to_string()); - CompleteStructHeader header_MutableShortStruct; - header_MutableShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MutableShortStruct); - CompleteStructMemberSeq member_seq_MutableShortStruct; - { - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_MutableShortStruct); - - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1()._d() || TK_NONE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_MutableShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_MutableShortStruct.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_MutableShortStruct); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_MutableShortStruct, member_var_short); - } - CompleteStructType struct_type_MutableShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableShortStruct, header_MutableShortStruct, member_seq_MutableShortStruct); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableShortStruct, type_name_MutableShortStruct.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct already registered in TypeObjectRegistry for a different type."); - } - return_code_MutableShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableShortStruct", type_ids_MutableShortStruct); - if (return_code_MutableShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_MutableExtensibilityInheritance = return_code_MutableShortStruct; - type_ids_MutableExtensibilityInheritance = type_ids_MutableShortStruct; - } +::register_MutableShortStruct_type_identifier(type_ids_MutableExtensibilityInheritance); } QualifiedTypeName type_name_MutableExtensibilityInheritance = "MutableExtensibilityInheritance"; eprosima::fastcdr::optional type_ann_builtin_MutableExtensibilityInheritance; @@ -2665,67 +1282,30 @@ void register_MutableExtensibilityInheritance_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableExtensibilityInheritance Structure: base_type TypeIdentifier registered in TypeObjectRegistry is inconsistent."); - type_id = TypeIdentifier(); return; } CompleteStructMemberSeq member_seq_MutableExtensibilityInheritance; { - return_code_MutableExtensibilityInheritance = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_MutableExtensibilityInheritance); + "_int32_t", type_ids_var_long); - if (return_code_MutableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000001; - if (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() || TK_NONE == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier1()._d() && - (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_MutableExtensibilityInheritance.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_MutableExtensibilityInheritance.type_identifier2()._d() && - (EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_MutableExtensibilityInheritance.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_MutableExtensibilityInheritance.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -2737,21 +1317,11 @@ void register_MutableExtensibilityInheritance_type_identifier( } CompleteStructType struct_type_MutableExtensibilityInheritance = TypeObjectUtils::build_complete_struct_type(struct_flags_MutableExtensibilityInheritance, header_MutableExtensibilityInheritance, member_seq_MutableExtensibilityInheritance); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableExtensibilityInheritance, type_name_MutableExtensibilityInheritance.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_MutableExtensibilityInheritance, type_name_MutableExtensibilityInheritance.to_string(), type_ids_MutableExtensibilityInheritance)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "MutableExtensibilityInheritance already registered in TypeObjectRegistry for a different type."); } - return_code_MutableExtensibilityInheritance = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "MutableExtensibilityInheritance", type_ids_MutableExtensibilityInheritance); - if (return_code_MutableExtensibilityInheritance != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "MutableExtensibilityInheritance: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/mutableTypeObjectSupport.hpp b/test/dds-types-test/mutableTypeObjectSupport.hpp index 465799726df..a765a6224a5 100644 --- a/test/dds-types-test/mutableTypeObjectSupport.hpp +++ b/test/dds-types-test/mutableTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_mutable_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_mutable_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableUShortStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_MutableShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableUShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_MutableUShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableULongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_MutableLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableULongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableLongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_MutableULongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableLongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableULongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_MutableLongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableULongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableFloatStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_MutableULongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableFloatStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_MutableFloatStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableLongDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_MutableDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableLongDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableBooleanStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_MutableLongDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableBooleanStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableOctetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_MutableBooleanStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableOctetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_MutableOctetStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableWCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_MutableCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableWCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableUnionStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_MutableWCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableUnionStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_MutableUnionStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableEmptyInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_MutableEmptyStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableEmptyInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableInheritanceStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_MutableEmptyInheritanceStruct_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableInheritanceStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableInheritanceEmptyStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_MutableInheritanceStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableInheritanceEmptyStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register MutableExtensibilityInheritance related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_MutableInheritanceEmptyStruct_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_MutableExtensibilityInheritance_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/optionalPubSubTypes.cxx b/test/dds-types-test/optionalPubSubTypes.cxx index 4f9747b7dae..9bcb5fc0e55 100644 --- a/test/dds-types-test/optionalPubSubTypes.cxx +++ b/test/dds-types-test/optionalPubSubTypes.cxx @@ -219,9 +219,9 @@ bool short_optionalPubSubType::getKey( return true; } -void short_optionalPubSubType::register_type_object_representation() const +void short_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_short_optional_type_identifier(type_identifiers_); } ushort_optionalPubSubType::ushort_optionalPubSubType() @@ -412,9 +412,9 @@ bool ushort_optionalPubSubType::getKey( return true; } -void ushort_optionalPubSubType::register_type_object_representation() const +void ushort_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ushort_optional_type_identifier(type_identifiers_); } long_optionalPubSubType::long_optionalPubSubType() @@ -605,9 +605,9 @@ bool long_optionalPubSubType::getKey( return true; } -void long_optionalPubSubType::register_type_object_representation() const +void long_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_long_optional_type_identifier(type_identifiers_); } ulong_optionalPubSubType::ulong_optionalPubSubType() @@ -798,9 +798,9 @@ bool ulong_optionalPubSubType::getKey( return true; } -void ulong_optionalPubSubType::register_type_object_representation() const +void ulong_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulong_optional_type_identifier(type_identifiers_); } longlong_optionalPubSubType::longlong_optionalPubSubType() @@ -991,9 +991,9 @@ bool longlong_optionalPubSubType::getKey( return true; } -void longlong_optionalPubSubType::register_type_object_representation() const +void longlong_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longlong_optional_type_identifier(type_identifiers_); } ulonglong_optionalPubSubType::ulonglong_optionalPubSubType() @@ -1184,9 +1184,9 @@ bool ulonglong_optionalPubSubType::getKey( return true; } -void ulonglong_optionalPubSubType::register_type_object_representation() const +void ulonglong_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulonglong_optional_type_identifier(type_identifiers_); } float_optionalPubSubType::float_optionalPubSubType() @@ -1377,9 +1377,9 @@ bool float_optionalPubSubType::getKey( return true; } -void float_optionalPubSubType::register_type_object_representation() const +void float_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_float_optional_type_identifier(type_identifiers_); } double_optionalPubSubType::double_optionalPubSubType() @@ -1570,9 +1570,9 @@ bool double_optionalPubSubType::getKey( return true; } -void double_optionalPubSubType::register_type_object_representation() const +void double_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_double_optional_type_identifier(type_identifiers_); } longdouble_optionalPubSubType::longdouble_optionalPubSubType() @@ -1763,9 +1763,9 @@ bool longdouble_optionalPubSubType::getKey( return true; } -void longdouble_optionalPubSubType::register_type_object_representation() const +void longdouble_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longdouble_optional_type_identifier(type_identifiers_); } boolean_optionalPubSubType::boolean_optionalPubSubType() @@ -1956,9 +1956,9 @@ bool boolean_optionalPubSubType::getKey( return true; } -void boolean_optionalPubSubType::register_type_object_representation() const +void boolean_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_boolean_optional_type_identifier(type_identifiers_); } octet_optionalPubSubType::octet_optionalPubSubType() @@ -2149,9 +2149,9 @@ bool octet_optionalPubSubType::getKey( return true; } -void octet_optionalPubSubType::register_type_object_representation() const +void octet_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_octet_optional_type_identifier(type_identifiers_); } char_optionalPubSubType::char_optionalPubSubType() @@ -2342,9 +2342,9 @@ bool char_optionalPubSubType::getKey( return true; } -void char_optionalPubSubType::register_type_object_representation() const +void char_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_char_optional_type_identifier(type_identifiers_); } wchar_optionalPubSubType::wchar_optionalPubSubType() @@ -2535,9 +2535,9 @@ bool wchar_optionalPubSubType::getKey( return true; } -void wchar_optionalPubSubType::register_type_object_representation() const +void wchar_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_wchar_optional_type_identifier(type_identifiers_); } short_align_1_optionalPubSubType::short_align_1_optionalPubSubType() @@ -2728,9 +2728,9 @@ bool short_align_1_optionalPubSubType::getKey( return true; } -void short_align_1_optionalPubSubType::register_type_object_representation() const +void short_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_short_align_1_optional_type_identifier(type_identifiers_); } short_align_2_optionalPubSubType::short_align_2_optionalPubSubType() @@ -2921,9 +2921,9 @@ bool short_align_2_optionalPubSubType::getKey( return true; } -void short_align_2_optionalPubSubType::register_type_object_representation() const +void short_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_short_align_2_optional_type_identifier(type_identifiers_); } short_align_4_optionalPubSubType::short_align_4_optionalPubSubType() @@ -3114,9 +3114,9 @@ bool short_align_4_optionalPubSubType::getKey( return true; } -void short_align_4_optionalPubSubType::register_type_object_representation() const +void short_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_short_align_4_optional_type_identifier(type_identifiers_); } ushort_align_1_optionalPubSubType::ushort_align_1_optionalPubSubType() @@ -3307,9 +3307,9 @@ bool ushort_align_1_optionalPubSubType::getKey( return true; } -void ushort_align_1_optionalPubSubType::register_type_object_representation() const +void ushort_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ushort_align_1_optional_type_identifier(type_identifiers_); } ushort_align_2_optionalPubSubType::ushort_align_2_optionalPubSubType() @@ -3500,9 +3500,9 @@ bool ushort_align_2_optionalPubSubType::getKey( return true; } -void ushort_align_2_optionalPubSubType::register_type_object_representation() const +void ushort_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ushort_align_2_optional_type_identifier(type_identifiers_); } ushort_align_4_optionalPubSubType::ushort_align_4_optionalPubSubType() @@ -3693,9 +3693,9 @@ bool ushort_align_4_optionalPubSubType::getKey( return true; } -void ushort_align_4_optionalPubSubType::register_type_object_representation() const +void ushort_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ushort_align_4_optional_type_identifier(type_identifiers_); } long_align_1_optionalPubSubType::long_align_1_optionalPubSubType() @@ -3886,9 +3886,9 @@ bool long_align_1_optionalPubSubType::getKey( return true; } -void long_align_1_optionalPubSubType::register_type_object_representation() const +void long_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_long_align_1_optional_type_identifier(type_identifiers_); } long_align_2_optionalPubSubType::long_align_2_optionalPubSubType() @@ -4079,9 +4079,9 @@ bool long_align_2_optionalPubSubType::getKey( return true; } -void long_align_2_optionalPubSubType::register_type_object_representation() const +void long_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_long_align_2_optional_type_identifier(type_identifiers_); } long_align_4_optionalPubSubType::long_align_4_optionalPubSubType() @@ -4272,9 +4272,9 @@ bool long_align_4_optionalPubSubType::getKey( return true; } -void long_align_4_optionalPubSubType::register_type_object_representation() const +void long_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_long_align_4_optional_type_identifier(type_identifiers_); } ulong_align_1_optionalPubSubType::ulong_align_1_optionalPubSubType() @@ -4465,9 +4465,9 @@ bool ulong_align_1_optionalPubSubType::getKey( return true; } -void ulong_align_1_optionalPubSubType::register_type_object_representation() const +void ulong_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulong_align_1_optional_type_identifier(type_identifiers_); } ulong_align_2_optionalPubSubType::ulong_align_2_optionalPubSubType() @@ -4658,9 +4658,9 @@ bool ulong_align_2_optionalPubSubType::getKey( return true; } -void ulong_align_2_optionalPubSubType::register_type_object_representation() const +void ulong_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulong_align_2_optional_type_identifier(type_identifiers_); } ulong_align_4_optionalPubSubType::ulong_align_4_optionalPubSubType() @@ -4851,9 +4851,9 @@ bool ulong_align_4_optionalPubSubType::getKey( return true; } -void ulong_align_4_optionalPubSubType::register_type_object_representation() const +void ulong_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulong_align_4_optional_type_identifier(type_identifiers_); } longlong_align_1_optionalPubSubType::longlong_align_1_optionalPubSubType() @@ -5044,9 +5044,9 @@ bool longlong_align_1_optionalPubSubType::getKey( return true; } -void longlong_align_1_optionalPubSubType::register_type_object_representation() const +void longlong_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longlong_align_1_optional_type_identifier(type_identifiers_); } longlong_align_2_optionalPubSubType::longlong_align_2_optionalPubSubType() @@ -5237,9 +5237,9 @@ bool longlong_align_2_optionalPubSubType::getKey( return true; } -void longlong_align_2_optionalPubSubType::register_type_object_representation() const +void longlong_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longlong_align_2_optional_type_identifier(type_identifiers_); } longlong_align_4_optionalPubSubType::longlong_align_4_optionalPubSubType() @@ -5430,9 +5430,9 @@ bool longlong_align_4_optionalPubSubType::getKey( return true; } -void longlong_align_4_optionalPubSubType::register_type_object_representation() const +void longlong_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longlong_align_4_optional_type_identifier(type_identifiers_); } ulonglong_align_1_optionalPubSubType::ulonglong_align_1_optionalPubSubType() @@ -5623,9 +5623,9 @@ bool ulonglong_align_1_optionalPubSubType::getKey( return true; } -void ulonglong_align_1_optionalPubSubType::register_type_object_representation() const +void ulonglong_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulonglong_align_1_optional_type_identifier(type_identifiers_); } ulonglong_align_2_optionalPubSubType::ulonglong_align_2_optionalPubSubType() @@ -5816,9 +5816,9 @@ bool ulonglong_align_2_optionalPubSubType::getKey( return true; } -void ulonglong_align_2_optionalPubSubType::register_type_object_representation() const +void ulonglong_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulonglong_align_2_optional_type_identifier(type_identifiers_); } ulonglong_align_4_optionalPubSubType::ulonglong_align_4_optionalPubSubType() @@ -6009,9 +6009,9 @@ bool ulonglong_align_4_optionalPubSubType::getKey( return true; } -void ulonglong_align_4_optionalPubSubType::register_type_object_representation() const +void ulonglong_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_ulonglong_align_4_optional_type_identifier(type_identifiers_); } float_align_1_optionalPubSubType::float_align_1_optionalPubSubType() @@ -6202,9 +6202,9 @@ bool float_align_1_optionalPubSubType::getKey( return true; } -void float_align_1_optionalPubSubType::register_type_object_representation() const +void float_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_float_align_1_optional_type_identifier(type_identifiers_); } float_align_2_optionalPubSubType::float_align_2_optionalPubSubType() @@ -6395,9 +6395,9 @@ bool float_align_2_optionalPubSubType::getKey( return true; } -void float_align_2_optionalPubSubType::register_type_object_representation() const +void float_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_float_align_2_optional_type_identifier(type_identifiers_); } float_align_4_optionalPubSubType::float_align_4_optionalPubSubType() @@ -6588,9 +6588,9 @@ bool float_align_4_optionalPubSubType::getKey( return true; } -void float_align_4_optionalPubSubType::register_type_object_representation() const +void float_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_float_align_4_optional_type_identifier(type_identifiers_); } double_align_1_optionalPubSubType::double_align_1_optionalPubSubType() @@ -6781,9 +6781,9 @@ bool double_align_1_optionalPubSubType::getKey( return true; } -void double_align_1_optionalPubSubType::register_type_object_representation() const +void double_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_double_align_1_optional_type_identifier(type_identifiers_); } double_align_2_optionalPubSubType::double_align_2_optionalPubSubType() @@ -6974,9 +6974,9 @@ bool double_align_2_optionalPubSubType::getKey( return true; } -void double_align_2_optionalPubSubType::register_type_object_representation() const +void double_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_double_align_2_optional_type_identifier(type_identifiers_); } double_align_4_optionalPubSubType::double_align_4_optionalPubSubType() @@ -7167,9 +7167,9 @@ bool double_align_4_optionalPubSubType::getKey( return true; } -void double_align_4_optionalPubSubType::register_type_object_representation() const +void double_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_double_align_4_optional_type_identifier(type_identifiers_); } longdouble_align_1_optionalPubSubType::longdouble_align_1_optionalPubSubType() @@ -7360,9 +7360,9 @@ bool longdouble_align_1_optionalPubSubType::getKey( return true; } -void longdouble_align_1_optionalPubSubType::register_type_object_representation() const +void longdouble_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longdouble_align_1_optional_type_identifier(type_identifiers_); } longdouble_align_2_optionalPubSubType::longdouble_align_2_optionalPubSubType() @@ -7553,9 +7553,9 @@ bool longdouble_align_2_optionalPubSubType::getKey( return true; } -void longdouble_align_2_optionalPubSubType::register_type_object_representation() const +void longdouble_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longdouble_align_2_optional_type_identifier(type_identifiers_); } longdouble_align_4_optionalPubSubType::longdouble_align_4_optionalPubSubType() @@ -7746,9 +7746,9 @@ bool longdouble_align_4_optionalPubSubType::getKey( return true; } -void longdouble_align_4_optionalPubSubType::register_type_object_representation() const +void longdouble_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_longdouble_align_4_optional_type_identifier(type_identifiers_); } boolean_align_1_optionalPubSubType::boolean_align_1_optionalPubSubType() @@ -7939,9 +7939,9 @@ bool boolean_align_1_optionalPubSubType::getKey( return true; } -void boolean_align_1_optionalPubSubType::register_type_object_representation() const +void boolean_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_boolean_align_1_optional_type_identifier(type_identifiers_); } boolean_align_2_optionalPubSubType::boolean_align_2_optionalPubSubType() @@ -8132,9 +8132,9 @@ bool boolean_align_2_optionalPubSubType::getKey( return true; } -void boolean_align_2_optionalPubSubType::register_type_object_representation() const +void boolean_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_boolean_align_2_optional_type_identifier(type_identifiers_); } boolean_align_4_optionalPubSubType::boolean_align_4_optionalPubSubType() @@ -8325,9 +8325,9 @@ bool boolean_align_4_optionalPubSubType::getKey( return true; } -void boolean_align_4_optionalPubSubType::register_type_object_representation() const +void boolean_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_boolean_align_4_optional_type_identifier(type_identifiers_); } octet_align_1_optionalPubSubType::octet_align_1_optionalPubSubType() @@ -8518,9 +8518,9 @@ bool octet_align_1_optionalPubSubType::getKey( return true; } -void octet_align_1_optionalPubSubType::register_type_object_representation() const +void octet_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_octet_align_1_optional_type_identifier(type_identifiers_); } octet_align_2_optionalPubSubType::octet_align_2_optionalPubSubType() @@ -8711,9 +8711,9 @@ bool octet_align_2_optionalPubSubType::getKey( return true; } -void octet_align_2_optionalPubSubType::register_type_object_representation() const +void octet_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_octet_align_2_optional_type_identifier(type_identifiers_); } octet_align_4_optionalPubSubType::octet_align_4_optionalPubSubType() @@ -8904,9 +8904,9 @@ bool octet_align_4_optionalPubSubType::getKey( return true; } -void octet_align_4_optionalPubSubType::register_type_object_representation() const +void octet_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_octet_align_4_optional_type_identifier(type_identifiers_); } char_align_1_optionalPubSubType::char_align_1_optionalPubSubType() @@ -9097,9 +9097,9 @@ bool char_align_1_optionalPubSubType::getKey( return true; } -void char_align_1_optionalPubSubType::register_type_object_representation() const +void char_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_char_align_1_optional_type_identifier(type_identifiers_); } char_align_2_optionalPubSubType::char_align_2_optionalPubSubType() @@ -9290,9 +9290,9 @@ bool char_align_2_optionalPubSubType::getKey( return true; } -void char_align_2_optionalPubSubType::register_type_object_representation() const +void char_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_char_align_2_optional_type_identifier(type_identifiers_); } char_align_4_optionalPubSubType::char_align_4_optionalPubSubType() @@ -9483,9 +9483,9 @@ bool char_align_4_optionalPubSubType::getKey( return true; } -void char_align_4_optionalPubSubType::register_type_object_representation() const +void char_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_char_align_4_optional_type_identifier(type_identifiers_); } wchar_align_1_optionalPubSubType::wchar_align_1_optionalPubSubType() @@ -9676,9 +9676,9 @@ bool wchar_align_1_optionalPubSubType::getKey( return true; } -void wchar_align_1_optionalPubSubType::register_type_object_representation() const +void wchar_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_wchar_align_1_optional_type_identifier(type_identifiers_); } wchar_align_2_optionalPubSubType::wchar_align_2_optionalPubSubType() @@ -9869,9 +9869,9 @@ bool wchar_align_2_optionalPubSubType::getKey( return true; } -void wchar_align_2_optionalPubSubType::register_type_object_representation() const +void wchar_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_wchar_align_2_optional_type_identifier(type_identifiers_); } wchar_align_4_optionalPubSubType::wchar_align_4_optionalPubSubType() @@ -10062,9 +10062,9 @@ bool wchar_align_4_optionalPubSubType::getKey( return true; } -void wchar_align_4_optionalPubSubType::register_type_object_representation() const +void wchar_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_wchar_align_4_optional_type_identifier(type_identifiers_); } sequence_short_optionalPubSubType::sequence_short_optionalPubSubType() @@ -10255,9 +10255,9 @@ bool sequence_short_optionalPubSubType::getKey( return true; } -void sequence_short_optionalPubSubType::register_type_object_representation() const +void sequence_short_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_sequence_short_optional_type_identifier(type_identifiers_); } sequence_short_align_1_optionalPubSubType::sequence_short_align_1_optionalPubSubType() @@ -10448,9 +10448,9 @@ bool sequence_short_align_1_optionalPubSubType::getKey( return true; } -void sequence_short_align_1_optionalPubSubType::register_type_object_representation() const +void sequence_short_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_sequence_short_align_1_optional_type_identifier(type_identifiers_); } sequence_short_align_2_optionalPubSubType::sequence_short_align_2_optionalPubSubType() @@ -10641,9 +10641,9 @@ bool sequence_short_align_2_optionalPubSubType::getKey( return true; } -void sequence_short_align_2_optionalPubSubType::register_type_object_representation() const +void sequence_short_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_sequence_short_align_2_optional_type_identifier(type_identifiers_); } sequence_short_align_4_optionalPubSubType::sequence_short_align_4_optionalPubSubType() @@ -10834,9 +10834,9 @@ bool sequence_short_align_4_optionalPubSubType::getKey( return true; } -void sequence_short_align_4_optionalPubSubType::register_type_object_representation() const +void sequence_short_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_sequence_short_align_4_optional_type_identifier(type_identifiers_); } string_unbounded_optionalPubSubType::string_unbounded_optionalPubSubType() @@ -11027,9 +11027,9 @@ bool string_unbounded_optionalPubSubType::getKey( return true; } -void string_unbounded_optionalPubSubType::register_type_object_representation() const +void string_unbounded_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_unbounded_optional_type_identifier(type_identifiers_); } string_unbounded_align_1_optionalPubSubType::string_unbounded_align_1_optionalPubSubType() @@ -11220,9 +11220,9 @@ bool string_unbounded_align_1_optionalPubSubType::getKey( return true; } -void string_unbounded_align_1_optionalPubSubType::register_type_object_representation() const +void string_unbounded_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_unbounded_align_1_optional_type_identifier(type_identifiers_); } string_unbounded_align_2_optionalPubSubType::string_unbounded_align_2_optionalPubSubType() @@ -11413,9 +11413,9 @@ bool string_unbounded_align_2_optionalPubSubType::getKey( return true; } -void string_unbounded_align_2_optionalPubSubType::register_type_object_representation() const +void string_unbounded_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_unbounded_align_2_optional_type_identifier(type_identifiers_); } string_unbounded_align_4_optionalPubSubType::string_unbounded_align_4_optionalPubSubType() @@ -11606,9 +11606,9 @@ bool string_unbounded_align_4_optionalPubSubType::getKey( return true; } -void string_unbounded_align_4_optionalPubSubType::register_type_object_representation() const +void string_unbounded_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_unbounded_align_4_optional_type_identifier(type_identifiers_); } string_bounded_optionalPubSubType::string_bounded_optionalPubSubType() @@ -11799,9 +11799,9 @@ bool string_bounded_optionalPubSubType::getKey( return true; } -void string_bounded_optionalPubSubType::register_type_object_representation() const +void string_bounded_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_bounded_optional_type_identifier(type_identifiers_); } string_bounded_align_1_optionalPubSubType::string_bounded_align_1_optionalPubSubType() @@ -11992,9 +11992,9 @@ bool string_bounded_align_1_optionalPubSubType::getKey( return true; } -void string_bounded_align_1_optionalPubSubType::register_type_object_representation() const +void string_bounded_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_bounded_align_1_optional_type_identifier(type_identifiers_); } string_bounded_align_2_optionalPubSubType::string_bounded_align_2_optionalPubSubType() @@ -12185,9 +12185,9 @@ bool string_bounded_align_2_optionalPubSubType::getKey( return true; } -void string_bounded_align_2_optionalPubSubType::register_type_object_representation() const +void string_bounded_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_bounded_align_2_optional_type_identifier(type_identifiers_); } string_bounded_align_4_optionalPubSubType::string_bounded_align_4_optionalPubSubType() @@ -12378,9 +12378,9 @@ bool string_bounded_align_4_optionalPubSubType::getKey( return true; } -void string_bounded_align_4_optionalPubSubType::register_type_object_representation() const +void string_bounded_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_string_bounded_align_4_optional_type_identifier(type_identifiers_); } map_short_optionalPubSubType::map_short_optionalPubSubType() @@ -12571,9 +12571,9 @@ bool map_short_optionalPubSubType::getKey( return true; } -void map_short_optionalPubSubType::register_type_object_representation() const +void map_short_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_map_short_optional_type_identifier(type_identifiers_); } map_short_align_1_optionalPubSubType::map_short_align_1_optionalPubSubType() @@ -12764,9 +12764,9 @@ bool map_short_align_1_optionalPubSubType::getKey( return true; } -void map_short_align_1_optionalPubSubType::register_type_object_representation() const +void map_short_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_map_short_align_1_optional_type_identifier(type_identifiers_); } map_short_align_2_optionalPubSubType::map_short_align_2_optionalPubSubType() @@ -12957,9 +12957,9 @@ bool map_short_align_2_optionalPubSubType::getKey( return true; } -void map_short_align_2_optionalPubSubType::register_type_object_representation() const +void map_short_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_map_short_align_2_optional_type_identifier(type_identifiers_); } map_short_align_4_optionalPubSubType::map_short_align_4_optionalPubSubType() @@ -13150,9 +13150,9 @@ bool map_short_align_4_optionalPubSubType::getKey( return true; } -void map_short_align_4_optionalPubSubType::register_type_object_representation() const +void map_short_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_map_short_align_4_optional_type_identifier(type_identifiers_); } array_short_optionalPubSubType::array_short_optionalPubSubType() @@ -13343,9 +13343,9 @@ bool array_short_optionalPubSubType::getKey( return true; } -void array_short_optionalPubSubType::register_type_object_representation() const +void array_short_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_array_short_optional_type_identifier(type_identifiers_); } array_short_align_1_optionalPubSubType::array_short_align_1_optionalPubSubType() @@ -13536,9 +13536,9 @@ bool array_short_align_1_optionalPubSubType::getKey( return true; } -void array_short_align_1_optionalPubSubType::register_type_object_representation() const +void array_short_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_array_short_align_1_optional_type_identifier(type_identifiers_); } array_short_align_2_optionalPubSubType::array_short_align_2_optionalPubSubType() @@ -13729,9 +13729,9 @@ bool array_short_align_2_optionalPubSubType::getKey( return true; } -void array_short_align_2_optionalPubSubType::register_type_object_representation() const +void array_short_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_array_short_align_2_optional_type_identifier(type_identifiers_); } array_short_align_4_optionalPubSubType::array_short_align_4_optionalPubSubType() @@ -13922,9 +13922,9 @@ bool array_short_align_4_optionalPubSubType::getKey( return true; } -void array_short_align_4_optionalPubSubType::register_type_object_representation() const +void array_short_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_array_short_align_4_optional_type_identifier(type_identifiers_); } struct_optionalPubSubType::struct_optionalPubSubType() @@ -14115,9 +14115,9 @@ bool struct_optionalPubSubType::getKey( return true; } -void struct_optionalPubSubType::register_type_object_representation() const +void struct_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_struct_optional_type_identifier(type_identifiers_); } struct_align_1_optionalPubSubType::struct_align_1_optionalPubSubType() @@ -14308,9 +14308,9 @@ bool struct_align_1_optionalPubSubType::getKey( return true; } -void struct_align_1_optionalPubSubType::register_type_object_representation() const +void struct_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_struct_align_1_optional_type_identifier(type_identifiers_); } struct_align_2_optionalPubSubType::struct_align_2_optionalPubSubType() @@ -14501,9 +14501,9 @@ bool struct_align_2_optionalPubSubType::getKey( return true; } -void struct_align_2_optionalPubSubType::register_type_object_representation() const +void struct_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_struct_align_2_optional_type_identifier(type_identifiers_); } struct_align_4_optionalPubSubType::struct_align_4_optionalPubSubType() @@ -14694,9 +14694,9 @@ bool struct_align_4_optionalPubSubType::getKey( return true; } -void struct_align_4_optionalPubSubType::register_type_object_representation() const +void struct_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_struct_align_4_optional_type_identifier(type_identifiers_); } InnerStructOptionalPubSubType::InnerStructOptionalPubSubType() @@ -14887,9 +14887,9 @@ bool InnerStructOptionalPubSubType::getKey( return true; } -void InnerStructOptionalPubSubType::register_type_object_representation() const +void InnerStructOptionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_InnerStructOptional_type_identifier(type_identifiers_); } opt_struct_optionalPubSubType::opt_struct_optionalPubSubType() @@ -15080,9 +15080,9 @@ bool opt_struct_optionalPubSubType::getKey( return true; } -void opt_struct_optionalPubSubType::register_type_object_representation() const +void opt_struct_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_opt_struct_optional_type_identifier(type_identifiers_); } opt_struct_align_1_optionalPubSubType::opt_struct_align_1_optionalPubSubType() @@ -15273,9 +15273,9 @@ bool opt_struct_align_1_optionalPubSubType::getKey( return true; } -void opt_struct_align_1_optionalPubSubType::register_type_object_representation() const +void opt_struct_align_1_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_opt_struct_align_1_optional_type_identifier(type_identifiers_); } opt_struct_align_2_optionalPubSubType::opt_struct_align_2_optionalPubSubType() @@ -15466,9 +15466,9 @@ bool opt_struct_align_2_optionalPubSubType::getKey( return true; } -void opt_struct_align_2_optionalPubSubType::register_type_object_representation() const +void opt_struct_align_2_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_opt_struct_align_2_optional_type_identifier(type_identifiers_); } opt_struct_align_4_optionalPubSubType::opt_struct_align_4_optionalPubSubType() @@ -15659,9 +15659,9 @@ bool opt_struct_align_4_optionalPubSubType::getKey( return true; } -void opt_struct_align_4_optionalPubSubType::register_type_object_representation() const +void opt_struct_align_4_optionalPubSubType::register_type_object_representation() { - register_optional_type_objects(); + register_opt_struct_align_4_optional_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/optionalPubSubTypes.h b/test/dds-types-test/optionalPubSubTypes.h index 51eb6201c15..543dc9c8506 100644 --- a/test/dds-types-test/optionalPubSubTypes.h +++ b/test/dds-types-test/optionalPubSubTypes.h @@ -90,7 +90,7 @@ class short_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class ushort_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class long_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class ulong_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class longlong_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class ulonglong_optionalPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class float_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class double_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class longdouble_optionalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class boolean_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class octet_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class char_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class wchar_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class short_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class short_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class short_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class ushort_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class ushort_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class ushort_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class long_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class long_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class long_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class ulong_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class ulong_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class ulong_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class longlong_align_1_optionalPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class longlong_align_2_optionalPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class longlong_align_4_optionalPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2638,7 +2638,7 @@ class ulonglong_align_1_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2729,7 +2729,7 @@ class ulonglong_align_2_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2820,7 +2820,7 @@ class ulonglong_align_4_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2911,7 +2911,7 @@ class float_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3002,7 +3002,7 @@ class float_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3093,7 +3093,7 @@ class float_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3184,7 +3184,7 @@ class double_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3275,7 +3275,7 @@ class double_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3366,7 +3366,7 @@ class double_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3457,7 +3457,7 @@ class longdouble_align_1_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3548,7 +3548,7 @@ class longdouble_align_2_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3639,7 +3639,7 @@ class longdouble_align_4_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3730,7 +3730,7 @@ class boolean_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3821,7 +3821,7 @@ class boolean_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3912,7 +3912,7 @@ class boolean_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4003,7 +4003,7 @@ class octet_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4094,7 +4094,7 @@ class octet_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4185,7 +4185,7 @@ class octet_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4276,7 +4276,7 @@ class char_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4367,7 +4367,7 @@ class char_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4458,7 +4458,7 @@ class char_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4549,7 +4549,7 @@ class wchar_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4640,7 +4640,7 @@ class wchar_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4731,7 +4731,7 @@ class wchar_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4822,7 +4822,7 @@ class sequence_short_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -4913,7 +4913,7 @@ class sequence_short_align_1_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5004,7 +5004,7 @@ class sequence_short_align_2_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5095,7 +5095,7 @@ class sequence_short_align_4_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5186,7 +5186,7 @@ class string_unbounded_optionalPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5277,7 +5277,7 @@ class string_unbounded_align_1_optionalPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5368,7 +5368,7 @@ class string_unbounded_align_2_optionalPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5459,7 +5459,7 @@ class string_unbounded_align_4_optionalPubSubType : public eprosima::fastdds::dd void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5550,7 +5550,7 @@ class string_bounded_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5641,7 +5641,7 @@ class string_bounded_align_1_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5732,7 +5732,7 @@ class string_bounded_align_2_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5823,7 +5823,7 @@ class string_bounded_align_4_optionalPubSubType : public eprosima::fastdds::dds: void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -5914,7 +5914,7 @@ class map_short_optionalPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6005,7 +6005,7 @@ class map_short_align_1_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6096,7 +6096,7 @@ class map_short_align_2_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6187,7 +6187,7 @@ class map_short_align_4_optionalPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6278,7 +6278,7 @@ class array_short_optionalPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6369,7 +6369,7 @@ class array_short_align_1_optionalPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6460,7 +6460,7 @@ class array_short_align_2_optionalPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6551,7 +6551,7 @@ class array_short_align_4_optionalPubSubType : public eprosima::fastdds::dds::To void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6642,7 +6642,7 @@ class struct_optionalPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6733,7 +6733,7 @@ class struct_align_1_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6824,7 +6824,7 @@ class struct_align_2_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -6915,7 +6915,7 @@ class struct_align_4_optionalPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7006,7 +7006,7 @@ class InnerStructOptionalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7097,7 +7097,7 @@ class opt_struct_optionalPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7188,7 +7188,7 @@ class opt_struct_align_1_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7279,7 +7279,7 @@ class opt_struct_align_2_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -7370,7 +7370,7 @@ class opt_struct_align_4_optionalPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/optionalTypeObjectSupport.cxx b/test/dds-types-test/optionalTypeObjectSupport.cxx index 8888b234221..84d82fd3cdc 100644 --- a/test/dds-types-test/optionalTypeObjectSupport.cxx +++ b/test/dds-types-test/optionalTypeObjectSupport.cxx @@ -39,192 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_optional_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_short_optional_type_identifier(type_id); - - register_ushort_optional_type_identifier(type_id); - - register_long_optional_type_identifier(type_id); - - register_ulong_optional_type_identifier(type_id); - - register_longlong_optional_type_identifier(type_id); - - register_ulonglong_optional_type_identifier(type_id); - - register_float_optional_type_identifier(type_id); - - register_double_optional_type_identifier(type_id); - - register_longdouble_optional_type_identifier(type_id); - - register_boolean_optional_type_identifier(type_id); - - register_octet_optional_type_identifier(type_id); - - register_char_optional_type_identifier(type_id); - - register_wchar_optional_type_identifier(type_id); - - register_short_align_1_optional_type_identifier(type_id); - - register_short_align_2_optional_type_identifier(type_id); - - register_short_align_4_optional_type_identifier(type_id); - - register_ushort_align_1_optional_type_identifier(type_id); - - register_ushort_align_2_optional_type_identifier(type_id); - - register_ushort_align_4_optional_type_identifier(type_id); - - register_long_align_1_optional_type_identifier(type_id); - - register_long_align_2_optional_type_identifier(type_id); - - register_long_align_4_optional_type_identifier(type_id); - - register_ulong_align_1_optional_type_identifier(type_id); - - register_ulong_align_2_optional_type_identifier(type_id); - - register_ulong_align_4_optional_type_identifier(type_id); - - register_longlong_align_1_optional_type_identifier(type_id); - - register_longlong_align_2_optional_type_identifier(type_id); - - register_longlong_align_4_optional_type_identifier(type_id); - - register_ulonglong_align_1_optional_type_identifier(type_id); - - register_ulonglong_align_2_optional_type_identifier(type_id); - - register_ulonglong_align_4_optional_type_identifier(type_id); - - register_float_align_1_optional_type_identifier(type_id); - - register_float_align_2_optional_type_identifier(type_id); - - register_float_align_4_optional_type_identifier(type_id); - - register_double_align_1_optional_type_identifier(type_id); - - register_double_align_2_optional_type_identifier(type_id); - - register_double_align_4_optional_type_identifier(type_id); - - register_longdouble_align_1_optional_type_identifier(type_id); - - register_longdouble_align_2_optional_type_identifier(type_id); - - register_longdouble_align_4_optional_type_identifier(type_id); - - register_boolean_align_1_optional_type_identifier(type_id); - - register_boolean_align_2_optional_type_identifier(type_id); - - register_boolean_align_4_optional_type_identifier(type_id); - - register_octet_align_1_optional_type_identifier(type_id); - - register_octet_align_2_optional_type_identifier(type_id); - - register_octet_align_4_optional_type_identifier(type_id); - - register_char_align_1_optional_type_identifier(type_id); - - register_char_align_2_optional_type_identifier(type_id); - - register_char_align_4_optional_type_identifier(type_id); - - register_wchar_align_1_optional_type_identifier(type_id); - - register_wchar_align_2_optional_type_identifier(type_id); - - register_wchar_align_4_optional_type_identifier(type_id); - - register_sequence_short_optional_type_identifier(type_id); - - register_sequence_short_align_1_optional_type_identifier(type_id); - - register_sequence_short_align_2_optional_type_identifier(type_id); - - register_sequence_short_align_4_optional_type_identifier(type_id); - - register_string_unbounded_optional_type_identifier(type_id); - - register_string_unbounded_align_1_optional_type_identifier(type_id); - - register_string_unbounded_align_2_optional_type_identifier(type_id); - - register_string_unbounded_align_4_optional_type_identifier(type_id); - - register_string_bounded_optional_type_identifier(type_id); - - register_string_bounded_align_1_optional_type_identifier(type_id); - - register_string_bounded_align_2_optional_type_identifier(type_id); - - register_string_bounded_align_4_optional_type_identifier(type_id); - - register_map_short_optional_type_identifier(type_id); - - register_map_short_align_1_optional_type_identifier(type_id); - - register_map_short_align_2_optional_type_identifier(type_id); - - register_map_short_align_4_optional_type_identifier(type_id); - - register_array_short_optional_type_identifier(type_id); - - register_array_short_align_1_optional_type_identifier(type_id); - - register_array_short_align_2_optional_type_identifier(type_id); - - register_array_short_align_4_optional_type_identifier(type_id); - - register_struct_optional_type_identifier(type_id); - - register_struct_align_1_optional_type_identifier(type_id); - - register_struct_align_2_optional_type_identifier(type_id); - - register_struct_align_4_optional_type_identifier(type_id); - - register_InnerStructOptional_type_identifier(type_id); - - register_opt_struct_optional_type_identifier(type_id); - - register_opt_struct_align_1_optional_type_identifier(type_id); - - register_opt_struct_align_2_optional_type_identifier(type_id); - - register_opt_struct_align_4_optional_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_short_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_short_optional) { + + ReturnCode_t return_code_short_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_short_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "short_optional", type_ids_short_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_short_optional) { - StructTypeFlag struct_flags_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_short_optional; - TypeIdentifierPair type_ids_short_optional; QualifiedTypeName type_name_short_optional = "short_optional"; eprosima::fastcdr::optional type_ann_builtin_short_optional; eprosima::fastcdr::optional ann_custom_short_optional; @@ -233,62 +60,26 @@ void register_short_optional_type_identifier( header_short_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_short_optional); CompleteStructMemberSeq member_seq_short_optional; { - return_code_short_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_short_optional); + "_int16_t", type_ids_value); - if (return_code_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_short_optional.type_identifier1()._d() || TK_NONE == type_ids_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -313,32 +104,26 @@ void register_short_optional_type_identifier( } CompleteStructType struct_type_short_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_short_optional, header_short_optional, member_seq_short_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_optional, type_name_short_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_optional, type_name_short_optional.to_string(), type_ids_short_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "short_optional already registered in TypeObjectRegistry for a different type."); } - return_code_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "short_optional", type_ids_short_optional); - if (return_code_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "short_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ushort_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ushort_optional) { + + ReturnCode_t return_code_ushort_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ushort_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ushort_optional", type_ids_ushort_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ushort_optional) { - StructTypeFlag struct_flags_ushort_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ushort_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ushort_optional; - TypeIdentifierPair type_ids_ushort_optional; QualifiedTypeName type_name_ushort_optional = "ushort_optional"; eprosima::fastcdr::optional type_ann_builtin_ushort_optional; eprosima::fastcdr::optional ann_custom_ushort_optional; @@ -347,62 +132,26 @@ void register_ushort_optional_type_identifier( header_ushort_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ushort_optional); CompleteStructMemberSeq member_seq_ushort_optional; { - return_code_ushort_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ushort_optional); + "_uint16_t", type_ids_value); - if (return_code_ushort_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_ushort_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -427,32 +176,26 @@ void register_ushort_optional_type_identifier( } CompleteStructType struct_type_ushort_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ushort_optional, header_ushort_optional, member_seq_ushort_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_optional, type_name_ushort_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_optional, type_name_ushort_optional.to_string(), type_ids_ushort_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ushort_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ushort_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ushort_optional", type_ids_ushort_optional); - if (return_code_ushort_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ushort_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_long_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_long_optional) { + + ReturnCode_t return_code_long_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "long_optional", type_ids_long_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_optional) { - StructTypeFlag struct_flags_long_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_long_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_long_optional; - TypeIdentifierPair type_ids_long_optional; QualifiedTypeName type_name_long_optional = "long_optional"; eprosima::fastcdr::optional type_ann_builtin_long_optional; eprosima::fastcdr::optional ann_custom_long_optional; @@ -461,62 +204,26 @@ void register_long_optional_type_identifier( header_long_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_long_optional); CompleteStructMemberSeq member_seq_long_optional; { - return_code_long_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_long_optional); + "_int32_t", type_ids_value); - if (return_code_long_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_long_optional.type_identifier1()._d() || TK_NONE == type_ids_long_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -541,32 +248,26 @@ void register_long_optional_type_identifier( } CompleteStructType struct_type_long_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_long_optional, header_long_optional, member_seq_long_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_optional, type_name_long_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_optional, type_name_long_optional.to_string(), type_ids_long_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_optional already registered in TypeObjectRegistry for a different type."); } - return_code_long_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "long_optional", type_ids_long_optional); - if (return_code_long_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulong_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulong_optional) { + + ReturnCode_t return_code_ulong_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulong_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulong_optional", type_ids_ulong_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulong_optional) { - StructTypeFlag struct_flags_ulong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulong_optional; - TypeIdentifierPair type_ids_ulong_optional; QualifiedTypeName type_name_ulong_optional = "ulong_optional"; eprosima::fastcdr::optional type_ann_builtin_ulong_optional; eprosima::fastcdr::optional ann_custom_ulong_optional; @@ -575,62 +276,26 @@ void register_ulong_optional_type_identifier( header_ulong_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulong_optional); CompleteStructMemberSeq member_seq_ulong_optional; { - return_code_ulong_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulong_optional); + "_uint32_t", type_ids_value); - if (return_code_ulong_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_ulong_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -655,32 +320,26 @@ void register_ulong_optional_type_identifier( } CompleteStructType struct_type_ulong_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulong_optional, header_ulong_optional, member_seq_ulong_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_optional, type_name_ulong_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_optional, type_name_ulong_optional.to_string(), type_ids_ulong_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulong_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulong_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulong_optional", type_ids_ulong_optional); - if (return_code_ulong_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulong_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longlong_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longlong_optional) { + + ReturnCode_t return_code_longlong_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longlong_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longlong_optional", type_ids_longlong_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longlong_optional) { - StructTypeFlag struct_flags_longlong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longlong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longlong_optional; - TypeIdentifierPair type_ids_longlong_optional; QualifiedTypeName type_name_longlong_optional = "longlong_optional"; eprosima::fastcdr::optional type_ann_builtin_longlong_optional; eprosima::fastcdr::optional ann_custom_longlong_optional; @@ -689,62 +348,26 @@ void register_longlong_optional_type_identifier( header_longlong_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longlong_optional); CompleteStructMemberSeq member_seq_longlong_optional; { - return_code_longlong_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_longlong_optional); + "_int64_t", type_ids_value); - if (return_code_longlong_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_longlong_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -769,32 +392,26 @@ void register_longlong_optional_type_identifier( } CompleteStructType struct_type_longlong_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longlong_optional, header_longlong_optional, member_seq_longlong_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_optional, type_name_longlong_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_optional, type_name_longlong_optional.to_string(), type_ids_longlong_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longlong_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longlong_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longlong_optional", type_ids_longlong_optional); - if (return_code_longlong_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longlong_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulonglong_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulonglong_optional) { + + ReturnCode_t return_code_ulonglong_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulonglong_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulonglong_optional", type_ids_ulonglong_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulonglong_optional) { - StructTypeFlag struct_flags_ulonglong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulonglong_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulonglong_optional; - TypeIdentifierPair type_ids_ulonglong_optional; QualifiedTypeName type_name_ulonglong_optional = "ulonglong_optional"; eprosima::fastcdr::optional type_ann_builtin_ulonglong_optional; eprosima::fastcdr::optional ann_custom_ulonglong_optional; @@ -803,62 +420,26 @@ void register_ulonglong_optional_type_identifier( header_ulonglong_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulonglong_optional); CompleteStructMemberSeq member_seq_ulonglong_optional; { - return_code_ulonglong_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ulonglong_optional); + "_uint64_t", type_ids_value); - if (return_code_ulonglong_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -883,32 +464,26 @@ void register_ulonglong_optional_type_identifier( } CompleteStructType struct_type_ulonglong_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulonglong_optional, header_ulonglong_optional, member_seq_ulonglong_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_optional, type_name_ulonglong_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_optional, type_name_ulonglong_optional.to_string(), type_ids_ulonglong_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulonglong_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulonglong_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulonglong_optional", type_ids_ulonglong_optional); - if (return_code_ulonglong_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulonglong_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_float_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_float_optional) { + + ReturnCode_t return_code_float_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "float_optional", type_ids_float_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_optional) { - StructTypeFlag struct_flags_float_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_float_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_float_optional; - TypeIdentifierPair type_ids_float_optional; QualifiedTypeName type_name_float_optional = "float_optional"; eprosima::fastcdr::optional type_ann_builtin_float_optional; eprosima::fastcdr::optional ann_custom_float_optional; @@ -917,62 +492,26 @@ void register_float_optional_type_identifier( header_float_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_float_optional); CompleteStructMemberSeq member_seq_float_optional; { - return_code_float_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_float_optional); + "_float", type_ids_value); - if (return_code_float_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_float_optional.type_identifier1()._d() || TK_NONE == type_ids_float_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -997,32 +536,26 @@ void register_float_optional_type_identifier( } CompleteStructType struct_type_float_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_float_optional, header_float_optional, member_seq_float_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_optional, type_name_float_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_optional, type_name_float_optional.to_string(), type_ids_float_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_optional already registered in TypeObjectRegistry for a different type."); } - return_code_float_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "float_optional", type_ids_float_optional); - if (return_code_float_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_double_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_double_optional) { + + ReturnCode_t return_code_double_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "double_optional", type_ids_double_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_optional) { - StructTypeFlag struct_flags_double_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_double_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_double_optional; - TypeIdentifierPair type_ids_double_optional; QualifiedTypeName type_name_double_optional = "double_optional"; eprosima::fastcdr::optional type_ann_builtin_double_optional; eprosima::fastcdr::optional ann_custom_double_optional; @@ -1031,62 +564,26 @@ void register_double_optional_type_identifier( header_double_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_double_optional); CompleteStructMemberSeq member_seq_double_optional; { - return_code_double_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_double_optional); + "_double", type_ids_value); - if (return_code_double_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_double_optional.type_identifier1()._d() || TK_NONE == type_ids_double_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1111,32 +608,26 @@ void register_double_optional_type_identifier( } CompleteStructType struct_type_double_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_double_optional, header_double_optional, member_seq_double_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_optional, type_name_double_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_optional, type_name_double_optional.to_string(), type_ids_double_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_optional already registered in TypeObjectRegistry for a different type."); } - return_code_double_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "double_optional", type_ids_double_optional); - if (return_code_double_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longdouble_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longdouble_optional) { + + ReturnCode_t return_code_longdouble_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longdouble_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longdouble_optional", type_ids_longdouble_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longdouble_optional) { - StructTypeFlag struct_flags_longdouble_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longdouble_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longdouble_optional; - TypeIdentifierPair type_ids_longdouble_optional; QualifiedTypeName type_name_longdouble_optional = "longdouble_optional"; eprosima::fastcdr::optional type_ann_builtin_longdouble_optional; eprosima::fastcdr::optional ann_custom_longdouble_optional; @@ -1145,62 +636,26 @@ void register_longdouble_optional_type_identifier( header_longdouble_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longdouble_optional); CompleteStructMemberSeq member_seq_longdouble_optional; { - return_code_longdouble_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_longdouble_optional); + "_longdouble", type_ids_value); - if (return_code_longdouble_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_longdouble_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1225,32 +680,26 @@ void register_longdouble_optional_type_identifier( } CompleteStructType struct_type_longdouble_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longdouble_optional, header_longdouble_optional, member_seq_longdouble_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_optional, type_name_longdouble_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_optional, type_name_longdouble_optional.to_string(), type_ids_longdouble_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longdouble_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longdouble_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longdouble_optional", type_ids_longdouble_optional); - if (return_code_longdouble_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longdouble_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_boolean_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_boolean_optional) { + + ReturnCode_t return_code_boolean_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_boolean_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "boolean_optional", type_ids_boolean_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_boolean_optional) { - StructTypeFlag struct_flags_boolean_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_boolean_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_boolean_optional; - TypeIdentifierPair type_ids_boolean_optional; QualifiedTypeName type_name_boolean_optional = "boolean_optional"; eprosima::fastcdr::optional type_ann_builtin_boolean_optional; eprosima::fastcdr::optional ann_custom_boolean_optional; @@ -1259,62 +708,26 @@ void register_boolean_optional_type_identifier( header_boolean_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_boolean_optional); CompleteStructMemberSeq member_seq_boolean_optional; { - return_code_boolean_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_boolean_optional); + "_bool", type_ids_value); - if (return_code_boolean_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_boolean_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1339,32 +752,26 @@ void register_boolean_optional_type_identifier( } CompleteStructType struct_type_boolean_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_boolean_optional, header_boolean_optional, member_seq_boolean_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_optional, type_name_boolean_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_optional, type_name_boolean_optional.to_string(), type_ids_boolean_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "boolean_optional already registered in TypeObjectRegistry for a different type."); } - return_code_boolean_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "boolean_optional", type_ids_boolean_optional); - if (return_code_boolean_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "boolean_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_octet_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_octet_optional) { + + ReturnCode_t return_code_octet_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_octet_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "octet_optional", type_ids_octet_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_octet_optional) { - StructTypeFlag struct_flags_octet_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_octet_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_octet_optional; - TypeIdentifierPair type_ids_octet_optional; QualifiedTypeName type_name_octet_optional = "octet_optional"; eprosima::fastcdr::optional type_ann_builtin_octet_optional; eprosima::fastcdr::optional ann_custom_octet_optional; @@ -1373,62 +780,26 @@ void register_octet_optional_type_identifier( header_octet_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_octet_optional); CompleteStructMemberSeq member_seq_octet_optional; { - return_code_octet_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_octet_optional); + "_byte", type_ids_value); - if (return_code_octet_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_octet_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1453,32 +824,26 @@ void register_octet_optional_type_identifier( } CompleteStructType struct_type_octet_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_octet_optional, header_octet_optional, member_seq_octet_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_optional, type_name_octet_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_optional, type_name_octet_optional.to_string(), type_ids_octet_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "octet_optional already registered in TypeObjectRegistry for a different type."); } - return_code_octet_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "octet_optional", type_ids_octet_optional); - if (return_code_octet_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "octet_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_char_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_char_optional) { + + ReturnCode_t return_code_char_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "char_optional", type_ids_char_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_optional) { - StructTypeFlag struct_flags_char_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_char_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_char_optional; - TypeIdentifierPair type_ids_char_optional; QualifiedTypeName type_name_char_optional = "char_optional"; eprosima::fastcdr::optional type_ann_builtin_char_optional; eprosima::fastcdr::optional ann_custom_char_optional; @@ -1487,62 +852,26 @@ void register_char_optional_type_identifier( header_char_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_char_optional); CompleteStructMemberSeq member_seq_char_optional; { - return_code_char_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_char_optional); + "_char", type_ids_value); - if (return_code_char_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_char_optional.type_identifier1()._d() || TK_NONE == type_ids_char_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1567,32 +896,26 @@ void register_char_optional_type_identifier( } CompleteStructType struct_type_char_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_char_optional, header_char_optional, member_seq_char_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_optional, type_name_char_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_optional, type_name_char_optional.to_string(), type_ids_char_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_optional already registered in TypeObjectRegistry for a different type."); } - return_code_char_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "char_optional", type_ids_char_optional); - if (return_code_char_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_wchar_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_wchar_optional) { + + ReturnCode_t return_code_wchar_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_wchar_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "wchar_optional", type_ids_wchar_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_wchar_optional) { - StructTypeFlag struct_flags_wchar_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_wchar_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_wchar_optional; - TypeIdentifierPair type_ids_wchar_optional; QualifiedTypeName type_name_wchar_optional = "wchar_optional"; eprosima::fastcdr::optional type_ann_builtin_wchar_optional; eprosima::fastcdr::optional ann_custom_wchar_optional; @@ -1601,62 +924,26 @@ void register_wchar_optional_type_identifier( header_wchar_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_wchar_optional); CompleteStructMemberSeq member_seq_wchar_optional; { - return_code_wchar_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_wchar_optional); + "_wchar_t", type_ids_value); - if (return_code_wchar_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_wchar_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1681,32 +968,26 @@ void register_wchar_optional_type_identifier( } CompleteStructType struct_type_wchar_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_wchar_optional, header_wchar_optional, member_seq_wchar_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_optional, type_name_wchar_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_optional, type_name_wchar_optional.to_string(), type_ids_wchar_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "wchar_optional already registered in TypeObjectRegistry for a different type."); } - return_code_wchar_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "wchar_optional", type_ids_wchar_optional); - if (return_code_wchar_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "wchar_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_short_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_short_align_1_optional) { + + ReturnCode_t return_code_short_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_short_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "short_align_1_optional", type_ids_short_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_short_align_1_optional) { - StructTypeFlag struct_flags_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_short_align_1_optional; - TypeIdentifierPair type_ids_short_align_1_optional; QualifiedTypeName type_name_short_align_1_optional = "short_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_short_align_1_optional; eprosima::fastcdr::optional ann_custom_short_align_1_optional; @@ -1715,62 +996,26 @@ void register_short_align_1_optional_type_identifier( header_short_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_short_align_1_optional); CompleteStructMemberSeq member_seq_short_align_1_optional; { - return_code_short_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_short_align_1_optional); + "_byte", type_ids_align); - if (return_code_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -1781,62 +1026,26 @@ void register_short_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_short_align_1_optional, member_align); } { - return_code_short_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_short_align_1_optional); + "_int16_t", type_ids_value); - if (return_code_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -1861,32 +1070,26 @@ void register_short_align_1_optional_type_identifier( } CompleteStructType struct_type_short_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_short_align_1_optional, header_short_align_1_optional, member_seq_short_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_1_optional, type_name_short_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_1_optional, type_name_short_align_1_optional.to_string(), type_ids_short_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "short_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "short_align_1_optional", type_ids_short_align_1_optional); - if (return_code_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "short_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_short_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_short_align_2_optional) { + + ReturnCode_t return_code_short_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_short_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "short_align_2_optional", type_ids_short_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_short_align_2_optional) { - StructTypeFlag struct_flags_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_short_align_2_optional; - TypeIdentifierPair type_ids_short_align_2_optional; QualifiedTypeName type_name_short_align_2_optional = "short_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_short_align_2_optional; eprosima::fastcdr::optional ann_custom_short_align_2_optional; @@ -1895,62 +1098,26 @@ void register_short_align_2_optional_type_identifier( header_short_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_short_align_2_optional); CompleteStructMemberSeq member_seq_short_align_2_optional; { - return_code_short_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_short_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -1961,62 +1128,26 @@ void register_short_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_short_align_2_optional, member_align); } { - return_code_short_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_short_align_2_optional); + "_int16_t", type_ids_value); - if (return_code_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2041,32 +1172,26 @@ void register_short_align_2_optional_type_identifier( } CompleteStructType struct_type_short_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_short_align_2_optional, header_short_align_2_optional, member_seq_short_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_2_optional, type_name_short_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_2_optional, type_name_short_align_2_optional.to_string(), type_ids_short_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "short_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "short_align_2_optional", type_ids_short_align_2_optional); - if (return_code_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "short_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_short_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_short_align_4_optional) { + + ReturnCode_t return_code_short_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_short_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "short_align_4_optional", type_ids_short_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_short_align_4_optional) { - StructTypeFlag struct_flags_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_short_align_4_optional; - TypeIdentifierPair type_ids_short_align_4_optional; QualifiedTypeName type_name_short_align_4_optional = "short_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_short_align_4_optional; eprosima::fastcdr::optional ann_custom_short_align_4_optional; @@ -2075,62 +1200,26 @@ void register_short_align_4_optional_type_identifier( header_short_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_short_align_4_optional); CompleteStructMemberSeq member_seq_short_align_4_optional; { - return_code_short_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_short_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_short_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -2141,62 +1230,26 @@ void register_short_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_short_align_4_optional, member_align); } { - return_code_short_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_short_align_4_optional); + "_int16_t", type_ids_value); - if (return_code_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_short_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2221,32 +1274,26 @@ void register_short_align_4_optional_type_identifier( } CompleteStructType struct_type_short_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_short_align_4_optional, header_short_align_4_optional, member_seq_short_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_4_optional, type_name_short_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_short_align_4_optional, type_name_short_align_4_optional.to_string(), type_ids_short_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "short_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "short_align_4_optional", type_ids_short_align_4_optional); - if (return_code_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "short_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ushort_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ushort_align_1_optional) { + + ReturnCode_t return_code_ushort_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ushort_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ushort_align_1_optional", type_ids_ushort_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ushort_align_1_optional) { - StructTypeFlag struct_flags_ushort_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ushort_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ushort_align_1_optional; - TypeIdentifierPair type_ids_ushort_align_1_optional; QualifiedTypeName type_name_ushort_align_1_optional = "ushort_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_ushort_align_1_optional; eprosima::fastcdr::optional ann_custom_ushort_align_1_optional; @@ -2255,62 +1302,26 @@ void register_ushort_align_1_optional_type_identifier( header_ushort_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ushort_align_1_optional); CompleteStructMemberSeq member_seq_ushort_align_1_optional; { - return_code_ushort_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ushort_align_1_optional); + "_byte", type_ids_align); - if (return_code_ushort_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -2321,62 +1332,26 @@ void register_ushort_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ushort_align_1_optional, member_align); } { - return_code_ushort_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ushort_align_1_optional); + "_uint16_t", type_ids_value); - if (return_code_ushort_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2401,32 +1376,26 @@ void register_ushort_align_1_optional_type_identifier( } CompleteStructType struct_type_ushort_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ushort_align_1_optional, header_ushort_align_1_optional, member_seq_ushort_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_1_optional, type_name_ushort_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_1_optional, type_name_ushort_align_1_optional.to_string(), type_ids_ushort_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ushort_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ushort_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ushort_align_1_optional", type_ids_ushort_align_1_optional); - if (return_code_ushort_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ushort_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ushort_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ushort_align_2_optional) { + + ReturnCode_t return_code_ushort_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ushort_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ushort_align_2_optional", type_ids_ushort_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ushort_align_2_optional) { - StructTypeFlag struct_flags_ushort_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ushort_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ushort_align_2_optional; - TypeIdentifierPair type_ids_ushort_align_2_optional; QualifiedTypeName type_name_ushort_align_2_optional = "ushort_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_ushort_align_2_optional; eprosima::fastcdr::optional ann_custom_ushort_align_2_optional; @@ -2435,62 +1404,26 @@ void register_ushort_align_2_optional_type_identifier( header_ushort_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ushort_align_2_optional); CompleteStructMemberSeq member_seq_ushort_align_2_optional; { - return_code_ushort_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ushort_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_ushort_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -2501,62 +1434,26 @@ void register_ushort_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ushort_align_2_optional, member_align); } { - return_code_ushort_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ushort_align_2_optional); + "_uint16_t", type_ids_value); - if (return_code_ushort_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2581,32 +1478,26 @@ void register_ushort_align_2_optional_type_identifier( } CompleteStructType struct_type_ushort_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ushort_align_2_optional, header_ushort_align_2_optional, member_seq_ushort_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_2_optional, type_name_ushort_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_2_optional, type_name_ushort_align_2_optional.to_string(), type_ids_ushort_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ushort_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ushort_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ushort_align_2_optional", type_ids_ushort_align_2_optional); - if (return_code_ushort_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ushort_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ushort_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ushort_align_4_optional) { + + ReturnCode_t return_code_ushort_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ushort_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ushort_align_4_optional", type_ids_ushort_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ushort_align_4_optional) { - StructTypeFlag struct_flags_ushort_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ushort_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ushort_align_4_optional; - TypeIdentifierPair type_ids_ushort_align_4_optional; QualifiedTypeName type_name_ushort_align_4_optional = "ushort_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_ushort_align_4_optional; eprosima::fastcdr::optional ann_custom_ushort_align_4_optional; @@ -2615,62 +1506,26 @@ void register_ushort_align_4_optional_type_identifier( header_ushort_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ushort_align_4_optional); CompleteStructMemberSeq member_seq_ushort_align_4_optional; { - return_code_ushort_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ushort_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_ushort_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ushort_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -2681,62 +1536,26 @@ void register_ushort_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ushort_align_4_optional, member_align); } { - return_code_ushort_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ushort_align_4_optional); + "_uint16_t", type_ids_value); - if (return_code_ushort_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ushort_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ushort_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ushort_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ushort_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ushort_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2761,32 +1580,26 @@ void register_ushort_align_4_optional_type_identifier( } CompleteStructType struct_type_ushort_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ushort_align_4_optional, header_ushort_align_4_optional, member_seq_ushort_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_4_optional, type_name_ushort_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ushort_align_4_optional, type_name_ushort_align_4_optional.to_string(), type_ids_ushort_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ushort_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ushort_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ushort_align_4_optional", type_ids_ushort_align_4_optional); - if (return_code_ushort_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ushort_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_long_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_long_align_1_optional) { + + ReturnCode_t return_code_long_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "long_align_1_optional", type_ids_long_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_align_1_optional) { - StructTypeFlag struct_flags_long_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_long_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_long_align_1_optional; - TypeIdentifierPair type_ids_long_align_1_optional; QualifiedTypeName type_name_long_align_1_optional = "long_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_long_align_1_optional; eprosima::fastcdr::optional ann_custom_long_align_1_optional; @@ -2795,62 +1608,26 @@ void register_long_align_1_optional_type_identifier( header_long_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_long_align_1_optional); CompleteStructMemberSeq member_seq_long_align_1_optional; { - return_code_long_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_long_align_1_optional); + "_byte", type_ids_align); - if (return_code_long_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -2861,62 +1638,26 @@ void register_long_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_long_align_1_optional, member_align); } { - return_code_long_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_long_align_1_optional); + "_int32_t", type_ids_value); - if (return_code_long_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -2941,32 +1682,26 @@ void register_long_align_1_optional_type_identifier( } CompleteStructType struct_type_long_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_long_align_1_optional, header_long_align_1_optional, member_seq_long_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_1_optional, type_name_long_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_1_optional, type_name_long_align_1_optional.to_string(), type_ids_long_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_long_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "long_align_1_optional", type_ids_long_align_1_optional); - if (return_code_long_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_long_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_long_align_2_optional) { + + ReturnCode_t return_code_long_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "long_align_2_optional", type_ids_long_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_align_2_optional) { - StructTypeFlag struct_flags_long_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_long_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_long_align_2_optional; - TypeIdentifierPair type_ids_long_align_2_optional; QualifiedTypeName type_name_long_align_2_optional = "long_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_long_align_2_optional; eprosima::fastcdr::optional ann_custom_long_align_2_optional; @@ -2975,62 +1710,26 @@ void register_long_align_2_optional_type_identifier( header_long_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_long_align_2_optional); CompleteStructMemberSeq member_seq_long_align_2_optional; { - return_code_long_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_long_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_long_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3041,62 +1740,26 @@ void register_long_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_long_align_2_optional, member_align); } { - return_code_long_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_long_align_2_optional); + "_int32_t", type_ids_value); - if (return_code_long_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3121,32 +1784,26 @@ void register_long_align_2_optional_type_identifier( } CompleteStructType struct_type_long_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_long_align_2_optional, header_long_align_2_optional, member_seq_long_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_2_optional, type_name_long_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_2_optional, type_name_long_align_2_optional.to_string(), type_ids_long_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_long_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "long_align_2_optional", type_ids_long_align_2_optional); - if (return_code_long_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_long_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_long_align_4_optional) { + + ReturnCode_t return_code_long_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "long_align_4_optional", type_ids_long_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_align_4_optional) { - StructTypeFlag struct_flags_long_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_long_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_long_align_4_optional; - TypeIdentifierPair type_ids_long_align_4_optional; QualifiedTypeName type_name_long_align_4_optional = "long_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_long_align_4_optional; eprosima::fastcdr::optional ann_custom_long_align_4_optional; @@ -3155,62 +1812,26 @@ void register_long_align_4_optional_type_identifier( header_long_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_long_align_4_optional); CompleteStructMemberSeq member_seq_long_align_4_optional; { - return_code_long_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_long_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_long_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_long_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3221,62 +1842,26 @@ void register_long_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_long_align_4_optional, member_align); } { - return_code_long_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_long_align_4_optional); + "_int32_t", type_ids_value); - if (return_code_long_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_long_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_long_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_long_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_long_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_long_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3301,32 +1886,26 @@ void register_long_align_4_optional_type_identifier( } CompleteStructType struct_type_long_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_long_align_4_optional, header_long_align_4_optional, member_seq_long_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_4_optional, type_name_long_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_long_align_4_optional, type_name_long_align_4_optional.to_string(), type_ids_long_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_long_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "long_align_4_optional", type_ids_long_align_4_optional); - if (return_code_long_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulong_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulong_align_1_optional) { + + ReturnCode_t return_code_ulong_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulong_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulong_align_1_optional", type_ids_ulong_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulong_align_1_optional) { - StructTypeFlag struct_flags_ulong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulong_align_1_optional; - TypeIdentifierPair type_ids_ulong_align_1_optional; QualifiedTypeName type_name_ulong_align_1_optional = "ulong_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_ulong_align_1_optional; eprosima::fastcdr::optional ann_custom_ulong_align_1_optional; @@ -3335,62 +1914,26 @@ void register_ulong_align_1_optional_type_identifier( header_ulong_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulong_align_1_optional); CompleteStructMemberSeq member_seq_ulong_align_1_optional; { - return_code_ulong_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ulong_align_1_optional); + "_byte", type_ids_align); - if (return_code_ulong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3401,62 +1944,26 @@ void register_ulong_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulong_align_1_optional, member_align); } { - return_code_ulong_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulong_align_1_optional); + "_uint32_t", type_ids_value); - if (return_code_ulong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3481,32 +1988,26 @@ void register_ulong_align_1_optional_type_identifier( } CompleteStructType struct_type_ulong_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulong_align_1_optional, header_ulong_align_1_optional, member_seq_ulong_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_1_optional, type_name_ulong_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_1_optional, type_name_ulong_align_1_optional.to_string(), type_ids_ulong_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulong_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulong_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulong_align_1_optional", type_ids_ulong_align_1_optional); - if (return_code_ulong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulong_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulong_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulong_align_2_optional) { + + ReturnCode_t return_code_ulong_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulong_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulong_align_2_optional", type_ids_ulong_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulong_align_2_optional) { - StructTypeFlag struct_flags_ulong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulong_align_2_optional; - TypeIdentifierPair type_ids_ulong_align_2_optional; QualifiedTypeName type_name_ulong_align_2_optional = "ulong_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_ulong_align_2_optional; eprosima::fastcdr::optional ann_custom_ulong_align_2_optional; @@ -3515,62 +2016,26 @@ void register_ulong_align_2_optional_type_identifier( header_ulong_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulong_align_2_optional); CompleteStructMemberSeq member_seq_ulong_align_2_optional; { - return_code_ulong_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ulong_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_ulong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3581,62 +2046,26 @@ void register_ulong_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulong_align_2_optional, member_align); } { - return_code_ulong_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulong_align_2_optional); + "_uint32_t", type_ids_value); - if (return_code_ulong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3661,32 +2090,26 @@ void register_ulong_align_2_optional_type_identifier( } CompleteStructType struct_type_ulong_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulong_align_2_optional, header_ulong_align_2_optional, member_seq_ulong_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_2_optional, type_name_ulong_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_2_optional, type_name_ulong_align_2_optional.to_string(), type_ids_ulong_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulong_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulong_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulong_align_2_optional", type_ids_ulong_align_2_optional); - if (return_code_ulong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulong_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulong_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulong_align_4_optional) { + + ReturnCode_t return_code_ulong_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulong_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulong_align_4_optional", type_ids_ulong_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulong_align_4_optional) { - StructTypeFlag struct_flags_ulong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulong_align_4_optional; - TypeIdentifierPair type_ids_ulong_align_4_optional; QualifiedTypeName type_name_ulong_align_4_optional = "ulong_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_ulong_align_4_optional; eprosima::fastcdr::optional ann_custom_ulong_align_4_optional; @@ -3695,62 +2118,26 @@ void register_ulong_align_4_optional_type_identifier( header_ulong_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulong_align_4_optional); CompleteStructMemberSeq member_seq_ulong_align_4_optional; { - return_code_ulong_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulong_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_ulong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulong_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3761,62 +2148,26 @@ void register_ulong_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulong_align_4_optional, member_align); } { - return_code_ulong_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulong_align_4_optional); + "_uint32_t", type_ids_value); - if (return_code_ulong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ulong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulong_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -3841,32 +2192,26 @@ void register_ulong_align_4_optional_type_identifier( } CompleteStructType struct_type_ulong_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulong_align_4_optional, header_ulong_align_4_optional, member_seq_ulong_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_4_optional, type_name_ulong_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulong_align_4_optional, type_name_ulong_align_4_optional.to_string(), type_ids_ulong_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulong_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulong_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulong_align_4_optional", type_ids_ulong_align_4_optional); - if (return_code_ulong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulong_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longlong_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longlong_align_1_optional) { + + ReturnCode_t return_code_longlong_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longlong_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longlong_align_1_optional", type_ids_longlong_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longlong_align_1_optional) { - StructTypeFlag struct_flags_longlong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longlong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longlong_align_1_optional; - TypeIdentifierPair type_ids_longlong_align_1_optional; QualifiedTypeName type_name_longlong_align_1_optional = "longlong_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_longlong_align_1_optional; eprosima::fastcdr::optional ann_custom_longlong_align_1_optional; @@ -3875,62 +2220,26 @@ void register_longlong_align_1_optional_type_identifier( header_longlong_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longlong_align_1_optional); CompleteStructMemberSeq member_seq_longlong_align_1_optional; { - return_code_longlong_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_longlong_align_1_optional); + "_byte", type_ids_align); - if (return_code_longlong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -3941,62 +2250,26 @@ void register_longlong_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longlong_align_1_optional, member_align); } { - return_code_longlong_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_longlong_align_1_optional); + "_int64_t", type_ids_value); - if (return_code_longlong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4021,32 +2294,26 @@ void register_longlong_align_1_optional_type_identifier( } CompleteStructType struct_type_longlong_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longlong_align_1_optional, header_longlong_align_1_optional, member_seq_longlong_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_1_optional, type_name_longlong_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_1_optional, type_name_longlong_align_1_optional.to_string(), type_ids_longlong_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longlong_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longlong_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longlong_align_1_optional", type_ids_longlong_align_1_optional); - if (return_code_longlong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longlong_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longlong_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longlong_align_2_optional) { + + ReturnCode_t return_code_longlong_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longlong_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longlong_align_2_optional", type_ids_longlong_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longlong_align_2_optional) { - StructTypeFlag struct_flags_longlong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longlong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longlong_align_2_optional; - TypeIdentifierPair type_ids_longlong_align_2_optional; QualifiedTypeName type_name_longlong_align_2_optional = "longlong_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_longlong_align_2_optional; eprosima::fastcdr::optional ann_custom_longlong_align_2_optional; @@ -4055,62 +2322,26 @@ void register_longlong_align_2_optional_type_identifier( header_longlong_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longlong_align_2_optional); CompleteStructMemberSeq member_seq_longlong_align_2_optional; { - return_code_longlong_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_longlong_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_longlong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -4121,62 +2352,26 @@ void register_longlong_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longlong_align_2_optional, member_align); } { - return_code_longlong_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_longlong_align_2_optional); + "_int64_t", type_ids_value); - if (return_code_longlong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4201,32 +2396,26 @@ void register_longlong_align_2_optional_type_identifier( } CompleteStructType struct_type_longlong_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longlong_align_2_optional, header_longlong_align_2_optional, member_seq_longlong_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_2_optional, type_name_longlong_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_2_optional, type_name_longlong_align_2_optional.to_string(), type_ids_longlong_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longlong_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longlong_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longlong_align_2_optional", type_ids_longlong_align_2_optional); - if (return_code_longlong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longlong_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longlong_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longlong_align_4_optional) { + + ReturnCode_t return_code_longlong_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longlong_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longlong_align_4_optional", type_ids_longlong_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longlong_align_4_optional) { - StructTypeFlag struct_flags_longlong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longlong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longlong_align_4_optional; - TypeIdentifierPair type_ids_longlong_align_4_optional; QualifiedTypeName type_name_longlong_align_4_optional = "longlong_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_longlong_align_4_optional; eprosima::fastcdr::optional ann_custom_longlong_align_4_optional; @@ -4235,62 +2424,26 @@ void register_longlong_align_4_optional_type_identifier( header_longlong_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longlong_align_4_optional); CompleteStructMemberSeq member_seq_longlong_align_4_optional; { - return_code_longlong_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_longlong_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_longlong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longlong_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -4301,62 +2454,26 @@ void register_longlong_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longlong_align_4_optional, member_align); } { - return_code_longlong_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_longlong_align_4_optional); + "_int64_t", type_ids_value); - if (return_code_longlong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_longlong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longlong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longlong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longlong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longlong_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4381,32 +2498,26 @@ void register_longlong_align_4_optional_type_identifier( } CompleteStructType struct_type_longlong_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longlong_align_4_optional, header_longlong_align_4_optional, member_seq_longlong_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_4_optional, type_name_longlong_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longlong_align_4_optional, type_name_longlong_align_4_optional.to_string(), type_ids_longlong_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longlong_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longlong_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longlong_align_4_optional", type_ids_longlong_align_4_optional); - if (return_code_longlong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longlong_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulonglong_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulonglong_align_1_optional) { + + ReturnCode_t return_code_ulonglong_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulonglong_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulonglong_align_1_optional", type_ids_ulonglong_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulonglong_align_1_optional) { - StructTypeFlag struct_flags_ulonglong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulonglong_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulonglong_align_1_optional; - TypeIdentifierPair type_ids_ulonglong_align_1_optional; QualifiedTypeName type_name_ulonglong_align_1_optional = "ulonglong_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_ulonglong_align_1_optional; eprosima::fastcdr::optional ann_custom_ulonglong_align_1_optional; @@ -4415,62 +2526,26 @@ void register_ulonglong_align_1_optional_type_identifier( header_ulonglong_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulonglong_align_1_optional); CompleteStructMemberSeq member_seq_ulonglong_align_1_optional; { - return_code_ulonglong_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ulonglong_align_1_optional); + "_byte", type_ids_align); - if (return_code_ulonglong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -4481,62 +2556,26 @@ void register_ulonglong_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulonglong_align_1_optional, member_align); } { - return_code_ulonglong_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ulonglong_align_1_optional); + "_uint64_t", type_ids_value); - if (return_code_ulonglong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4561,32 +2600,26 @@ void register_ulonglong_align_1_optional_type_identifier( } CompleteStructType struct_type_ulonglong_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulonglong_align_1_optional, header_ulonglong_align_1_optional, member_seq_ulonglong_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_1_optional, type_name_ulonglong_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_1_optional, type_name_ulonglong_align_1_optional.to_string(), type_ids_ulonglong_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulonglong_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulonglong_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulonglong_align_1_optional", type_ids_ulonglong_align_1_optional); - if (return_code_ulonglong_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulonglong_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulonglong_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulonglong_align_2_optional) { + + ReturnCode_t return_code_ulonglong_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulonglong_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulonglong_align_2_optional", type_ids_ulonglong_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulonglong_align_2_optional) { - StructTypeFlag struct_flags_ulonglong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulonglong_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulonglong_align_2_optional; - TypeIdentifierPair type_ids_ulonglong_align_2_optional; QualifiedTypeName type_name_ulonglong_align_2_optional = "ulonglong_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_ulonglong_align_2_optional; eprosima::fastcdr::optional ann_custom_ulonglong_align_2_optional; @@ -4595,62 +2628,26 @@ void register_ulonglong_align_2_optional_type_identifier( header_ulonglong_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulonglong_align_2_optional); CompleteStructMemberSeq member_seq_ulonglong_align_2_optional; { - return_code_ulonglong_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ulonglong_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_ulonglong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -4661,62 +2658,26 @@ void register_ulonglong_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulonglong_align_2_optional, member_align); } { - return_code_ulonglong_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ulonglong_align_2_optional); + "_uint64_t", type_ids_value); - if (return_code_ulonglong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4741,32 +2702,26 @@ void register_ulonglong_align_2_optional_type_identifier( } CompleteStructType struct_type_ulonglong_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulonglong_align_2_optional, header_ulonglong_align_2_optional, member_seq_ulonglong_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_2_optional, type_name_ulonglong_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_2_optional, type_name_ulonglong_align_2_optional.to_string(), type_ids_ulonglong_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulonglong_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulonglong_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulonglong_align_2_optional", type_ids_ulonglong_align_2_optional); - if (return_code_ulonglong_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulonglong_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ulonglong_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ulonglong_align_4_optional) { + + ReturnCode_t return_code_ulonglong_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ulonglong_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ulonglong_align_4_optional", type_ids_ulonglong_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ulonglong_align_4_optional) { - StructTypeFlag struct_flags_ulonglong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ulonglong_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ulonglong_align_4_optional; - TypeIdentifierPair type_ids_ulonglong_align_4_optional; QualifiedTypeName type_name_ulonglong_align_4_optional = "ulonglong_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_ulonglong_align_4_optional; eprosima::fastcdr::optional ann_custom_ulonglong_align_4_optional; @@ -4775,62 +2730,26 @@ void register_ulonglong_align_4_optional_type_identifier( header_ulonglong_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ulonglong_align_4_optional); CompleteStructMemberSeq member_seq_ulonglong_align_4_optional; { - return_code_ulonglong_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ulonglong_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_ulonglong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_ulonglong_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -4841,62 +2760,26 @@ void register_ulonglong_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ulonglong_align_4_optional, member_align); } { - return_code_ulonglong_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ulonglong_align_4_optional); + "_uint64_t", type_ids_value); - if (return_code_ulonglong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ulonglong_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ulonglong_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_ulonglong_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -4921,32 +2804,26 @@ void register_ulonglong_align_4_optional_type_identifier( } CompleteStructType struct_type_ulonglong_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_ulonglong_align_4_optional, header_ulonglong_align_4_optional, member_seq_ulonglong_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_4_optional, type_name_ulonglong_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ulonglong_align_4_optional, type_name_ulonglong_align_4_optional.to_string(), type_ids_ulonglong_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ulonglong_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_ulonglong_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ulonglong_align_4_optional", type_ids_ulonglong_align_4_optional); - if (return_code_ulonglong_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ulonglong_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_float_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_float_align_1_optional) { + + ReturnCode_t return_code_float_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "float_align_1_optional", type_ids_float_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_align_1_optional) { - StructTypeFlag struct_flags_float_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_float_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_float_align_1_optional; - TypeIdentifierPair type_ids_float_align_1_optional; QualifiedTypeName type_name_float_align_1_optional = "float_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_float_align_1_optional; eprosima::fastcdr::optional ann_custom_float_align_1_optional; @@ -4955,62 +2832,26 @@ void register_float_align_1_optional_type_identifier( header_float_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_float_align_1_optional); CompleteStructMemberSeq member_seq_float_align_1_optional; { - return_code_float_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_float_align_1_optional); + "_byte", type_ids_align); - if (return_code_float_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5021,62 +2862,26 @@ void register_float_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_float_align_1_optional, member_align); } { - return_code_float_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_float_align_1_optional); + "_float", type_ids_value); - if (return_code_float_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5101,32 +2906,26 @@ void register_float_align_1_optional_type_identifier( } CompleteStructType struct_type_float_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_float_align_1_optional, header_float_align_1_optional, member_seq_float_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_1_optional, type_name_float_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_1_optional, type_name_float_align_1_optional.to_string(), type_ids_float_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_float_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "float_align_1_optional", type_ids_float_align_1_optional); - if (return_code_float_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_float_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_float_align_2_optional) { + + ReturnCode_t return_code_float_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "float_align_2_optional", type_ids_float_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_align_2_optional) { - StructTypeFlag struct_flags_float_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_float_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_float_align_2_optional; - TypeIdentifierPair type_ids_float_align_2_optional; QualifiedTypeName type_name_float_align_2_optional = "float_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_float_align_2_optional; eprosima::fastcdr::optional ann_custom_float_align_2_optional; @@ -5135,62 +2934,26 @@ void register_float_align_2_optional_type_identifier( header_float_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_float_align_2_optional); CompleteStructMemberSeq member_seq_float_align_2_optional; { - return_code_float_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_float_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_float_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5201,62 +2964,26 @@ void register_float_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_float_align_2_optional, member_align); } { - return_code_float_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_float_align_2_optional); + "_float", type_ids_value); - if (return_code_float_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5281,32 +3008,26 @@ void register_float_align_2_optional_type_identifier( } CompleteStructType struct_type_float_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_float_align_2_optional, header_float_align_2_optional, member_seq_float_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_2_optional, type_name_float_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_2_optional, type_name_float_align_2_optional.to_string(), type_ids_float_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_float_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "float_align_2_optional", type_ids_float_align_2_optional); - if (return_code_float_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_float_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_float_align_4_optional) { + + ReturnCode_t return_code_float_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "float_align_4_optional", type_ids_float_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_align_4_optional) { - StructTypeFlag struct_flags_float_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_float_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_float_align_4_optional; - TypeIdentifierPair type_ids_float_align_4_optional; QualifiedTypeName type_name_float_align_4_optional = "float_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_float_align_4_optional; eprosima::fastcdr::optional ann_custom_float_align_4_optional; @@ -5315,62 +3036,26 @@ void register_float_align_4_optional_type_identifier( header_float_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_float_align_4_optional); CompleteStructMemberSeq member_seq_float_align_4_optional; { - return_code_float_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_float_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_float_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_float_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5381,62 +3066,26 @@ void register_float_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_float_align_4_optional, member_align); } { - return_code_float_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_float_align_4_optional); + "_float", type_ids_value); - if (return_code_float_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_float_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_float_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_float_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_float_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_float_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5461,32 +3110,26 @@ void register_float_align_4_optional_type_identifier( } CompleteStructType struct_type_float_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_float_align_4_optional, header_float_align_4_optional, member_seq_float_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_4_optional, type_name_float_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_float_align_4_optional, type_name_float_align_4_optional.to_string(), type_ids_float_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_float_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "float_align_4_optional", type_ids_float_align_4_optional); - if (return_code_float_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_double_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_double_align_1_optional) { + + ReturnCode_t return_code_double_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "double_align_1_optional", type_ids_double_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_align_1_optional) { - StructTypeFlag struct_flags_double_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_double_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_double_align_1_optional; - TypeIdentifierPair type_ids_double_align_1_optional; QualifiedTypeName type_name_double_align_1_optional = "double_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_double_align_1_optional; eprosima::fastcdr::optional ann_custom_double_align_1_optional; @@ -5495,62 +3138,26 @@ void register_double_align_1_optional_type_identifier( header_double_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_double_align_1_optional); CompleteStructMemberSeq member_seq_double_align_1_optional; { - return_code_double_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_double_align_1_optional); + "_byte", type_ids_align); - if (return_code_double_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5561,62 +3168,26 @@ void register_double_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_double_align_1_optional, member_align); } { - return_code_double_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_double_align_1_optional); + "_double", type_ids_value); - if (return_code_double_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5641,32 +3212,26 @@ void register_double_align_1_optional_type_identifier( } CompleteStructType struct_type_double_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_double_align_1_optional, header_double_align_1_optional, member_seq_double_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_1_optional, type_name_double_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_1_optional, type_name_double_align_1_optional.to_string(), type_ids_double_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_double_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "double_align_1_optional", type_ids_double_align_1_optional); - if (return_code_double_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_double_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_double_align_2_optional) { + + ReturnCode_t return_code_double_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "double_align_2_optional", type_ids_double_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_align_2_optional) { - StructTypeFlag struct_flags_double_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_double_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_double_align_2_optional; - TypeIdentifierPair type_ids_double_align_2_optional; QualifiedTypeName type_name_double_align_2_optional = "double_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_double_align_2_optional; eprosima::fastcdr::optional ann_custom_double_align_2_optional; @@ -5675,62 +3240,26 @@ void register_double_align_2_optional_type_identifier( header_double_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_double_align_2_optional); CompleteStructMemberSeq member_seq_double_align_2_optional; { - return_code_double_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_double_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_double_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5741,62 +3270,26 @@ void register_double_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_double_align_2_optional, member_align); } { - return_code_double_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_double_align_2_optional); + "_double", type_ids_value); - if (return_code_double_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -5821,32 +3314,26 @@ void register_double_align_2_optional_type_identifier( } CompleteStructType struct_type_double_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_double_align_2_optional, header_double_align_2_optional, member_seq_double_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_2_optional, type_name_double_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_2_optional, type_name_double_align_2_optional.to_string(), type_ids_double_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_double_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "double_align_2_optional", type_ids_double_align_2_optional); - if (return_code_double_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_double_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_double_align_4_optional) { + + ReturnCode_t return_code_double_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "double_align_4_optional", type_ids_double_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_align_4_optional) { - StructTypeFlag struct_flags_double_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_double_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_double_align_4_optional; - TypeIdentifierPair type_ids_double_align_4_optional; QualifiedTypeName type_name_double_align_4_optional = "double_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_double_align_4_optional; eprosima::fastcdr::optional ann_custom_double_align_4_optional; @@ -5855,62 +3342,26 @@ void register_double_align_4_optional_type_identifier( header_double_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_double_align_4_optional); CompleteStructMemberSeq member_seq_double_align_4_optional; { - return_code_double_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_double_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_double_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_double_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -5921,62 +3372,26 @@ void register_double_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_double_align_4_optional, member_align); } { - return_code_double_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_double_align_4_optional); + "_double", type_ids_value); - if (return_code_double_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_double_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_double_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_double_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_double_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_double_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6001,32 +3416,26 @@ void register_double_align_4_optional_type_identifier( } CompleteStructType struct_type_double_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_double_align_4_optional, header_double_align_4_optional, member_seq_double_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_4_optional, type_name_double_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_double_align_4_optional, type_name_double_align_4_optional.to_string(), type_ids_double_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_double_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "double_align_4_optional", type_ids_double_align_4_optional); - if (return_code_double_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longdouble_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longdouble_align_1_optional) { + + ReturnCode_t return_code_longdouble_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longdouble_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longdouble_align_1_optional", type_ids_longdouble_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longdouble_align_1_optional) { - StructTypeFlag struct_flags_longdouble_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longdouble_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longdouble_align_1_optional; - TypeIdentifierPair type_ids_longdouble_align_1_optional; QualifiedTypeName type_name_longdouble_align_1_optional = "longdouble_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_longdouble_align_1_optional; eprosima::fastcdr::optional ann_custom_longdouble_align_1_optional; @@ -6035,62 +3444,26 @@ void register_longdouble_align_1_optional_type_identifier( header_longdouble_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longdouble_align_1_optional); CompleteStructMemberSeq member_seq_longdouble_align_1_optional; { - return_code_longdouble_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_longdouble_align_1_optional); + "_byte", type_ids_align); - if (return_code_longdouble_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -6101,62 +3474,26 @@ void register_longdouble_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longdouble_align_1_optional, member_align); } { - return_code_longdouble_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_longdouble_align_1_optional); + "_longdouble", type_ids_value); - if (return_code_longdouble_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6181,32 +3518,26 @@ void register_longdouble_align_1_optional_type_identifier( } CompleteStructType struct_type_longdouble_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longdouble_align_1_optional, header_longdouble_align_1_optional, member_seq_longdouble_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_1_optional, type_name_longdouble_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_1_optional, type_name_longdouble_align_1_optional.to_string(), type_ids_longdouble_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longdouble_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longdouble_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longdouble_align_1_optional", type_ids_longdouble_align_1_optional); - if (return_code_longdouble_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longdouble_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longdouble_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longdouble_align_2_optional) { + + ReturnCode_t return_code_longdouble_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longdouble_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longdouble_align_2_optional", type_ids_longdouble_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longdouble_align_2_optional) { - StructTypeFlag struct_flags_longdouble_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longdouble_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longdouble_align_2_optional; - TypeIdentifierPair type_ids_longdouble_align_2_optional; QualifiedTypeName type_name_longdouble_align_2_optional = "longdouble_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_longdouble_align_2_optional; eprosima::fastcdr::optional ann_custom_longdouble_align_2_optional; @@ -6215,62 +3546,26 @@ void register_longdouble_align_2_optional_type_identifier( header_longdouble_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longdouble_align_2_optional); CompleteStructMemberSeq member_seq_longdouble_align_2_optional; { - return_code_longdouble_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_longdouble_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_longdouble_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -6281,62 +3576,26 @@ void register_longdouble_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longdouble_align_2_optional, member_align); } { - return_code_longdouble_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_longdouble_align_2_optional); + "_longdouble", type_ids_value); - if (return_code_longdouble_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6361,32 +3620,26 @@ void register_longdouble_align_2_optional_type_identifier( } CompleteStructType struct_type_longdouble_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longdouble_align_2_optional, header_longdouble_align_2_optional, member_seq_longdouble_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_2_optional, type_name_longdouble_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_2_optional, type_name_longdouble_align_2_optional.to_string(), type_ids_longdouble_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longdouble_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longdouble_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longdouble_align_2_optional", type_ids_longdouble_align_2_optional); - if (return_code_longdouble_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longdouble_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_longdouble_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_longdouble_align_4_optional) { + + ReturnCode_t return_code_longdouble_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_longdouble_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "longdouble_align_4_optional", type_ids_longdouble_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_longdouble_align_4_optional) { - StructTypeFlag struct_flags_longdouble_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_longdouble_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_longdouble_align_4_optional; - TypeIdentifierPair type_ids_longdouble_align_4_optional; QualifiedTypeName type_name_longdouble_align_4_optional = "longdouble_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_longdouble_align_4_optional; eprosima::fastcdr::optional ann_custom_longdouble_align_4_optional; @@ -6395,62 +3648,26 @@ void register_longdouble_align_4_optional_type_identifier( header_longdouble_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_longdouble_align_4_optional); CompleteStructMemberSeq member_seq_longdouble_align_4_optional; { - return_code_longdouble_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_longdouble_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_longdouble_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_longdouble_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -6461,62 +3678,26 @@ void register_longdouble_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_longdouble_align_4_optional, member_align); } { - return_code_longdouble_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_longdouble_align_4_optional); + "_longdouble", type_ids_value); - if (return_code_longdouble_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_longdouble_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_longdouble_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_longdouble_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_longdouble_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6541,32 +3722,26 @@ void register_longdouble_align_4_optional_type_identifier( } CompleteStructType struct_type_longdouble_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_longdouble_align_4_optional, header_longdouble_align_4_optional, member_seq_longdouble_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_4_optional, type_name_longdouble_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_longdouble_align_4_optional, type_name_longdouble_align_4_optional.to_string(), type_ids_longdouble_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "longdouble_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_longdouble_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "longdouble_align_4_optional", type_ids_longdouble_align_4_optional); - if (return_code_longdouble_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longdouble_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_boolean_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_boolean_align_1_optional) { + + ReturnCode_t return_code_boolean_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_boolean_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "boolean_align_1_optional", type_ids_boolean_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_boolean_align_1_optional) { - StructTypeFlag struct_flags_boolean_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_boolean_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_boolean_align_1_optional; - TypeIdentifierPair type_ids_boolean_align_1_optional; QualifiedTypeName type_name_boolean_align_1_optional = "boolean_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_boolean_align_1_optional; eprosima::fastcdr::optional ann_custom_boolean_align_1_optional; @@ -6575,62 +3750,26 @@ void register_boolean_align_1_optional_type_identifier( header_boolean_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_boolean_align_1_optional); CompleteStructMemberSeq member_seq_boolean_align_1_optional; { - return_code_boolean_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_boolean_align_1_optional); + "_byte", type_ids_align); - if (return_code_boolean_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -6641,62 +3780,26 @@ void register_boolean_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_boolean_align_1_optional, member_align); } { - return_code_boolean_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_boolean_align_1_optional); + "_bool", type_ids_value); - if (return_code_boolean_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6721,32 +3824,26 @@ void register_boolean_align_1_optional_type_identifier( } CompleteStructType struct_type_boolean_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_boolean_align_1_optional, header_boolean_align_1_optional, member_seq_boolean_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_1_optional, type_name_boolean_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_1_optional, type_name_boolean_align_1_optional.to_string(), type_ids_boolean_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "boolean_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_boolean_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "boolean_align_1_optional", type_ids_boolean_align_1_optional); - if (return_code_boolean_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "boolean_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_boolean_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_boolean_align_2_optional) { + + ReturnCode_t return_code_boolean_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_boolean_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "boolean_align_2_optional", type_ids_boolean_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_boolean_align_2_optional) { - StructTypeFlag struct_flags_boolean_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_boolean_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_boolean_align_2_optional; - TypeIdentifierPair type_ids_boolean_align_2_optional; QualifiedTypeName type_name_boolean_align_2_optional = "boolean_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_boolean_align_2_optional; eprosima::fastcdr::optional ann_custom_boolean_align_2_optional; @@ -6755,62 +3852,26 @@ void register_boolean_align_2_optional_type_identifier( header_boolean_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_boolean_align_2_optional); CompleteStructMemberSeq member_seq_boolean_align_2_optional; { - return_code_boolean_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_boolean_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_boolean_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -6821,62 +3882,26 @@ void register_boolean_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_boolean_align_2_optional, member_align); } { - return_code_boolean_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_boolean_align_2_optional); + "_bool", type_ids_value); - if (return_code_boolean_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -6901,32 +3926,26 @@ void register_boolean_align_2_optional_type_identifier( } CompleteStructType struct_type_boolean_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_boolean_align_2_optional, header_boolean_align_2_optional, member_seq_boolean_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_2_optional, type_name_boolean_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_2_optional, type_name_boolean_align_2_optional.to_string(), type_ids_boolean_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "boolean_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_boolean_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "boolean_align_2_optional", type_ids_boolean_align_2_optional); - if (return_code_boolean_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "boolean_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_boolean_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_boolean_align_4_optional) { + + ReturnCode_t return_code_boolean_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_boolean_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "boolean_align_4_optional", type_ids_boolean_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_boolean_align_4_optional) { - StructTypeFlag struct_flags_boolean_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_boolean_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_boolean_align_4_optional; - TypeIdentifierPair type_ids_boolean_align_4_optional; QualifiedTypeName type_name_boolean_align_4_optional = "boolean_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_boolean_align_4_optional; eprosima::fastcdr::optional ann_custom_boolean_align_4_optional; @@ -6935,62 +3954,26 @@ void register_boolean_align_4_optional_type_identifier( header_boolean_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_boolean_align_4_optional); CompleteStructMemberSeq member_seq_boolean_align_4_optional; { - return_code_boolean_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_boolean_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_boolean_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_boolean_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7001,62 +3984,26 @@ void register_boolean_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_boolean_align_4_optional, member_align); } { - return_code_boolean_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_boolean_align_4_optional); + "_bool", type_ids_value); - if (return_code_boolean_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_boolean_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_boolean_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_boolean_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_boolean_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_boolean_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7081,32 +4028,26 @@ void register_boolean_align_4_optional_type_identifier( } CompleteStructType struct_type_boolean_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_boolean_align_4_optional, header_boolean_align_4_optional, member_seq_boolean_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_4_optional, type_name_boolean_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_boolean_align_4_optional, type_name_boolean_align_4_optional.to_string(), type_ids_boolean_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "boolean_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_boolean_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "boolean_align_4_optional", type_ids_boolean_align_4_optional); - if (return_code_boolean_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "boolean_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_octet_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_octet_align_1_optional) { + + ReturnCode_t return_code_octet_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_octet_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "octet_align_1_optional", type_ids_octet_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_octet_align_1_optional) { - StructTypeFlag struct_flags_octet_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_octet_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_octet_align_1_optional; - TypeIdentifierPair type_ids_octet_align_1_optional; QualifiedTypeName type_name_octet_align_1_optional = "octet_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_octet_align_1_optional; eprosima::fastcdr::optional ann_custom_octet_align_1_optional; @@ -7115,62 +4056,26 @@ void register_octet_align_1_optional_type_identifier( header_octet_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_octet_align_1_optional); CompleteStructMemberSeq member_seq_octet_align_1_optional; { - return_code_octet_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_octet_align_1_optional); + "_byte", type_ids_align); - if (return_code_octet_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7181,62 +4086,26 @@ void register_octet_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_octet_align_1_optional, member_align); } { - return_code_octet_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_octet_align_1_optional); + "_byte", type_ids_value); - if (return_code_octet_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7261,32 +4130,26 @@ void register_octet_align_1_optional_type_identifier( } CompleteStructType struct_type_octet_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_octet_align_1_optional, header_octet_align_1_optional, member_seq_octet_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_1_optional, type_name_octet_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_1_optional, type_name_octet_align_1_optional.to_string(), type_ids_octet_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "octet_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_octet_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "octet_align_1_optional", type_ids_octet_align_1_optional); - if (return_code_octet_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "octet_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_octet_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_octet_align_2_optional) { + + ReturnCode_t return_code_octet_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_octet_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "octet_align_2_optional", type_ids_octet_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_octet_align_2_optional) { - StructTypeFlag struct_flags_octet_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_octet_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_octet_align_2_optional; - TypeIdentifierPair type_ids_octet_align_2_optional; QualifiedTypeName type_name_octet_align_2_optional = "octet_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_octet_align_2_optional; eprosima::fastcdr::optional ann_custom_octet_align_2_optional; @@ -7295,62 +4158,26 @@ void register_octet_align_2_optional_type_identifier( header_octet_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_octet_align_2_optional); CompleteStructMemberSeq member_seq_octet_align_2_optional; { - return_code_octet_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_octet_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_octet_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7361,62 +4188,26 @@ void register_octet_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_octet_align_2_optional, member_align); } { - return_code_octet_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_octet_align_2_optional); + "_byte", type_ids_value); - if (return_code_octet_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7441,32 +4232,26 @@ void register_octet_align_2_optional_type_identifier( } CompleteStructType struct_type_octet_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_octet_align_2_optional, header_octet_align_2_optional, member_seq_octet_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_2_optional, type_name_octet_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_2_optional, type_name_octet_align_2_optional.to_string(), type_ids_octet_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "octet_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_octet_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "octet_align_2_optional", type_ids_octet_align_2_optional); - if (return_code_octet_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "octet_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_octet_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_octet_align_4_optional) { + + ReturnCode_t return_code_octet_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_octet_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "octet_align_4_optional", type_ids_octet_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_octet_align_4_optional) { - StructTypeFlag struct_flags_octet_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_octet_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_octet_align_4_optional; - TypeIdentifierPair type_ids_octet_align_4_optional; QualifiedTypeName type_name_octet_align_4_optional = "octet_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_octet_align_4_optional; eprosima::fastcdr::optional ann_custom_octet_align_4_optional; @@ -7475,62 +4260,26 @@ void register_octet_align_4_optional_type_identifier( header_octet_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_octet_align_4_optional); CompleteStructMemberSeq member_seq_octet_align_4_optional; { - return_code_octet_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_octet_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_octet_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_octet_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7541,62 +4290,26 @@ void register_octet_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_octet_align_4_optional, member_align); } { - return_code_octet_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_octet_align_4_optional); + "_byte", type_ids_value); - if (return_code_octet_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_octet_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_octet_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_octet_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_octet_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_octet_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7621,32 +4334,26 @@ void register_octet_align_4_optional_type_identifier( } CompleteStructType struct_type_octet_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_octet_align_4_optional, header_octet_align_4_optional, member_seq_octet_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_4_optional, type_name_octet_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_octet_align_4_optional, type_name_octet_align_4_optional.to_string(), type_ids_octet_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "octet_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_octet_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "octet_align_4_optional", type_ids_octet_align_4_optional); - if (return_code_octet_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "octet_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_char_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_char_align_1_optional) { + + ReturnCode_t return_code_char_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "char_align_1_optional", type_ids_char_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_align_1_optional) { - StructTypeFlag struct_flags_char_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_char_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_char_align_1_optional; - TypeIdentifierPair type_ids_char_align_1_optional; QualifiedTypeName type_name_char_align_1_optional = "char_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_char_align_1_optional; eprosima::fastcdr::optional ann_custom_char_align_1_optional; @@ -7655,62 +4362,26 @@ void register_char_align_1_optional_type_identifier( header_char_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_char_align_1_optional); CompleteStructMemberSeq member_seq_char_align_1_optional; { - return_code_char_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_char_align_1_optional); + "_byte", type_ids_align); - if (return_code_char_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7721,62 +4392,26 @@ void register_char_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_char_align_1_optional, member_align); } { - return_code_char_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_char_align_1_optional); + "_char", type_ids_value); - if (return_code_char_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7801,32 +4436,26 @@ void register_char_align_1_optional_type_identifier( } CompleteStructType struct_type_char_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_char_align_1_optional, header_char_align_1_optional, member_seq_char_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_1_optional, type_name_char_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_1_optional, type_name_char_align_1_optional.to_string(), type_ids_char_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_char_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "char_align_1_optional", type_ids_char_align_1_optional); - if (return_code_char_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_char_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_char_align_2_optional) { + + ReturnCode_t return_code_char_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "char_align_2_optional", type_ids_char_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_align_2_optional) { - StructTypeFlag struct_flags_char_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_char_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_char_align_2_optional; - TypeIdentifierPair type_ids_char_align_2_optional; QualifiedTypeName type_name_char_align_2_optional = "char_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_char_align_2_optional; eprosima::fastcdr::optional ann_custom_char_align_2_optional; @@ -7835,62 +4464,26 @@ void register_char_align_2_optional_type_identifier( header_char_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_char_align_2_optional); CompleteStructMemberSeq member_seq_char_align_2_optional; { - return_code_char_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_char_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_char_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -7901,62 +4494,26 @@ void register_char_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_char_align_2_optional, member_align); } { - return_code_char_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_char_align_2_optional); + "_char", type_ids_value); - if (return_code_char_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -7981,32 +4538,26 @@ void register_char_align_2_optional_type_identifier( } CompleteStructType struct_type_char_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_char_align_2_optional, header_char_align_2_optional, member_seq_char_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_2_optional, type_name_char_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_2_optional, type_name_char_align_2_optional.to_string(), type_ids_char_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_char_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "char_align_2_optional", type_ids_char_align_2_optional); - if (return_code_char_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_char_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_char_align_4_optional) { + + ReturnCode_t return_code_char_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "char_align_4_optional", type_ids_char_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_align_4_optional) { - StructTypeFlag struct_flags_char_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_char_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_char_align_4_optional; - TypeIdentifierPair type_ids_char_align_4_optional; QualifiedTypeName type_name_char_align_4_optional = "char_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_char_align_4_optional; eprosima::fastcdr::optional ann_custom_char_align_4_optional; @@ -8015,62 +4566,26 @@ void register_char_align_4_optional_type_identifier( header_char_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_char_align_4_optional); CompleteStructMemberSeq member_seq_char_align_4_optional; { - return_code_char_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_char_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_char_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_char_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -8081,62 +4596,26 @@ void register_char_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_char_align_4_optional, member_align); } { - return_code_char_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_char_align_4_optional); + "_char", type_ids_value); - if (return_code_char_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_char_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_char_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_char_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_char_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_char_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -8161,32 +4640,26 @@ void register_char_align_4_optional_type_identifier( } CompleteStructType struct_type_char_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_char_align_4_optional, header_char_align_4_optional, member_seq_char_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_4_optional, type_name_char_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_char_align_4_optional, type_name_char_align_4_optional.to_string(), type_ids_char_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_char_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "char_align_4_optional", type_ids_char_align_4_optional); - if (return_code_char_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_wchar_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_wchar_align_1_optional) { + + ReturnCode_t return_code_wchar_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_wchar_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "wchar_align_1_optional", type_ids_wchar_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_wchar_align_1_optional) { - StructTypeFlag struct_flags_wchar_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_wchar_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_wchar_align_1_optional; - TypeIdentifierPair type_ids_wchar_align_1_optional; QualifiedTypeName type_name_wchar_align_1_optional = "wchar_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_wchar_align_1_optional; eprosima::fastcdr::optional ann_custom_wchar_align_1_optional; @@ -8195,62 +4668,26 @@ void register_wchar_align_1_optional_type_identifier( header_wchar_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_wchar_align_1_optional); CompleteStructMemberSeq member_seq_wchar_align_1_optional; { - return_code_wchar_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_wchar_align_1_optional); + "_byte", type_ids_align); - if (return_code_wchar_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -8261,62 +4698,26 @@ void register_wchar_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_wchar_align_1_optional, member_align); } { - return_code_wchar_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_wchar_align_1_optional); + "_wchar_t", type_ids_value); - if (return_code_wchar_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -8341,32 +4742,26 @@ void register_wchar_align_1_optional_type_identifier( } CompleteStructType struct_type_wchar_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_wchar_align_1_optional, header_wchar_align_1_optional, member_seq_wchar_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_1_optional, type_name_wchar_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_1_optional, type_name_wchar_align_1_optional.to_string(), type_ids_wchar_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "wchar_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_wchar_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "wchar_align_1_optional", type_ids_wchar_align_1_optional); - if (return_code_wchar_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "wchar_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_wchar_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_wchar_align_2_optional) { + + ReturnCode_t return_code_wchar_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_wchar_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "wchar_align_2_optional", type_ids_wchar_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_wchar_align_2_optional) { - StructTypeFlag struct_flags_wchar_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_wchar_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_wchar_align_2_optional; - TypeIdentifierPair type_ids_wchar_align_2_optional; QualifiedTypeName type_name_wchar_align_2_optional = "wchar_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_wchar_align_2_optional; eprosima::fastcdr::optional ann_custom_wchar_align_2_optional; @@ -8375,62 +4770,26 @@ void register_wchar_align_2_optional_type_identifier( header_wchar_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_wchar_align_2_optional); CompleteStructMemberSeq member_seq_wchar_align_2_optional; { - return_code_wchar_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_wchar_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_wchar_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -8441,62 +4800,26 @@ void register_wchar_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_wchar_align_2_optional, member_align); } { - return_code_wchar_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_wchar_align_2_optional); + "_wchar_t", type_ids_value); - if (return_code_wchar_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -8521,32 +4844,26 @@ void register_wchar_align_2_optional_type_identifier( } CompleteStructType struct_type_wchar_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_wchar_align_2_optional, header_wchar_align_2_optional, member_seq_wchar_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_2_optional, type_name_wchar_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_2_optional, type_name_wchar_align_2_optional.to_string(), type_ids_wchar_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "wchar_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_wchar_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "wchar_align_2_optional", type_ids_wchar_align_2_optional); - if (return_code_wchar_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "wchar_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_wchar_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_wchar_align_4_optional) { + + ReturnCode_t return_code_wchar_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_wchar_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "wchar_align_4_optional", type_ids_wchar_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_wchar_align_4_optional) { - StructTypeFlag struct_flags_wchar_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_wchar_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_wchar_align_4_optional; - TypeIdentifierPair type_ids_wchar_align_4_optional; QualifiedTypeName type_name_wchar_align_4_optional = "wchar_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_wchar_align_4_optional; eprosima::fastcdr::optional ann_custom_wchar_align_4_optional; @@ -8555,62 +4872,26 @@ void register_wchar_align_4_optional_type_identifier( header_wchar_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_wchar_align_4_optional); CompleteStructMemberSeq member_seq_wchar_align_4_optional; { - return_code_wchar_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_wchar_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_wchar_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_wchar_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -8621,62 +4902,26 @@ void register_wchar_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_wchar_align_4_optional, member_align); } { - return_code_wchar_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_wchar_align_4_optional); + "_wchar_t", type_ids_value); - if (return_code_wchar_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "value Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_wchar_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_wchar_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_wchar_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_wchar_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_wchar_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -8701,32 +4946,26 @@ void register_wchar_align_4_optional_type_identifier( } CompleteStructType struct_type_wchar_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_wchar_align_4_optional, header_wchar_align_4_optional, member_seq_wchar_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_4_optional, type_name_wchar_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_wchar_align_4_optional, type_name_wchar_align_4_optional.to_string(), type_ids_wchar_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "wchar_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_wchar_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "wchar_align_4_optional", type_ids_wchar_align_4_optional); - if (return_code_wchar_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "wchar_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_sequence_short_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_sequence_short_optional) { + + ReturnCode_t return_code_sequence_short_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_short_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sequence_short_optional", type_ids_sequence_short_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_short_optional) { - StructTypeFlag struct_flags_sequence_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_sequence_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_sequence_short_optional; - TypeIdentifierPair type_ids_sequence_short_optional; QualifiedTypeName type_name_sequence_short_optional = "sequence_short_optional"; eprosima::fastcdr::optional type_ann_builtin_sequence_short_optional; eprosima::fastcdr::optional ann_custom_sequence_short_optional; @@ -8735,69 +4974,33 @@ void register_sequence_short_optional_type_identifier( header_sequence_short_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sequence_short_optional); CompleteStructMemberSeq member_seq_sequence_short_optional; { - return_code_sequence_short_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_optional); + "anonymous_sequence_int16_t_unbounded", type_ids_value); - if (return_code_sequence_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_sequence_short_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_sequence_short_optional); + "_int16_t", type_ids_value); - if (return_code_sequence_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_sequence_short_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -8808,68 +5011,21 @@ void register_sequence_short_optional_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_sequence_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_optional); - if (return_code_sequence_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -8894,32 +5050,26 @@ void register_sequence_short_optional_type_identifier( } CompleteStructType struct_type_sequence_short_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_sequence_short_optional, header_sequence_short_optional, member_seq_sequence_short_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_optional, type_name_sequence_short_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_optional, type_name_sequence_short_optional.to_string(), type_ids_sequence_short_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sequence_short_optional already registered in TypeObjectRegistry for a different type."); } - return_code_sequence_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "sequence_short_optional", type_ids_sequence_short_optional); - if (return_code_sequence_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "sequence_short_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_sequence_short_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_sequence_short_align_1_optional) { + + ReturnCode_t return_code_sequence_short_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_short_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sequence_short_align_1_optional", type_ids_sequence_short_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_short_align_1_optional) { - StructTypeFlag struct_flags_sequence_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_sequence_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_sequence_short_align_1_optional; - TypeIdentifierPair type_ids_sequence_short_align_1_optional; QualifiedTypeName type_name_sequence_short_align_1_optional = "sequence_short_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_sequence_short_align_1_optional; eprosima::fastcdr::optional ann_custom_sequence_short_align_1_optional; @@ -8928,62 +5078,26 @@ void register_sequence_short_align_1_optional_type_identifier( header_sequence_short_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sequence_short_align_1_optional); CompleteStructMemberSeq member_seq_sequence_short_align_1_optional; { - return_code_sequence_short_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_sequence_short_align_1_optional); + "_byte", type_ids_align); - if (return_code_sequence_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -8994,69 +5108,33 @@ void register_sequence_short_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_sequence_short_align_1_optional, member_align); } { - return_code_sequence_short_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_1_optional); + "anonymous_sequence_int16_t_unbounded", type_ids_value); - if (return_code_sequence_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_sequence_short_align_1_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_sequence_short_align_1_optional); + "_int16_t", type_ids_value); - if (return_code_sequence_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_1_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_sequence_short_align_1_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -9067,68 +5145,21 @@ void register_sequence_short_align_1_optional_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_sequence_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_1_optional); - if (return_code_sequence_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -9153,32 +5184,26 @@ void register_sequence_short_align_1_optional_type_identifier( } CompleteStructType struct_type_sequence_short_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_sequence_short_align_1_optional, header_sequence_short_align_1_optional, member_seq_sequence_short_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_1_optional, type_name_sequence_short_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_1_optional, type_name_sequence_short_align_1_optional.to_string(), type_ids_sequence_short_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sequence_short_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_sequence_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "sequence_short_align_1_optional", type_ids_sequence_short_align_1_optional); - if (return_code_sequence_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "sequence_short_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_sequence_short_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_sequence_short_align_2_optional) { + + ReturnCode_t return_code_sequence_short_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_short_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sequence_short_align_2_optional", type_ids_sequence_short_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_short_align_2_optional) { - StructTypeFlag struct_flags_sequence_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_sequence_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_sequence_short_align_2_optional; - TypeIdentifierPair type_ids_sequence_short_align_2_optional; QualifiedTypeName type_name_sequence_short_align_2_optional = "sequence_short_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_sequence_short_align_2_optional; eprosima::fastcdr::optional ann_custom_sequence_short_align_2_optional; @@ -9187,62 +5212,26 @@ void register_sequence_short_align_2_optional_type_identifier( header_sequence_short_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sequence_short_align_2_optional); CompleteStructMemberSeq member_seq_sequence_short_align_2_optional; { - return_code_sequence_short_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_sequence_short_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_sequence_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -9253,69 +5242,33 @@ void register_sequence_short_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_sequence_short_align_2_optional, member_align); } { - return_code_sequence_short_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_2_optional); + "anonymous_sequence_int16_t_unbounded", type_ids_value); - if (return_code_sequence_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_sequence_short_align_2_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_sequence_short_align_2_optional); + "_int16_t", type_ids_value); - if (return_code_sequence_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_2_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_sequence_short_align_2_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -9326,68 +5279,21 @@ void register_sequence_short_align_2_optional_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_sequence_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_2_optional); - if (return_code_sequence_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -9412,32 +5318,26 @@ void register_sequence_short_align_2_optional_type_identifier( } CompleteStructType struct_type_sequence_short_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_sequence_short_align_2_optional, header_sequence_short_align_2_optional, member_seq_sequence_short_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_2_optional, type_name_sequence_short_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_2_optional, type_name_sequence_short_align_2_optional.to_string(), type_ids_sequence_short_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sequence_short_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_sequence_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "sequence_short_align_2_optional", type_ids_sequence_short_align_2_optional); - if (return_code_sequence_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "sequence_short_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_sequence_short_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_sequence_short_align_4_optional) { + + ReturnCode_t return_code_sequence_short_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_sequence_short_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "sequence_short_align_4_optional", type_ids_sequence_short_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_sequence_short_align_4_optional) { - StructTypeFlag struct_flags_sequence_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_sequence_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_sequence_short_align_4_optional; - TypeIdentifierPair type_ids_sequence_short_align_4_optional; QualifiedTypeName type_name_sequence_short_align_4_optional = "sequence_short_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_sequence_short_align_4_optional; eprosima::fastcdr::optional ann_custom_sequence_short_align_4_optional; @@ -9446,62 +5346,26 @@ void register_sequence_short_align_4_optional_type_identifier( header_sequence_short_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_sequence_short_align_4_optional); CompleteStructMemberSeq member_seq_sequence_short_align_4_optional; { - return_code_sequence_short_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_sequence_short_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_sequence_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_sequence_short_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -9512,69 +5376,33 @@ void register_sequence_short_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_sequence_short_align_4_optional, member_align); } { - return_code_sequence_short_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_4_optional); + "anonymous_sequence_int16_t_unbounded", type_ids_value); - if (return_code_sequence_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_sequence_short_align_4_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_sequence_short_align_4_optional); + "_int16_t", type_ids_value); - if (return_code_sequence_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_sequence_short_align_4_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_sequence_short_align_4_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -9585,68 +5413,21 @@ void register_sequence_short_align_4_optional_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_sequence_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_sequence_short_align_4_optional); - if (return_code_sequence_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_sequence_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_sequence_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_sequence_short_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -9671,32 +5452,26 @@ void register_sequence_short_align_4_optional_type_identifier( } CompleteStructType struct_type_sequence_short_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_sequence_short_align_4_optional, header_sequence_short_align_4_optional, member_seq_sequence_short_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_4_optional, type_name_sequence_short_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_sequence_short_align_4_optional, type_name_sequence_short_align_4_optional.to_string(), type_ids_sequence_short_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "sequence_short_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_sequence_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "sequence_short_align_4_optional", type_ids_sequence_short_align_4_optional); - if (return_code_sequence_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "sequence_short_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_unbounded_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_unbounded_optional) { + + ReturnCode_t return_code_string_unbounded_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_unbounded_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_unbounded_optional", type_ids_string_unbounded_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_unbounded_optional) { - StructTypeFlag struct_flags_string_unbounded_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_unbounded_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_unbounded_optional; - TypeIdentifierPair type_ids_string_unbounded_optional; QualifiedTypeName type_name_string_unbounded_optional = "string_unbounded_optional"; eprosima::fastcdr::optional type_ann_builtin_string_unbounded_optional; eprosima::fastcdr::optional ann_custom_string_unbounded_optional; @@ -9705,79 +5480,34 @@ void register_string_unbounded_optional_type_identifier( header_string_unbounded_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_unbounded_optional); CompleteStructMemberSeq member_seq_string_unbounded_optional; { - return_code_string_unbounded_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_optional); + "anonymous_string_unbounded", type_ids_value); - if (return_code_string_unbounded_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_string_unbounded_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_optional); - if (return_code_string_unbounded_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -9802,32 +5532,26 @@ void register_string_unbounded_optional_type_identifier( } CompleteStructType struct_type_string_unbounded_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_unbounded_optional, header_string_unbounded_optional, member_seq_string_unbounded_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_optional, type_name_string_unbounded_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_optional, type_name_string_unbounded_optional.to_string(), type_ids_string_unbounded_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_unbounded_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_unbounded_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_unbounded_optional", type_ids_string_unbounded_optional); - if (return_code_string_unbounded_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_unbounded_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_unbounded_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_unbounded_align_1_optional) { + + ReturnCode_t return_code_string_unbounded_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_unbounded_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_unbounded_align_1_optional", type_ids_string_unbounded_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_unbounded_align_1_optional) { - StructTypeFlag struct_flags_string_unbounded_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_unbounded_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_unbounded_align_1_optional; - TypeIdentifierPair type_ids_string_unbounded_align_1_optional; QualifiedTypeName type_name_string_unbounded_align_1_optional = "string_unbounded_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_string_unbounded_align_1_optional; eprosima::fastcdr::optional ann_custom_string_unbounded_align_1_optional; @@ -9836,62 +5560,26 @@ void register_string_unbounded_align_1_optional_type_identifier( header_string_unbounded_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_unbounded_align_1_optional); CompleteStructMemberSeq member_seq_string_unbounded_align_1_optional; { - return_code_string_unbounded_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_string_unbounded_align_1_optional); + "_byte", type_ids_align); - if (return_code_string_unbounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -9902,79 +5590,34 @@ void register_string_unbounded_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_unbounded_align_1_optional, member_align); } { - return_code_string_unbounded_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_1_optional); + "anonymous_string_unbounded", type_ids_value); - if (return_code_string_unbounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_string_unbounded_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_1_optional); - if (return_code_string_unbounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -9999,32 +5642,26 @@ void register_string_unbounded_align_1_optional_type_identifier( } CompleteStructType struct_type_string_unbounded_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_unbounded_align_1_optional, header_string_unbounded_align_1_optional, member_seq_string_unbounded_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_1_optional, type_name_string_unbounded_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_1_optional, type_name_string_unbounded_align_1_optional.to_string(), type_ids_string_unbounded_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_unbounded_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_unbounded_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_unbounded_align_1_optional", type_ids_string_unbounded_align_1_optional); - if (return_code_string_unbounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_unbounded_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_unbounded_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_unbounded_align_2_optional) { + + ReturnCode_t return_code_string_unbounded_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_unbounded_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_unbounded_align_2_optional", type_ids_string_unbounded_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_unbounded_align_2_optional) { - StructTypeFlag struct_flags_string_unbounded_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_unbounded_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_unbounded_align_2_optional; - TypeIdentifierPair type_ids_string_unbounded_align_2_optional; QualifiedTypeName type_name_string_unbounded_align_2_optional = "string_unbounded_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_string_unbounded_align_2_optional; eprosima::fastcdr::optional ann_custom_string_unbounded_align_2_optional; @@ -10033,62 +5670,26 @@ void register_string_unbounded_align_2_optional_type_identifier( header_string_unbounded_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_unbounded_align_2_optional); CompleteStructMemberSeq member_seq_string_unbounded_align_2_optional; { - return_code_string_unbounded_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_string_unbounded_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_string_unbounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -10099,79 +5700,34 @@ void register_string_unbounded_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_unbounded_align_2_optional, member_align); } { - return_code_string_unbounded_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_2_optional); + "anonymous_string_unbounded", type_ids_value); - if (return_code_string_unbounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_string_unbounded_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_2_optional); - if (return_code_string_unbounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -10196,32 +5752,26 @@ void register_string_unbounded_align_2_optional_type_identifier( } CompleteStructType struct_type_string_unbounded_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_unbounded_align_2_optional, header_string_unbounded_align_2_optional, member_seq_string_unbounded_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_2_optional, type_name_string_unbounded_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_2_optional, type_name_string_unbounded_align_2_optional.to_string(), type_ids_string_unbounded_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_unbounded_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_unbounded_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_unbounded_align_2_optional", type_ids_string_unbounded_align_2_optional); - if (return_code_string_unbounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_unbounded_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_unbounded_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_unbounded_align_4_optional) { + + ReturnCode_t return_code_string_unbounded_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_unbounded_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_unbounded_align_4_optional", type_ids_string_unbounded_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_unbounded_align_4_optional) { - StructTypeFlag struct_flags_string_unbounded_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_unbounded_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_unbounded_align_4_optional; - TypeIdentifierPair type_ids_string_unbounded_align_4_optional; QualifiedTypeName type_name_string_unbounded_align_4_optional = "string_unbounded_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_string_unbounded_align_4_optional; eprosima::fastcdr::optional ann_custom_string_unbounded_align_4_optional; @@ -10230,62 +5780,26 @@ void register_string_unbounded_align_4_optional_type_identifier( header_string_unbounded_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_unbounded_align_4_optional); CompleteStructMemberSeq member_seq_string_unbounded_align_4_optional; { - return_code_string_unbounded_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_string_unbounded_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_string_unbounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_unbounded_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -10296,79 +5810,34 @@ void register_string_unbounded_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_unbounded_align_4_optional, member_align); } { - return_code_string_unbounded_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_4_optional); + "anonymous_string_unbounded", type_ids_value); - if (return_code_string_unbounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_string_unbounded_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_string_unbounded_align_4_optional); - if (return_code_string_unbounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_unbounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_unbounded_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_unbounded_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -10393,32 +5862,26 @@ void register_string_unbounded_align_4_optional_type_identifier( } CompleteStructType struct_type_string_unbounded_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_unbounded_align_4_optional, header_string_unbounded_align_4_optional, member_seq_string_unbounded_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_4_optional, type_name_string_unbounded_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_unbounded_align_4_optional, type_name_string_unbounded_align_4_optional.to_string(), type_ids_string_unbounded_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_unbounded_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_unbounded_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_unbounded_align_4_optional", type_ids_string_unbounded_align_4_optional); - if (return_code_string_unbounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_unbounded_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_bounded_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_bounded_optional) { + + ReturnCode_t return_code_string_bounded_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_bounded_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_bounded_optional", type_ids_string_bounded_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_bounded_optional) { - StructTypeFlag struct_flags_string_bounded_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_bounded_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_bounded_optional; - TypeIdentifierPair type_ids_string_bounded_optional; QualifiedTypeName type_name_string_bounded_optional = "string_bounded_optional"; eprosima::fastcdr::optional type_ann_builtin_string_bounded_optional; eprosima::fastcdr::optional ann_custom_string_bounded_optional; @@ -10427,79 +5890,34 @@ void register_string_bounded_optional_type_identifier( header_string_bounded_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_bounded_optional); CompleteStructMemberSeq member_seq_string_bounded_optional; { - return_code_string_bounded_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_optional); + "anonymous_string_8", type_ids_value); - if (return_code_string_bounded_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = static_cast(8); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_8")) + "anonymous_string_8", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_8 already registered in TypeObjectRegistry for a different type."); } } - return_code_string_bounded_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_optional); - if (return_code_string_bounded_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_8: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -10524,32 +5942,26 @@ void register_string_bounded_optional_type_identifier( } CompleteStructType struct_type_string_bounded_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_bounded_optional, header_string_bounded_optional, member_seq_string_bounded_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_optional, type_name_string_bounded_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_optional, type_name_string_bounded_optional.to_string(), type_ids_string_bounded_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_bounded_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_bounded_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_bounded_optional", type_ids_string_bounded_optional); - if (return_code_string_bounded_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_bounded_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_bounded_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_bounded_align_1_optional) { + + ReturnCode_t return_code_string_bounded_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_bounded_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_bounded_align_1_optional", type_ids_string_bounded_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_bounded_align_1_optional) { - StructTypeFlag struct_flags_string_bounded_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_bounded_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_bounded_align_1_optional; - TypeIdentifierPair type_ids_string_bounded_align_1_optional; QualifiedTypeName type_name_string_bounded_align_1_optional = "string_bounded_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_string_bounded_align_1_optional; eprosima::fastcdr::optional ann_custom_string_bounded_align_1_optional; @@ -10558,62 +5970,26 @@ void register_string_bounded_align_1_optional_type_identifier( header_string_bounded_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_bounded_align_1_optional); CompleteStructMemberSeq member_seq_string_bounded_align_1_optional; { - return_code_string_bounded_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_string_bounded_align_1_optional); + "_byte", type_ids_align); - if (return_code_string_bounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -10624,79 +6000,34 @@ void register_string_bounded_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_bounded_align_1_optional, member_align); } { - return_code_string_bounded_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_1_optional); + "anonymous_string_8", type_ids_value); - if (return_code_string_bounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = static_cast(8); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_8")) + "anonymous_string_8", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_8 already registered in TypeObjectRegistry for a different type."); } } - return_code_string_bounded_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_1_optional); - if (return_code_string_bounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_8: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -10721,32 +6052,26 @@ void register_string_bounded_align_1_optional_type_identifier( } CompleteStructType struct_type_string_bounded_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_bounded_align_1_optional, header_string_bounded_align_1_optional, member_seq_string_bounded_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_1_optional, type_name_string_bounded_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_1_optional, type_name_string_bounded_align_1_optional.to_string(), type_ids_string_bounded_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_bounded_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_bounded_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_bounded_align_1_optional", type_ids_string_bounded_align_1_optional); - if (return_code_string_bounded_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_bounded_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_bounded_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_bounded_align_2_optional) { + + ReturnCode_t return_code_string_bounded_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_bounded_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_bounded_align_2_optional", type_ids_string_bounded_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_bounded_align_2_optional) { - StructTypeFlag struct_flags_string_bounded_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_bounded_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_bounded_align_2_optional; - TypeIdentifierPair type_ids_string_bounded_align_2_optional; QualifiedTypeName type_name_string_bounded_align_2_optional = "string_bounded_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_string_bounded_align_2_optional; eprosima::fastcdr::optional ann_custom_string_bounded_align_2_optional; @@ -10755,62 +6080,26 @@ void register_string_bounded_align_2_optional_type_identifier( header_string_bounded_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_bounded_align_2_optional); CompleteStructMemberSeq member_seq_string_bounded_align_2_optional; { - return_code_string_bounded_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_string_bounded_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_string_bounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -10821,79 +6110,34 @@ void register_string_bounded_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_bounded_align_2_optional, member_align); } { - return_code_string_bounded_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_2_optional); + "anonymous_string_8", type_ids_value); - if (return_code_string_bounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = static_cast(8); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_8")) + "anonymous_string_8", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_8 already registered in TypeObjectRegistry for a different type."); } } - return_code_string_bounded_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_2_optional); - if (return_code_string_bounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_8: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -10918,32 +6162,26 @@ void register_string_bounded_align_2_optional_type_identifier( } CompleteStructType struct_type_string_bounded_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_bounded_align_2_optional, header_string_bounded_align_2_optional, member_seq_string_bounded_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_2_optional, type_name_string_bounded_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_2_optional, type_name_string_bounded_align_2_optional.to_string(), type_ids_string_bounded_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_bounded_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_bounded_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_bounded_align_2_optional", type_ids_string_bounded_align_2_optional); - if (return_code_string_bounded_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_bounded_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_string_bounded_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_string_bounded_align_4_optional) { + + ReturnCode_t return_code_string_bounded_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_bounded_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "string_bounded_align_4_optional", type_ids_string_bounded_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_bounded_align_4_optional) { - StructTypeFlag struct_flags_string_bounded_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_string_bounded_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_string_bounded_align_4_optional; - TypeIdentifierPair type_ids_string_bounded_align_4_optional; QualifiedTypeName type_name_string_bounded_align_4_optional = "string_bounded_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_string_bounded_align_4_optional; eprosima::fastcdr::optional ann_custom_string_bounded_align_4_optional; @@ -10952,62 +6190,26 @@ void register_string_bounded_align_4_optional_type_identifier( header_string_bounded_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_string_bounded_align_4_optional); CompleteStructMemberSeq member_seq_string_bounded_align_4_optional; { - return_code_string_bounded_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_string_bounded_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_string_bounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_string_bounded_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -11018,79 +6220,34 @@ void register_string_bounded_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_string_bounded_align_4_optional, member_align); } { - return_code_string_bounded_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_4_optional); + "anonymous_string_8", type_ids_value); - if (return_code_string_bounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { { SBound bound = static_cast(8); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_8")) + "anonymous_string_8", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_8 already registered in TypeObjectRegistry for a different type."); } } - return_code_string_bounded_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_8", type_ids_string_bounded_align_4_optional); - if (return_code_string_bounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_8: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_string_bounded_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_string_bounded_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_string_bounded_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -11115,32 +6272,26 @@ void register_string_bounded_align_4_optional_type_identifier( } CompleteStructType struct_type_string_bounded_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_string_bounded_align_4_optional, header_string_bounded_align_4_optional, member_seq_string_bounded_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_4_optional, type_name_string_bounded_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_string_bounded_align_4_optional, type_name_string_bounded_align_4_optional.to_string(), type_ids_string_bounded_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "string_bounded_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_string_bounded_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "string_bounded_align_4_optional", type_ids_string_bounded_align_4_optional); - if (return_code_string_bounded_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "string_bounded_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_map_short_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_map_short_optional) { + + ReturnCode_t return_code_map_short_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_map_short_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "map_short_optional", type_ids_map_short_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_map_short_optional) { - StructTypeFlag struct_flags_map_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_map_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_map_short_optional; - TypeIdentifierPair type_ids_map_short_optional; QualifiedTypeName type_name_map_short_optional = "map_short_optional"; eprosima::fastcdr::optional type_ann_builtin_map_short_optional; eprosima::fastcdr::optional ann_custom_map_short_optional; @@ -11149,120 +6300,48 @@ void register_map_short_optional_type_identifier( header_map_short_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_map_short_optional); CompleteStructMemberSeq member_seq_map_short_optional; { - return_code_map_short_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_optional); + "anonymous_map_int32_t_int16_t_unbounded", type_ids_value); - if (return_code_map_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_map_short_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_map_short_optional); + "_int16_t", type_ids_value); - if (return_code_map_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_map_short_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_map_short_optional); + "_int32_t", type_ids_value); - if (return_code_map_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_optional.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int16_t_unbounded = EK_BOTH; @@ -11285,68 +6364,21 @@ void register_map_short_optional_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int16_t_unbounded), key_flags_anonymous_map_int32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_map_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_optional); - if (return_code_map_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_map_short_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -11371,32 +6403,26 @@ void register_map_short_optional_type_identifier( } CompleteStructType struct_type_map_short_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_map_short_optional, header_map_short_optional, member_seq_map_short_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_optional, type_name_map_short_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_optional, type_name_map_short_optional.to_string(), type_ids_map_short_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "map_short_optional already registered in TypeObjectRegistry for a different type."); } - return_code_map_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "map_short_optional", type_ids_map_short_optional); - if (return_code_map_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "map_short_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_map_short_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_map_short_align_1_optional) { + + ReturnCode_t return_code_map_short_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_map_short_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "map_short_align_1_optional", type_ids_map_short_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_map_short_align_1_optional) { - StructTypeFlag struct_flags_map_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_map_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_map_short_align_1_optional; - TypeIdentifierPair type_ids_map_short_align_1_optional; QualifiedTypeName type_name_map_short_align_1_optional = "map_short_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_map_short_align_1_optional; eprosima::fastcdr::optional ann_custom_map_short_align_1_optional; @@ -11405,62 +6431,26 @@ void register_map_short_align_1_optional_type_identifier( header_map_short_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_map_short_align_1_optional); CompleteStructMemberSeq member_seq_map_short_align_1_optional; { - return_code_map_short_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_map_short_align_1_optional); + "_byte", type_ids_align); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -11471,120 +6461,48 @@ void register_map_short_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_map_short_align_1_optional, member_align); } { - return_code_map_short_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_1_optional); + "anonymous_map_int32_t_int16_t_unbounded", type_ids_value); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_map_short_align_1_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_map_short_align_1_optional); + "_int16_t", type_ids_value); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_1_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_map_short_align_1_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_map_short_align_1_optional); + "_int32_t", type_ids_value); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_1_optional.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int16_t_unbounded = EK_BOTH; @@ -11607,68 +6525,21 @@ void register_map_short_align_1_optional_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int16_t_unbounded), key_flags_anonymous_map_int32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_map_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_1_optional); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -11693,32 +6564,26 @@ void register_map_short_align_1_optional_type_identifier( } CompleteStructType struct_type_map_short_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_map_short_align_1_optional, header_map_short_align_1_optional, member_seq_map_short_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_1_optional, type_name_map_short_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_1_optional, type_name_map_short_align_1_optional.to_string(), type_ids_map_short_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "map_short_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_map_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "map_short_align_1_optional", type_ids_map_short_align_1_optional); - if (return_code_map_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "map_short_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_map_short_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_map_short_align_2_optional) { + + ReturnCode_t return_code_map_short_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_map_short_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "map_short_align_2_optional", type_ids_map_short_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_map_short_align_2_optional) { - StructTypeFlag struct_flags_map_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_map_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_map_short_align_2_optional; - TypeIdentifierPair type_ids_map_short_align_2_optional; QualifiedTypeName type_name_map_short_align_2_optional = "map_short_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_map_short_align_2_optional; eprosima::fastcdr::optional ann_custom_map_short_align_2_optional; @@ -11727,62 +6592,26 @@ void register_map_short_align_2_optional_type_identifier( header_map_short_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_map_short_align_2_optional); CompleteStructMemberSeq member_seq_map_short_align_2_optional; { - return_code_map_short_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_map_short_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -11793,120 +6622,48 @@ void register_map_short_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_map_short_align_2_optional, member_align); } { - return_code_map_short_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_2_optional); + "anonymous_map_int32_t_int16_t_unbounded", type_ids_value); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_map_short_align_2_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_map_short_align_2_optional); + "_int16_t", type_ids_value); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_2_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_map_short_align_2_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_map_short_align_2_optional); + "_int32_t", type_ids_value); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_2_optional.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int16_t_unbounded = EK_BOTH; @@ -11929,68 +6686,21 @@ void register_map_short_align_2_optional_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int16_t_unbounded), key_flags_anonymous_map_int32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_map_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_2_optional); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12015,32 +6725,26 @@ void register_map_short_align_2_optional_type_identifier( } CompleteStructType struct_type_map_short_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_map_short_align_2_optional, header_map_short_align_2_optional, member_seq_map_short_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_2_optional, type_name_map_short_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_2_optional, type_name_map_short_align_2_optional.to_string(), type_ids_map_short_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "map_short_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_map_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "map_short_align_2_optional", type_ids_map_short_align_2_optional); - if (return_code_map_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "map_short_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_map_short_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_map_short_align_4_optional) { + + ReturnCode_t return_code_map_short_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_map_short_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "map_short_align_4_optional", type_ids_map_short_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_map_short_align_4_optional) { - StructTypeFlag struct_flags_map_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_map_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_map_short_align_4_optional; - TypeIdentifierPair type_ids_map_short_align_4_optional; QualifiedTypeName type_name_map_short_align_4_optional = "map_short_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_map_short_align_4_optional; eprosima::fastcdr::optional ann_custom_map_short_align_4_optional; @@ -12049,62 +6753,26 @@ void register_map_short_align_4_optional_type_identifier( header_map_short_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_map_short_align_4_optional); CompleteStructMemberSeq member_seq_map_short_align_4_optional; { - return_code_map_short_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_map_short_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_map_short_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -12115,120 +6783,48 @@ void register_map_short_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_map_short_align_4_optional, member_align); } { - return_code_map_short_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_4_optional); + "anonymous_map_int32_t_int16_t_unbounded", type_ids_value); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_map_short_align_4_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_map_short_align_4_optional); + "_int16_t", type_ids_value); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_4_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_map_short_align_4_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_map_short_align_4_optional); + "_int32_t", type_ids_value); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int16_t_unbounded = new TypeIdentifier(type_ids_map_short_align_4_optional.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int16_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int16_t_unbounded = EK_BOTH; @@ -12251,68 +6847,21 @@ void register_map_short_align_4_optional_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int16_t_unbounded), key_flags_anonymous_map_int32_t_int16_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int16_t_unbounded", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_map_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int16_t_unbounded", type_ids_map_short_align_4_optional); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int16_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_map_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_map_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_map_short_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12337,32 +6886,26 @@ void register_map_short_align_4_optional_type_identifier( } CompleteStructType struct_type_map_short_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_map_short_align_4_optional, header_map_short_align_4_optional, member_seq_map_short_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_4_optional, type_name_map_short_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_map_short_align_4_optional, type_name_map_short_align_4_optional.to_string(), type_ids_map_short_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "map_short_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_map_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "map_short_align_4_optional", type_ids_map_short_align_4_optional); - if (return_code_map_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "map_short_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_array_short_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_array_short_optional) { + + ReturnCode_t return_code_array_short_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_short_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "array_short_optional", type_ids_array_short_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_short_optional) { - StructTypeFlag struct_flags_array_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_array_short_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_array_short_optional; - TypeIdentifierPair type_ids_array_short_optional; QualifiedTypeName type_name_array_short_optional = "array_short_optional"; eprosima::fastcdr::optional type_ann_builtin_array_short_optional; eprosima::fastcdr::optional ann_custom_array_short_optional; @@ -12371,69 +6914,33 @@ void register_array_short_optional_type_identifier( header_array_short_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_array_short_optional); CompleteStructMemberSeq member_seq_array_short_optional; { - return_code_array_short_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_optional); + "anonymous_array_int16_t_10", type_ids_value); - if (return_code_array_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_array_short_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_array_short_optional); + "_int16_t", type_ids_value); - if (return_code_array_short_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_array_short_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_array_short_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -12446,68 +6953,21 @@ void register_array_short_optional_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_array_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_optional); - if (return_code_array_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_array_short_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12532,32 +6992,26 @@ void register_array_short_optional_type_identifier( } CompleteStructType struct_type_array_short_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_array_short_optional, header_array_short_optional, member_seq_array_short_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_optional, type_name_array_short_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_optional, type_name_array_short_optional.to_string(), type_ids_array_short_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "array_short_optional already registered in TypeObjectRegistry for a different type."); } - return_code_array_short_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "array_short_optional", type_ids_array_short_optional); - if (return_code_array_short_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "array_short_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_array_short_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_array_short_align_1_optional) { + + ReturnCode_t return_code_array_short_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_short_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "array_short_align_1_optional", type_ids_array_short_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_short_align_1_optional) { - StructTypeFlag struct_flags_array_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_array_short_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_array_short_align_1_optional; - TypeIdentifierPair type_ids_array_short_align_1_optional; QualifiedTypeName type_name_array_short_align_1_optional = "array_short_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_array_short_align_1_optional; eprosima::fastcdr::optional ann_custom_array_short_align_1_optional; @@ -12566,62 +7020,26 @@ void register_array_short_align_1_optional_type_identifier( header_array_short_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_array_short_align_1_optional); CompleteStructMemberSeq member_seq_array_short_align_1_optional; { - return_code_array_short_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_array_short_align_1_optional); + "_byte", type_ids_align); - if (return_code_array_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -12632,69 +7050,33 @@ void register_array_short_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_array_short_align_1_optional, member_align); } { - return_code_array_short_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_1_optional); + "anonymous_array_int16_t_10", type_ids_value); - if (return_code_array_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_array_short_align_1_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_array_short_align_1_optional); + "_int16_t", type_ids_value); - if (return_code_array_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_1_optional.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_array_short_align_1_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -12707,68 +7089,21 @@ void register_array_short_align_1_optional_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_array_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_1_optional); - if (return_code_array_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -12793,32 +7128,26 @@ void register_array_short_align_1_optional_type_identifier( } CompleteStructType struct_type_array_short_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_array_short_align_1_optional, header_array_short_align_1_optional, member_seq_array_short_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_1_optional, type_name_array_short_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_1_optional, type_name_array_short_align_1_optional.to_string(), type_ids_array_short_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "array_short_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_array_short_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "array_short_align_1_optional", type_ids_array_short_align_1_optional); - if (return_code_array_short_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "array_short_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_array_short_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_array_short_align_2_optional) { + + ReturnCode_t return_code_array_short_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_short_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "array_short_align_2_optional", type_ids_array_short_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_short_align_2_optional) { - StructTypeFlag struct_flags_array_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_array_short_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_array_short_align_2_optional; - TypeIdentifierPair type_ids_array_short_align_2_optional; QualifiedTypeName type_name_array_short_align_2_optional = "array_short_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_array_short_align_2_optional; eprosima::fastcdr::optional ann_custom_array_short_align_2_optional; @@ -12827,62 +7156,26 @@ void register_array_short_align_2_optional_type_identifier( header_array_short_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_array_short_align_2_optional); CompleteStructMemberSeq member_seq_array_short_align_2_optional; { - return_code_array_short_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_array_short_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_array_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -12893,69 +7186,33 @@ void register_array_short_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_array_short_align_2_optional, member_align); } { - return_code_array_short_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_2_optional); + "anonymous_array_int16_t_10", type_ids_value); - if (return_code_array_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_array_short_align_2_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_array_short_align_2_optional); + "_int16_t", type_ids_value); - if (return_code_array_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_2_optional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_array_short_align_2_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -12968,68 +7225,21 @@ void register_array_short_align_2_optional_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_array_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_2_optional); - if (return_code_array_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -13054,32 +7264,26 @@ void register_array_short_align_2_optional_type_identifier( } CompleteStructType struct_type_array_short_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_array_short_align_2_optional, header_array_short_align_2_optional, member_seq_array_short_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_2_optional, type_name_array_short_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_2_optional, type_name_array_short_align_2_optional.to_string(), type_ids_array_short_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "array_short_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_array_short_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "array_short_align_2_optional", type_ids_array_short_align_2_optional); - if (return_code_array_short_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "array_short_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_array_short_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_array_short_align_4_optional) { + + ReturnCode_t return_code_array_short_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_short_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "array_short_align_4_optional", type_ids_array_short_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_short_align_4_optional) { - StructTypeFlag struct_flags_array_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_array_short_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_array_short_align_4_optional; - TypeIdentifierPair type_ids_array_short_align_4_optional; QualifiedTypeName type_name_array_short_align_4_optional = "array_short_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_array_short_align_4_optional; eprosima::fastcdr::optional ann_custom_array_short_align_4_optional; @@ -13088,62 +7292,26 @@ void register_array_short_align_4_optional_type_identifier( header_array_short_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_array_short_align_4_optional); CompleteStructMemberSeq member_seq_array_short_align_4_optional; { - return_code_array_short_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_array_short_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_array_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_array_short_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -13154,69 +7322,33 @@ void register_array_short_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_array_short_align_4_optional, member_align); } { - return_code_array_short_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_4_optional); + "anonymous_array_int16_t_10", type_ids_value); - if (return_code_array_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - return_code_array_short_align_4_optional = + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_array_short_align_4_optional); + "_int16_t", type_ids_value); - if (return_code_array_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_array_short_align_4_optional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_array_short_align_4_optional.type_identifier2()._d()) + if (TK_NONE == type_ids_value.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -13229,68 +7361,21 @@ void register_array_short_align_4_optional_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_value)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_array_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_array_short_align_4_optional); - if (return_code_array_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_array_short_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_array_short_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_array_short_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -13315,32 +7400,26 @@ void register_array_short_align_4_optional_type_identifier( } CompleteStructType struct_type_array_short_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_array_short_align_4_optional, header_array_short_align_4_optional, member_seq_array_short_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_4_optional, type_name_array_short_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_array_short_align_4_optional, type_name_array_short_align_4_optional.to_string(), type_ids_array_short_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "array_short_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_array_short_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "array_short_align_4_optional", type_ids_array_short_align_4_optional); - if (return_code_array_short_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "array_short_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_struct_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_struct_optional) { + + ReturnCode_t return_code_struct_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_struct_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "struct_optional", type_ids_struct_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_struct_optional) { - StructTypeFlag struct_flags_struct_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_struct_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_struct_optional; - TypeIdentifierPair type_ids_struct_optional; QualifiedTypeName type_name_struct_optional = "struct_optional"; eprosima::fastcdr::optional type_ann_builtin_struct_optional; eprosima::fastcdr::optional ann_custom_struct_optional; @@ -13349,229 +7428,24 @@ void register_struct_optional_type_identifier( header_struct_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_struct_optional); CompleteStructMemberSeq member_seq_struct_optional; { - return_code_struct_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_struct_optional); + "InnerStructureHelper", type_ids_value); - if (return_code_struct_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_struct_optional = return_code_InnerStructureHelper; - type_ids_struct_optional = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_struct_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -13596,32 +7470,26 @@ void register_struct_optional_type_identifier( } CompleteStructType struct_type_struct_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_struct_optional, header_struct_optional, member_seq_struct_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_optional, type_name_struct_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_optional, type_name_struct_optional.to_string(), type_ids_struct_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "struct_optional already registered in TypeObjectRegistry for a different type."); } - return_code_struct_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "struct_optional", type_ids_struct_optional); - if (return_code_struct_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "struct_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_struct_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_struct_align_1_optional) { + + ReturnCode_t return_code_struct_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_struct_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "struct_align_1_optional", type_ids_struct_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_struct_align_1_optional) { - StructTypeFlag struct_flags_struct_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_struct_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_struct_align_1_optional; - TypeIdentifierPair type_ids_struct_align_1_optional; QualifiedTypeName type_name_struct_align_1_optional = "struct_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_struct_align_1_optional; eprosima::fastcdr::optional ann_custom_struct_align_1_optional; @@ -13630,62 +7498,26 @@ void register_struct_align_1_optional_type_identifier( header_struct_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_struct_align_1_optional); CompleteStructMemberSeq member_seq_struct_align_1_optional; { - return_code_struct_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_struct_align_1_optional); + "_byte", type_ids_align); - if (return_code_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -13696,229 +7528,24 @@ void register_struct_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_struct_align_1_optional, member_align); } { - return_code_struct_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_struct_align_1_optional); + "InnerStructureHelper", type_ids_value); - if (return_code_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_struct_align_1_optional = return_code_InnerStructureHelper; - type_ids_struct_align_1_optional = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -13943,32 +7570,26 @@ void register_struct_align_1_optional_type_identifier( } CompleteStructType struct_type_struct_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_struct_align_1_optional, header_struct_align_1_optional, member_seq_struct_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_1_optional, type_name_struct_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_1_optional, type_name_struct_align_1_optional.to_string(), type_ids_struct_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "struct_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_struct_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "struct_align_1_optional", type_ids_struct_align_1_optional); - if (return_code_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "struct_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_struct_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_struct_align_2_optional) { + + ReturnCode_t return_code_struct_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_struct_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "struct_align_2_optional", type_ids_struct_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_struct_align_2_optional) { - StructTypeFlag struct_flags_struct_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_struct_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_struct_align_2_optional; - TypeIdentifierPair type_ids_struct_align_2_optional; QualifiedTypeName type_name_struct_align_2_optional = "struct_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_struct_align_2_optional; eprosima::fastcdr::optional ann_custom_struct_align_2_optional; @@ -13977,62 +7598,26 @@ void register_struct_align_2_optional_type_identifier( header_struct_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_struct_align_2_optional); CompleteStructMemberSeq member_seq_struct_align_2_optional; { - return_code_struct_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_struct_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -14043,229 +7628,24 @@ void register_struct_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_struct_align_2_optional, member_align); } { - return_code_struct_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_struct_align_2_optional); + "InnerStructureHelper", type_ids_value); - if (return_code_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_struct_align_2_optional = return_code_InnerStructureHelper; - type_ids_struct_align_2_optional = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -14290,32 +7670,26 @@ void register_struct_align_2_optional_type_identifier( } CompleteStructType struct_type_struct_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_struct_align_2_optional, header_struct_align_2_optional, member_seq_struct_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_2_optional, type_name_struct_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_2_optional, type_name_struct_align_2_optional.to_string(), type_ids_struct_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "struct_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_struct_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "struct_align_2_optional", type_ids_struct_align_2_optional); - if (return_code_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "struct_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_struct_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_struct_align_4_optional) { + + ReturnCode_t return_code_struct_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_struct_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "struct_align_4_optional", type_ids_struct_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_struct_align_4_optional) { - StructTypeFlag struct_flags_struct_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_struct_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_struct_align_4_optional; - TypeIdentifierPair type_ids_struct_align_4_optional; QualifiedTypeName type_name_struct_align_4_optional = "struct_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_struct_align_4_optional; eprosima::fastcdr::optional ann_custom_struct_align_4_optional; @@ -14324,62 +7698,26 @@ void register_struct_align_4_optional_type_identifier( header_struct_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_struct_align_4_optional); CompleteStructMemberSeq member_seq_struct_align_4_optional; { - return_code_struct_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_struct_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_struct_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -14390,229 +7728,24 @@ void register_struct_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_struct_align_4_optional, member_align); } { - return_code_struct_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_struct_align_4_optional); + "InnerStructureHelper", type_ids_value); - if (return_code_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_struct_align_4_optional = return_code_InnerStructureHelper; - type_ids_struct_align_4_optional = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_struct_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_struct_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -14637,32 +7770,26 @@ void register_struct_align_4_optional_type_identifier( } CompleteStructType struct_type_struct_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_struct_align_4_optional, header_struct_align_4_optional, member_seq_struct_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_4_optional, type_name_struct_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_struct_align_4_optional, type_name_struct_align_4_optional.to_string(), type_ids_struct_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "struct_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_struct_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "struct_align_4_optional", type_ids_struct_align_4_optional); - if (return_code_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "struct_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_InnerStructOptional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_InnerStructOptional) { + + ReturnCode_t return_code_InnerStructOptional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_InnerStructOptional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "InnerStructOptional", type_ids_InnerStructOptional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_InnerStructOptional) { - StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_InnerStructOptional; - TypeIdentifierPair type_ids_InnerStructOptional; QualifiedTypeName type_name_InnerStructOptional = "InnerStructOptional"; eprosima::fastcdr::optional type_ann_builtin_InnerStructOptional; eprosima::fastcdr::optional ann_custom_InnerStructOptional; @@ -14671,62 +7798,26 @@ void register_InnerStructOptional_type_identifier( header_InnerStructOptional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructOptional); CompleteStructMemberSeq member_seq_InnerStructOptional; { - return_code_InnerStructOptional = + TypeIdentifierPair type_ids_s; + ReturnCode_t return_code_s {eprosima::fastdds::dds::RETCODE_OK}; + return_code_s = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerStructOptional); + "_int16_t", type_ids_s); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_s) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_s; MemberId member_id_s = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier2()); - } - else + bool common_s_ec {false}; + CommonStructMember common_s {TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_s, common_s_ec))}; + if (!common_s_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -14737,62 +7828,26 @@ void register_InnerStructOptional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_s); } { - return_code_InnerStructOptional = + TypeIdentifierPair type_ids_l; + ReturnCode_t return_code_l {eprosima::fastdds::dds::RETCODE_OK}; + return_code_l = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructOptional); + "_int32_t", type_ids_l); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_l) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_l; MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier2()); - } - else + bool common_l_ec {false}; + CommonStructMember common_l {TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_l, common_l_ec))}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -14817,32 +7872,26 @@ void register_InnerStructOptional_type_identifier( } CompleteStructType struct_type_InnerStructOptional = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructOptional, header_InnerStructOptional, member_seq_InnerStructOptional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_ids_InnerStructOptional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "InnerStructOptional already registered in TypeObjectRegistry for a different type."); } - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_InnerStructOptional); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_opt_struct_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_opt_struct_optional) { + + ReturnCode_t return_code_opt_struct_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_opt_struct_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "opt_struct_optional", type_ids_opt_struct_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_opt_struct_optional) { - StructTypeFlag struct_flags_opt_struct_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_opt_struct_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_opt_struct_optional; - TypeIdentifierPair type_ids_opt_struct_optional; QualifiedTypeName type_name_opt_struct_optional = "opt_struct_optional"; eprosima::fastcdr::optional type_ann_builtin_opt_struct_optional; eprosima::fastcdr::optional ann_custom_opt_struct_optional; @@ -14851,235 +7900,24 @@ void register_opt_struct_optional_type_identifier( header_opt_struct_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_opt_struct_optional); CompleteStructMemberSeq member_seq_opt_struct_optional; { - return_code_opt_struct_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_opt_struct_optional); + "InnerStructOptional", type_ids_value); - if (return_code_opt_struct_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructOptional; - TypeIdentifierPair type_ids_InnerStructOptional; - QualifiedTypeName type_name_InnerStructOptional = "InnerStructOptional"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructOptional; - eprosima::fastcdr::optional ann_custom_InnerStructOptional; - CompleteTypeDetail detail_InnerStructOptional = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructOptional, ann_custom_InnerStructOptional, type_name_InnerStructOptional.to_string()); - CompleteStructHeader header_InnerStructOptional; - header_InnerStructOptional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructOptional); - CompleteStructMemberSeq member_seq_InnerStructOptional; - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_InnerStructOptional.reset(); - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_InnerStructOptional); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_s); - } - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_InnerStructOptional.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_InnerStructOptional = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_InnerStructOptional); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_l); - } - CompleteStructType struct_type_InnerStructOptional = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructOptional, header_InnerStructOptional, member_seq_InnerStructOptional); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_InnerStructOptional); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_opt_struct_optional = return_code_InnerStructOptional; - type_ids_opt_struct_optional = type_ids_InnerStructOptional; - } + ::register_InnerStructOptional_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -15104,32 +7942,26 @@ void register_opt_struct_optional_type_identifier( } CompleteStructType struct_type_opt_struct_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_opt_struct_optional, header_opt_struct_optional, member_seq_opt_struct_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_optional, type_name_opt_struct_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_optional, type_name_opt_struct_optional.to_string(), type_ids_opt_struct_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "opt_struct_optional already registered in TypeObjectRegistry for a different type."); } - return_code_opt_struct_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "opt_struct_optional", type_ids_opt_struct_optional); - if (return_code_opt_struct_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "opt_struct_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_opt_struct_align_1_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_opt_struct_align_1_optional) { + + ReturnCode_t return_code_opt_struct_align_1_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_opt_struct_align_1_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "opt_struct_align_1_optional", type_ids_opt_struct_align_1_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_opt_struct_align_1_optional) { - StructTypeFlag struct_flags_opt_struct_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_opt_struct_align_1_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_opt_struct_align_1_optional; - TypeIdentifierPair type_ids_opt_struct_align_1_optional; QualifiedTypeName type_name_opt_struct_align_1_optional = "opt_struct_align_1_optional"; eprosima::fastcdr::optional type_ann_builtin_opt_struct_align_1_optional; eprosima::fastcdr::optional ann_custom_opt_struct_align_1_optional; @@ -15138,62 +7970,26 @@ void register_opt_struct_align_1_optional_type_identifier( header_opt_struct_align_1_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_opt_struct_align_1_optional); CompleteStructMemberSeq member_seq_opt_struct_align_1_optional; { - return_code_opt_struct_align_1_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_opt_struct_align_1_optional); + "_byte", type_ids_align); - if (return_code_opt_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_1_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -15204,235 +8000,24 @@ void register_opt_struct_align_1_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_opt_struct_align_1_optional, member_align); } { - return_code_opt_struct_align_1_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_opt_struct_align_1_optional); + "InnerStructOptional", type_ids_value); - if (return_code_opt_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructOptional; - TypeIdentifierPair type_ids_InnerStructOptional; - QualifiedTypeName type_name_InnerStructOptional = "InnerStructOptional"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructOptional; - eprosima::fastcdr::optional ann_custom_InnerStructOptional; - CompleteTypeDetail detail_InnerStructOptional = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructOptional, ann_custom_InnerStructOptional, type_name_InnerStructOptional.to_string()); - CompleteStructHeader header_InnerStructOptional; - header_InnerStructOptional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructOptional); - CompleteStructMemberSeq member_seq_InnerStructOptional; - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_InnerStructOptional.reset(); - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_InnerStructOptional); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_s); - } - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_InnerStructOptional.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_InnerStructOptional = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_InnerStructOptional); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_l); - } - CompleteStructType struct_type_InnerStructOptional = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructOptional, header_InnerStructOptional, member_seq_InnerStructOptional); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_InnerStructOptional); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_opt_struct_align_1_optional = return_code_InnerStructOptional; - type_ids_opt_struct_align_1_optional = type_ids_InnerStructOptional; - } + ::register_InnerStructOptional_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_1_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_1_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_1_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_1_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_1_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -15457,32 +8042,26 @@ void register_opt_struct_align_1_optional_type_identifier( } CompleteStructType struct_type_opt_struct_align_1_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_opt_struct_align_1_optional, header_opt_struct_align_1_optional, member_seq_opt_struct_align_1_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_1_optional, type_name_opt_struct_align_1_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_1_optional, type_name_opt_struct_align_1_optional.to_string(), type_ids_opt_struct_align_1_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "opt_struct_align_1_optional already registered in TypeObjectRegistry for a different type."); } - return_code_opt_struct_align_1_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "opt_struct_align_1_optional", type_ids_opt_struct_align_1_optional); - if (return_code_opt_struct_align_1_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "opt_struct_align_1_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_opt_struct_align_2_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_opt_struct_align_2_optional) { + + ReturnCode_t return_code_opt_struct_align_2_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_opt_struct_align_2_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "opt_struct_align_2_optional", type_ids_opt_struct_align_2_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_opt_struct_align_2_optional) { - StructTypeFlag struct_flags_opt_struct_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_opt_struct_align_2_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_opt_struct_align_2_optional; - TypeIdentifierPair type_ids_opt_struct_align_2_optional; QualifiedTypeName type_name_opt_struct_align_2_optional = "opt_struct_align_2_optional"; eprosima::fastcdr::optional type_ann_builtin_opt_struct_align_2_optional; eprosima::fastcdr::optional ann_custom_opt_struct_align_2_optional; @@ -15491,62 +8070,26 @@ void register_opt_struct_align_2_optional_type_identifier( header_opt_struct_align_2_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_opt_struct_align_2_optional); CompleteStructMemberSeq member_seq_opt_struct_align_2_optional; { - return_code_opt_struct_align_2_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_opt_struct_align_2_optional); + "_uint16_t", type_ids_align); - if (return_code_opt_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_2_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -15557,235 +8100,24 @@ void register_opt_struct_align_2_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_opt_struct_align_2_optional, member_align); } { - return_code_opt_struct_align_2_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_opt_struct_align_2_optional); + "InnerStructOptional", type_ids_value); - if (return_code_opt_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructOptional; - TypeIdentifierPair type_ids_InnerStructOptional; - QualifiedTypeName type_name_InnerStructOptional = "InnerStructOptional"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructOptional; - eprosima::fastcdr::optional ann_custom_InnerStructOptional; - CompleteTypeDetail detail_InnerStructOptional = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructOptional, ann_custom_InnerStructOptional, type_name_InnerStructOptional.to_string()); - CompleteStructHeader header_InnerStructOptional; - header_InnerStructOptional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructOptional); - CompleteStructMemberSeq member_seq_InnerStructOptional; - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_InnerStructOptional.reset(); - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_InnerStructOptional); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_s); - } - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_InnerStructOptional.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_InnerStructOptional = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_InnerStructOptional); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_l); - } - CompleteStructType struct_type_InnerStructOptional = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructOptional, header_InnerStructOptional, member_seq_InnerStructOptional); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_InnerStructOptional); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_opt_struct_align_2_optional = return_code_InnerStructOptional; - type_ids_opt_struct_align_2_optional = type_ids_InnerStructOptional; - } + ::register_InnerStructOptional_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_2_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_2_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_2_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_2_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_2_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -15810,32 +8142,26 @@ void register_opt_struct_align_2_optional_type_identifier( } CompleteStructType struct_type_opt_struct_align_2_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_opt_struct_align_2_optional, header_opt_struct_align_2_optional, member_seq_opt_struct_align_2_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_2_optional, type_name_opt_struct_align_2_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_2_optional, type_name_opt_struct_align_2_optional.to_string(), type_ids_opt_struct_align_2_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "opt_struct_align_2_optional already registered in TypeObjectRegistry for a different type."); } - return_code_opt_struct_align_2_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "opt_struct_align_2_optional", type_ids_opt_struct_align_2_optional); - if (return_code_opt_struct_align_2_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "opt_struct_align_2_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_opt_struct_align_4_optional_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_opt_struct_align_4_optional) { + + ReturnCode_t return_code_opt_struct_align_4_optional {eprosima::fastdds::dds::RETCODE_OK}; + return_code_opt_struct_align_4_optional = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "opt_struct_align_4_optional", type_ids_opt_struct_align_4_optional); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_opt_struct_align_4_optional) { - StructTypeFlag struct_flags_opt_struct_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_opt_struct_align_4_optional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_opt_struct_align_4_optional; - TypeIdentifierPair type_ids_opt_struct_align_4_optional; QualifiedTypeName type_name_opt_struct_align_4_optional = "opt_struct_align_4_optional"; eprosima::fastcdr::optional type_ann_builtin_opt_struct_align_4_optional; eprosima::fastcdr::optional ann_custom_opt_struct_align_4_optional; @@ -15844,62 +8170,26 @@ void register_opt_struct_align_4_optional_type_identifier( header_opt_struct_align_4_optional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_opt_struct_align_4_optional); CompleteStructMemberSeq member_seq_opt_struct_align_4_optional; { - return_code_opt_struct_align_4_optional = + TypeIdentifierPair type_ids_align; + ReturnCode_t return_code_align {eprosima::fastdds::dds::RETCODE_OK}; + return_code_align = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_opt_struct_align_4_optional); + "_uint32_t", type_ids_align); - if (return_code_opt_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_align) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "align Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_align = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_align; MemberId member_id_align = 0x00000000; - if (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_align = TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, type_ids_opt_struct_align_4_optional.type_identifier2()); - } - else + bool common_align_ec {false}; + CommonStructMember common_align {TypeObjectUtils::build_common_struct_member(member_id_align, member_flags_align, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_align, common_align_ec))}; + if (!common_align_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure align member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure align member TypeIdentifier inconsistent."); return; } MemberName name_align = "align"; @@ -15910,235 +8200,24 @@ void register_opt_struct_align_4_optional_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_opt_struct_align_4_optional, member_align); } { - return_code_opt_struct_align_4_optional = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_opt_struct_align_4_optional); + "InnerStructOptional", type_ids_value); - if (return_code_opt_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - { - StructTypeFlag struct_flags_InnerStructOptional = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_InnerStructOptional; - TypeIdentifierPair type_ids_InnerStructOptional; - QualifiedTypeName type_name_InnerStructOptional = "InnerStructOptional"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructOptional; - eprosima::fastcdr::optional ann_custom_InnerStructOptional; - CompleteTypeDetail detail_InnerStructOptional = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructOptional, ann_custom_InnerStructOptional, type_name_InnerStructOptional.to_string()); - CompleteStructHeader header_InnerStructOptional; - header_InnerStructOptional = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructOptional); - CompleteStructMemberSeq member_seq_InnerStructOptional; - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "s Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_s = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_s; - MemberId member_id_s = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_struct_member(member_id_s, member_flags_s, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_InnerStructOptional.reset(); - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_InnerStructOptional); - CompleteStructMember member_s = TypeObjectUtils::build_complete_struct_member(common_s, detail_s); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_s); - } - { - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructOptional); - - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_l = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false, false, false); - CommonStructMember common_l; - MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1()._d() || TK_NONE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructOptional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructOptional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_struct_member(member_id_l, member_flags_l, type_ids_InnerStructOptional.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_InnerStructOptional.reset(); - AppliedAnnotationSeq tmp_ann_custom_l; - eprosima::fastcdr::optional unit_l; - eprosima::fastcdr::optional min_l; - eprosima::fastcdr::optional max_l; - eprosima::fastcdr::optional hash_id_l; - if (unit_l.has_value() || min_l.has_value() || max_l.has_value() || hash_id_l.has_value()) - { - member_ann_builtin_l = TypeObjectUtils::build_applied_builtin_member_annotations(unit_l, min_l, max_l, hash_id_l); - } - if (!tmp_ann_custom_l.empty()) - { - ann_custom_InnerStructOptional = tmp_ann_custom_l; - } - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_InnerStructOptional); - CompleteStructMember member_l = TypeObjectUtils::build_complete_struct_member(common_l, detail_l); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructOptional, member_l); - } - CompleteStructType struct_type_InnerStructOptional = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructOptional, header_InnerStructOptional, member_seq_InnerStructOptional); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructOptional, type_name_InnerStructOptional.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructOptional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructOptional", type_ids_InnerStructOptional); - if (return_code_InnerStructOptional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructOptional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_opt_struct_align_4_optional = return_code_InnerStructOptional; - type_ids_opt_struct_align_4_optional = type_ids_InnerStructOptional; - } + ::register_InnerStructOptional_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000001; - if (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() || TK_NONE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_4_optional.type_identifier1()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_4_optional.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_opt_struct_align_4_optional.type_identifier2()._d() && - (EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_opt_struct_align_4_optional.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_opt_struct_align_4_optional.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -16163,21 +8242,11 @@ void register_opt_struct_align_4_optional_type_identifier( } CompleteStructType struct_type_opt_struct_align_4_optional = TypeObjectUtils::build_complete_struct_type(struct_flags_opt_struct_align_4_optional, header_opt_struct_align_4_optional, member_seq_opt_struct_align_4_optional); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_4_optional, type_name_opt_struct_align_4_optional.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_opt_struct_align_4_optional, type_name_opt_struct_align_4_optional.to_string(), type_ids_opt_struct_align_4_optional)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "opt_struct_align_4_optional already registered in TypeObjectRegistry for a different type."); } - return_code_opt_struct_align_4_optional = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "opt_struct_align_4_optional", type_ids_opt_struct_align_4_optional); - if (return_code_opt_struct_align_4_optional != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "opt_struct_align_4_optional: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/optionalTypeObjectSupport.hpp b/test/dds-types-test/optionalTypeObjectSupport.hpp index bb206582091..7d063772281 100644 --- a/test/dds-types-test/optionalTypeObjectSupport.hpp +++ b/test/dds-types-test/optionalTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_optional_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_optional_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_short_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ushort_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_short_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ushort_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register long_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_ushort_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_long_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulong_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_long_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulong_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longlong_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_ulong_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longlong_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulonglong_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_longlong_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulonglong_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register float_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_ulonglong_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_float_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register double_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_float_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_double_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longdouble_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_double_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longdouble_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register boolean_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_longdouble_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_boolean_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register octet_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_boolean_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_octet_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register char_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_octet_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_char_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register wchar_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_char_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_wchar_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register short_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_wchar_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_short_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register short_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_short_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_short_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register short_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_short_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_short_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ushort_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_short_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ushort_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ushort_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_ushort_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ushort_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ushort_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_ushort_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ushort_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register long_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_ushort_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_long_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register long_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_long_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_long_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register long_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_long_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_long_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulong_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_long_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulong_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulong_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_ulong_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulong_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulong_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_ulong_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulong_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longlong_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_ulong_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longlong_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longlong_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_longlong_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longlong_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longlong_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,7 +373,7 @@ eProsima_user_DllExport void register_longlong_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longlong_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulonglong_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -390,7 +385,7 @@ eProsima_user_DllExport void register_longlong_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulonglong_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulonglong_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -402,7 +397,7 @@ eProsima_user_DllExport void register_ulonglong_align_1_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulonglong_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ulonglong_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -414,7 +409,7 @@ eProsima_user_DllExport void register_ulonglong_align_2_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ulonglong_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register float_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -426,7 +421,7 @@ eProsima_user_DllExport void register_ulonglong_align_4_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_float_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register float_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -438,7 +433,7 @@ eProsima_user_DllExport void register_float_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_float_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register float_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -450,7 +445,7 @@ eProsima_user_DllExport void register_float_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_float_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register double_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -462,7 +457,7 @@ eProsima_user_DllExport void register_float_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_double_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register double_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -474,7 +469,7 @@ eProsima_user_DllExport void register_double_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_double_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register double_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -486,7 +481,7 @@ eProsima_user_DllExport void register_double_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_double_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longdouble_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -498,7 +493,7 @@ eProsima_user_DllExport void register_double_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longdouble_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longdouble_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -510,7 +505,7 @@ eProsima_user_DllExport void register_longdouble_align_1_optional_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longdouble_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register longdouble_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -522,7 +517,7 @@ eProsima_user_DllExport void register_longdouble_align_2_optional_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_longdouble_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register boolean_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -534,7 +529,7 @@ eProsima_user_DllExport void register_longdouble_align_4_optional_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_boolean_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register boolean_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -546,7 +541,7 @@ eProsima_user_DllExport void register_boolean_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_boolean_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register boolean_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -558,7 +553,7 @@ eProsima_user_DllExport void register_boolean_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_boolean_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register octet_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -570,7 +565,7 @@ eProsima_user_DllExport void register_boolean_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_octet_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register octet_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -582,7 +577,7 @@ eProsima_user_DllExport void register_octet_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_octet_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register octet_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -594,7 +589,7 @@ eProsima_user_DllExport void register_octet_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_octet_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register char_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -606,7 +601,7 @@ eProsima_user_DllExport void register_octet_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_char_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register char_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -618,7 +613,7 @@ eProsima_user_DllExport void register_char_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_char_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register char_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -630,7 +625,7 @@ eProsima_user_DllExport void register_char_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_char_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register wchar_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -642,7 +637,7 @@ eProsima_user_DllExport void register_char_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_wchar_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register wchar_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -654,7 +649,7 @@ eProsima_user_DllExport void register_wchar_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_wchar_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register wchar_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -666,7 +661,7 @@ eProsima_user_DllExport void register_wchar_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_wchar_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register sequence_short_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -678,7 +673,7 @@ eProsima_user_DllExport void register_wchar_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_sequence_short_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register sequence_short_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -690,7 +685,7 @@ eProsima_user_DllExport void register_sequence_short_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_sequence_short_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register sequence_short_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -702,7 +697,7 @@ eProsima_user_DllExport void register_sequence_short_align_1_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_sequence_short_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register sequence_short_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -714,7 +709,7 @@ eProsima_user_DllExport void register_sequence_short_align_2_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_sequence_short_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_unbounded_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -726,7 +721,7 @@ eProsima_user_DllExport void register_sequence_short_align_4_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_unbounded_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_unbounded_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -738,7 +733,7 @@ eProsima_user_DllExport void register_string_unbounded_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_unbounded_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_unbounded_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -750,7 +745,7 @@ eProsima_user_DllExport void register_string_unbounded_align_1_optional_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_unbounded_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_unbounded_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -762,7 +757,7 @@ eProsima_user_DllExport void register_string_unbounded_align_2_optional_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_unbounded_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_bounded_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -774,7 +769,7 @@ eProsima_user_DllExport void register_string_unbounded_align_4_optional_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_bounded_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_bounded_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -786,7 +781,7 @@ eProsima_user_DllExport void register_string_bounded_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_bounded_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_bounded_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -798,7 +793,7 @@ eProsima_user_DllExport void register_string_bounded_align_1_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_bounded_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register string_bounded_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -810,7 +805,7 @@ eProsima_user_DllExport void register_string_bounded_align_2_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_string_bounded_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register map_short_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -822,7 +817,7 @@ eProsima_user_DllExport void register_string_bounded_align_4_optional_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_map_short_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register map_short_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -834,7 +829,7 @@ eProsima_user_DllExport void register_map_short_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_map_short_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register map_short_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -846,7 +841,7 @@ eProsima_user_DllExport void register_map_short_align_1_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_map_short_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register map_short_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -858,7 +853,7 @@ eProsima_user_DllExport void register_map_short_align_2_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_map_short_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register array_short_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -870,7 +865,7 @@ eProsima_user_DllExport void register_map_short_align_4_optional_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_array_short_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register array_short_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -882,7 +877,7 @@ eProsima_user_DllExport void register_array_short_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_array_short_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register array_short_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -894,7 +889,7 @@ eProsima_user_DllExport void register_array_short_align_1_optional_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_array_short_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register array_short_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -906,7 +901,7 @@ eProsima_user_DllExport void register_array_short_align_2_optional_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_array_short_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register struct_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -918,7 +913,7 @@ eProsima_user_DllExport void register_array_short_align_4_optional_type_identifi * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_struct_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register struct_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -930,7 +925,7 @@ eProsima_user_DllExport void register_struct_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_struct_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register struct_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -942,7 +937,7 @@ eProsima_user_DllExport void register_struct_align_1_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_struct_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register struct_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -954,7 +949,7 @@ eProsima_user_DllExport void register_struct_align_2_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_struct_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register InnerStructOptional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -966,7 +961,7 @@ eProsima_user_DllExport void register_struct_align_4_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_InnerStructOptional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register opt_struct_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -978,7 +973,7 @@ eProsima_user_DllExport void register_InnerStructOptional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_opt_struct_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register opt_struct_align_1_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -990,7 +985,7 @@ eProsima_user_DllExport void register_opt_struct_optional_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_opt_struct_align_1_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register opt_struct_align_2_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1002,7 +997,7 @@ eProsima_user_DllExport void register_opt_struct_align_1_optional_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_opt_struct_align_2_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register opt_struct_align_4_optional related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1014,7 +1009,7 @@ eProsima_user_DllExport void register_opt_struct_align_2_optional_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_opt_struct_align_4_optional_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/primitivesPubSubTypes.cxx b/test/dds-types-test/primitivesPubSubTypes.cxx index af28c5dc25f..614a8862136 100644 --- a/test/dds-types-test/primitivesPubSubTypes.cxx +++ b/test/dds-types-test/primitivesPubSubTypes.cxx @@ -219,9 +219,9 @@ bool ShortStructPubSubType::getKey( return true; } -void ShortStructPubSubType::register_type_object_representation() const +void ShortStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_ShortStruct_type_identifier(type_identifiers_); } UShortStructPubSubType::UShortStructPubSubType() @@ -412,9 +412,9 @@ bool UShortStructPubSubType::getKey( return true; } -void UShortStructPubSubType::register_type_object_representation() const +void UShortStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_UShortStruct_type_identifier(type_identifiers_); } LongStructPubSubType::LongStructPubSubType() @@ -605,9 +605,9 @@ bool LongStructPubSubType::getKey( return true; } -void LongStructPubSubType::register_type_object_representation() const +void LongStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_LongStruct_type_identifier(type_identifiers_); } ULongStructPubSubType::ULongStructPubSubType() @@ -798,9 +798,9 @@ bool ULongStructPubSubType::getKey( return true; } -void ULongStructPubSubType::register_type_object_representation() const +void ULongStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_ULongStruct_type_identifier(type_identifiers_); } LongLongStructPubSubType::LongLongStructPubSubType() @@ -991,9 +991,9 @@ bool LongLongStructPubSubType::getKey( return true; } -void LongLongStructPubSubType::register_type_object_representation() const +void LongLongStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_LongLongStruct_type_identifier(type_identifiers_); } ULongLongStructPubSubType::ULongLongStructPubSubType() @@ -1184,9 +1184,9 @@ bool ULongLongStructPubSubType::getKey( return true; } -void ULongLongStructPubSubType::register_type_object_representation() const +void ULongLongStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_ULongLongStruct_type_identifier(type_identifiers_); } FloatStructPubSubType::FloatStructPubSubType() @@ -1377,9 +1377,9 @@ bool FloatStructPubSubType::getKey( return true; } -void FloatStructPubSubType::register_type_object_representation() const +void FloatStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_FloatStruct_type_identifier(type_identifiers_); } DoubleStructPubSubType::DoubleStructPubSubType() @@ -1570,9 +1570,9 @@ bool DoubleStructPubSubType::getKey( return true; } -void DoubleStructPubSubType::register_type_object_representation() const +void DoubleStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_DoubleStruct_type_identifier(type_identifiers_); } LongDoubleStructPubSubType::LongDoubleStructPubSubType() @@ -1763,9 +1763,9 @@ bool LongDoubleStructPubSubType::getKey( return true; } -void LongDoubleStructPubSubType::register_type_object_representation() const +void LongDoubleStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_LongDoubleStruct_type_identifier(type_identifiers_); } BooleanStructPubSubType::BooleanStructPubSubType() @@ -1956,9 +1956,9 @@ bool BooleanStructPubSubType::getKey( return true; } -void BooleanStructPubSubType::register_type_object_representation() const +void BooleanStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_BooleanStruct_type_identifier(type_identifiers_); } OctetStructPubSubType::OctetStructPubSubType() @@ -2149,9 +2149,9 @@ bool OctetStructPubSubType::getKey( return true; } -void OctetStructPubSubType::register_type_object_representation() const +void OctetStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_OctetStruct_type_identifier(type_identifiers_); } CharStructPubSubType::CharStructPubSubType() @@ -2342,9 +2342,9 @@ bool CharStructPubSubType::getKey( return true; } -void CharStructPubSubType::register_type_object_representation() const +void CharStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_CharStruct_type_identifier(type_identifiers_); } WCharStructPubSubType::WCharStructPubSubType() @@ -2535,9 +2535,9 @@ bool WCharStructPubSubType::getKey( return true; } -void WCharStructPubSubType::register_type_object_representation() const +void WCharStructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_WCharStruct_type_identifier(type_identifiers_); } Int8StructPubSubType::Int8StructPubSubType() @@ -2728,9 +2728,9 @@ bool Int8StructPubSubType::getKey( return true; } -void Int8StructPubSubType::register_type_object_representation() const +void Int8StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Int8Struct_type_identifier(type_identifiers_); } Uint8StructPubSubType::Uint8StructPubSubType() @@ -2921,9 +2921,9 @@ bool Uint8StructPubSubType::getKey( return true; } -void Uint8StructPubSubType::register_type_object_representation() const +void Uint8StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Uint8Struct_type_identifier(type_identifiers_); } Int16StructPubSubType::Int16StructPubSubType() @@ -3114,9 +3114,9 @@ bool Int16StructPubSubType::getKey( return true; } -void Int16StructPubSubType::register_type_object_representation() const +void Int16StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Int16Struct_type_identifier(type_identifiers_); } Uint16StructPubSubType::Uint16StructPubSubType() @@ -3307,9 +3307,9 @@ bool Uint16StructPubSubType::getKey( return true; } -void Uint16StructPubSubType::register_type_object_representation() const +void Uint16StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Uint16Struct_type_identifier(type_identifiers_); } Int32StructPubSubType::Int32StructPubSubType() @@ -3500,9 +3500,9 @@ bool Int32StructPubSubType::getKey( return true; } -void Int32StructPubSubType::register_type_object_representation() const +void Int32StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Int32Struct_type_identifier(type_identifiers_); } Uint32StructPubSubType::Uint32StructPubSubType() @@ -3693,9 +3693,9 @@ bool Uint32StructPubSubType::getKey( return true; } -void Uint32StructPubSubType::register_type_object_representation() const +void Uint32StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Uint32Struct_type_identifier(type_identifiers_); } Int64StructPubSubType::Int64StructPubSubType() @@ -3886,9 +3886,9 @@ bool Int64StructPubSubType::getKey( return true; } -void Int64StructPubSubType::register_type_object_representation() const +void Int64StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Int64Struct_type_identifier(type_identifiers_); } Uint64StructPubSubType::Uint64StructPubSubType() @@ -4079,9 +4079,9 @@ bool Uint64StructPubSubType::getKey( return true; } -void Uint64StructPubSubType::register_type_object_representation() const +void Uint64StructPubSubType::register_type_object_representation() { - register_primitives_type_objects(); + register_Uint64Struct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/primitivesPubSubTypes.h b/test/dds-types-test/primitivesPubSubTypes.h index 10044e545eb..8f2432454f7 100644 --- a/test/dds-types-test/primitivesPubSubTypes.h +++ b/test/dds-types-test/primitivesPubSubTypes.h @@ -89,7 +89,7 @@ class ShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -180,7 +180,7 @@ class UShortStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -271,7 +271,7 @@ class LongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -362,7 +362,7 @@ class ULongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -453,7 +453,7 @@ class LongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -544,7 +544,7 @@ class ULongLongStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -635,7 +635,7 @@ class FloatStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -726,7 +726,7 @@ class DoubleStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -817,7 +817,7 @@ class LongDoubleStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -908,7 +908,7 @@ class BooleanStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -999,7 +999,7 @@ class OctetStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1090,7 +1090,7 @@ class CharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1181,7 +1181,7 @@ class WCharStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1272,7 +1272,7 @@ class Int8StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1363,7 +1363,7 @@ class Uint8StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1454,7 +1454,7 @@ class Int16StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1545,7 +1545,7 @@ class Uint16StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1636,7 +1636,7 @@ class Int32StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1727,7 +1727,7 @@ class Uint32StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1818,7 +1818,7 @@ class Int64StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1909,7 +1909,7 @@ class Uint64StructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/primitivesTypeObjectSupport.cxx b/test/dds-types-test/primitivesTypeObjectSupport.cxx index 3f695ecad6f..c93d4f78559 100644 --- a/test/dds-types-test/primitivesTypeObjectSupport.cxx +++ b/test/dds-types-test/primitivesTypeObjectSupport.cxx @@ -38,66 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_primitives_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_ShortStruct_type_identifier(type_id); - - register_UShortStruct_type_identifier(type_id); - - register_LongStruct_type_identifier(type_id); - - register_ULongStruct_type_identifier(type_id); - - register_LongLongStruct_type_identifier(type_id); - - register_ULongLongStruct_type_identifier(type_id); - - register_FloatStruct_type_identifier(type_id); - - register_DoubleStruct_type_identifier(type_id); - - register_LongDoubleStruct_type_identifier(type_id); - - register_BooleanStruct_type_identifier(type_id); - - register_OctetStruct_type_identifier(type_id); - - register_CharStruct_type_identifier(type_id); - - register_WCharStruct_type_identifier(type_id); - - register_Int8Struct_type_identifier(type_id); - - register_Uint8Struct_type_identifier(type_id); - - register_Int16Struct_type_identifier(type_id); - - register_Uint16Struct_type_identifier(type_id); - - register_Int32Struct_type_identifier(type_id); - - register_Uint32Struct_type_identifier(type_id); - - register_Int64Struct_type_identifier(type_id); - - register_Uint64Struct_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ShortStruct) { + + ReturnCode_t return_code_ShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ShortStruct", type_ids_ShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ShortStruct) { - StructTypeFlag struct_flags_ShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ShortStruct; - TypeIdentifierPair type_ids_ShortStruct; QualifiedTypeName type_name_ShortStruct = "ShortStruct"; eprosima::fastcdr::optional type_ann_builtin_ShortStruct; eprosima::fastcdr::optional ann_custom_ShortStruct; @@ -106,62 +59,26 @@ void register_ShortStruct_type_identifier( header_ShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ShortStruct); CompleteStructMemberSeq member_seq_ShortStruct; { - return_code_ShortStruct = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ShortStruct); + "_int16_t", type_ids_var_short); - if (return_code_ShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_ShortStruct.type_identifier1()._d() || TK_NONE == type_ids_ShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_ShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_ShortStruct.type_identifier2()); - } - else + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -173,32 +90,26 @@ void register_ShortStruct_type_identifier( } CompleteStructType struct_type_ShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_ShortStruct, header_ShortStruct, member_seq_ShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ShortStruct, type_name_ShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ShortStruct, type_name_ShortStruct.to_string(), type_ids_ShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_ShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ShortStruct", type_ids_ShortStruct); - if (return_code_ShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UShortStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UShortStruct) { + + ReturnCode_t return_code_UShortStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UShortStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UShortStruct", type_ids_UShortStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UShortStruct) { - StructTypeFlag struct_flags_UShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UShortStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UShortStruct; - TypeIdentifierPair type_ids_UShortStruct; QualifiedTypeName type_name_UShortStruct = "UShortStruct"; eprosima::fastcdr::optional type_ann_builtin_UShortStruct; eprosima::fastcdr::optional ann_custom_UShortStruct; @@ -207,62 +118,26 @@ void register_UShortStruct_type_identifier( header_UShortStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UShortStruct); CompleteStructMemberSeq member_seq_UShortStruct; { - return_code_UShortStruct = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_UShortStruct); + "_uint16_t", type_ids_var_ushort); - if (return_code_UShortStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_UShortStruct.type_identifier1()._d() || TK_NONE == type_ids_UShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UShortStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UShortStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UShortStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UShortStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UShortStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_UShortStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UShortStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UShortStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UShortStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UShortStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UShortStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UShortStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_UShortStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -274,32 +149,26 @@ void register_UShortStruct_type_identifier( } CompleteStructType struct_type_UShortStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_UShortStruct, header_UShortStruct, member_seq_UShortStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UShortStruct, type_name_UShortStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UShortStruct, type_name_UShortStruct.to_string(), type_ids_UShortStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UShortStruct already registered in TypeObjectRegistry for a different type."); } - return_code_UShortStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UShortStruct", type_ids_UShortStruct); - if (return_code_UShortStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UShortStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LongStruct) { + + ReturnCode_t return_code_LongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LongStruct", type_ids_LongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LongStruct) { - StructTypeFlag struct_flags_LongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LongStruct; - TypeIdentifierPair type_ids_LongStruct; QualifiedTypeName type_name_LongStruct = "LongStruct"; eprosima::fastcdr::optional type_ann_builtin_LongStruct; eprosima::fastcdr::optional ann_custom_LongStruct; @@ -308,62 +177,26 @@ void register_LongStruct_type_identifier( header_LongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LongStruct); CompleteStructMemberSeq member_seq_LongStruct; { - return_code_LongStruct = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_LongStruct); + "_int32_t", type_ids_var_long); - if (return_code_LongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_LongStruct.type_identifier1()._d() || TK_NONE == type_ids_LongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_LongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_LongStruct.type_identifier2()); - } - else + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -375,32 +208,26 @@ void register_LongStruct_type_identifier( } CompleteStructType struct_type_LongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_LongStruct, header_LongStruct, member_seq_LongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongStruct, type_name_LongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongStruct, type_name_LongStruct.to_string(), type_ids_LongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_LongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LongStruct", type_ids_LongStruct); - if (return_code_LongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ULongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ULongStruct) { + + ReturnCode_t return_code_ULongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ULongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ULongStruct", type_ids_ULongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ULongStruct) { - StructTypeFlag struct_flags_ULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ULongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ULongStruct; - TypeIdentifierPair type_ids_ULongStruct; QualifiedTypeName type_name_ULongStruct = "ULongStruct"; eprosima::fastcdr::optional type_ann_builtin_ULongStruct; eprosima::fastcdr::optional ann_custom_ULongStruct; @@ -409,62 +236,26 @@ void register_ULongStruct_type_identifier( header_ULongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ULongStruct); CompleteStructMemberSeq member_seq_ULongStruct; { - return_code_ULongStruct = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ULongStruct); + "_uint32_t", type_ids_var_ulong); - if (return_code_ULongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_ULongStruct.type_identifier1()._d() || TK_NONE == type_ids_ULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ULongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ULongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ULongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ULongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_ULongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ULongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ULongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ULongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ULongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ULongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_ULongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -476,32 +267,26 @@ void register_ULongStruct_type_identifier( } CompleteStructType struct_type_ULongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_ULongStruct, header_ULongStruct, member_seq_ULongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ULongStruct, type_name_ULongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ULongStruct, type_name_ULongStruct.to_string(), type_ids_ULongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ULongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_ULongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ULongStruct", type_ids_ULongStruct); - if (return_code_ULongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ULongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LongLongStruct) { + + ReturnCode_t return_code_LongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LongLongStruct", type_ids_LongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LongLongStruct) { - StructTypeFlag struct_flags_LongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LongLongStruct; - TypeIdentifierPair type_ids_LongLongStruct; QualifiedTypeName type_name_LongLongStruct = "LongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_LongLongStruct; eprosima::fastcdr::optional ann_custom_LongLongStruct; @@ -510,62 +295,26 @@ void register_LongLongStruct_type_identifier( header_LongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LongLongStruct); CompleteStructMemberSeq member_seq_LongLongStruct; { - return_code_LongLongStruct = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_LongLongStruct); + "_int64_t", type_ids_var_longlong); - if (return_code_LongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_LongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_LongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_LongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_LongLongStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -577,32 +326,26 @@ void register_LongLongStruct_type_identifier( } CompleteStructType struct_type_LongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_LongLongStruct, header_LongLongStruct, member_seq_LongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongLongStruct, type_name_LongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongLongStruct, type_name_LongLongStruct.to_string(), type_ids_LongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_LongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LongLongStruct", type_ids_LongLongStruct); - if (return_code_LongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ULongLongStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ULongLongStruct) { + + ReturnCode_t return_code_ULongLongStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ULongLongStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ULongLongStruct", type_ids_ULongLongStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ULongLongStruct) { - StructTypeFlag struct_flags_ULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ULongLongStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ULongLongStruct; - TypeIdentifierPair type_ids_ULongLongStruct; QualifiedTypeName type_name_ULongLongStruct = "ULongLongStruct"; eprosima::fastcdr::optional type_ann_builtin_ULongLongStruct; eprosima::fastcdr::optional ann_custom_ULongLongStruct; @@ -611,62 +354,26 @@ void register_ULongLongStruct_type_identifier( header_ULongLongStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ULongLongStruct); CompleteStructMemberSeq member_seq_ULongLongStruct; { - return_code_ULongLongStruct = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ULongLongStruct); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_ULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1()._d() || TK_NONE == type_ids_ULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ULongLongStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ULongLongStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_ULongLongStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ULongLongStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ULongLongStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ULongLongStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_ULongLongStruct.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -678,32 +385,26 @@ void register_ULongLongStruct_type_identifier( } CompleteStructType struct_type_ULongLongStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_ULongLongStruct, header_ULongLongStruct, member_seq_ULongLongStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ULongLongStruct, type_name_ULongLongStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ULongLongStruct, type_name_ULongLongStruct.to_string(), type_ids_ULongLongStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ULongLongStruct already registered in TypeObjectRegistry for a different type."); } - return_code_ULongLongStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ULongLongStruct", type_ids_ULongLongStruct); - if (return_code_ULongLongStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ULongLongStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_FloatStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_FloatStruct) { + + ReturnCode_t return_code_FloatStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_FloatStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "FloatStruct", type_ids_FloatStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_FloatStruct) { - StructTypeFlag struct_flags_FloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_FloatStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_FloatStruct; - TypeIdentifierPair type_ids_FloatStruct; QualifiedTypeName type_name_FloatStruct = "FloatStruct"; eprosima::fastcdr::optional type_ann_builtin_FloatStruct; eprosima::fastcdr::optional ann_custom_FloatStruct; @@ -712,62 +413,26 @@ void register_FloatStruct_type_identifier( header_FloatStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_FloatStruct); CompleteStructMemberSeq member_seq_FloatStruct; { - return_code_FloatStruct = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_FloatStruct); + "_float", type_ids_var_float); - if (return_code_FloatStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_FloatStruct.type_identifier1()._d() || TK_NONE == type_ids_FloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FloatStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FloatStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FloatStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_FloatStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FloatStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_FloatStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_FloatStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_FloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_FloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_FloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_FloatStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_FloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FloatStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_FloatStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_FloatStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_FloatStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_FloatStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -779,32 +444,26 @@ void register_FloatStruct_type_identifier( } CompleteStructType struct_type_FloatStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_FloatStruct, header_FloatStruct, member_seq_FloatStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_FloatStruct, type_name_FloatStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_FloatStruct, type_name_FloatStruct.to_string(), type_ids_FloatStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "FloatStruct already registered in TypeObjectRegistry for a different type."); } - return_code_FloatStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "FloatStruct", type_ids_FloatStruct); - if (return_code_FloatStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "FloatStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_DoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_DoubleStruct) { + + ReturnCode_t return_code_DoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_DoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "DoubleStruct", type_ids_DoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_DoubleStruct) { - StructTypeFlag struct_flags_DoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_DoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_DoubleStruct; - TypeIdentifierPair type_ids_DoubleStruct; QualifiedTypeName type_name_DoubleStruct = "DoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_DoubleStruct; eprosima::fastcdr::optional ann_custom_DoubleStruct; @@ -813,62 +472,26 @@ void register_DoubleStruct_type_identifier( header_DoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_DoubleStruct); CompleteStructMemberSeq member_seq_DoubleStruct; { - return_code_DoubleStruct = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_DoubleStruct); + "_double", type_ids_var_double); - if (return_code_DoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_DoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_DoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_DoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_DoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_DoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_DoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_DoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_DoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_DoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_DoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_DoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_DoubleStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -880,32 +503,26 @@ void register_DoubleStruct_type_identifier( } CompleteStructType struct_type_DoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_DoubleStruct, header_DoubleStruct, member_seq_DoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_DoubleStruct, type_name_DoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_DoubleStruct, type_name_DoubleStruct.to_string(), type_ids_DoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "DoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_DoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "DoubleStruct", type_ids_DoubleStruct); - if (return_code_DoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "DoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LongDoubleStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LongDoubleStruct) { + + ReturnCode_t return_code_LongDoubleStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LongDoubleStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LongDoubleStruct", type_ids_LongDoubleStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LongDoubleStruct) { - StructTypeFlag struct_flags_LongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LongDoubleStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LongDoubleStruct; - TypeIdentifierPair type_ids_LongDoubleStruct; QualifiedTypeName type_name_LongDoubleStruct = "LongDoubleStruct"; eprosima::fastcdr::optional type_ann_builtin_LongDoubleStruct; eprosima::fastcdr::optional ann_custom_LongDoubleStruct; @@ -914,62 +531,26 @@ void register_LongDoubleStruct_type_identifier( header_LongDoubleStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LongDoubleStruct); CompleteStructMemberSeq member_seq_LongDoubleStruct; { - return_code_LongDoubleStruct = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_LongDoubleStruct); + "_longdouble", type_ids_var_longdouble); - if (return_code_LongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1()._d() || TK_NONE == type_ids_LongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongDoubleStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongDoubleStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_LongDoubleStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LongDoubleStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LongDoubleStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LongDoubleStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_LongDoubleStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -981,32 +562,26 @@ void register_LongDoubleStruct_type_identifier( } CompleteStructType struct_type_LongDoubleStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_LongDoubleStruct, header_LongDoubleStruct, member_seq_LongDoubleStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongDoubleStruct, type_name_LongDoubleStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LongDoubleStruct, type_name_LongDoubleStruct.to_string(), type_ids_LongDoubleStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LongDoubleStruct already registered in TypeObjectRegistry for a different type."); } - return_code_LongDoubleStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LongDoubleStruct", type_ids_LongDoubleStruct); - if (return_code_LongDoubleStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LongDoubleStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BooleanStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BooleanStruct) { + + ReturnCode_t return_code_BooleanStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BooleanStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BooleanStruct", type_ids_BooleanStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BooleanStruct) { - StructTypeFlag struct_flags_BooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BooleanStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BooleanStruct; - TypeIdentifierPair type_ids_BooleanStruct; QualifiedTypeName type_name_BooleanStruct = "BooleanStruct"; eprosima::fastcdr::optional type_ann_builtin_BooleanStruct; eprosima::fastcdr::optional ann_custom_BooleanStruct; @@ -1015,62 +590,26 @@ void register_BooleanStruct_type_identifier( header_BooleanStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BooleanStruct); CompleteStructMemberSeq member_seq_BooleanStruct; { - return_code_BooleanStruct = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_BooleanStruct); + "_bool", type_ids_var_boolean); - if (return_code_BooleanStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_BooleanStruct.type_identifier1()._d() || TK_NONE == type_ids_BooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BooleanStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BooleanStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BooleanStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_BooleanStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BooleanStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BooleanStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BooleanStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BooleanStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_BooleanStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1082,32 +621,26 @@ void register_BooleanStruct_type_identifier( } CompleteStructType struct_type_BooleanStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_BooleanStruct, header_BooleanStruct, member_seq_BooleanStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BooleanStruct, type_name_BooleanStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BooleanStruct, type_name_BooleanStruct.to_string(), type_ids_BooleanStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BooleanStruct already registered in TypeObjectRegistry for a different type."); } - return_code_BooleanStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BooleanStruct", type_ids_BooleanStruct); - if (return_code_BooleanStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BooleanStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_OctetStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_OctetStruct) { + + ReturnCode_t return_code_OctetStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_OctetStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "OctetStruct", type_ids_OctetStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_OctetStruct) { - StructTypeFlag struct_flags_OctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_OctetStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_OctetStruct; - TypeIdentifierPair type_ids_OctetStruct; QualifiedTypeName type_name_OctetStruct = "OctetStruct"; eprosima::fastcdr::optional type_ann_builtin_OctetStruct; eprosima::fastcdr::optional ann_custom_OctetStruct; @@ -1116,62 +649,26 @@ void register_OctetStruct_type_identifier( header_OctetStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_OctetStruct); CompleteStructMemberSeq member_seq_OctetStruct; { - return_code_OctetStruct = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_OctetStruct); + "_byte", type_ids_var_octet); - if (return_code_OctetStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_OctetStruct.type_identifier1()._d() || TK_NONE == type_ids_OctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_OctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_OctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_OctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_OctetStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_OctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_OctetStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_OctetStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_OctetStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_OctetStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_OctetStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_OctetStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_OctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_OctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_OctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_OctetStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_OctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_OctetStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_OctetStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_OctetStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_OctetStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_OctetStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -1183,32 +680,26 @@ void register_OctetStruct_type_identifier( } CompleteStructType struct_type_OctetStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_OctetStruct, header_OctetStruct, member_seq_OctetStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_OctetStruct, type_name_OctetStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_OctetStruct, type_name_OctetStruct.to_string(), type_ids_OctetStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "OctetStruct already registered in TypeObjectRegistry for a different type."); } - return_code_OctetStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "OctetStruct", type_ids_OctetStruct); - if (return_code_OctetStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "OctetStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_CharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_CharStruct) { + + ReturnCode_t return_code_CharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_CharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "CharStruct", type_ids_CharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_CharStruct) { - StructTypeFlag struct_flags_CharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_CharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_CharStruct; - TypeIdentifierPair type_ids_CharStruct; QualifiedTypeName type_name_CharStruct = "CharStruct"; eprosima::fastcdr::optional type_ann_builtin_CharStruct; eprosima::fastcdr::optional ann_custom_CharStruct; @@ -1217,62 +708,26 @@ void register_CharStruct_type_identifier( header_CharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_CharStruct); CompleteStructMemberSeq member_seq_CharStruct; { - return_code_CharStruct = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_CharStruct); + "_char", type_ids_var_char8); - if (return_code_CharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_CharStruct.type_identifier1()._d() || TK_NONE == type_ids_CharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_CharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_CharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_CharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_CharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_CharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_CharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_CharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_CharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_CharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_CharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_CharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_CharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_CharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_CharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_CharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_CharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_CharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_CharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_CharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_CharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_CharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_CharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_CharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_CharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -1284,32 +739,26 @@ void register_CharStruct_type_identifier( } CompleteStructType struct_type_CharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_CharStruct, header_CharStruct, member_seq_CharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_CharStruct, type_name_CharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_CharStruct, type_name_CharStruct.to_string(), type_ids_CharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "CharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_CharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "CharStruct", type_ids_CharStruct); - if (return_code_CharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "CharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_WCharStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_WCharStruct) { + + ReturnCode_t return_code_WCharStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_WCharStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "WCharStruct", type_ids_WCharStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_WCharStruct) { - StructTypeFlag struct_flags_WCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_WCharStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_WCharStruct; - TypeIdentifierPair type_ids_WCharStruct; QualifiedTypeName type_name_WCharStruct = "WCharStruct"; eprosima::fastcdr::optional type_ann_builtin_WCharStruct; eprosima::fastcdr::optional ann_custom_WCharStruct; @@ -1318,62 +767,26 @@ void register_WCharStruct_type_identifier( header_WCharStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WCharStruct); CompleteStructMemberSeq member_seq_WCharStruct; { - return_code_WCharStruct = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_WCharStruct); + "_wchar_t", type_ids_var_char16); - if (return_code_WCharStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_WCharStruct.type_identifier1()._d() || TK_NONE == type_ids_WCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WCharStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WCharStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WCharStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WCharStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WCharStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_WCharStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WCharStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WCharStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WCharStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WCharStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WCharStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WCharStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_WCharStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -1385,32 +798,26 @@ void register_WCharStruct_type_identifier( } CompleteStructType struct_type_WCharStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_WCharStruct, header_WCharStruct, member_seq_WCharStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WCharStruct, type_name_WCharStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_WCharStruct, type_name_WCharStruct.to_string(), type_ids_WCharStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "WCharStruct already registered in TypeObjectRegistry for a different type."); } - return_code_WCharStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "WCharStruct", type_ids_WCharStruct); - if (return_code_WCharStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "WCharStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Int8Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Int8Struct) { + + ReturnCode_t return_code_Int8Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Int8Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Int8Struct", type_ids_Int8Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Int8Struct) { - StructTypeFlag struct_flags_Int8Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Int8Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Int8Struct; - TypeIdentifierPair type_ids_Int8Struct; QualifiedTypeName type_name_Int8Struct = "Int8Struct"; eprosima::fastcdr::optional type_ann_builtin_Int8Struct; eprosima::fastcdr::optional ann_custom_Int8Struct; @@ -1419,62 +826,26 @@ void register_Int8Struct_type_identifier( header_Int8Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Int8Struct); CompleteStructMemberSeq member_seq_Int8Struct; { - return_code_Int8Struct = + TypeIdentifierPair type_ids_var_int8; + ReturnCode_t return_code_var_int8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_int8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int8_t", type_ids_Int8Struct); + "_int8_t", type_ids_var_int8); - if (return_code_Int8Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_int8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_int8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_int8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_int8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_int8; MemberId member_id_var_int8 = 0x00000000; - if (EK_COMPLETE == type_ids_Int8Struct.type_identifier1()._d() || TK_NONE == type_ids_Int8Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int8Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int8Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int8Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int8Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int8Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_int8 = TypeObjectUtils::build_common_struct_member(member_id_var_int8, member_flags_var_int8, type_ids_Int8Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Int8Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int8Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int8Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int8Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int8Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int8Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_int8_ec {false}; + CommonStructMember common_var_int8 {TypeObjectUtils::build_common_struct_member(member_id_var_int8, member_flags_var_int8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_int8, common_var_int8_ec))}; + if (!common_var_int8_ec) { - common_var_int8 = TypeObjectUtils::build_common_struct_member(member_id_var_int8, member_flags_var_int8, type_ids_Int8Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_int8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_int8 member TypeIdentifier inconsistent."); return; } MemberName name_var_int8 = "var_int8"; @@ -1486,32 +857,26 @@ void register_Int8Struct_type_identifier( } CompleteStructType struct_type_Int8Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Int8Struct, header_Int8Struct, member_seq_Int8Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int8Struct, type_name_Int8Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int8Struct, type_name_Int8Struct.to_string(), type_ids_Int8Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Int8Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Int8Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Int8Struct", type_ids_Int8Struct); - if (return_code_Int8Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Int8Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Uint8Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Uint8Struct) { + + ReturnCode_t return_code_Uint8Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Uint8Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Uint8Struct", type_ids_Uint8Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Uint8Struct) { - StructTypeFlag struct_flags_Uint8Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Uint8Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Uint8Struct; - TypeIdentifierPair type_ids_Uint8Struct; QualifiedTypeName type_name_Uint8Struct = "Uint8Struct"; eprosima::fastcdr::optional type_ann_builtin_Uint8Struct; eprosima::fastcdr::optional ann_custom_Uint8Struct; @@ -1520,62 +885,26 @@ void register_Uint8Struct_type_identifier( header_Uint8Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Uint8Struct); CompleteStructMemberSeq member_seq_Uint8Struct; { - return_code_Uint8Struct = + TypeIdentifierPair type_ids_var_uint8; + ReturnCode_t return_code_var_uint8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_uint8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint8_t", type_ids_Uint8Struct); + "_uint8_t", type_ids_var_uint8); - if (return_code_Uint8Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_uint8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_uint8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_uint8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_uint8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_uint8; MemberId member_id_var_uint8 = 0x00000000; - if (EK_COMPLETE == type_ids_Uint8Struct.type_identifier1()._d() || TK_NONE == type_ids_Uint8Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint8Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint8Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint8Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint8Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_uint8_ec {false}; + CommonStructMember common_var_uint8 {TypeObjectUtils::build_common_struct_member(member_id_var_uint8, member_flags_var_uint8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_uint8, common_var_uint8_ec))}; + if (!common_var_uint8_ec) { - common_var_uint8 = TypeObjectUtils::build_common_struct_member(member_id_var_uint8, member_flags_var_uint8, type_ids_Uint8Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Uint8Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint8Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint8Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint8Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint8Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_uint8 = TypeObjectUtils::build_common_struct_member(member_id_var_uint8, member_flags_var_uint8, type_ids_Uint8Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_uint8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_uint8 member TypeIdentifier inconsistent."); return; } MemberName name_var_uint8 = "var_uint8"; @@ -1587,32 +916,26 @@ void register_Uint8Struct_type_identifier( } CompleteStructType struct_type_Uint8Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Uint8Struct, header_Uint8Struct, member_seq_Uint8Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint8Struct, type_name_Uint8Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint8Struct, type_name_Uint8Struct.to_string(), type_ids_Uint8Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Uint8Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Uint8Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Uint8Struct", type_ids_Uint8Struct); - if (return_code_Uint8Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Uint8Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Int16Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Int16Struct) { + + ReturnCode_t return_code_Int16Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Int16Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Int16Struct", type_ids_Int16Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Int16Struct) { - StructTypeFlag struct_flags_Int16Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Int16Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Int16Struct; - TypeIdentifierPair type_ids_Int16Struct; QualifiedTypeName type_name_Int16Struct = "Int16Struct"; eprosima::fastcdr::optional type_ann_builtin_Int16Struct; eprosima::fastcdr::optional ann_custom_Int16Struct; @@ -1621,62 +944,26 @@ void register_Int16Struct_type_identifier( header_Int16Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Int16Struct); CompleteStructMemberSeq member_seq_Int16Struct; { - return_code_Int16Struct = + TypeIdentifierPair type_ids_var_int16; + ReturnCode_t return_code_var_int16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_int16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Int16Struct); + "_int16_t", type_ids_var_int16); - if (return_code_Int16Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_int16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_int16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_int16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_int16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_int16; MemberId member_id_var_int16 = 0x00000000; - if (EK_COMPLETE == type_ids_Int16Struct.type_identifier1()._d() || TK_NONE == type_ids_Int16Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int16Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int16Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int16Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int16Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int16Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_int16_ec {false}; + CommonStructMember common_var_int16 {TypeObjectUtils::build_common_struct_member(member_id_var_int16, member_flags_var_int16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_int16, common_var_int16_ec))}; + if (!common_var_int16_ec) { - common_var_int16 = TypeObjectUtils::build_common_struct_member(member_id_var_int16, member_flags_var_int16, type_ids_Int16Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Int16Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int16Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int16Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int16Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int16Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int16Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_int16 = TypeObjectUtils::build_common_struct_member(member_id_var_int16, member_flags_var_int16, type_ids_Int16Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_int16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_int16 member TypeIdentifier inconsistent."); return; } MemberName name_var_int16 = "var_int16"; @@ -1688,32 +975,26 @@ void register_Int16Struct_type_identifier( } CompleteStructType struct_type_Int16Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Int16Struct, header_Int16Struct, member_seq_Int16Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int16Struct, type_name_Int16Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int16Struct, type_name_Int16Struct.to_string(), type_ids_Int16Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Int16Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Int16Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Int16Struct", type_ids_Int16Struct); - if (return_code_Int16Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Int16Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Uint16Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Uint16Struct) { + + ReturnCode_t return_code_Uint16Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Uint16Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Uint16Struct", type_ids_Uint16Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Uint16Struct) { - StructTypeFlag struct_flags_Uint16Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Uint16Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Uint16Struct; - TypeIdentifierPair type_ids_Uint16Struct; QualifiedTypeName type_name_Uint16Struct = "Uint16Struct"; eprosima::fastcdr::optional type_ann_builtin_Uint16Struct; eprosima::fastcdr::optional ann_custom_Uint16Struct; @@ -1722,62 +1003,26 @@ void register_Uint16Struct_type_identifier( header_Uint16Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Uint16Struct); CompleteStructMemberSeq member_seq_Uint16Struct; { - return_code_Uint16Struct = + TypeIdentifierPair type_ids_var_uint16; + ReturnCode_t return_code_var_uint16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_uint16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Uint16Struct); + "_uint16_t", type_ids_var_uint16); - if (return_code_Uint16Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_uint16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_uint16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_uint16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_uint16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_uint16; MemberId member_id_var_uint16 = 0x00000000; - if (EK_COMPLETE == type_ids_Uint16Struct.type_identifier1()._d() || TK_NONE == type_ids_Uint16Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint16Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint16Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint16Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint16Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_uint16 = TypeObjectUtils::build_common_struct_member(member_id_var_uint16, member_flags_var_uint16, type_ids_Uint16Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Uint16Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint16Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint16Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint16Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint16Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_uint16_ec {false}; + CommonStructMember common_var_uint16 {TypeObjectUtils::build_common_struct_member(member_id_var_uint16, member_flags_var_uint16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_uint16, common_var_uint16_ec))}; + if (!common_var_uint16_ec) { - common_var_uint16 = TypeObjectUtils::build_common_struct_member(member_id_var_uint16, member_flags_var_uint16, type_ids_Uint16Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_uint16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_uint16 member TypeIdentifier inconsistent."); return; } MemberName name_var_uint16 = "var_uint16"; @@ -1789,32 +1034,26 @@ void register_Uint16Struct_type_identifier( } CompleteStructType struct_type_Uint16Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Uint16Struct, header_Uint16Struct, member_seq_Uint16Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint16Struct, type_name_Uint16Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint16Struct, type_name_Uint16Struct.to_string(), type_ids_Uint16Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Uint16Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Uint16Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Uint16Struct", type_ids_Uint16Struct); - if (return_code_Uint16Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Uint16Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Int32Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Int32Struct) { + + ReturnCode_t return_code_Int32Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Int32Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Int32Struct", type_ids_Int32Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Int32Struct) { - StructTypeFlag struct_flags_Int32Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Int32Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Int32Struct; - TypeIdentifierPair type_ids_Int32Struct; QualifiedTypeName type_name_Int32Struct = "Int32Struct"; eprosima::fastcdr::optional type_ann_builtin_Int32Struct; eprosima::fastcdr::optional ann_custom_Int32Struct; @@ -1823,62 +1062,26 @@ void register_Int32Struct_type_identifier( header_Int32Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Int32Struct); CompleteStructMemberSeq member_seq_Int32Struct; { - return_code_Int32Struct = + TypeIdentifierPair type_ids_var_int32; + ReturnCode_t return_code_var_int32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_int32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Int32Struct); + "_int32_t", type_ids_var_int32); - if (return_code_Int32Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_int32) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_int32 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_int32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_int32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_int32; MemberId member_id_var_int32 = 0x00000000; - if (EK_COMPLETE == type_ids_Int32Struct.type_identifier1()._d() || TK_NONE == type_ids_Int32Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int32Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int32Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int32Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int32Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int32Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_int32_ec {false}; + CommonStructMember common_var_int32 {TypeObjectUtils::build_common_struct_member(member_id_var_int32, member_flags_var_int32, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_int32, common_var_int32_ec))}; + if (!common_var_int32_ec) { - common_var_int32 = TypeObjectUtils::build_common_struct_member(member_id_var_int32, member_flags_var_int32, type_ids_Int32Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Int32Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int32Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int32Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int32Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int32Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int32Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_int32 = TypeObjectUtils::build_common_struct_member(member_id_var_int32, member_flags_var_int32, type_ids_Int32Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_int32 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_int32 member TypeIdentifier inconsistent."); return; } MemberName name_var_int32 = "var_int32"; @@ -1890,32 +1093,26 @@ void register_Int32Struct_type_identifier( } CompleteStructType struct_type_Int32Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Int32Struct, header_Int32Struct, member_seq_Int32Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int32Struct, type_name_Int32Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int32Struct, type_name_Int32Struct.to_string(), type_ids_Int32Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Int32Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Int32Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Int32Struct", type_ids_Int32Struct); - if (return_code_Int32Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Int32Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Uint32Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Uint32Struct) { + + ReturnCode_t return_code_Uint32Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Uint32Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Uint32Struct", type_ids_Uint32Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Uint32Struct) { - StructTypeFlag struct_flags_Uint32Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Uint32Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Uint32Struct; - TypeIdentifierPair type_ids_Uint32Struct; QualifiedTypeName type_name_Uint32Struct = "Uint32Struct"; eprosima::fastcdr::optional type_ann_builtin_Uint32Struct; eprosima::fastcdr::optional ann_custom_Uint32Struct; @@ -1924,62 +1121,26 @@ void register_Uint32Struct_type_identifier( header_Uint32Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Uint32Struct); CompleteStructMemberSeq member_seq_Uint32Struct; { - return_code_Uint32Struct = + TypeIdentifierPair type_ids_var_uint32; + ReturnCode_t return_code_var_uint32 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_uint32 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Uint32Struct); + "_uint32_t", type_ids_var_uint32); - if (return_code_Uint32Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_uint32) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_uint32 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_uint32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_uint32 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_uint32; MemberId member_id_var_uint32 = 0x00000000; - if (EK_COMPLETE == type_ids_Uint32Struct.type_identifier1()._d() || TK_NONE == type_ids_Uint32Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint32Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint32Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint32Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint32Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_uint32_ec {false}; + CommonStructMember common_var_uint32 {TypeObjectUtils::build_common_struct_member(member_id_var_uint32, member_flags_var_uint32, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_uint32, common_var_uint32_ec))}; + if (!common_var_uint32_ec) { - common_var_uint32 = TypeObjectUtils::build_common_struct_member(member_id_var_uint32, member_flags_var_uint32, type_ids_Uint32Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Uint32Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint32Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint32Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint32Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint32Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_uint32 = TypeObjectUtils::build_common_struct_member(member_id_var_uint32, member_flags_var_uint32, type_ids_Uint32Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_uint32 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_uint32 member TypeIdentifier inconsistent."); return; } MemberName name_var_uint32 = "var_uint32"; @@ -1991,32 +1152,26 @@ void register_Uint32Struct_type_identifier( } CompleteStructType struct_type_Uint32Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Uint32Struct, header_Uint32Struct, member_seq_Uint32Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint32Struct, type_name_Uint32Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint32Struct, type_name_Uint32Struct.to_string(), type_ids_Uint32Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Uint32Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Uint32Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Uint32Struct", type_ids_Uint32Struct); - if (return_code_Uint32Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Uint32Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Int64Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Int64Struct) { + + ReturnCode_t return_code_Int64Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Int64Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Int64Struct", type_ids_Int64Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Int64Struct) { - StructTypeFlag struct_flags_Int64Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Int64Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Int64Struct; - TypeIdentifierPair type_ids_Int64Struct; QualifiedTypeName type_name_Int64Struct = "Int64Struct"; eprosima::fastcdr::optional type_ann_builtin_Int64Struct; eprosima::fastcdr::optional ann_custom_Int64Struct; @@ -2025,62 +1180,26 @@ void register_Int64Struct_type_identifier( header_Int64Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Int64Struct); CompleteStructMemberSeq member_seq_Int64Struct; { - return_code_Int64Struct = + TypeIdentifierPair type_ids_var_int64; + ReturnCode_t return_code_var_int64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_int64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Int64Struct); + "_int64_t", type_ids_var_int64); - if (return_code_Int64Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_int64) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_int64 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_int64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_int64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_int64; MemberId member_id_var_int64 = 0x00000000; - if (EK_COMPLETE == type_ids_Int64Struct.type_identifier1()._d() || TK_NONE == type_ids_Int64Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int64Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int64Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int64Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Int64Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int64Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_int64 = TypeObjectUtils::build_common_struct_member(member_id_var_int64, member_flags_var_int64, type_ids_Int64Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Int64Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Int64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Int64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Int64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Int64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Int64Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int64Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Int64Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Int64Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Int64Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_int64 = TypeObjectUtils::build_common_struct_member(member_id_var_int64, member_flags_var_int64, type_ids_Int64Struct.type_identifier2()); - } - else + bool common_var_int64_ec {false}; + CommonStructMember common_var_int64 {TypeObjectUtils::build_common_struct_member(member_id_var_int64, member_flags_var_int64, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_int64, common_var_int64_ec))}; + if (!common_var_int64_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_int64 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_int64 member TypeIdentifier inconsistent."); return; } MemberName name_var_int64 = "var_int64"; @@ -2092,32 +1211,26 @@ void register_Int64Struct_type_identifier( } CompleteStructType struct_type_Int64Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Int64Struct, header_Int64Struct, member_seq_Int64Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int64Struct, type_name_Int64Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Int64Struct, type_name_Int64Struct.to_string(), type_ids_Int64Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Int64Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Int64Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Int64Struct", type_ids_Int64Struct); - if (return_code_Int64Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Int64Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Uint64Struct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Uint64Struct) { + + ReturnCode_t return_code_Uint64Struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Uint64Struct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Uint64Struct", type_ids_Uint64Struct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Uint64Struct) { - StructTypeFlag struct_flags_Uint64Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Uint64Struct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Uint64Struct; - TypeIdentifierPair type_ids_Uint64Struct; QualifiedTypeName type_name_Uint64Struct = "Uint64Struct"; eprosima::fastcdr::optional type_ann_builtin_Uint64Struct; eprosima::fastcdr::optional ann_custom_Uint64Struct; @@ -2126,62 +1239,26 @@ void register_Uint64Struct_type_identifier( header_Uint64Struct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Uint64Struct); CompleteStructMemberSeq member_seq_Uint64Struct; { - return_code_Uint64Struct = + TypeIdentifierPair type_ids_var_uint64; + ReturnCode_t return_code_var_uint64 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_uint64 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Uint64Struct); + "_uint64_t", type_ids_var_uint64); - if (return_code_Uint64Struct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_uint64) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_uint64 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_uint64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_uint64 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_uint64; MemberId member_id_var_uint64 = 0x00000000; - if (EK_COMPLETE == type_ids_Uint64Struct.type_identifier1()._d() || TK_NONE == type_ids_Uint64Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint64Struct.type_identifier1()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint64Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint64Struct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint64Struct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_uint64 = TypeObjectUtils::build_common_struct_member(member_id_var_uint64, member_flags_var_uint64, type_ids_Uint64Struct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Uint64Struct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Uint64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Uint64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Uint64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Uint64Struct.type_identifier2()._d() && - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Uint64Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Uint64Struct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Uint64Struct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_uint64_ec {false}; + CommonStructMember common_var_uint64 {TypeObjectUtils::build_common_struct_member(member_id_var_uint64, member_flags_var_uint64, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_uint64, common_var_uint64_ec))}; + if (!common_var_uint64_ec) { - common_var_uint64 = TypeObjectUtils::build_common_struct_member(member_id_var_uint64, member_flags_var_uint64, type_ids_Uint64Struct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_uint64 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_uint64 member TypeIdentifier inconsistent."); return; } MemberName name_var_uint64 = "var_uint64"; @@ -2193,21 +1270,11 @@ void register_Uint64Struct_type_identifier( } CompleteStructType struct_type_Uint64Struct = TypeObjectUtils::build_complete_struct_type(struct_flags_Uint64Struct, header_Uint64Struct, member_seq_Uint64Struct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint64Struct, type_name_Uint64Struct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Uint64Struct, type_name_Uint64Struct.to_string(), type_ids_Uint64Struct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Uint64Struct already registered in TypeObjectRegistry for a different type."); } - return_code_Uint64Struct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Uint64Struct", type_ids_Uint64Struct); - if (return_code_Uint64Struct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Uint64Struct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/primitivesTypeObjectSupport.hpp b/test/dds-types-test/primitivesTypeObjectSupport.hpp index df0d5364c0f..cd1e99ef755 100644 --- a/test/dds-types-test/primitivesTypeObjectSupport.hpp +++ b/test/dds-types-test/primitivesTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_primitives_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_primitives_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UShortStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +60,7 @@ eProsima_user_DllExport void register_ShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UShortStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register LongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -77,7 +72,7 @@ eProsima_user_DllExport void register_UShortStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ULongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -89,7 +84,7 @@ eProsima_user_DllExport void register_LongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ULongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register LongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -101,7 +96,7 @@ eProsima_user_DllExport void register_ULongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ULongLongStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -113,7 +108,7 @@ eProsima_user_DllExport void register_LongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ULongLongStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register FloatStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -125,7 +120,7 @@ eProsima_user_DllExport void register_ULongLongStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_FloatStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register DoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -137,7 +132,7 @@ eProsima_user_DllExport void register_FloatStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_DoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register LongDoubleStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -149,7 +144,7 @@ eProsima_user_DllExport void register_DoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LongDoubleStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BooleanStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -161,7 +156,7 @@ eProsima_user_DllExport void register_LongDoubleStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BooleanStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register OctetStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -173,7 +168,7 @@ eProsima_user_DllExport void register_BooleanStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_OctetStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register CharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -185,7 +180,7 @@ eProsima_user_DllExport void register_OctetStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_CharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register WCharStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -197,7 +192,7 @@ eProsima_user_DllExport void register_CharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_WCharStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Int8Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -209,7 +204,7 @@ eProsima_user_DllExport void register_WCharStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Int8Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Uint8Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -221,7 +216,7 @@ eProsima_user_DllExport void register_Int8Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Uint8Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Int16Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -233,7 +228,7 @@ eProsima_user_DllExport void register_Uint8Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Int16Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Uint16Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -245,7 +240,7 @@ eProsima_user_DllExport void register_Int16Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Uint16Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Int32Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -257,7 +252,7 @@ eProsima_user_DllExport void register_Uint16Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Int32Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Uint32Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -269,7 +264,7 @@ eProsima_user_DllExport void register_Int32Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Uint32Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Int64Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -281,7 +276,7 @@ eProsima_user_DllExport void register_Uint32Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Int64Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Uint64Struct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -293,7 +288,7 @@ eProsima_user_DllExport void register_Int64Struct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Uint64Struct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/relative_path_includePubSubTypes.cxx b/test/dds-types-test/relative_path_includePubSubTypes.cxx index 3727a45602a..a2a35d9b8b1 100644 --- a/test/dds-types-test/relative_path_includePubSubTypes.cxx +++ b/test/dds-types-test/relative_path_includePubSubTypes.cxx @@ -219,9 +219,9 @@ bool RelativePathIncludeStructPubSubType::getKey( return true; } -void RelativePathIncludeStructPubSubType::register_type_object_representation() const +void RelativePathIncludeStructPubSubType::register_type_object_representation() { - register_relative_path_include_type_objects(); + register_RelativePathIncludeStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/relative_path_includePubSubTypes.h b/test/dds-types-test/relative_path_includePubSubTypes.h index 4cc7c533f9f..9940b3e5bc4 100644 --- a/test/dds-types-test/relative_path_includePubSubTypes.h +++ b/test/dds-types-test/relative_path_includePubSubTypes.h @@ -90,7 +90,7 @@ class RelativePathIncludeStructPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx b/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx index 987024801bd..45e6961d7e4 100644 --- a/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx +++ b/test/dds-types-test/relative_path_includeTypeObjectSupport.cxx @@ -39,32 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_relative_path_include_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_RelativePathIncludeStruct_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_RelativePathIncludeStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_RelativePathIncludeStruct) { + + ReturnCode_t return_code_RelativePathIncludeStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_RelativePathIncludeStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "RelativePathIncludeStruct", type_ids_RelativePathIncludeStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_RelativePathIncludeStruct) { - StructTypeFlag struct_flags_RelativePathIncludeStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_RelativePathIncludeStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_RelativePathIncludeStruct; - TypeIdentifierPair type_ids_RelativePathIncludeStruct; QualifiedTypeName type_name_RelativePathIncludeStruct = "RelativePathIncludeStruct"; eprosima::fastcdr::optional type_ann_builtin_RelativePathIncludeStruct; eprosima::fastcdr::optional ann_custom_RelativePathIncludeStruct; @@ -73,115 +60,24 @@ void register_RelativePathIncludeStruct_type_identifier( header_RelativePathIncludeStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_RelativePathIncludeStruct); CompleteStructMemberSeq member_seq_RelativePathIncludeStruct; { - return_code_RelativePathIncludeStruct = + TypeIdentifierPair type_ids_value; + ReturnCode_t return_code_value {eprosima::fastdds::dds::RETCODE_OK}; + return_code_value = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_RelativePathIncludeStruct); + "InnerEnumHelper", type_ids_value); - if (return_code_RelativePathIncludeStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_value) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_RelativePathIncludeStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_RelativePathIncludeStruct); - if (return_code_RelativePathIncludeStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_value); } - StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_value = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_value; MemberId member_id_value = 0x00000000; - if (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1()._d() || TK_NONE == type_ids_RelativePathIncludeStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RelativePathIncludeStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_RelativePathIncludeStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_RelativePathIncludeStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_RelativePathIncludeStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_value = TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, type_ids_RelativePathIncludeStruct.type_identifier2()); - } - else + bool common_value_ec {false}; + CommonStructMember common_value {TypeObjectUtils::build_common_struct_member(member_id_value, member_flags_value, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_value, common_value_ec))}; + if (!common_value_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure value member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure value member TypeIdentifier inconsistent."); return; } MemberName name_value = "value"; @@ -193,21 +89,11 @@ void register_RelativePathIncludeStruct_type_identifier( } CompleteStructType struct_type_RelativePathIncludeStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_RelativePathIncludeStruct, header_RelativePathIncludeStruct, member_seq_RelativePathIncludeStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_RelativePathIncludeStruct, type_name_RelativePathIncludeStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_RelativePathIncludeStruct, type_name_RelativePathIncludeStruct.to_string(), type_ids_RelativePathIncludeStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "RelativePathIncludeStruct already registered in TypeObjectRegistry for a different type."); } - return_code_RelativePathIncludeStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "RelativePathIncludeStruct", type_ids_RelativePathIncludeStruct); - if (return_code_RelativePathIncludeStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "RelativePathIncludeStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp b/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp index dd1511d368f..22bb6762fe0 100644 --- a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp +++ b/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_relative_path_include_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_relative_path_include_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_RelativePathIncludeStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/sequencesPubSubTypes.cxx b/test/dds-types-test/sequencesPubSubTypes.cxx index 944801c9b8a..a2123645d63 100644 --- a/test/dds-types-test/sequencesPubSubTypes.cxx +++ b/test/dds-types-test/sequencesPubSubTypes.cxx @@ -219,9 +219,9 @@ bool SequenceShortPubSubType::getKey( return true; } -void SequenceShortPubSubType::register_type_object_representation() const +void SequenceShortPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceShort_type_identifier(type_identifiers_); } SequenceUShortPubSubType::SequenceUShortPubSubType() @@ -412,9 +412,9 @@ bool SequenceUShortPubSubType::getKey( return true; } -void SequenceUShortPubSubType::register_type_object_representation() const +void SequenceUShortPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceUShort_type_identifier(type_identifiers_); } SequenceLongPubSubType::SequenceLongPubSubType() @@ -605,9 +605,9 @@ bool SequenceLongPubSubType::getKey( return true; } -void SequenceLongPubSubType::register_type_object_representation() const +void SequenceLongPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceLong_type_identifier(type_identifiers_); } SequenceULongPubSubType::SequenceULongPubSubType() @@ -798,9 +798,9 @@ bool SequenceULongPubSubType::getKey( return true; } -void SequenceULongPubSubType::register_type_object_representation() const +void SequenceULongPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceULong_type_identifier(type_identifiers_); } SequenceLongLongPubSubType::SequenceLongLongPubSubType() @@ -991,9 +991,9 @@ bool SequenceLongLongPubSubType::getKey( return true; } -void SequenceLongLongPubSubType::register_type_object_representation() const +void SequenceLongLongPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceLongLong_type_identifier(type_identifiers_); } SequenceULongLongPubSubType::SequenceULongLongPubSubType() @@ -1184,9 +1184,9 @@ bool SequenceULongLongPubSubType::getKey( return true; } -void SequenceULongLongPubSubType::register_type_object_representation() const +void SequenceULongLongPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceULongLong_type_identifier(type_identifiers_); } SequenceFloatPubSubType::SequenceFloatPubSubType() @@ -1377,9 +1377,9 @@ bool SequenceFloatPubSubType::getKey( return true; } -void SequenceFloatPubSubType::register_type_object_representation() const +void SequenceFloatPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceFloat_type_identifier(type_identifiers_); } SequenceDoublePubSubType::SequenceDoublePubSubType() @@ -1570,9 +1570,9 @@ bool SequenceDoublePubSubType::getKey( return true; } -void SequenceDoublePubSubType::register_type_object_representation() const +void SequenceDoublePubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceDouble_type_identifier(type_identifiers_); } SequenceLongDoublePubSubType::SequenceLongDoublePubSubType() @@ -1763,9 +1763,9 @@ bool SequenceLongDoublePubSubType::getKey( return true; } -void SequenceLongDoublePubSubType::register_type_object_representation() const +void SequenceLongDoublePubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceLongDouble_type_identifier(type_identifiers_); } SequenceBooleanPubSubType::SequenceBooleanPubSubType() @@ -1956,9 +1956,9 @@ bool SequenceBooleanPubSubType::getKey( return true; } -void SequenceBooleanPubSubType::register_type_object_representation() const +void SequenceBooleanPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceBoolean_type_identifier(type_identifiers_); } SequenceOctetPubSubType::SequenceOctetPubSubType() @@ -2149,9 +2149,9 @@ bool SequenceOctetPubSubType::getKey( return true; } -void SequenceOctetPubSubType::register_type_object_representation() const +void SequenceOctetPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceOctet_type_identifier(type_identifiers_); } SequenceCharPubSubType::SequenceCharPubSubType() @@ -2342,9 +2342,9 @@ bool SequenceCharPubSubType::getKey( return true; } -void SequenceCharPubSubType::register_type_object_representation() const +void SequenceCharPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceChar_type_identifier(type_identifiers_); } SequenceWCharPubSubType::SequenceWCharPubSubType() @@ -2535,9 +2535,9 @@ bool SequenceWCharPubSubType::getKey( return true; } -void SequenceWCharPubSubType::register_type_object_representation() const +void SequenceWCharPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceWChar_type_identifier(type_identifiers_); } SequenceStringPubSubType::SequenceStringPubSubType() @@ -2728,9 +2728,9 @@ bool SequenceStringPubSubType::getKey( return true; } -void SequenceStringPubSubType::register_type_object_representation() const +void SequenceStringPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceString_type_identifier(type_identifiers_); } SequenceWStringPubSubType::SequenceWStringPubSubType() @@ -2921,9 +2921,9 @@ bool SequenceWStringPubSubType::getKey( return true; } -void SequenceWStringPubSubType::register_type_object_representation() const +void SequenceWStringPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceWString_type_identifier(type_identifiers_); } SequenceStringBoundedPubSubType::SequenceStringBoundedPubSubType() @@ -3114,9 +3114,9 @@ bool SequenceStringBoundedPubSubType::getKey( return true; } -void SequenceStringBoundedPubSubType::register_type_object_representation() const +void SequenceStringBoundedPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceStringBounded_type_identifier(type_identifiers_); } SequenceWStringBoundedPubSubType::SequenceWStringBoundedPubSubType() @@ -3307,9 +3307,9 @@ bool SequenceWStringBoundedPubSubType::getKey( return true; } -void SequenceWStringBoundedPubSubType::register_type_object_representation() const +void SequenceWStringBoundedPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceWStringBounded_type_identifier(type_identifiers_); } SequenceEnumPubSubType::SequenceEnumPubSubType() @@ -3500,9 +3500,9 @@ bool SequenceEnumPubSubType::getKey( return true; } -void SequenceEnumPubSubType::register_type_object_representation() const +void SequenceEnumPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceEnum_type_identifier(type_identifiers_); } SequenceBitMaskPubSubType::SequenceBitMaskPubSubType() @@ -3693,9 +3693,9 @@ bool SequenceBitMaskPubSubType::getKey( return true; } -void SequenceBitMaskPubSubType::register_type_object_representation() const +void SequenceBitMaskPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceBitMask_type_identifier(type_identifiers_); } SequenceAliasPubSubType::SequenceAliasPubSubType() @@ -3886,9 +3886,9 @@ bool SequenceAliasPubSubType::getKey( return true; } -void SequenceAliasPubSubType::register_type_object_representation() const +void SequenceAliasPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceAlias_type_identifier(type_identifiers_); } SequenceShortArrayPubSubType::SequenceShortArrayPubSubType() @@ -4079,9 +4079,9 @@ bool SequenceShortArrayPubSubType::getKey( return true; } -void SequenceShortArrayPubSubType::register_type_object_representation() const +void SequenceShortArrayPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceShortArray_type_identifier(type_identifiers_); } SequenceSequencePubSubType::SequenceSequencePubSubType() @@ -4272,9 +4272,9 @@ bool SequenceSequencePubSubType::getKey( return true; } -void SequenceSequencePubSubType::register_type_object_representation() const +void SequenceSequencePubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceSequence_type_identifier(type_identifiers_); } SequenceMapPubSubType::SequenceMapPubSubType() @@ -4465,9 +4465,9 @@ bool SequenceMapPubSubType::getKey( return true; } -void SequenceMapPubSubType::register_type_object_representation() const +void SequenceMapPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceMap_type_identifier(type_identifiers_); } SequenceUnionPubSubType::SequenceUnionPubSubType() @@ -4658,9 +4658,9 @@ bool SequenceUnionPubSubType::getKey( return true; } -void SequenceUnionPubSubType::register_type_object_representation() const +void SequenceUnionPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceUnion_type_identifier(type_identifiers_); } SequenceStructurePubSubType::SequenceStructurePubSubType() @@ -4851,9 +4851,9 @@ bool SequenceStructurePubSubType::getKey( return true; } -void SequenceStructurePubSubType::register_type_object_representation() const +void SequenceStructurePubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceStructure_type_identifier(type_identifiers_); } SequenceBitsetPubSubType::SequenceBitsetPubSubType() @@ -5044,9 +5044,9 @@ bool SequenceBitsetPubSubType::getKey( return true; } -void SequenceBitsetPubSubType::register_type_object_representation() const +void SequenceBitsetPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_SequenceBitset_type_identifier(type_identifiers_); } BoundedSmallSequencesPubSubType::BoundedSmallSequencesPubSubType() @@ -5237,9 +5237,9 @@ bool BoundedSmallSequencesPubSubType::getKey( return true; } -void BoundedSmallSequencesPubSubType::register_type_object_representation() const +void BoundedSmallSequencesPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_BoundedSmallSequences_type_identifier(type_identifiers_); } BoundedBigSequencesPubSubType::BoundedBigSequencesPubSubType() @@ -5430,9 +5430,9 @@ bool BoundedBigSequencesPubSubType::getKey( return true; } -void BoundedBigSequencesPubSubType::register_type_object_representation() const +void BoundedBigSequencesPubSubType::register_type_object_representation() { - register_sequences_type_objects(); + register_BoundedBigSequences_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/sequencesPubSubTypes.h b/test/dds-types-test/sequencesPubSubTypes.h index 8b4469c9ea4..237a5306a69 100644 --- a/test/dds-types-test/sequencesPubSubTypes.h +++ b/test/dds-types-test/sequencesPubSubTypes.h @@ -90,7 +90,7 @@ class SequenceShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class SequenceUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class SequenceLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class SequenceULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class SequenceLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class SequenceULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class SequenceFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class SequenceDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class SequenceLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class SequenceBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class SequenceOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class SequenceCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class SequenceWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class SequenceStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class SequenceWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class SequenceStringBoundedPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class SequenceWStringBoundedPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class SequenceEnumPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class SequenceBitMaskPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class SequenceAliasPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class SequenceShortArrayPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class SequenceSequencePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class SequenceMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class SequenceUnionPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class SequenceStructurePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class SequenceBitsetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class BoundedSmallSequencesPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class BoundedBigSequencesPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/sequencesTypeObjectSupport.cxx b/test/dds-types-test/sequencesTypeObjectSupport.cxx index 07f6f9aa01f..7e9c661b5d3 100644 --- a/test/dds-types-test/sequencesTypeObjectSupport.cxx +++ b/test/dds-types-test/sequencesTypeObjectSupport.cxx @@ -39,86 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_sequences_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_SequenceShort_type_identifier(type_id); - - register_SequenceUShort_type_identifier(type_id); - - register_SequenceLong_type_identifier(type_id); - - register_SequenceULong_type_identifier(type_id); - - register_SequenceLongLong_type_identifier(type_id); - - register_SequenceULongLong_type_identifier(type_id); - - register_SequenceFloat_type_identifier(type_id); - - register_SequenceDouble_type_identifier(type_id); - - register_SequenceLongDouble_type_identifier(type_id); - - register_SequenceBoolean_type_identifier(type_id); - - register_SequenceOctet_type_identifier(type_id); - - register_SequenceChar_type_identifier(type_id); - - register_SequenceWChar_type_identifier(type_id); - - register_SequenceString_type_identifier(type_id); - - register_SequenceWString_type_identifier(type_id); - - register_SequenceStringBounded_type_identifier(type_id); - - register_SequenceWStringBounded_type_identifier(type_id); - - register_SequenceEnum_type_identifier(type_id); - - register_SequenceBitMask_type_identifier(type_id); - - register_SequenceAlias_type_identifier(type_id); - - register_SequenceShortArray_type_identifier(type_id); - - register_SequenceSequence_type_identifier(type_id); - - register_SequenceMap_type_identifier(type_id); - - register_SequenceUnion_type_identifier(type_id); - - register_SequenceStructure_type_identifier(type_id); - - register_SequenceBitset_type_identifier(type_id); - - register_BoundedSmallSequences_type_identifier(type_id); - - register_BoundedBigSequences_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceShort) { + + ReturnCode_t return_code_SequenceShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceShort", type_ids_SequenceShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceShort) { - StructTypeFlag struct_flags_SequenceShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceShort; - TypeIdentifierPair type_ids_SequenceShort; QualifiedTypeName type_name_SequenceShort = "SequenceShort"; eprosima::fastcdr::optional type_ann_builtin_SequenceShort; eprosima::fastcdr::optional ann_custom_SequenceShort; @@ -127,69 +60,33 @@ void register_SequenceShort_type_identifier( header_SequenceShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceShort); CompleteStructMemberSeq member_seq_SequenceShort; { - return_code_SequenceShort = + TypeIdentifierPair type_ids_var_sequence_short; + ReturnCode_t return_code_var_sequence_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_SequenceShort); + "anonymous_sequence_int16_t_unbounded", type_ids_var_sequence_short); - if (return_code_SequenceShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_short) { - return_code_SequenceShort = + return_code_var_sequence_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_SequenceShort); + "_int16_t", type_ids_var_sequence_short); - if (return_code_SequenceShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceShort.type_identifier1()._d() || TK_NONE == type_ids_SequenceShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_SequenceShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_SequenceShort.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_short, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_short.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -200,68 +97,21 @@ void register_SequenceShort_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_var_sequence_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_SequenceShort); - if (return_code_SequenceShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_short; MemberId member_id_var_sequence_short = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceShort.type_identifier1()._d() || TK_NONE == type_ids_SequenceShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_short = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short, member_flags_var_sequence_short, type_ids_SequenceShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_short_ec {false}; + CommonStructMember common_var_sequence_short {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short, member_flags_var_sequence_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_short, common_var_sequence_short_ec))}; + if (!common_var_sequence_short_ec) { - common_var_sequence_short = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short, member_flags_var_sequence_short, type_ids_SequenceShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_short member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_short = "var_sequence_short"; @@ -273,32 +123,26 @@ void register_SequenceShort_type_identifier( } CompleteStructType struct_type_SequenceShort = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceShort, header_SequenceShort, member_seq_SequenceShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceShort, type_name_SequenceShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceShort, type_name_SequenceShort.to_string(), type_ids_SequenceShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceShort already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceShort", type_ids_SequenceShort); - if (return_code_SequenceShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceUShort) { + + ReturnCode_t return_code_SequenceUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceUShort", type_ids_SequenceUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceUShort) { - StructTypeFlag struct_flags_SequenceUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceUShort; - TypeIdentifierPair type_ids_SequenceUShort; QualifiedTypeName type_name_SequenceUShort = "SequenceUShort"; eprosima::fastcdr::optional type_ann_builtin_SequenceUShort; eprosima::fastcdr::optional ann_custom_SequenceUShort; @@ -307,69 +151,33 @@ void register_SequenceUShort_type_identifier( header_SequenceUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceUShort); CompleteStructMemberSeq member_seq_SequenceUShort; { - return_code_SequenceUShort = + TypeIdentifierPair type_ids_var_sequence_ushort; + ReturnCode_t return_code_var_sequence_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_unbounded", type_ids_SequenceUShort); + "anonymous_sequence_uint16_t_unbounded", type_ids_var_sequence_ushort); - if (return_code_SequenceUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ushort) { - return_code_SequenceUShort = + return_code_var_sequence_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_SequenceUShort); + "_uint16_t", type_ids_var_sequence_ushort); - if (return_code_SequenceUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1()._d() || TK_NONE == type_ids_SequenceUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_SequenceUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ushort, element_identifier_anonymous_sequence_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint16_t_unbounded_ec) { - element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_SequenceUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceUShort.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_ushort.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; } @@ -380,68 +188,21 @@ void register_SequenceUShort_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded", type_ids_var_sequence_ushort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_unbounded", type_ids_SequenceUShort); - if (return_code_SequenceUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_ushort; MemberId member_id_var_sequence_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1()._d() || TK_NONE == type_ids_SequenceUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_ushort_ec {false}; + CommonStructMember common_var_sequence_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ushort, member_flags_var_sequence_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ushort, common_var_sequence_ushort_ec))}; + if (!common_var_sequence_ushort_ec) { - common_var_sequence_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ushort, member_flags_var_sequence_ushort, type_ids_SequenceUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ushort, member_flags_var_sequence_ushort, type_ids_SequenceUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_ushort = "var_sequence_ushort"; @@ -453,32 +214,26 @@ void register_SequenceUShort_type_identifier( } CompleteStructType struct_type_SequenceUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceUShort, header_SequenceUShort, member_seq_SequenceUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceUShort, type_name_SequenceUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceUShort, type_name_SequenceUShort.to_string(), type_ids_SequenceUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceUShort already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceUShort", type_ids_SequenceUShort); - if (return_code_SequenceUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceLong) { + + ReturnCode_t return_code_SequenceLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceLong", type_ids_SequenceLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceLong) { - StructTypeFlag struct_flags_SequenceLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceLong; - TypeIdentifierPair type_ids_SequenceLong; QualifiedTypeName type_name_SequenceLong = "SequenceLong"; eprosima::fastcdr::optional type_ann_builtin_SequenceLong; eprosima::fastcdr::optional ann_custom_SequenceLong; @@ -487,69 +242,33 @@ void register_SequenceLong_type_identifier( header_SequenceLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceLong); CompleteStructMemberSeq member_seq_SequenceLong; { - return_code_SequenceLong = + TypeIdentifierPair type_ids_var_sequence_long; + ReturnCode_t return_code_var_sequence_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_SequenceLong); + "anonymous_sequence_int32_t_unbounded", type_ids_var_sequence_long); - if (return_code_SequenceLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_long) { - return_code_SequenceLong = + return_code_var_sequence_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceLong); + "_int32_t", type_ids_var_sequence_long); - if (return_code_SequenceLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_long, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_long.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -560,68 +279,21 @@ void register_SequenceLong_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_sequence_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_SequenceLong); - if (return_code_SequenceLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_long; MemberId member_id_var_sequence_long = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_long = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_long, member_flags_var_sequence_long, type_ids_SequenceLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_long_ec {false}; + CommonStructMember common_var_sequence_long {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_long, member_flags_var_sequence_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_long, common_var_sequence_long_ec))}; + if (!common_var_sequence_long_ec) { - common_var_sequence_long = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_long, member_flags_var_sequence_long, type_ids_SequenceLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_long member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_long = "var_sequence_long"; @@ -633,32 +305,26 @@ void register_SequenceLong_type_identifier( } CompleteStructType struct_type_SequenceLong = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceLong, header_SequenceLong, member_seq_SequenceLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLong, type_name_SequenceLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLong, type_name_SequenceLong.to_string(), type_ids_SequenceLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceLong already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceLong", type_ids_SequenceLong); - if (return_code_SequenceLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceULong) { + + ReturnCode_t return_code_SequenceULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceULong", type_ids_SequenceULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceULong) { - StructTypeFlag struct_flags_SequenceULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceULong; - TypeIdentifierPair type_ids_SequenceULong; QualifiedTypeName type_name_SequenceULong = "SequenceULong"; eprosima::fastcdr::optional type_ann_builtin_SequenceULong; eprosima::fastcdr::optional ann_custom_SequenceULong; @@ -667,69 +333,33 @@ void register_SequenceULong_type_identifier( header_SequenceULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceULong); CompleteStructMemberSeq member_seq_SequenceULong; { - return_code_SequenceULong = + TypeIdentifierPair type_ids_var_sequence_ulong; + ReturnCode_t return_code_var_sequence_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_unbounded", type_ids_SequenceULong); + "anonymous_sequence_uint32_t_unbounded", type_ids_var_sequence_ulong); - if (return_code_SequenceULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ulong) { - return_code_SequenceULong = + return_code_var_sequence_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_SequenceULong); + "_uint32_t", type_ids_var_sequence_ulong); - if (return_code_SequenceULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceULong.type_identifier1()._d() || TK_NONE == type_ids_SequenceULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_SequenceULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ulong, element_identifier_anonymous_sequence_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint32_t_unbounded_ec) { - element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_SequenceULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceULong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_ulong.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; } @@ -740,68 +370,21 @@ void register_SequenceULong_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded", type_ids_var_sequence_ulong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_unbounded", type_ids_SequenceULong); - if (return_code_SequenceULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_ulong; MemberId member_id_var_sequence_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceULong.type_identifier1()._d() || TK_NONE == type_ids_SequenceULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulong, member_flags_var_sequence_ulong, type_ids_SequenceULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulong, member_flags_var_sequence_ulong, type_ids_SequenceULong.type_identifier2()); - } - else + bool common_var_sequence_ulong_ec {false}; + CommonStructMember common_var_sequence_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulong, member_flags_var_sequence_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ulong, common_var_sequence_ulong_ec))}; + if (!common_var_sequence_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_ulong = "var_sequence_ulong"; @@ -813,32 +396,26 @@ void register_SequenceULong_type_identifier( } CompleteStructType struct_type_SequenceULong = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceULong, header_SequenceULong, member_seq_SequenceULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceULong, type_name_SequenceULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceULong, type_name_SequenceULong.to_string(), type_ids_SequenceULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceULong already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceULong", type_ids_SequenceULong); - if (return_code_SequenceULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceLongLong) { + + ReturnCode_t return_code_SequenceLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceLongLong", type_ids_SequenceLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceLongLong) { - StructTypeFlag struct_flags_SequenceLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceLongLong; - TypeIdentifierPair type_ids_SequenceLongLong; QualifiedTypeName type_name_SequenceLongLong = "SequenceLongLong"; eprosima::fastcdr::optional type_ann_builtin_SequenceLongLong; eprosima::fastcdr::optional ann_custom_SequenceLongLong; @@ -847,69 +424,33 @@ void register_SequenceLongLong_type_identifier( header_SequenceLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceLongLong); CompleteStructMemberSeq member_seq_SequenceLongLong; { - return_code_SequenceLongLong = + TypeIdentifierPair type_ids_var_sequence_longlong; + ReturnCode_t return_code_var_sequence_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_unbounded", type_ids_SequenceLongLong); + "anonymous_sequence_int64_t_unbounded", type_ids_var_sequence_longlong); - if (return_code_SequenceLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_longlong) { - return_code_SequenceLongLong = + return_code_var_sequence_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_SequenceLongLong); + "_int64_t", type_ids_var_sequence_longlong); - if (return_code_SequenceLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_SequenceLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_SequenceLongLong.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_longlong, element_identifier_anonymous_sequence_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int64_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceLongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_longlong.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; } @@ -920,68 +461,21 @@ void register_SequenceLongLong_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded", type_ids_var_sequence_longlong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_unbounded", type_ids_SequenceLongLong); - if (return_code_SequenceLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_longlong; MemberId member_id_var_sequence_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longlong, member_flags_var_sequence_longlong, type_ids_SequenceLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_longlong_ec {false}; + CommonStructMember common_var_sequence_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longlong, member_flags_var_sequence_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_longlong, common_var_sequence_longlong_ec))}; + if (!common_var_sequence_longlong_ec) { - common_var_sequence_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longlong, member_flags_var_sequence_longlong, type_ids_SequenceLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_longlong = "var_sequence_longlong"; @@ -993,32 +487,26 @@ void register_SequenceLongLong_type_identifier( } CompleteStructType struct_type_SequenceLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceLongLong, header_SequenceLongLong, member_seq_SequenceLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLongLong, type_name_SequenceLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLongLong, type_name_SequenceLongLong.to_string(), type_ids_SequenceLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceLongLong", type_ids_SequenceLongLong); - if (return_code_SequenceLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceULongLong) { + + ReturnCode_t return_code_SequenceULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceULongLong", type_ids_SequenceULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceULongLong) { - StructTypeFlag struct_flags_SequenceULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceULongLong; - TypeIdentifierPair type_ids_SequenceULongLong; QualifiedTypeName type_name_SequenceULongLong = "SequenceULongLong"; eprosima::fastcdr::optional type_ann_builtin_SequenceULongLong; eprosima::fastcdr::optional ann_custom_SequenceULongLong; @@ -1027,69 +515,33 @@ void register_SequenceULongLong_type_identifier( header_SequenceULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceULongLong); CompleteStructMemberSeq member_seq_SequenceULongLong; { - return_code_SequenceULongLong = + TypeIdentifierPair type_ids_var_sequence_ulonglong; + ReturnCode_t return_code_var_sequence_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_unbounded", type_ids_SequenceULongLong); + "anonymous_sequence_uint64_t_unbounded", type_ids_var_sequence_ulonglong); - if (return_code_SequenceULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ulonglong) { - return_code_SequenceULongLong = + return_code_var_sequence_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_SequenceULongLong); + "_uint64_t", type_ids_var_sequence_ulonglong); - if (return_code_SequenceULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_SequenceULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ulonglong, element_identifier_anonymous_sequence_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint64_t_unbounded_ec) { - element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_SequenceULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceULongLong.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_ulonglong.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; } @@ -1100,68 +552,21 @@ void register_SequenceULongLong_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded", type_ids_var_sequence_ulonglong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_unbounded", type_ids_SequenceULongLong); - if (return_code_SequenceULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_ulonglong; MemberId member_id_var_sequence_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1()._d() || TK_NONE == type_ids_SequenceULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_ulonglong_ec {false}; + CommonStructMember common_var_sequence_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulonglong, member_flags_var_sequence_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_ulonglong, common_var_sequence_ulonglong_ec))}; + if (!common_var_sequence_ulonglong_ec) { - common_var_sequence_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulonglong, member_flags_var_sequence_ulonglong, type_ids_SequenceULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_ulonglong, member_flags_var_sequence_ulonglong, type_ids_SequenceULongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_ulonglong = "var_sequence_ulonglong"; @@ -1173,32 +578,26 @@ void register_SequenceULongLong_type_identifier( } CompleteStructType struct_type_SequenceULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceULongLong, header_SequenceULongLong, member_seq_SequenceULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceULongLong, type_name_SequenceULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceULongLong, type_name_SequenceULongLong.to_string(), type_ids_SequenceULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceULongLong", type_ids_SequenceULongLong); - if (return_code_SequenceULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceFloat) { + + ReturnCode_t return_code_SequenceFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceFloat", type_ids_SequenceFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceFloat) { - StructTypeFlag struct_flags_SequenceFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceFloat; - TypeIdentifierPair type_ids_SequenceFloat; QualifiedTypeName type_name_SequenceFloat = "SequenceFloat"; eprosima::fastcdr::optional type_ann_builtin_SequenceFloat; eprosima::fastcdr::optional ann_custom_SequenceFloat; @@ -1207,69 +606,33 @@ void register_SequenceFloat_type_identifier( header_SequenceFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceFloat); CompleteStructMemberSeq member_seq_SequenceFloat; { - return_code_SequenceFloat = + TypeIdentifierPair type_ids_var_sequence_float; + ReturnCode_t return_code_var_sequence_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_unbounded", type_ids_SequenceFloat); + "anonymous_sequence_float_unbounded", type_ids_var_sequence_float); - if (return_code_SequenceFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_float) { - return_code_SequenceFloat = + return_code_var_sequence_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_SequenceFloat); + "_float", type_ids_var_sequence_float); - if (return_code_SequenceFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1()._d() || TK_NONE == type_ids_SequenceFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_float, element_identifier_anonymous_sequence_float_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_float_unbounded_ec) { - element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_SequenceFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_SequenceFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceFloat.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_float.type_identifier2()._d()) { equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; } @@ -1280,68 +643,21 @@ void register_SequenceFloat_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded", type_ids_var_sequence_float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_unbounded", type_ids_SequenceFloat); - if (return_code_SequenceFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_float; MemberId member_id_var_sequence_float = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1()._d() || TK_NONE == type_ids_SequenceFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_float = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_float, member_flags_var_sequence_float, type_ids_SequenceFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_float_ec {false}; + CommonStructMember common_var_sequence_float {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_float, member_flags_var_sequence_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_float, common_var_sequence_float_ec))}; + if (!common_var_sequence_float_ec) { - common_var_sequence_float = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_float, member_flags_var_sequence_float, type_ids_SequenceFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_float member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_float = "var_sequence_float"; @@ -1353,32 +669,26 @@ void register_SequenceFloat_type_identifier( } CompleteStructType struct_type_SequenceFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceFloat, header_SequenceFloat, member_seq_SequenceFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceFloat, type_name_SequenceFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceFloat, type_name_SequenceFloat.to_string(), type_ids_SequenceFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceFloat already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceFloat", type_ids_SequenceFloat); - if (return_code_SequenceFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceDouble) { + + ReturnCode_t return_code_SequenceDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceDouble", type_ids_SequenceDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceDouble) { - StructTypeFlag struct_flags_SequenceDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceDouble; - TypeIdentifierPair type_ids_SequenceDouble; QualifiedTypeName type_name_SequenceDouble = "SequenceDouble"; eprosima::fastcdr::optional type_ann_builtin_SequenceDouble; eprosima::fastcdr::optional ann_custom_SequenceDouble; @@ -1387,69 +697,33 @@ void register_SequenceDouble_type_identifier( header_SequenceDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceDouble); CompleteStructMemberSeq member_seq_SequenceDouble; { - return_code_SequenceDouble = + TypeIdentifierPair type_ids_var_sequence_double; + ReturnCode_t return_code_var_sequence_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_unbounded", type_ids_SequenceDouble); + "anonymous_sequence_double_unbounded", type_ids_var_sequence_double); - if (return_code_SequenceDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_double) { - return_code_SequenceDouble = + return_code_var_sequence_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_SequenceDouble); + "_double", type_ids_var_sequence_double); - if (return_code_SequenceDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1()._d() || TK_NONE == type_ids_SequenceDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_SequenceDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_double, element_identifier_anonymous_sequence_double_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_double_unbounded_ec) { - element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_SequenceDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_double.type_identifier2()._d()) { equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; } @@ -1460,68 +734,21 @@ void register_SequenceDouble_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded", type_ids_var_sequence_double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_unbounded", type_ids_SequenceDouble); - if (return_code_SequenceDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_double; MemberId member_id_var_sequence_double = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1()._d() || TK_NONE == type_ids_SequenceDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_double = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_double, member_flags_var_sequence_double, type_ids_SequenceDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_double = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_double, member_flags_var_sequence_double, type_ids_SequenceDouble.type_identifier2()); - } - else + bool common_var_sequence_double_ec {false}; + CommonStructMember common_var_sequence_double {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_double, member_flags_var_sequence_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_double, common_var_sequence_double_ec))}; + if (!common_var_sequence_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_double member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_double = "var_sequence_double"; @@ -1533,32 +760,26 @@ void register_SequenceDouble_type_identifier( } CompleteStructType struct_type_SequenceDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceDouble, header_SequenceDouble, member_seq_SequenceDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceDouble, type_name_SequenceDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceDouble, type_name_SequenceDouble.to_string(), type_ids_SequenceDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceDouble already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceDouble", type_ids_SequenceDouble); - if (return_code_SequenceDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceLongDouble) { + + ReturnCode_t return_code_SequenceLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceLongDouble", type_ids_SequenceLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceLongDouble) { - StructTypeFlag struct_flags_SequenceLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceLongDouble; - TypeIdentifierPair type_ids_SequenceLongDouble; QualifiedTypeName type_name_SequenceLongDouble = "SequenceLongDouble"; eprosima::fastcdr::optional type_ann_builtin_SequenceLongDouble; eprosima::fastcdr::optional ann_custom_SequenceLongDouble; @@ -1567,69 +788,33 @@ void register_SequenceLongDouble_type_identifier( header_SequenceLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceLongDouble); CompleteStructMemberSeq member_seq_SequenceLongDouble; { - return_code_SequenceLongDouble = + TypeIdentifierPair type_ids_var_sequence_longdouble; + ReturnCode_t return_code_var_sequence_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_unbounded", type_ids_SequenceLongDouble); + "anonymous_sequence_longdouble_unbounded", type_ids_var_sequence_longdouble); - if (return_code_SequenceLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_longdouble) { - return_code_SequenceLongDouble = + return_code_var_sequence_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_SequenceLongDouble); + "_longdouble", type_ids_var_sequence_longdouble); - if (return_code_SequenceLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1()._d() || TK_NONE == type_ids_SequenceLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_unbounded = new TypeIdentifier(type_ids_SequenceLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_unbounded = new TypeIdentifier(type_ids_SequenceLongDouble.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_longdouble, element_identifier_anonymous_sequence_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_longdouble_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_longdouble_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceLongDouble.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_longdouble.type_identifier2()._d()) { equiv_kind_anonymous_sequence_longdouble_unbounded = EK_BOTH; } @@ -1640,68 +825,21 @@ void register_SequenceLongDouble_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_longdouble_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_unbounded", type_ids_var_sequence_longdouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_unbounded", type_ids_SequenceLongDouble); - if (return_code_SequenceLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_longdouble_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_longdouble; MemberId member_id_var_sequence_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1()._d() || TK_NONE == type_ids_SequenceLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longdouble, member_flags_var_sequence_longdouble, type_ids_SequenceLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_longdouble_ec {false}; + CommonStructMember common_var_sequence_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longdouble, member_flags_var_sequence_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_longdouble, common_var_sequence_longdouble_ec))}; + if (!common_var_sequence_longdouble_ec) { - common_var_sequence_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_longdouble, member_flags_var_sequence_longdouble, type_ids_SequenceLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_longdouble = "var_sequence_longdouble"; @@ -1713,32 +851,26 @@ void register_SequenceLongDouble_type_identifier( } CompleteStructType struct_type_SequenceLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceLongDouble, header_SequenceLongDouble, member_seq_SequenceLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLongDouble, type_name_SequenceLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceLongDouble, type_name_SequenceLongDouble.to_string(), type_ids_SequenceLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceLongDouble", type_ids_SequenceLongDouble); - if (return_code_SequenceLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceBoolean) { + + ReturnCode_t return_code_SequenceBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceBoolean", type_ids_SequenceBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceBoolean) { - StructTypeFlag struct_flags_SequenceBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceBoolean; - TypeIdentifierPair type_ids_SequenceBoolean; QualifiedTypeName type_name_SequenceBoolean = "SequenceBoolean"; eprosima::fastcdr::optional type_ann_builtin_SequenceBoolean; eprosima::fastcdr::optional ann_custom_SequenceBoolean; @@ -1747,69 +879,33 @@ void register_SequenceBoolean_type_identifier( header_SequenceBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceBoolean); CompleteStructMemberSeq member_seq_SequenceBoolean; { - return_code_SequenceBoolean = + TypeIdentifierPair type_ids_var_sequence_boolean; + ReturnCode_t return_code_var_sequence_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_unbounded", type_ids_SequenceBoolean); + "anonymous_sequence_bool_unbounded", type_ids_var_sequence_boolean); - if (return_code_SequenceBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_boolean) { - return_code_SequenceBoolean = + return_code_var_sequence_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_SequenceBoolean); + "_bool", type_ids_var_sequence_boolean); - if (return_code_SequenceBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1()._d() || TK_NONE == type_ids_SequenceBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_SequenceBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_boolean, element_identifier_anonymous_sequence_bool_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_bool_unbounded_ec) { - element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_SequenceBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceBoolean.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_boolean.type_identifier2()._d()) { equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; } @@ -1820,68 +916,21 @@ void register_SequenceBoolean_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded", type_ids_var_sequence_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_unbounded", type_ids_SequenceBoolean); - if (return_code_SequenceBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_boolean; MemberId member_id_var_sequence_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1()._d() || TK_NONE == type_ids_SequenceBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_boolean_ec {false}; + CommonStructMember common_var_sequence_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_boolean, member_flags_var_sequence_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_boolean, common_var_sequence_boolean_ec))}; + if (!common_var_sequence_boolean_ec) { - common_var_sequence_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_boolean, member_flags_var_sequence_boolean, type_ids_SequenceBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_boolean, member_flags_var_sequence_boolean, type_ids_SequenceBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_boolean = "var_sequence_boolean"; @@ -1893,32 +942,26 @@ void register_SequenceBoolean_type_identifier( } CompleteStructType struct_type_SequenceBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceBoolean, header_SequenceBoolean, member_seq_SequenceBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBoolean, type_name_SequenceBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBoolean, type_name_SequenceBoolean.to_string(), type_ids_SequenceBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceBoolean", type_ids_SequenceBoolean); - if (return_code_SequenceBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceOctet) { + + ReturnCode_t return_code_SequenceOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceOctet", type_ids_SequenceOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceOctet) { - StructTypeFlag struct_flags_SequenceOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceOctet; - TypeIdentifierPair type_ids_SequenceOctet; QualifiedTypeName type_name_SequenceOctet = "SequenceOctet"; eprosima::fastcdr::optional type_ann_builtin_SequenceOctet; eprosima::fastcdr::optional ann_custom_SequenceOctet; @@ -1927,69 +970,33 @@ void register_SequenceOctet_type_identifier( header_SequenceOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceOctet); CompleteStructMemberSeq member_seq_SequenceOctet; { - return_code_SequenceOctet = + TypeIdentifierPair type_ids_var_sequence_octet; + ReturnCode_t return_code_var_sequence_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_SequenceOctet); + "anonymous_sequence_uint8_t_unbounded", type_ids_var_sequence_octet); - if (return_code_SequenceOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_octet) { - return_code_SequenceOctet = + return_code_var_sequence_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_SequenceOctet); + "_byte", type_ids_var_sequence_octet); - if (return_code_SequenceOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1()._d() || TK_NONE == type_ids_SequenceOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_octet, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_SequenceOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_SequenceOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceOctet.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_octet.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; } @@ -2000,68 +1007,21 @@ void register_SequenceOctet_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_var_sequence_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_SequenceOctet); - if (return_code_SequenceOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_octet; MemberId member_id_var_sequence_octet = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1()._d() || TK_NONE == type_ids_SequenceOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_octet = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_octet, member_flags_var_sequence_octet, type_ids_SequenceOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_octet_ec {false}; + CommonStructMember common_var_sequence_octet {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_octet, member_flags_var_sequence_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_octet, common_var_sequence_octet_ec))}; + if (!common_var_sequence_octet_ec) { - common_var_sequence_octet = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_octet, member_flags_var_sequence_octet, type_ids_SequenceOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_octet = "var_sequence_octet"; @@ -2073,32 +1033,26 @@ void register_SequenceOctet_type_identifier( } CompleteStructType struct_type_SequenceOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceOctet, header_SequenceOctet, member_seq_SequenceOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceOctet, type_name_SequenceOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceOctet, type_name_SequenceOctet.to_string(), type_ids_SequenceOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceOctet already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceOctet", type_ids_SequenceOctet); - if (return_code_SequenceOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceChar) { + + ReturnCode_t return_code_SequenceChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceChar", type_ids_SequenceChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceChar) { - StructTypeFlag struct_flags_SequenceChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceChar; - TypeIdentifierPair type_ids_SequenceChar; QualifiedTypeName type_name_SequenceChar = "SequenceChar"; eprosima::fastcdr::optional type_ann_builtin_SequenceChar; eprosima::fastcdr::optional ann_custom_SequenceChar; @@ -2107,69 +1061,33 @@ void register_SequenceChar_type_identifier( header_SequenceChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceChar); CompleteStructMemberSeq member_seq_SequenceChar; { - return_code_SequenceChar = + TypeIdentifierPair type_ids_var_sequence_char; + ReturnCode_t return_code_var_sequence_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_unbounded", type_ids_SequenceChar); + "anonymous_sequence_char_unbounded", type_ids_var_sequence_char); - if (return_code_SequenceChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_char) { - return_code_SequenceChar = + return_code_var_sequence_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_SequenceChar); + "_char", type_ids_var_sequence_char); - if (return_code_SequenceChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceChar.type_identifier1()._d() || TK_NONE == type_ids_SequenceChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_SequenceChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_char, element_identifier_anonymous_sequence_char_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_char_unbounded_ec) { - element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_SequenceChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceChar.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_char.type_identifier2()._d()) { equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; } @@ -2180,68 +1098,21 @@ void register_SequenceChar_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded", type_ids_var_sequence_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_unbounded", type_ids_SequenceChar); - if (return_code_SequenceChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_char; MemberId member_id_var_sequence_char = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceChar.type_identifier1()._d() || TK_NONE == type_ids_SequenceChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_char = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_char, member_flags_var_sequence_char, type_ids_SequenceChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_char = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_char, member_flags_var_sequence_char, type_ids_SequenceChar.type_identifier2()); - } - else + bool common_var_sequence_char_ec {false}; + CommonStructMember common_var_sequence_char {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_char, member_flags_var_sequence_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_char, common_var_sequence_char_ec))}; + if (!common_var_sequence_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_char member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_char = "var_sequence_char"; @@ -2253,32 +1124,26 @@ void register_SequenceChar_type_identifier( } CompleteStructType struct_type_SequenceChar = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceChar, header_SequenceChar, member_seq_SequenceChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceChar, type_name_SequenceChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceChar, type_name_SequenceChar.to_string(), type_ids_SequenceChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceChar already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceChar", type_ids_SequenceChar); - if (return_code_SequenceChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceWChar) { + + ReturnCode_t return_code_SequenceWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceWChar", type_ids_SequenceWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceWChar) { - StructTypeFlag struct_flags_SequenceWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceWChar; - TypeIdentifierPair type_ids_SequenceWChar; QualifiedTypeName type_name_SequenceWChar = "SequenceWChar"; eprosima::fastcdr::optional type_ann_builtin_SequenceWChar; eprosima::fastcdr::optional ann_custom_SequenceWChar; @@ -2287,71 +1152,35 @@ void register_SequenceWChar_type_identifier( header_SequenceWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceWChar); CompleteStructMemberSeq member_seq_SequenceWChar; { - return_code_SequenceWChar = + TypeIdentifierPair type_ids_var_sequence_wchar; + ReturnCode_t return_code_var_sequence_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_wchar_t_unbounded", type_ids_SequenceWChar); + "anonymous_sequence_wchar_t_unbounded", type_ids_var_sequence_wchar); - if (return_code_SequenceWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_wchar) { - return_code_SequenceWChar = + return_code_var_sequence_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_SequenceWChar); + "_wchar_t", type_ids_var_sequence_wchar); - if (return_code_SequenceWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_wchar_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1()._d() || TK_NONE == type_ids_SequenceWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_wchar_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_wchar_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_wchar, element_identifier_anonymous_sequence_wchar_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_wchar_t_unbounded_ec) { - element_identifier_anonymous_sequence_wchar_t_unbounded = new TypeIdentifier(type_ids_SequenceWChar.type_identifier1()); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); + return; } - else if (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) + EquivalenceKind equiv_kind_anonymous_sequence_wchar_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_var_sequence_wchar.type_identifier2()._d()) { - element_identifier_anonymous_sequence_wchar_t_unbounded = new TypeIdentifier(type_ids_SequenceWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_wchar_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceWChar.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_wchar_t_unbounded = EK_BOTH; + equiv_kind_anonymous_sequence_wchar_t_unbounded = EK_BOTH; } CollectionElementFlag element_flags_anonymous_sequence_wchar_t_unbounded = 0; PlainCollectionHeader header_anonymous_sequence_wchar_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_wchar_t_unbounded, element_flags_anonymous_sequence_wchar_t_unbounded); @@ -2360,68 +1189,21 @@ void register_SequenceWChar_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_wchar_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_wchar_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_wchar_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_wchar_t_unbounded", type_ids_var_sequence_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_wchar_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_wchar_t_unbounded", type_ids_SequenceWChar); - if (return_code_SequenceWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_wchar_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_wchar; MemberId member_id_var_sequence_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1()._d() || TK_NONE == type_ids_SequenceWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wchar, member_flags_var_sequence_wchar, type_ids_SequenceWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wchar, member_flags_var_sequence_wchar, type_ids_SequenceWChar.type_identifier2()); - } - else + bool common_var_sequence_wchar_ec {false}; + CommonStructMember common_var_sequence_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wchar, member_flags_var_sequence_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_wchar, common_var_sequence_wchar_ec))}; + if (!common_var_sequence_wchar_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_wchar = "var_sequence_wchar"; @@ -2433,32 +1215,26 @@ void register_SequenceWChar_type_identifier( } CompleteStructType struct_type_SequenceWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceWChar, header_SequenceWChar, member_seq_SequenceWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWChar, type_name_SequenceWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWChar, type_name_SequenceWChar.to_string(), type_ids_SequenceWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceWChar already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceWChar", type_ids_SequenceWChar); - if (return_code_SequenceWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceString) { + + ReturnCode_t return_code_SequenceString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceString", type_ids_SequenceString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceString) { - StructTypeFlag struct_flags_SequenceString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceString; - TypeIdentifierPair type_ids_SequenceString; QualifiedTypeName type_name_SequenceString = "SequenceString"; eprosima::fastcdr::optional type_ann_builtin_SequenceString; eprosima::fastcdr::optional ann_custom_SequenceString; @@ -2467,86 +1243,41 @@ void register_SequenceString_type_identifier( header_SequenceString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceString); CompleteStructMemberSeq member_seq_SequenceString; { - return_code_SequenceString = + TypeIdentifierPair type_ids_var_sequence_string; + ReturnCode_t return_code_var_sequence_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_SequenceString); + "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_var_sequence_string); - if (return_code_SequenceString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_string) { - return_code_SequenceString = + return_code_var_sequence_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_SequenceString); + "anonymous_string_unbounded", type_ids_var_sequence_string); - if (return_code_SequenceString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_sequence_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_SequenceString); - if (return_code_SequenceString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceString.type_identifier1()._d() || TK_NONE == type_ids_SequenceString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceString.type_identifier2()); } - else + bool element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_string, element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_unbounded_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_string.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_unbounded_unbounded = EK_BOTH; } @@ -2557,68 +1288,21 @@ void register_SequenceString_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_string_unbounded_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_var_sequence_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_SequenceString); - if (return_code_SequenceString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_unbounded_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_string; MemberId member_id_var_sequence_string = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceString.type_identifier1()._d() || TK_NONE == type_ids_SequenceString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_string = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_string, member_flags_var_sequence_string, type_ids_SequenceString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_string = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_string, member_flags_var_sequence_string, type_ids_SequenceString.type_identifier2()); - } - else + bool common_var_sequence_string_ec {false}; + CommonStructMember common_var_sequence_string {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_string, member_flags_var_sequence_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_string, common_var_sequence_string_ec))}; + if (!common_var_sequence_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_string member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_string = "var_sequence_string"; @@ -2630,32 +1314,26 @@ void register_SequenceString_type_identifier( } CompleteStructType struct_type_SequenceString = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceString, header_SequenceString, member_seq_SequenceString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceString, type_name_SequenceString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceString, type_name_SequenceString.to_string(), type_ids_SequenceString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceString already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceString", type_ids_SequenceString); - if (return_code_SequenceString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceWString) { + + ReturnCode_t return_code_SequenceWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceWString", type_ids_SequenceWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceWString) { - StructTypeFlag struct_flags_SequenceWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceWString; - TypeIdentifierPair type_ids_SequenceWString; QualifiedTypeName type_name_SequenceWString = "SequenceWString"; eprosima::fastcdr::optional type_ann_builtin_SequenceWString; eprosima::fastcdr::optional ann_custom_SequenceWString; @@ -2664,86 +1342,41 @@ void register_SequenceWString_type_identifier( header_SequenceWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceWString); CompleteStructMemberSeq member_seq_SequenceWString; { - return_code_SequenceWString = + TypeIdentifierPair type_ids_var_sequence_wstring; + ReturnCode_t return_code_var_sequence_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_wstring_unbounded_unbounded", type_ids_SequenceWString); + "anonymous_sequence_anonymous_wstring_unbounded_unbounded", type_ids_var_sequence_wstring); - if (return_code_SequenceWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_wstring) { - return_code_SequenceWString = + return_code_var_sequence_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_SequenceWString); + "anonymous_wstring_unbounded", type_ids_var_sequence_wstring); - if (return_code_SequenceWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_sequence_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_SequenceWString); - if (return_code_SequenceWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceWString.type_identifier1()._d() || TK_NONE == type_ids_SequenceWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceWString.type_identifier2()); } - else + bool element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_wstring, element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_wstring_unbounded_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceWString.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_wstring.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_wstring_unbounded_unbounded = EK_BOTH; } @@ -2754,68 +1387,21 @@ void register_SequenceWString_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_wstring_unbounded_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_wstring_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_wstring_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_wstring_unbounded_unbounded", type_ids_var_sequence_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_wstring_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_wstring_unbounded_unbounded", type_ids_SequenceWString); - if (return_code_SequenceWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_wstring_unbounded_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_wstring; MemberId member_id_var_sequence_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceWString.type_identifier1()._d() || TK_NONE == type_ids_SequenceWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wstring, member_flags_var_sequence_wstring, type_ids_SequenceWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_wstring_ec {false}; + CommonStructMember common_var_sequence_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wstring, member_flags_var_sequence_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_wstring, common_var_sequence_wstring_ec))}; + if (!common_var_sequence_wstring_ec) { - common_var_sequence_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_wstring, member_flags_var_sequence_wstring, type_ids_SequenceWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_wstring = "var_sequence_wstring"; @@ -2827,32 +1413,26 @@ void register_SequenceWString_type_identifier( } CompleteStructType struct_type_SequenceWString = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceWString, header_SequenceWString, member_seq_SequenceWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWString, type_name_SequenceWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWString, type_name_SequenceWString.to_string(), type_ids_SequenceWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceWString already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceWString", type_ids_SequenceWString); - if (return_code_SequenceWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceStringBounded_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceStringBounded) { + + ReturnCode_t return_code_SequenceStringBounded {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceStringBounded = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceStringBounded", type_ids_SequenceStringBounded); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceStringBounded) { - StructTypeFlag struct_flags_SequenceStringBounded = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceStringBounded = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceStringBounded; - TypeIdentifierPair type_ids_SequenceStringBounded; QualifiedTypeName type_name_SequenceStringBounded = "SequenceStringBounded"; eprosima::fastcdr::optional type_ann_builtin_SequenceStringBounded; eprosima::fastcdr::optional ann_custom_SequenceStringBounded; @@ -2861,164 +1441,31 @@ void register_SequenceStringBounded_type_identifier( header_SequenceStringBounded = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceStringBounded); CompleteStructMemberSeq member_seq_SequenceStringBounded; { - return_code_SequenceStringBounded = + TypeIdentifierPair type_ids_var_sequence_bounded_string; + ReturnCode_t return_code_var_sequence_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_10_unbounded", type_ids_SequenceStringBounded); + "anonymous_sequence_anonymous_string_10_unbounded", type_ids_var_sequence_bounded_string); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bounded_string) { - return_code_SequenceStringBounded = + return_code_var_sequence_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_SequenceStringBounded); - - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_SequenceStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_SequenceStringBounded); + "Inner_alias_bounded_string_helper", type_ids_var_sequence_bounded_string); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_SequenceStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_SequenceStringBounded); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_SequenceStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_SequenceStringBounded.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_SequenceStringBounded); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_SequenceStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bounded_string) { - element_identifier_anonymous_sequence_anonymous_string_10_unbounded = new TypeIdentifier(type_ids_SequenceStringBounded.type_identifier2()); + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_sequence_bounded_string); } - else + bool element_identifier_anonymous_sequence_anonymous_string_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bounded_string, element_identifier_anonymous_sequence_anonymous_string_10_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_10_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_10_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceStringBounded.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_bounded_string.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_10_unbounded = EK_BOTH; } @@ -3029,68 +1476,21 @@ void register_SequenceStringBounded_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_string_10_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_10_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_10_unbounded", type_ids_var_sequence_bounded_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_10_unbounded", type_ids_SequenceStringBounded); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_10_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_bounded_string; MemberId member_id_var_sequence_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_string, member_flags_var_sequence_bounded_string, type_ids_SequenceStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_bounded_string_ec {false}; + CommonStructMember common_var_sequence_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_string, member_flags_var_sequence_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bounded_string, common_var_sequence_bounded_string_ec))}; + if (!common_var_sequence_bounded_string_ec) { - common_var_sequence_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_string, member_flags_var_sequence_bounded_string, type_ids_SequenceStringBounded.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_bounded_string = "var_sequence_bounded_string"; @@ -3102,32 +1502,26 @@ void register_SequenceStringBounded_type_identifier( } CompleteStructType struct_type_SequenceStringBounded = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceStringBounded, header_SequenceStringBounded, member_seq_SequenceStringBounded); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceStringBounded, type_name_SequenceStringBounded.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceStringBounded, type_name_SequenceStringBounded.to_string(), type_ids_SequenceStringBounded)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceStringBounded already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceStringBounded", type_ids_SequenceStringBounded); - if (return_code_SequenceStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceStringBounded: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceWStringBounded_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceWStringBounded) { + + ReturnCode_t return_code_SequenceWStringBounded {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceWStringBounded = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceWStringBounded", type_ids_SequenceWStringBounded); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceWStringBounded) { - StructTypeFlag struct_flags_SequenceWStringBounded = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceWStringBounded = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceWStringBounded; - TypeIdentifierPair type_ids_SequenceWStringBounded; QualifiedTypeName type_name_SequenceWStringBounded = "SequenceWStringBounded"; eprosima::fastcdr::optional type_ann_builtin_SequenceWStringBounded; eprosima::fastcdr::optional ann_custom_SequenceWStringBounded; @@ -3136,164 +1530,31 @@ void register_SequenceWStringBounded_type_identifier( header_SequenceWStringBounded = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceWStringBounded); CompleteStructMemberSeq member_seq_SequenceWStringBounded; { - return_code_SequenceWStringBounded = + TypeIdentifierPair type_ids_var_sequence_bounded_wstring; + ReturnCode_t return_code_var_sequence_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_wstring_10_unbounded", type_ids_SequenceWStringBounded); + "anonymous_sequence_anonymous_wstring_10_unbounded", type_ids_var_sequence_bounded_wstring); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bounded_wstring) { - return_code_SequenceWStringBounded = + return_code_var_sequence_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_SequenceWStringBounded); - - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_SequenceWStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_SequenceWStringBounded); + "Inner_alias_bounded_wstring_helper", type_ids_var_sequence_bounded_wstring); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_SequenceWStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_SequenceWStringBounded); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_SequenceWStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_SequenceWStringBounded.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceWStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_SequenceWStringBounded); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_SequenceWStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bounded_wstring) { - element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded = new TypeIdentifier(type_ids_SequenceWStringBounded.type_identifier2()); + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_sequence_bounded_wstring); } - else + bool element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bounded_wstring, element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_wstring_10_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceWStringBounded.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_bounded_wstring.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_wstring_10_unbounded = EK_BOTH; } @@ -3304,68 +1565,21 @@ void register_SequenceWStringBounded_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_wstring_10_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_wstring_10_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_wstring_10_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_wstring_10_unbounded", type_ids_var_sequence_bounded_wstring)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_wstring_10_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceWStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_wstring_10_unbounded", type_ids_SequenceWStringBounded); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_wstring_10_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_bounded_wstring; MemberId member_id_var_sequence_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1()._d() || TK_NONE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_wstring, member_flags_var_sequence_bounded_wstring, type_ids_SequenceWStringBounded.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceWStringBounded.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceWStringBounded.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_bounded_wstring_ec {false}; + CommonStructMember common_var_sequence_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_wstring, member_flags_var_sequence_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bounded_wstring, common_var_sequence_bounded_wstring_ec))}; + if (!common_var_sequence_bounded_wstring_ec) { - common_var_sequence_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bounded_wstring, member_flags_var_sequence_bounded_wstring, type_ids_SequenceWStringBounded.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_bounded_wstring = "var_sequence_bounded_wstring"; @@ -3377,32 +1591,26 @@ void register_SequenceWStringBounded_type_identifier( } CompleteStructType struct_type_SequenceWStringBounded = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceWStringBounded, header_SequenceWStringBounded, member_seq_SequenceWStringBounded); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWStringBounded, type_name_SequenceWStringBounded.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceWStringBounded, type_name_SequenceWStringBounded.to_string(), type_ids_SequenceWStringBounded)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceWStringBounded already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceWStringBounded = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceWStringBounded", type_ids_SequenceWStringBounded); - if (return_code_SequenceWStringBounded != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceWStringBounded: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceEnum) { + + ReturnCode_t return_code_SequenceEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceEnum", type_ids_SequenceEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceEnum) { - StructTypeFlag struct_flags_SequenceEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceEnum; - TypeIdentifierPair type_ids_SequenceEnum; QualifiedTypeName type_name_SequenceEnum = "SequenceEnum"; eprosima::fastcdr::optional type_ann_builtin_SequenceEnum; eprosima::fastcdr::optional ann_custom_SequenceEnum; @@ -3411,122 +1619,31 @@ void register_SequenceEnum_type_identifier( header_SequenceEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceEnum); CompleteStructMemberSeq member_seq_SequenceEnum; { - return_code_SequenceEnum = + TypeIdentifierPair type_ids_var_sequence_enum; + ReturnCode_t return_code_var_sequence_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerEnumHelper_unbounded", type_ids_SequenceEnum); + "anonymous_sequence_InnerEnumHelper_unbounded", type_ids_var_sequence_enum); - if (return_code_SequenceEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_enum) { - return_code_SequenceEnum = + return_code_var_sequence_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_SequenceEnum); + "InnerEnumHelper", type_ids_var_sequence_enum); - if (return_code_SequenceEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_SequenceEnum); - if (return_code_SequenceEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerEnumHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1()._d() || TK_NONE == type_ids_SequenceEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_SequenceEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_enum) { - element_identifier_anonymous_sequence_InnerEnumHelper_unbounded = new TypeIdentifier(type_ids_SequenceEnum.type_identifier2()); + ::register_InnerEnumHelper_type_identifier(type_ids_var_sequence_enum); } - else + bool element_identifier_anonymous_sequence_InnerEnumHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerEnumHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_enum, element_identifier_anonymous_sequence_InnerEnumHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerEnumHelper_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerEnumHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceEnum.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_enum.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerEnumHelper_unbounded = EK_BOTH; } @@ -3537,68 +1654,21 @@ void register_SequenceEnum_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerEnumHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerEnumHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerEnumHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerEnumHelper_unbounded", type_ids_var_sequence_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerEnumHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerEnumHelper_unbounded", type_ids_SequenceEnum); - if (return_code_SequenceEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerEnumHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_enum; MemberId member_id_var_sequence_enum = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1()._d() || TK_NONE == type_ids_SequenceEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_enum = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_enum, member_flags_var_sequence_enum, type_ids_SequenceEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_enum = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_enum, member_flags_var_sequence_enum, type_ids_SequenceEnum.type_identifier2()); - } - else + bool common_var_sequence_enum_ec {false}; + CommonStructMember common_var_sequence_enum {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_enum, member_flags_var_sequence_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_enum, common_var_sequence_enum_ec))}; + if (!common_var_sequence_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_enum = "var_sequence_enum"; @@ -3610,32 +1680,26 @@ void register_SequenceEnum_type_identifier( } CompleteStructType struct_type_SequenceEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceEnum, header_SequenceEnum, member_seq_SequenceEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceEnum, type_name_SequenceEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceEnum, type_name_SequenceEnum.to_string(), type_ids_SequenceEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceEnum already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceEnum", type_ids_SequenceEnum); - if (return_code_SequenceEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceBitMask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceBitMask) { + + ReturnCode_t return_code_SequenceBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceBitMask", type_ids_SequenceBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceBitMask) { - StructTypeFlag struct_flags_SequenceBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceBitMask; - TypeIdentifierPair type_ids_SequenceBitMask; QualifiedTypeName type_name_SequenceBitMask = "SequenceBitMask"; eprosima::fastcdr::optional type_ann_builtin_SequenceBitMask; eprosima::fastcdr::optional ann_custom_SequenceBitMask; @@ -3644,155 +1708,31 @@ void register_SequenceBitMask_type_identifier( header_SequenceBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceBitMask); CompleteStructMemberSeq member_seq_SequenceBitMask; { - return_code_SequenceBitMask = + TypeIdentifierPair type_ids_var_sequence_bitmask; + ReturnCode_t return_code_var_sequence_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerBitMaskHelper_unbounded", type_ids_SequenceBitMask); + "anonymous_sequence_InnerBitMaskHelper_unbounded", type_ids_var_sequence_bitmask); - if (return_code_SequenceBitMask != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bitmask) { - return_code_SequenceBitMask = + return_code_var_sequence_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_SequenceBitMask); + "InnerBitMaskHelper", type_ids_var_sequence_bitmask); - if (return_code_SequenceBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_SequenceBitMask); - if (return_code_SequenceBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1()._d() || TK_NONE == type_ids_SequenceBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_SequenceBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bitmask) { - element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded = new TypeIdentifier(type_ids_SequenceBitMask.type_identifier2()); + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_sequence_bitmask); } - else + bool element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bitmask, element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerBitMaskHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceBitMask.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_bitmask.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerBitMaskHelper_unbounded = EK_BOTH; } @@ -3803,68 +1743,21 @@ void register_SequenceBitMask_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerBitMaskHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerBitMaskHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerBitMaskHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerBitMaskHelper_unbounded", type_ids_var_sequence_bitmask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerBitMaskHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerBitMaskHelper_unbounded", type_ids_SequenceBitMask); - if (return_code_SequenceBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerBitMaskHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_bitmask; MemberId member_id_var_sequence_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1()._d() || TK_NONE == type_ids_SequenceBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitmask, member_flags_var_sequence_bitmask, type_ids_SequenceBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_bitmask_ec {false}; + CommonStructMember common_var_sequence_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitmask, member_flags_var_sequence_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bitmask, common_var_sequence_bitmask_ec))}; + if (!common_var_sequence_bitmask_ec) { - common_var_sequence_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitmask, member_flags_var_sequence_bitmask, type_ids_SequenceBitMask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_bitmask = "var_sequence_bitmask"; @@ -3876,32 +1769,26 @@ void register_SequenceBitMask_type_identifier( } CompleteStructType struct_type_SequenceBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceBitMask, header_SequenceBitMask, member_seq_SequenceBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBitMask, type_name_SequenceBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBitMask, type_name_SequenceBitMask.to_string(), type_ids_SequenceBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceBitMask", type_ids_SequenceBitMask); - if (return_code_SequenceBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceAlias) { + + ReturnCode_t return_code_SequenceAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceAlias", type_ids_SequenceAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceAlias) { - StructTypeFlag struct_flags_SequenceAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceAlias; - TypeIdentifierPair type_ids_SequenceAlias; QualifiedTypeName type_name_SequenceAlias = "SequenceAlias"; eprosima::fastcdr::optional type_ann_builtin_SequenceAlias; eprosima::fastcdr::optional ann_custom_SequenceAlias; @@ -3910,147 +1797,31 @@ void register_SequenceAlias_type_identifier( header_SequenceAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceAlias); CompleteStructMemberSeq member_seq_SequenceAlias; { - return_code_SequenceAlias = + TypeIdentifierPair type_ids_var_sequence_alias; + ReturnCode_t return_code_var_sequence_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerAliasHelper_unbounded", type_ids_SequenceAlias); + "anonymous_sequence_InnerAliasHelper_unbounded", type_ids_var_sequence_alias); - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_alias) { - return_code_SequenceAlias = + return_code_var_sequence_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_SequenceAlias); - - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_SequenceAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceAlias); + "InnerAliasHelper", type_ids_var_sequence_alias); - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1()._d() || TK_NONE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_SequenceAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_SequenceAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_SequenceAlias); - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerAliasHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1()._d() || TK_NONE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_SequenceAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_alias) { - element_identifier_anonymous_sequence_InnerAliasHelper_unbounded = new TypeIdentifier(type_ids_SequenceAlias.type_identifier2()); + ::register_InnerAliasHelper_type_identifier(type_ids_var_sequence_alias); } - else + bool element_identifier_anonymous_sequence_InnerAliasHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerAliasHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_alias, element_identifier_anonymous_sequence_InnerAliasHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerAliasHelper_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerAliasHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceAlias.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_alias.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerAliasHelper_unbounded = EK_BOTH; } @@ -4061,68 +1832,21 @@ void register_SequenceAlias_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerAliasHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerAliasHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerAliasHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerAliasHelper_unbounded", type_ids_var_sequence_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerAliasHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerAliasHelper_unbounded", type_ids_SequenceAlias); - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerAliasHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_alias; MemberId member_id_var_sequence_alias = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1()._d() || TK_NONE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_alias = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_alias, member_flags_var_sequence_alias, type_ids_SequenceAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_alias_ec {false}; + CommonStructMember common_var_sequence_alias {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_alias, member_flags_var_sequence_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_alias, common_var_sequence_alias_ec))}; + if (!common_var_sequence_alias_ec) { - common_var_sequence_alias = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_alias, member_flags_var_sequence_alias, type_ids_SequenceAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_alias = "var_sequence_alias"; @@ -4134,32 +1858,26 @@ void register_SequenceAlias_type_identifier( } CompleteStructType struct_type_SequenceAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceAlias, header_SequenceAlias, member_seq_SequenceAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceAlias, type_name_SequenceAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceAlias, type_name_SequenceAlias.to_string(), type_ids_SequenceAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceAlias already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceAlias", type_ids_SequenceAlias); - if (return_code_SequenceAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceShortArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceShortArray) { + + ReturnCode_t return_code_SequenceShortArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceShortArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceShortArray", type_ids_SequenceShortArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceShortArray) { - StructTypeFlag struct_flags_SequenceShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceShortArray; - TypeIdentifierPair type_ids_SequenceShortArray; QualifiedTypeName type_name_SequenceShortArray = "SequenceShortArray"; eprosima::fastcdr::optional type_ann_builtin_SequenceShortArray; eprosima::fastcdr::optional ann_custom_SequenceShortArray; @@ -4168,228 +1886,31 @@ void register_SequenceShortArray_type_identifier( header_SequenceShortArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceShortArray); CompleteStructMemberSeq member_seq_SequenceShortArray; { - return_code_SequenceShortArray = + TypeIdentifierPair type_ids_var_sequence_short_array; + ReturnCode_t return_code_var_sequence_short_array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_array_int16_t_2_unbounded", type_ids_SequenceShortArray); + "anonymous_sequence_anonymous_array_int16_t_2_unbounded", type_ids_var_sequence_short_array); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_short_array) { - return_code_SequenceShortArray = + return_code_var_sequence_short_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_SequenceShortArray); + "Inner_alias_array_helper", type_ids_var_sequence_short_array); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_short_array) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_SequenceShortArray); - - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_SequenceShortArray); - - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1()._d() || TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_SequenceShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_SequenceShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_SequenceShortArray); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1()._d() || TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_SequenceShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_SequenceShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_SequenceShortArray); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1()._d() || TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_SequenceShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded = new TypeIdentifier(type_ids_SequenceShortArray.type_identifier2()); + ::register_Inner_alias_array_helper_type_identifier(type_ids_var_sequence_short_array); } - else + bool element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_short_array, element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_array_int16_t_2_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_short_array.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_array_int16_t_2_unbounded = EK_BOTH; } @@ -4400,68 +1921,21 @@ void register_SequenceShortArray_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_array_int16_t_2_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_array_int16_t_2_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_array_int16_t_2_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_array_int16_t_2_unbounded", type_ids_var_sequence_short_array)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_array_int16_t_2_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_array_int16_t_2_unbounded", type_ids_SequenceShortArray); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_array_int16_t_2_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_short_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_short_array; MemberId member_id_var_sequence_short_array = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1()._d() || TK_NONE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_short_array_ec {false}; + CommonStructMember common_var_sequence_short_array {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short_array, member_flags_var_sequence_short_array, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_short_array, common_var_sequence_short_array_ec))}; + if (!common_var_sequence_short_array_ec) { - common_var_sequence_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short_array, member_flags_var_sequence_short_array, type_ids_SequenceShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_short_array = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_short_array, member_flags_var_sequence_short_array, type_ids_SequenceShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_short_array member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_short_array member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_short_array = "var_sequence_short_array"; @@ -4473,32 +1947,26 @@ void register_SequenceShortArray_type_identifier( } CompleteStructType struct_type_SequenceShortArray = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceShortArray, header_SequenceShortArray, member_seq_SequenceShortArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceShortArray, type_name_SequenceShortArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceShortArray, type_name_SequenceShortArray.to_string(), type_ids_SequenceShortArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceShortArray already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceShortArray", type_ids_SequenceShortArray); - if (return_code_SequenceShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceShortArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceSequence) { + + ReturnCode_t return_code_SequenceSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceSequence", type_ids_SequenceSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceSequence) { - StructTypeFlag struct_flags_SequenceSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceSequence; - TypeIdentifierPair type_ids_SequenceSequence; QualifiedTypeName type_name_SequenceSequence = "SequenceSequence"; eprosima::fastcdr::optional type_ann_builtin_SequenceSequence; eprosima::fastcdr::optional ann_custom_SequenceSequence; @@ -4507,226 +1975,31 @@ void register_SequenceSequence_type_identifier( header_SequenceSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceSequence); CompleteStructMemberSeq member_seq_SequenceSequence; { - return_code_SequenceSequence = + TypeIdentifierPair type_ids_var_sequence_sequence; + ReturnCode_t return_code_var_sequence_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_SequenceSequence); + "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_sequence_sequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_sequence) { - return_code_SequenceSequence = + return_code_var_sequence_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_SequenceSequence); + "Inner_alias_sequence_helper", type_ids_var_sequence_sequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_SequenceSequence); - - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_SequenceSequence); - - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1()._d() || TK_NONE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_SequenceSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_SequenceSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceSequence.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_SequenceSequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1()._d() || TK_NONE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_SequenceSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_SequenceSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_SequenceSequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1()._d() || TK_NONE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_sequence) { - element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded = new TypeIdentifier(type_ids_SequenceSequence.type_identifier2()); + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_var_sequence_sequence); } - else + bool element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_sequence, element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded = EK_BOTH; } @@ -4737,68 +2010,21 @@ void register_SequenceSequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_var_sequence_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded", type_ids_SequenceSequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_sequence_int16_t_unbounded_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_sequence; MemberId member_id_var_sequence_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1()._d() || TK_NONE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_sequence, member_flags_var_sequence_sequence, type_ids_SequenceSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_sequence_ec {false}; + CommonStructMember common_var_sequence_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_sequence, member_flags_var_sequence_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_sequence, common_var_sequence_sequence_ec))}; + if (!common_var_sequence_sequence_ec) { - common_var_sequence_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_sequence, member_flags_var_sequence_sequence, type_ids_SequenceSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_sequence = "var_sequence_sequence"; @@ -4810,32 +2036,26 @@ void register_SequenceSequence_type_identifier( } CompleteStructType struct_type_SequenceSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceSequence, header_SequenceSequence, member_seq_SequenceSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceSequence, type_name_SequenceSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceSequence, type_name_SequenceSequence.to_string(), type_ids_SequenceSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceSequence already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceSequence", type_ids_SequenceSequence); - if (return_code_SequenceSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceMap) { + + ReturnCode_t return_code_SequenceMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceMap", type_ids_SequenceMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceMap) { - StructTypeFlag struct_flags_SequenceMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceMap; - TypeIdentifierPair type_ids_SequenceMap; QualifiedTypeName type_name_SequenceMap = "SequenceMap"; eprosima::fastcdr::optional type_ann_builtin_SequenceMap; eprosima::fastcdr::optional ann_custom_SequenceMap; @@ -4844,289 +2064,31 @@ void register_SequenceMap_type_identifier( header_SequenceMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceMap); CompleteStructMemberSeq member_seq_SequenceMap; { - return_code_SequenceMap = + TypeIdentifierPair type_ids_var_sequence_map; + ReturnCode_t return_code_var_sequence_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_SequenceMap); + "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_sequence_map); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_map) { - return_code_SequenceMap = + return_code_var_sequence_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_SequenceMap); - - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_map_helper = 0; - QualifiedTypeName type_name_Inner_alias_map_helper = "Inner_alias_map_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_map_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_map_helper; - CompleteTypeDetail detail_Inner_alias_map_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string()); - CompleteAliasHeader header_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_map_helper); - AliasMemberFlag related_flags_Inner_alias_map_helper = 0; - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_SequenceMap); - - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceMap); - - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceMap.type_identifier1()._d() || TK_NONE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_SequenceMap); + "Inner_alias_map_helper", type_ids_var_sequence_map); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceMap.type_identifier1()._d() || TK_NONE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_SequenceMap); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_map_helper; - if (EK_COMPLETE == type_ids_SequenceMap.type_identifier1()._d() || TK_NONE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_SequenceMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_map_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_map_helper, type_ids_SequenceMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_map_helper; - ann_custom_Inner_alias_map_helper.reset(); - CompleteAliasBody body_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_map_helper, member_ann_builtin_Inner_alias_map_helper, ann_custom_Inner_alias_map_helper); - CompleteAliasType alias_type_Inner_alias_map_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_map_helper, header_Inner_alias_map_helper, body_Inner_alias_map_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_map_helper, type_name_Inner_alias_map_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_map_helper", type_ids_SequenceMap); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_map_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceMap.type_identifier1()._d() || TK_NONE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_map) { - element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier1()); + ::register_Inner_alias_map_helper_type_identifier(type_ids_var_sequence_map); } - else if (EK_COMPLETE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_map, element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded_ec) { - element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded = new TypeIdentifier(type_ids_SequenceMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceMap.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_map.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded = EK_BOTH; } @@ -5137,68 +2099,21 @@ void register_SequenceMap_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_var_sequence_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded", type_ids_SequenceMap); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_map_int32_t_int32_t_0_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_map; MemberId member_id_var_sequence_map = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceMap.type_identifier1()._d() || TK_NONE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_map = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_map, member_flags_var_sequence_map, type_ids_SequenceMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_map = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_map, member_flags_var_sequence_map, type_ids_SequenceMap.type_identifier2()); - } - else + bool common_var_sequence_map_ec {false}; + CommonStructMember common_var_sequence_map {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_map, member_flags_var_sequence_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_map, common_var_sequence_map_ec))}; + if (!common_var_sequence_map_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_map member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_map = "var_sequence_map"; @@ -5210,32 +2125,26 @@ void register_SequenceMap_type_identifier( } CompleteStructType struct_type_SequenceMap = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceMap, header_SequenceMap, member_seq_SequenceMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceMap, type_name_SequenceMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceMap, type_name_SequenceMap.to_string(), type_ids_SequenceMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceMap already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceMap", type_ids_SequenceMap); - if (return_code_SequenceMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceUnion) { + + ReturnCode_t return_code_SequenceUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceUnion", type_ids_SequenceUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceUnion) { - StructTypeFlag struct_flags_SequenceUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceUnion; - TypeIdentifierPair type_ids_SequenceUnion; QualifiedTypeName type_name_SequenceUnion = "SequenceUnion"; eprosima::fastcdr::optional type_ann_builtin_SequenceUnion; eprosima::fastcdr::optional ann_custom_SequenceUnion; @@ -5244,346 +2153,31 @@ void register_SequenceUnion_type_identifier( header_SequenceUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceUnion); CompleteStructMemberSeq member_seq_SequenceUnion; { - return_code_SequenceUnion = + TypeIdentifierPair type_ids_var_sequence_union; + ReturnCode_t return_code_var_sequence_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerUnionHelper_unbounded", type_ids_SequenceUnion); + "anonymous_sequence_InnerUnionHelper_unbounded", type_ids_var_sequence_union); - if (return_code_SequenceUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_union) { - return_code_SequenceUnion = + return_code_var_sequence_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_SequenceUnion); + "InnerUnionHelper", type_ids_var_sequence_union); - if (return_code_SequenceUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SequenceUnion = return_code_InnerUnionHelper; - type_ids_SequenceUnion = type_ids_InnerUnionHelper; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerUnionHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1()._d() || TK_NONE == type_ids_SequenceUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_SequenceUnion.type_identifier1()); + ::register_InnerUnionHelper_type_identifier(type_ids_var_sequence_union); } - else if (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_InnerUnionHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerUnionHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_union, element_identifier_anonymous_sequence_InnerUnionHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerUnionHelper_unbounded_ec) { - element_identifier_anonymous_sequence_InnerUnionHelper_unbounded = new TypeIdentifier(type_ids_SequenceUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerUnionHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceUnion.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_union.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerUnionHelper_unbounded = EK_BOTH; } @@ -5594,68 +2188,21 @@ void register_SequenceUnion_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerUnionHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerUnionHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerUnionHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerUnionHelper_unbounded", type_ids_var_sequence_union)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerUnionHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerUnionHelper_unbounded", type_ids_SequenceUnion); - if (return_code_SequenceUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerUnionHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_union; MemberId member_id_var_sequence_union = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1()._d() || TK_NONE == type_ids_SequenceUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_union = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_union, member_flags_var_sequence_union, type_ids_SequenceUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_union = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_union, member_flags_var_sequence_union, type_ids_SequenceUnion.type_identifier2()); - } - else + bool common_var_sequence_union_ec {false}; + CommonStructMember common_var_sequence_union {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_union, member_flags_var_sequence_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_union, common_var_sequence_union_ec))}; + if (!common_var_sequence_union_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_union member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_union = "var_sequence_union"; @@ -5667,32 +2214,26 @@ void register_SequenceUnion_type_identifier( } CompleteStructType struct_type_SequenceUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceUnion, header_SequenceUnion, member_seq_SequenceUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceUnion, type_name_SequenceUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceUnion, type_name_SequenceUnion.to_string(), type_ids_SequenceUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceUnion already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceUnion", type_ids_SequenceUnion); - if (return_code_SequenceUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceStructure) { + + ReturnCode_t return_code_SequenceStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceStructure", type_ids_SequenceStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceStructure) { - StructTypeFlag struct_flags_SequenceStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceStructure; - TypeIdentifierPair type_ids_SequenceStructure; QualifiedTypeName type_name_SequenceStructure = "SequenceStructure"; eprosima::fastcdr::optional type_ann_builtin_SequenceStructure; eprosima::fastcdr::optional ann_custom_SequenceStructure; @@ -5701,236 +2242,31 @@ void register_SequenceStructure_type_identifier( header_SequenceStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceStructure); CompleteStructMemberSeq member_seq_SequenceStructure; { - return_code_SequenceStructure = + TypeIdentifierPair type_ids_var_sequence_structure; + ReturnCode_t return_code_var_sequence_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerStructureHelper_unbounded", type_ids_SequenceStructure); + "anonymous_sequence_InnerStructureHelper_unbounded", type_ids_var_sequence_structure); - if (return_code_SequenceStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_structure) { - return_code_SequenceStructure = + return_code_var_sequence_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_SequenceStructure); - - if (return_code_SequenceStructure != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); + "InnerStructureHelper", type_ids_var_sequence_structure); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_SequenceStructure = return_code_InnerStructureHelper; - type_ids_SequenceStructure = type_ids_InnerStructureHelper; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerStructureHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1()._d() || TK_NONE == type_ids_SequenceStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_structure) { - element_identifier_anonymous_sequence_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_SequenceStructure.type_identifier1()); + ::register_InnerStructureHelper_type_identifier(type_ids_var_sequence_structure); } - else if (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_InnerStructureHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerStructureHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_structure, element_identifier_anonymous_sequence_InnerStructureHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerStructureHelper_unbounded_ec) { - element_identifier_anonymous_sequence_InnerStructureHelper_unbounded = new TypeIdentifier(type_ids_SequenceStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerStructureHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceStructure.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_structure.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerStructureHelper_unbounded = EK_BOTH; } @@ -5941,68 +2277,21 @@ void register_SequenceStructure_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerStructureHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerStructureHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerStructureHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerStructureHelper_unbounded", type_ids_var_sequence_structure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerStructureHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerStructureHelper_unbounded", type_ids_SequenceStructure); - if (return_code_SequenceStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerStructureHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_structure; MemberId member_id_var_sequence_structure = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1()._d() || TK_NONE == type_ids_SequenceStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_structure_ec {false}; + CommonStructMember common_var_sequence_structure {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_structure, member_flags_var_sequence_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_structure, common_var_sequence_structure_ec))}; + if (!common_var_sequence_structure_ec) { - common_var_sequence_structure = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_structure, member_flags_var_sequence_structure, type_ids_SequenceStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_structure = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_structure, member_flags_var_sequence_structure, type_ids_SequenceStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_structure = "var_sequence_structure"; @@ -6014,32 +2303,26 @@ void register_SequenceStructure_type_identifier( } CompleteStructType struct_type_SequenceStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceStructure, header_SequenceStructure, member_seq_SequenceStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceStructure, type_name_SequenceStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceStructure, type_name_SequenceStructure.to_string(), type_ids_SequenceStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceStructure already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceStructure", type_ids_SequenceStructure); - if (return_code_SequenceStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SequenceBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SequenceBitset) { + + ReturnCode_t return_code_SequenceBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SequenceBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SequenceBitset", type_ids_SequenceBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SequenceBitset) { - StructTypeFlag struct_flags_SequenceBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SequenceBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SequenceBitset; - TypeIdentifierPair type_ids_SequenceBitset; QualifiedTypeName type_name_SequenceBitset = "SequenceBitset"; eprosima::fastcdr::optional type_ann_builtin_SequenceBitset; eprosima::fastcdr::optional ann_custom_SequenceBitset; @@ -6048,141 +2331,31 @@ void register_SequenceBitset_type_identifier( header_SequenceBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SequenceBitset); CompleteStructMemberSeq member_seq_SequenceBitset; { - return_code_SequenceBitset = + TypeIdentifierPair type_ids_var_sequence_bitset; + ReturnCode_t return_code_var_sequence_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerBitsetHelper_unbounded", type_ids_SequenceBitset); + "anonymous_sequence_InnerBitsetHelper_unbounded", type_ids_var_sequence_bitset); - if (return_code_SequenceBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bitset) { - return_code_SequenceBitset = + return_code_var_sequence_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_SequenceBitset); + "InnerBitsetHelper", type_ids_var_sequence_bitset); - if (return_code_SequenceBitset != eprosima::fastdds::dds::RETCODE_OK) - { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_SequenceBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_SequenceBitset); - if (return_code_SequenceBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - TypeIdentifier* element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1()._d() || TK_NONE == type_ids_SequenceBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_bitset) { - element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_SequenceBitset.type_identifier1()); + ::register_InnerBitsetHelper_type_identifier(type_ids_var_sequence_bitset); } - else if (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bitset, element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded_ec) { - element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded = new TypeIdentifier(type_ids_SequenceBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_InnerBitsetHelper_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_SequenceBitset.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_bitset.type_identifier2()._d()) { equiv_kind_anonymous_sequence_InnerBitsetHelper_unbounded = EK_BOTH; } @@ -6193,68 +2366,21 @@ void register_SequenceBitset_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_InnerBitsetHelper_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_InnerBitsetHelper_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerBitsetHelper_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_InnerBitsetHelper_unbounded", type_ids_var_sequence_bitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_InnerBitsetHelper_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_SequenceBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_InnerBitsetHelper_unbounded", type_ids_SequenceBitset); - if (return_code_SequenceBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_InnerBitsetHelper_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_bitset; MemberId member_id_var_sequence_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1()._d() || TK_NONE == type_ids_SequenceBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_bitset_ec {false}; + CommonStructMember common_var_sequence_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitset, member_flags_var_sequence_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_bitset, common_var_sequence_bitset_ec))}; + if (!common_var_sequence_bitset_ec) { - common_var_sequence_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitset, member_flags_var_sequence_bitset, type_ids_SequenceBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SequenceBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SequenceBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SequenceBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_bitset, member_flags_var_sequence_bitset, type_ids_SequenceBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_bitset = "var_sequence_bitset"; @@ -6266,32 +2392,26 @@ void register_SequenceBitset_type_identifier( } CompleteStructType struct_type_SequenceBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_SequenceBitset, header_SequenceBitset, member_seq_SequenceBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBitset, type_name_SequenceBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SequenceBitset, type_name_SequenceBitset.to_string(), type_ids_SequenceBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SequenceBitset already registered in TypeObjectRegistry for a different type."); } - return_code_SequenceBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SequenceBitset", type_ids_SequenceBitset); - if (return_code_SequenceBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SequenceBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedSmallSequences_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedSmallSequences) { + + ReturnCode_t return_code_BoundedSmallSequences {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedSmallSequences = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedSmallSequences", type_ids_BoundedSmallSequences); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedSmallSequences) { - StructTypeFlag struct_flags_BoundedSmallSequences = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedSmallSequences = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedSmallSequences; - TypeIdentifierPair type_ids_BoundedSmallSequences; QualifiedTypeName type_name_BoundedSmallSequences = "BoundedSmallSequences"; eprosima::fastcdr::optional type_ann_builtin_BoundedSmallSequences; eprosima::fastcdr::optional ann_custom_BoundedSmallSequences; @@ -6300,69 +2420,33 @@ void register_BoundedSmallSequences_type_identifier( header_BoundedSmallSequences = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedSmallSequences); CompleteStructMemberSeq member_seq_BoundedSmallSequences; { - return_code_BoundedSmallSequences = + TypeIdentifierPair type_ids_var_sequence_small; + ReturnCode_t return_code_var_sequence_small {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_small = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_1", type_ids_BoundedSmallSequences); + "anonymous_sequence_int16_t_1", type_ids_var_sequence_small); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_small) { - return_code_BoundedSmallSequences = + return_code_var_sequence_small = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_BoundedSmallSequences); + "_int16_t", type_ids_var_sequence_small); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_small) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_1 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_1 = new TypeIdentifier(type_ids_BoundedSmallSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_1 = new TypeIdentifier(type_ids_BoundedSmallSequences.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_1_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_1 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_small, element_identifier_anonymous_sequence_int16_t_1_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_1_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_1 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_small.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_1 = EK_BOTH; } @@ -6373,68 +2457,21 @@ void register_BoundedSmallSequences_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_1, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_1)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_1")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_1", type_ids_var_sequence_small)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_1", type_ids_BoundedSmallSequences); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_1: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_small = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_small = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_small; MemberId member_id_var_sequence_small = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_small = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_small, member_flags_var_sequence_small, type_ids_BoundedSmallSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_small = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_small, member_flags_var_sequence_small, type_ids_BoundedSmallSequences.type_identifier2()); - } - else + bool common_var_sequence_small_ec {false}; + CommonStructMember common_var_sequence_small {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_small, member_flags_var_sequence_small, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_small, common_var_sequence_small_ec))}; + if (!common_var_sequence_small_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_small member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_small member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_small = "var_sequence_small"; @@ -6445,86 +2482,41 @@ void register_BoundedSmallSequences_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedSmallSequences, member_var_sequence_small); } { - return_code_BoundedSmallSequences = + TypeIdentifierPair type_ids_var_unbounded_string_small_bounded_sequence; + ReturnCode_t return_code_var_unbounded_string_small_bounded_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_unbounded_string_small_bounded_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_5", type_ids_BoundedSmallSequences); + "anonymous_sequence_anonymous_string_unbounded_5", type_ids_var_unbounded_string_small_bounded_sequence); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_small_bounded_sequence) { - return_code_BoundedSmallSequences = + return_code_var_unbounded_string_small_bounded_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallSequences); + "anonymous_string_unbounded", type_ids_var_unbounded_string_small_bounded_sequence); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_small_bounded_sequence) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_unbounded_string_small_bounded_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedSmallSequences); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_small_bounded_sequence, element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec) { - element_identifier_anonymous_sequence_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_BoundedSmallSequences.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_unbounded_5 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d()) + if (TK_NONE == type_ids_var_unbounded_string_small_bounded_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_unbounded_5 = EK_BOTH; } @@ -6535,68 +2527,21 @@ void register_BoundedSmallSequences_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_string_unbounded_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_unbounded_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_5", type_ids_var_unbounded_string_small_bounded_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_unbounded_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedSmallSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_5", type_ids_BoundedSmallSequences); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_unbounded_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_unbounded_string_small_bounded_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_unbounded_string_small_bounded_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_unbounded_string_small_bounded_sequence; MemberId member_id_var_unbounded_string_small_bounded_sequence = 0x00000001; - if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_small_bounded_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_small_bounded_sequence, member_flags_var_unbounded_string_small_bounded_sequence, type_ids_BoundedSmallSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedSmallSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedSmallSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_small_bounded_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_small_bounded_sequence, member_flags_var_unbounded_string_small_bounded_sequence, type_ids_BoundedSmallSequences.type_identifier2()); - } - else + bool common_var_unbounded_string_small_bounded_sequence_ec {false}; + CommonStructMember common_var_unbounded_string_small_bounded_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_small_bounded_sequence, member_flags_var_unbounded_string_small_bounded_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_small_bounded_sequence, common_var_unbounded_string_small_bounded_sequence_ec))}; + if (!common_var_unbounded_string_small_bounded_sequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_unbounded_string_small_bounded_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_unbounded_string_small_bounded_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_unbounded_string_small_bounded_sequence = "var_unbounded_string_small_bounded_sequence"; @@ -6608,32 +2553,26 @@ void register_BoundedSmallSequences_type_identifier( } CompleteStructType struct_type_BoundedSmallSequences = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedSmallSequences, header_BoundedSmallSequences, member_seq_BoundedSmallSequences); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallSequences, type_name_BoundedSmallSequences.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedSmallSequences, type_name_BoundedSmallSequences.to_string(), type_ids_BoundedSmallSequences)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedSmallSequences already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedSmallSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedSmallSequences", type_ids_BoundedSmallSequences); - if (return_code_BoundedSmallSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedSmallSequences: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_BoundedBigSequences_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_BoundedBigSequences) { + + ReturnCode_t return_code_BoundedBigSequences {eprosima::fastdds::dds::RETCODE_OK}; + return_code_BoundedBigSequences = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "BoundedBigSequences", type_ids_BoundedBigSequences); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_BoundedBigSequences) { - StructTypeFlag struct_flags_BoundedBigSequences = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_BoundedBigSequences = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_BoundedBigSequences; - TypeIdentifierPair type_ids_BoundedBigSequences; QualifiedTypeName type_name_BoundedBigSequences = "BoundedBigSequences"; eprosima::fastcdr::optional type_ann_builtin_BoundedBigSequences; eprosima::fastcdr::optional ann_custom_BoundedBigSequences; @@ -6642,69 +2581,33 @@ void register_BoundedBigSequences_type_identifier( header_BoundedBigSequences = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_BoundedBigSequences); CompleteStructMemberSeq member_seq_BoundedBigSequences; { - return_code_BoundedBigSequences = + TypeIdentifierPair type_ids_var_sequence_big; + ReturnCode_t return_code_var_sequence_big {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence_big = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_41925", type_ids_BoundedBigSequences); + "anonymous_sequence_int16_t_41925", type_ids_var_sequence_big); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_big) { - return_code_BoundedBigSequences = + return_code_var_sequence_big = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_BoundedBigSequences); + "_int16_t", type_ids_var_sequence_big); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence_big) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_41925 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_41925 = new TypeIdentifier(type_ids_BoundedBigSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_41925 = new TypeIdentifier(type_ids_BoundedBigSequences.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_41925_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_41925 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_big, element_identifier_anonymous_sequence_int16_t_41925_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_41925_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_41925 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence_big.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_41925 = EK_BOTH; } @@ -6715,68 +2618,21 @@ void register_BoundedBigSequences_type_identifier( PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_41925, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_41925)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_41925")) + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_41925", type_ids_var_sequence_big)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_41925 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedBigSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_41925", type_ids_BoundedBigSequences); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_41925: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence_big = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence_big = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence_big; MemberId member_id_var_sequence_big = 0x00000000; - if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence_big = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_big, member_flags_var_sequence_big, type_ids_BoundedBigSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_sequence_big_ec {false}; + CommonStructMember common_var_sequence_big {TypeObjectUtils::build_common_struct_member(member_id_var_sequence_big, member_flags_var_sequence_big, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence_big, common_var_sequence_big_ec))}; + if (!common_var_sequence_big_ec) { - common_var_sequence_big = TypeObjectUtils::build_common_struct_member(member_id_var_sequence_big, member_flags_var_sequence_big, type_ids_BoundedBigSequences.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence_big member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence_big member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence_big = "var_sequence_big"; @@ -6787,86 +2643,41 @@ void register_BoundedBigSequences_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_BoundedBigSequences, member_var_sequence_big); } { - return_code_BoundedBigSequences = + TypeIdentifierPair type_ids_var_unbounded_string_large_bounded_sequence; + ReturnCode_t return_code_var_unbounded_string_large_bounded_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_unbounded_string_large_bounded_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_256", type_ids_BoundedBigSequences); + "anonymous_sequence_anonymous_string_unbounded_256", type_ids_var_unbounded_string_large_bounded_sequence); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_large_bounded_sequence) { - return_code_BoundedBigSequences = + return_code_var_unbounded_string_large_bounded_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedBigSequences); + "anonymous_string_unbounded", type_ids_var_unbounded_string_large_bounded_sequence); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_unbounded_string_large_bounded_sequence) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_unbounded_string_large_bounded_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedBigSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_BoundedBigSequences); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_256 {nullptr}; - if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_anonymous_string_unbounded_256_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_256 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_large_bounded_sequence, element_identifier_anonymous_sequence_anonymous_string_unbounded_256_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_unbounded_256_ec) { - element_identifier_anonymous_sequence_anonymous_string_unbounded_256 = new TypeIdentifier(type_ids_BoundedBigSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_256 = new TypeIdentifier(type_ids_BoundedBigSequences.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_unbounded_256 = EK_COMPLETE; - if (TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d()) + if (TK_NONE == type_ids_var_unbounded_string_large_bounded_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_unbounded_256 = EK_BOTH; } @@ -6877,68 +2688,21 @@ void register_BoundedBigSequences_type_identifier( PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_anonymous_string_unbounded_256, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_unbounded_256)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_anonymous_string_unbounded_256")) + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_anonymous_string_unbounded_256", type_ids_var_unbounded_string_large_bounded_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_unbounded_256 already registered in TypeObjectRegistry for a different type."); } } - return_code_BoundedBigSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_256", type_ids_BoundedBigSequences); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_unbounded_256: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_unbounded_string_large_bounded_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_unbounded_string_large_bounded_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_unbounded_string_large_bounded_sequence; MemberId member_id_var_unbounded_string_large_bounded_sequence = 0x00000001; - if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1()._d() || TK_NONE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier1()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_unbounded_string_large_bounded_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_large_bounded_sequence, member_flags_var_unbounded_string_large_bounded_sequence, type_ids_BoundedBigSequences.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_BoundedBigSequences.type_identifier2()._d() && - (EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_BoundedBigSequences.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_unbounded_string_large_bounded_sequence_ec {false}; + CommonStructMember common_var_unbounded_string_large_bounded_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_large_bounded_sequence, member_flags_var_unbounded_string_large_bounded_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_unbounded_string_large_bounded_sequence, common_var_unbounded_string_large_bounded_sequence_ec))}; + if (!common_var_unbounded_string_large_bounded_sequence_ec) { - common_var_unbounded_string_large_bounded_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_unbounded_string_large_bounded_sequence, member_flags_var_unbounded_string_large_bounded_sequence, type_ids_BoundedBigSequences.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_unbounded_string_large_bounded_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_unbounded_string_large_bounded_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_unbounded_string_large_bounded_sequence = "var_unbounded_string_large_bounded_sequence"; @@ -6950,21 +2714,11 @@ void register_BoundedBigSequences_type_identifier( } CompleteStructType struct_type_BoundedBigSequences = TypeObjectUtils::build_complete_struct_type(struct_flags_BoundedBigSequences, header_BoundedBigSequences, member_seq_BoundedBigSequences); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBigSequences, type_name_BoundedBigSequences.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_BoundedBigSequences, type_name_BoundedBigSequences.to_string(), type_ids_BoundedBigSequences)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "BoundedBigSequences already registered in TypeObjectRegistry for a different type."); } - return_code_BoundedBigSequences = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "BoundedBigSequences", type_ids_BoundedBigSequences); - if (return_code_BoundedBigSequences != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "BoundedBigSequences: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/sequencesTypeObjectSupport.hpp b/test/dds-types-test/sequencesTypeObjectSupport.hpp index 58e3cacff30..d1cb66830c5 100644 --- a/test/dds-types-test/sequencesTypeObjectSupport.hpp +++ b/test/dds-types-test/sequencesTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_sequences_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_sequences_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_SequenceShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_SequenceUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_SequenceLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_SequenceULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_SequenceLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_SequenceULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_SequenceFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_SequenceDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_SequenceLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_SequenceBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_SequenceOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_SequenceChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_SequenceWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_SequenceString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceStringBounded related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_SequenceWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceStringBounded_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceWStringBounded related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_SequenceStringBounded_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceWStringBounded_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_SequenceWStringBounded_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_SequenceEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_SequenceBitMask_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceShortArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_SequenceAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceShortArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_SequenceShortArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_SequenceSequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_SequenceMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_SequenceUnion_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SequenceBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_SequenceStructure_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SequenceBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedSmallSequences related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_SequenceBitset_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedSmallSequences_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register BoundedBigSequences related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,7 +373,7 @@ eProsima_user_DllExport void register_BoundedSmallSequences_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_BoundedBigSequences_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/stringsPubSubTypes.cxx b/test/dds-types-test/stringsPubSubTypes.cxx index 1dc4e2dc3de..627f5914967 100644 --- a/test/dds-types-test/stringsPubSubTypes.cxx +++ b/test/dds-types-test/stringsPubSubTypes.cxx @@ -219,9 +219,9 @@ bool StringStructPubSubType::getKey( return true; } -void StringStructPubSubType::register_type_object_representation() const +void StringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_StringStruct_type_identifier(type_identifiers_); } WStringStructPubSubType::WStringStructPubSubType() @@ -412,9 +412,9 @@ bool WStringStructPubSubType::getKey( return true; } -void WStringStructPubSubType::register_type_object_representation() const +void WStringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_WStringStruct_type_identifier(type_identifiers_); } SmallStringStructPubSubType::SmallStringStructPubSubType() @@ -605,9 +605,9 @@ bool SmallStringStructPubSubType::getKey( return true; } -void SmallStringStructPubSubType::register_type_object_representation() const +void SmallStringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_SmallStringStruct_type_identifier(type_identifiers_); } SmallWStringStructPubSubType::SmallWStringStructPubSubType() @@ -798,9 +798,9 @@ bool SmallWStringStructPubSubType::getKey( return true; } -void SmallWStringStructPubSubType::register_type_object_representation() const +void SmallWStringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_SmallWStringStruct_type_identifier(type_identifiers_); } LargeStringStructPubSubType::LargeStringStructPubSubType() @@ -991,9 +991,9 @@ bool LargeStringStructPubSubType::getKey( return true; } -void LargeStringStructPubSubType::register_type_object_representation() const +void LargeStringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_LargeStringStruct_type_identifier(type_identifiers_); } LargeWStringStructPubSubType::LargeWStringStructPubSubType() @@ -1184,9 +1184,9 @@ bool LargeWStringStructPubSubType::getKey( return true; } -void LargeWStringStructPubSubType::register_type_object_representation() const +void LargeWStringStructPubSubType::register_type_object_representation() { - register_strings_type_objects(); + register_LargeWStringStruct_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/stringsPubSubTypes.h b/test/dds-types-test/stringsPubSubTypes.h index f1d64e39a5f..cc1df4c4dbe 100644 --- a/test/dds-types-test/stringsPubSubTypes.h +++ b/test/dds-types-test/stringsPubSubTypes.h @@ -89,7 +89,7 @@ class StringStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -180,7 +180,7 @@ class WStringStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -271,7 +271,7 @@ class SmallStringStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -362,7 +362,7 @@ class SmallWStringStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -453,7 +453,7 @@ class LargeStringStructPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -544,7 +544,7 @@ class LargeWStringStructPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/stringsTypeObjectSupport.cxx b/test/dds-types-test/stringsTypeObjectSupport.cxx index bc26166a67f..f6582d46186 100644 --- a/test/dds-types-test/stringsTypeObjectSupport.cxx +++ b/test/dds-types-test/stringsTypeObjectSupport.cxx @@ -38,36 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_strings_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_StringStruct_type_identifier(type_id); - - register_WStringStruct_type_identifier(type_id); - - register_SmallStringStruct_type_identifier(type_id); - - register_SmallWStringStruct_type_identifier(type_id); - - register_LargeStringStruct_type_identifier(type_id); - - register_LargeWStringStruct_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StringStruct) { + + ReturnCode_t return_code_StringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StringStruct", type_ids_StringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StringStruct) { - StructTypeFlag struct_flags_StringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StringStruct; - TypeIdentifierPair type_ids_StringStruct; QualifiedTypeName type_name_StringStruct = "StringStruct"; eprosima::fastcdr::optional type_ann_builtin_StringStruct; eprosima::fastcdr::optional ann_custom_StringStruct; @@ -76,79 +59,34 @@ void register_StringStruct_type_identifier( header_StringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StringStruct); CompleteStructMemberSeq member_seq_StringStruct; { - return_code_StringStruct = + TypeIdentifierPair type_ids_var_string8; + ReturnCode_t return_code_var_string8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_string8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StringStruct); + "anonymous_string_unbounded", type_ids_var_string8); - if (return_code_StringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_string8) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_string8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StringStruct); - if (return_code_StringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_string8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_string8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_string8; MemberId member_id_var_string8 = 0x00000000; - if (EK_COMPLETE == type_ids_StringStruct.type_identifier1()._d() || TK_NONE == type_ids_StringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_string8_ec {false}; + CommonStructMember common_var_string8 {TypeObjectUtils::build_common_struct_member(member_id_var_string8, member_flags_var_string8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_string8, common_var_string8_ec))}; + if (!common_var_string8_ec) { - common_var_string8 = TypeObjectUtils::build_common_struct_member(member_id_var_string8, member_flags_var_string8, type_ids_StringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_StringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_string8 = TypeObjectUtils::build_common_struct_member(member_id_var_string8, member_flags_var_string8, type_ids_StringStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_string8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_string8 member TypeIdentifier inconsistent."); return; } MemberName name_var_string8 = "var_string8"; @@ -160,32 +98,26 @@ void register_StringStruct_type_identifier( } CompleteStructType struct_type_StringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_StringStruct, header_StringStruct, member_seq_StringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StringStruct, type_name_StringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StringStruct, type_name_StringStruct.to_string(), type_ids_StringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_StringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StringStruct", type_ids_StringStruct); - if (return_code_StringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_WStringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_WStringStruct) { + + ReturnCode_t return_code_WStringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_WStringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "WStringStruct", type_ids_WStringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_WStringStruct) { - StructTypeFlag struct_flags_WStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_WStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_WStringStruct; - TypeIdentifierPair type_ids_WStringStruct; QualifiedTypeName type_name_WStringStruct = "WStringStruct"; eprosima::fastcdr::optional type_ann_builtin_WStringStruct; eprosima::fastcdr::optional ann_custom_WStringStruct; @@ -194,79 +126,34 @@ void register_WStringStruct_type_identifier( header_WStringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_WStringStruct); CompleteStructMemberSeq member_seq_WStringStruct; { - return_code_WStringStruct = + TypeIdentifierPair type_ids_var_string16; + ReturnCode_t return_code_var_string16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_string16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_WStringStruct); + "anonymous_wstring_unbounded", type_ids_var_string16); - if (return_code_WStringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_string16) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_string16, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_WStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_WStringStruct); - if (return_code_WStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_string16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_string16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_string16; MemberId member_id_var_string16 = 0x00000000; - if (EK_COMPLETE == type_ids_WStringStruct.type_identifier1()._d() || TK_NONE == type_ids_WStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WStringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_WStringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WStringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_string16 = TypeObjectUtils::build_common_struct_member(member_id_var_string16, member_flags_var_string16, type_ids_WStringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_WStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_WStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_WStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_WStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_WStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_WStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WStringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_WStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_WStringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_WStringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_string16 = TypeObjectUtils::build_common_struct_member(member_id_var_string16, member_flags_var_string16, type_ids_WStringStruct.type_identifier2()); - } - else + bool common_var_string16_ec {false}; + CommonStructMember common_var_string16 {TypeObjectUtils::build_common_struct_member(member_id_var_string16, member_flags_var_string16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_string16, common_var_string16_ec))}; + if (!common_var_string16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_string16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_string16 member TypeIdentifier inconsistent."); return; } MemberName name_var_string16 = "var_string16"; @@ -278,32 +165,26 @@ void register_WStringStruct_type_identifier( } CompleteStructType struct_type_WStringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_WStringStruct, header_WStringStruct, member_seq_WStringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_WStringStruct, type_name_WStringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_WStringStruct, type_name_WStringStruct.to_string(), type_ids_WStringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "WStringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_WStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "WStringStruct", type_ids_WStringStruct); - if (return_code_WStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "WStringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SmallStringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SmallStringStruct) { + + ReturnCode_t return_code_SmallStringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SmallStringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SmallStringStruct", type_ids_SmallStringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SmallStringStruct) { - StructTypeFlag struct_flags_SmallStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SmallStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SmallStringStruct; - TypeIdentifierPair type_ids_SmallStringStruct; QualifiedTypeName type_name_SmallStringStruct = "SmallStringStruct"; eprosima::fastcdr::optional type_ann_builtin_SmallStringStruct; eprosima::fastcdr::optional ann_custom_SmallStringStruct; @@ -312,79 +193,34 @@ void register_SmallStringStruct_type_identifier( header_SmallStringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SmallStringStruct); CompleteStructMemberSeq member_seq_SmallStringStruct; { - return_code_SmallStringStruct = + TypeIdentifierPair type_ids_var_small_string; + ReturnCode_t return_code_var_small_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_small_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_SmallStringStruct); + "anonymous_string_1", type_ids_var_small_string); - if (return_code_SmallStringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_small_string) { { SBound bound = static_cast(1); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_1")) + "anonymous_string_1", type_ids_var_small_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_SmallStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_1", type_ids_SmallStringStruct); - if (return_code_SmallStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_1: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_small_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_small_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_small_string; MemberId member_id_var_small_string = 0x00000000; - if (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1()._d() || TK_NONE == type_ids_SmallStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SmallStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SmallStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SmallStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SmallStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SmallStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SmallStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_small_string = TypeObjectUtils::build_common_struct_member(member_id_var_small_string, member_flags_var_small_string, type_ids_SmallStringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SmallStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SmallStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SmallStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SmallStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SmallStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SmallStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallStringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_small_string_ec {false}; + CommonStructMember common_var_small_string {TypeObjectUtils::build_common_struct_member(member_id_var_small_string, member_flags_var_small_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_small_string, common_var_small_string_ec))}; + if (!common_var_small_string_ec) { - common_var_small_string = TypeObjectUtils::build_common_struct_member(member_id_var_small_string, member_flags_var_small_string, type_ids_SmallStringStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_small_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_small_string member TypeIdentifier inconsistent."); return; } MemberName name_var_small_string = "var_small_string"; @@ -396,32 +232,26 @@ void register_SmallStringStruct_type_identifier( } CompleteStructType struct_type_SmallStringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_SmallStringStruct, header_SmallStringStruct, member_seq_SmallStringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SmallStringStruct, type_name_SmallStringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SmallStringStruct, type_name_SmallStringStruct.to_string(), type_ids_SmallStringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SmallStringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_SmallStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SmallStringStruct", type_ids_SmallStringStruct); - if (return_code_SmallStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SmallStringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_SmallWStringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_SmallWStringStruct) { + + ReturnCode_t return_code_SmallWStringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_SmallWStringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "SmallWStringStruct", type_ids_SmallWStringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_SmallWStringStruct) { - StructTypeFlag struct_flags_SmallWStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_SmallWStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_SmallWStringStruct; - TypeIdentifierPair type_ids_SmallWStringStruct; QualifiedTypeName type_name_SmallWStringStruct = "SmallWStringStruct"; eprosima::fastcdr::optional type_ann_builtin_SmallWStringStruct; eprosima::fastcdr::optional ann_custom_SmallWStringStruct; @@ -430,79 +260,34 @@ void register_SmallWStringStruct_type_identifier( header_SmallWStringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_SmallWStringStruct); CompleteStructMemberSeq member_seq_SmallWStringStruct; { - return_code_SmallWStringStruct = + TypeIdentifierPair type_ids_var_small_wstring; + ReturnCode_t return_code_var_small_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_small_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_1", type_ids_SmallWStringStruct); + "anonymous_wstring_1", type_ids_var_small_wstring); - if (return_code_SmallWStringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_small_wstring) { { SBound bound = static_cast(1); StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_1", true)) + "anonymous_wstring_1", type_ids_var_small_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_1 already registered in TypeObjectRegistry for a different type."); } } - return_code_SmallWStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_1", type_ids_SmallWStringStruct); - if (return_code_SmallWStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_1: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_small_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_small_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_small_wstring; MemberId member_id_var_small_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1()._d() || TK_NONE == type_ids_SmallWStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SmallWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SmallWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SmallWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SmallWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SmallWStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SmallWStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_small_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_small_wstring, member_flags_var_small_wstring, type_ids_SmallWStringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_SmallWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_SmallWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_SmallWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_SmallWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_SmallWStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_SmallWStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_SmallWStringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_small_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_small_wstring, member_flags_var_small_wstring, type_ids_SmallWStringStruct.type_identifier2()); - } - else + bool common_var_small_wstring_ec {false}; + CommonStructMember common_var_small_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_small_wstring, member_flags_var_small_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_small_wstring, common_var_small_wstring_ec))}; + if (!common_var_small_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_small_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_small_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_small_wstring = "var_small_wstring"; @@ -514,32 +299,26 @@ void register_SmallWStringStruct_type_identifier( } CompleteStructType struct_type_SmallWStringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_SmallWStringStruct, header_SmallWStringStruct, member_seq_SmallWStringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_SmallWStringStruct, type_name_SmallWStringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_SmallWStringStruct, type_name_SmallWStringStruct.to_string(), type_ids_SmallWStringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "SmallWStringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_SmallWStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "SmallWStringStruct", type_ids_SmallWStringStruct); - if (return_code_SmallWStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "SmallWStringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LargeStringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LargeStringStruct) { + + ReturnCode_t return_code_LargeStringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LargeStringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LargeStringStruct", type_ids_LargeStringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LargeStringStruct) { - StructTypeFlag struct_flags_LargeStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LargeStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LargeStringStruct; - TypeIdentifierPair type_ids_LargeStringStruct; QualifiedTypeName type_name_LargeStringStruct = "LargeStringStruct"; eprosima::fastcdr::optional type_ann_builtin_LargeStringStruct; eprosima::fastcdr::optional ann_custom_LargeStringStruct; @@ -548,79 +327,34 @@ void register_LargeStringStruct_type_identifier( header_LargeStringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LargeStringStruct); CompleteStructMemberSeq member_seq_LargeStringStruct; { - return_code_LargeStringStruct = + TypeIdentifierPair type_ids_var_large_string; + ReturnCode_t return_code_var_large_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_large_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_41925", type_ids_LargeStringStruct); + "anonymous_string_41925", type_ids_var_large_string); - if (return_code_LargeStringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_large_string) { { LBound bound = 41925; StringLTypeDefn string_ldefn = TypeObjectUtils::build_string_l_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_l_string_type_identifier(string_ldefn, - "anonymous_string_41925")) + "anonymous_string_41925", type_ids_var_large_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_41925 already registered in TypeObjectRegistry for a different type."); } } - return_code_LargeStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_41925", type_ids_LargeStringStruct); - if (return_code_LargeStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_41925: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_large_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_large_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_large_string; MemberId member_id_var_large_string = 0x00000000; - if (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1()._d() || TK_NONE == type_ids_LargeStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LargeStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LargeStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LargeStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LargeStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LargeStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LargeStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_large_string_ec {false}; + CommonStructMember common_var_large_string {TypeObjectUtils::build_common_struct_member(member_id_var_large_string, member_flags_var_large_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_large_string, common_var_large_string_ec))}; + if (!common_var_large_string_ec) { - common_var_large_string = TypeObjectUtils::build_common_struct_member(member_id_var_large_string, member_flags_var_large_string, type_ids_LargeStringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LargeStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LargeStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LargeStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LargeStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LargeStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LargeStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeStringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_large_string = TypeObjectUtils::build_common_struct_member(member_id_var_large_string, member_flags_var_large_string, type_ids_LargeStringStruct.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_large_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_large_string member TypeIdentifier inconsistent."); return; } MemberName name_var_large_string = "var_large_string"; @@ -632,32 +366,26 @@ void register_LargeStringStruct_type_identifier( } CompleteStructType struct_type_LargeStringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_LargeStringStruct, header_LargeStringStruct, member_seq_LargeStringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LargeStringStruct, type_name_LargeStringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LargeStringStruct, type_name_LargeStringStruct.to_string(), type_ids_LargeStringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LargeStringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_LargeStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LargeStringStruct", type_ids_LargeStringStruct); - if (return_code_LargeStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LargeStringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_LargeWStringStruct_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_LargeWStringStruct) { + + ReturnCode_t return_code_LargeWStringStruct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_LargeWStringStruct = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "LargeWStringStruct", type_ids_LargeWStringStruct); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_LargeWStringStruct) { - StructTypeFlag struct_flags_LargeWStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_LargeWStringStruct = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_LargeWStringStruct; - TypeIdentifierPair type_ids_LargeWStringStruct; QualifiedTypeName type_name_LargeWStringStruct = "LargeWStringStruct"; eprosima::fastcdr::optional type_ann_builtin_LargeWStringStruct; eprosima::fastcdr::optional ann_custom_LargeWStringStruct; @@ -666,79 +394,34 @@ void register_LargeWStringStruct_type_identifier( header_LargeWStringStruct = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_LargeWStringStruct); CompleteStructMemberSeq member_seq_LargeWStringStruct; { - return_code_LargeWStringStruct = + TypeIdentifierPair type_ids_var_large_wstring; + ReturnCode_t return_code_var_large_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_large_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_41925", type_ids_LargeWStringStruct); + "anonymous_wstring_41925", type_ids_var_large_wstring); - if (return_code_LargeWStringStruct != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_large_wstring) { { LBound bound = 41925; StringLTypeDefn string_ldefn = TypeObjectUtils::build_string_l_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_l_string_type_identifier(string_ldefn, - "anonymous_wstring_41925", true)) + "anonymous_wstring_41925", type_ids_var_large_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_41925 already registered in TypeObjectRegistry for a different type."); } } - return_code_LargeWStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_41925", type_ids_LargeWStringStruct); - if (return_code_LargeWStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_41925: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_large_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_large_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_large_wstring; MemberId member_id_var_large_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1()._d() || TK_NONE == type_ids_LargeWStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LargeWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LargeWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LargeWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LargeWStringStruct.type_identifier1()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LargeWStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LargeWStringStruct.type_identifier1()._d() && - (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_large_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_large_wstring, member_flags_var_large_wstring, type_ids_LargeWStringStruct.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_LargeWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_LargeWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_LargeWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_LargeWStringStruct.type_identifier2()._d() && - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_LargeWStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_LargeWStringStruct.type_identifier2()._d() && - (EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_LargeWStringStruct.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_large_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_large_wstring, member_flags_var_large_wstring, type_ids_LargeWStringStruct.type_identifier2()); - } - else + bool common_var_large_wstring_ec {false}; + CommonStructMember common_var_large_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_large_wstring, member_flags_var_large_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_large_wstring, common_var_large_wstring_ec))}; + if (!common_var_large_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_large_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_large_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_large_wstring = "var_large_wstring"; @@ -750,21 +433,11 @@ void register_LargeWStringStruct_type_identifier( } CompleteStructType struct_type_LargeWStringStruct = TypeObjectUtils::build_complete_struct_type(struct_flags_LargeWStringStruct, header_LargeWStringStruct, member_seq_LargeWStringStruct); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_LargeWStringStruct, type_name_LargeWStringStruct.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_LargeWStringStruct, type_name_LargeWStringStruct.to_string(), type_ids_LargeWStringStruct)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "LargeWStringStruct already registered in TypeObjectRegistry for a different type."); } - return_code_LargeWStringStruct = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "LargeWStringStruct", type_ids_LargeWStringStruct); - if (return_code_LargeWStringStruct != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "LargeWStringStruct: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/stringsTypeObjectSupport.hpp b/test/dds-types-test/stringsTypeObjectSupport.hpp index 0b6f04dbb0a..e8f24054fc1 100644 --- a/test/dds-types-test/stringsTypeObjectSupport.hpp +++ b/test/dds-types-test/stringsTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_strings_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_strings_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register WStringStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +60,7 @@ eProsima_user_DllExport void register_StringStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_WStringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SmallStringStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -77,7 +72,7 @@ eProsima_user_DllExport void register_WStringStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SmallStringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register SmallWStringStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -89,7 +84,7 @@ eProsima_user_DllExport void register_SmallStringStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_SmallWStringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register LargeStringStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -101,7 +96,7 @@ eProsima_user_DllExport void register_SmallWStringStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LargeStringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register LargeWStringStruct related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -113,7 +108,7 @@ eProsima_user_DllExport void register_LargeStringStruct_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_LargeWStringStruct_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/structuresPubSubTypes.cxx b/test/dds-types-test/structuresPubSubTypes.cxx index 57940443974..23e5dcf1f01 100644 --- a/test/dds-types-test/structuresPubSubTypes.cxx +++ b/test/dds-types-test/structuresPubSubTypes.cxx @@ -219,9 +219,9 @@ bool StructShortPubSubType::getKey( return true; } -void StructShortPubSubType::register_type_object_representation() const +void StructShortPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructShort_type_identifier(type_identifiers_); } StructUnsignedShortPubSubType::StructUnsignedShortPubSubType() @@ -412,9 +412,9 @@ bool StructUnsignedShortPubSubType::getKey( return true; } -void StructUnsignedShortPubSubType::register_type_object_representation() const +void StructUnsignedShortPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructUnsignedShort_type_identifier(type_identifiers_); } StructLongPubSubType::StructLongPubSubType() @@ -605,9 +605,9 @@ bool StructLongPubSubType::getKey( return true; } -void StructLongPubSubType::register_type_object_representation() const +void StructLongPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructLong_type_identifier(type_identifiers_); } StructUnsignedLongPubSubType::StructUnsignedLongPubSubType() @@ -798,9 +798,9 @@ bool StructUnsignedLongPubSubType::getKey( return true; } -void StructUnsignedLongPubSubType::register_type_object_representation() const +void StructUnsignedLongPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructUnsignedLong_type_identifier(type_identifiers_); } StructLongLongPubSubType::StructLongLongPubSubType() @@ -991,9 +991,9 @@ bool StructLongLongPubSubType::getKey( return true; } -void StructLongLongPubSubType::register_type_object_representation() const +void StructLongLongPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructLongLong_type_identifier(type_identifiers_); } StructUnsignedLongLongPubSubType::StructUnsignedLongLongPubSubType() @@ -1184,9 +1184,9 @@ bool StructUnsignedLongLongPubSubType::getKey( return true; } -void StructUnsignedLongLongPubSubType::register_type_object_representation() const +void StructUnsignedLongLongPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructUnsignedLongLong_type_identifier(type_identifiers_); } StructFloatPubSubType::StructFloatPubSubType() @@ -1377,9 +1377,9 @@ bool StructFloatPubSubType::getKey( return true; } -void StructFloatPubSubType::register_type_object_representation() const +void StructFloatPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructFloat_type_identifier(type_identifiers_); } StructDoublePubSubType::StructDoublePubSubType() @@ -1570,9 +1570,9 @@ bool StructDoublePubSubType::getKey( return true; } -void StructDoublePubSubType::register_type_object_representation() const +void StructDoublePubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructDouble_type_identifier(type_identifiers_); } StructLongDoublePubSubType::StructLongDoublePubSubType() @@ -1763,9 +1763,9 @@ bool StructLongDoublePubSubType::getKey( return true; } -void StructLongDoublePubSubType::register_type_object_representation() const +void StructLongDoublePubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructLongDouble_type_identifier(type_identifiers_); } StructBooleanPubSubType::StructBooleanPubSubType() @@ -1956,9 +1956,9 @@ bool StructBooleanPubSubType::getKey( return true; } -void StructBooleanPubSubType::register_type_object_representation() const +void StructBooleanPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructBoolean_type_identifier(type_identifiers_); } StructOctetPubSubType::StructOctetPubSubType() @@ -2149,9 +2149,9 @@ bool StructOctetPubSubType::getKey( return true; } -void StructOctetPubSubType::register_type_object_representation() const +void StructOctetPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructOctet_type_identifier(type_identifiers_); } StructChar8PubSubType::StructChar8PubSubType() @@ -2342,9 +2342,9 @@ bool StructChar8PubSubType::getKey( return true; } -void StructChar8PubSubType::register_type_object_representation() const +void StructChar8PubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructChar8_type_identifier(type_identifiers_); } StructChar16PubSubType::StructChar16PubSubType() @@ -2535,9 +2535,9 @@ bool StructChar16PubSubType::getKey( return true; } -void StructChar16PubSubType::register_type_object_representation() const +void StructChar16PubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructChar16_type_identifier(type_identifiers_); } StructStringPubSubType::StructStringPubSubType() @@ -2728,9 +2728,9 @@ bool StructStringPubSubType::getKey( return true; } -void StructStringPubSubType::register_type_object_representation() const +void StructStringPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructString_type_identifier(type_identifiers_); } StructWStringPubSubType::StructWStringPubSubType() @@ -2921,9 +2921,9 @@ bool StructWStringPubSubType::getKey( return true; } -void StructWStringPubSubType::register_type_object_representation() const +void StructWStringPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructWString_type_identifier(type_identifiers_); } StructBoundedStringPubSubType::StructBoundedStringPubSubType() @@ -3114,9 +3114,9 @@ bool StructBoundedStringPubSubType::getKey( return true; } -void StructBoundedStringPubSubType::register_type_object_representation() const +void StructBoundedStringPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructBoundedString_type_identifier(type_identifiers_); } StructBoundedWStringPubSubType::StructBoundedWStringPubSubType() @@ -3307,9 +3307,9 @@ bool StructBoundedWStringPubSubType::getKey( return true; } -void StructBoundedWStringPubSubType::register_type_object_representation() const +void StructBoundedWStringPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructBoundedWString_type_identifier(type_identifiers_); } StructEnumPubSubType::StructEnumPubSubType() @@ -3500,9 +3500,9 @@ bool StructEnumPubSubType::getKey( return true; } -void StructEnumPubSubType::register_type_object_representation() const +void StructEnumPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructEnum_type_identifier(type_identifiers_); } StructBitMaskPubSubType::StructBitMaskPubSubType() @@ -3693,9 +3693,9 @@ bool StructBitMaskPubSubType::getKey( return true; } -void StructBitMaskPubSubType::register_type_object_representation() const +void StructBitMaskPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructBitMask_type_identifier(type_identifiers_); } StructAliasPubSubType::StructAliasPubSubType() @@ -3886,9 +3886,9 @@ bool StructAliasPubSubType::getKey( return true; } -void StructAliasPubSubType::register_type_object_representation() const +void StructAliasPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructAlias_type_identifier(type_identifiers_); } StructShortArrayPubSubType::StructShortArrayPubSubType() @@ -4079,9 +4079,9 @@ bool StructShortArrayPubSubType::getKey( return true; } -void StructShortArrayPubSubType::register_type_object_representation() const +void StructShortArrayPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructShortArray_type_identifier(type_identifiers_); } StructSequencePubSubType::StructSequencePubSubType() @@ -4272,9 +4272,9 @@ bool StructSequencePubSubType::getKey( return true; } -void StructSequencePubSubType::register_type_object_representation() const +void StructSequencePubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructSequence_type_identifier(type_identifiers_); } StructMapPubSubType::StructMapPubSubType() @@ -4465,9 +4465,9 @@ bool StructMapPubSubType::getKey( return true; } -void StructMapPubSubType::register_type_object_representation() const +void StructMapPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructMap_type_identifier(type_identifiers_); } StructUnionPubSubType::StructUnionPubSubType() @@ -4658,9 +4658,9 @@ bool StructUnionPubSubType::getKey( return true; } -void StructUnionPubSubType::register_type_object_representation() const +void StructUnionPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructUnion_type_identifier(type_identifiers_); } StructStructurePubSubType::StructStructurePubSubType() @@ -4851,9 +4851,9 @@ bool StructStructurePubSubType::getKey( return true; } -void StructStructurePubSubType::register_type_object_representation() const +void StructStructurePubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructStructure_type_identifier(type_identifiers_); } StructBitsetPubSubType::StructBitsetPubSubType() @@ -5044,9 +5044,9 @@ bool StructBitsetPubSubType::getKey( return true; } -void StructBitsetPubSubType::register_type_object_representation() const +void StructBitsetPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructBitset_type_identifier(type_identifiers_); } StructEmptyPubSubType::StructEmptyPubSubType() @@ -5237,9 +5237,9 @@ bool StructEmptyPubSubType::getKey( return true; } -void StructEmptyPubSubType::register_type_object_representation() const +void StructEmptyPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_StructEmpty_type_identifier(type_identifiers_); } StructuresPubSubType::StructuresPubSubType() @@ -5430,9 +5430,9 @@ bool StructuresPubSubType::getKey( return true; } -void StructuresPubSubType::register_type_object_representation() const +void StructuresPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_Structures_type_identifier(type_identifiers_); } namespace testing_1 { @@ -5624,9 +5624,9 @@ namespace testing_1 { return true; } - void fooPubSubType::register_type_object_representation() const + void fooPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_foo_type_identifier(type_identifiers_); } } // namespace testing_1 @@ -5820,9 +5820,9 @@ namespace testing_2 { return true; } - void fooPubSubType::register_type_object_representation() const + void fooPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_foo_type_identifier(type_identifiers_); } } // namespace testing_2 @@ -6015,9 +6015,9 @@ bool barPubSubType::getKey( return true; } -void barPubSubType::register_type_object_representation() const +void barPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_bar_type_identifier(type_identifiers_); } root1PubSubType::root1PubSubType() @@ -6208,9 +6208,9 @@ bool root1PubSubType::getKey( return true; } -void root1PubSubType::register_type_object_representation() const +void root1PubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_root1_type_identifier(type_identifiers_); } root2PubSubType::root2PubSubType() @@ -6401,9 +6401,9 @@ bool root2PubSubType::getKey( return true; } -void root2PubSubType::register_type_object_representation() const +void root2PubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_root2_type_identifier(type_identifiers_); } rootPubSubType::rootPubSubType() @@ -6594,9 +6594,9 @@ bool rootPubSubType::getKey( return true; } -void rootPubSubType::register_type_object_representation() const +void rootPubSubType::register_type_object_representation() { - register_structures_type_objects(); + register_root_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/structuresPubSubTypes.h b/test/dds-types-test/structuresPubSubTypes.h index 508374c105e..9567e99cf91 100644 --- a/test/dds-types-test/structuresPubSubTypes.h +++ b/test/dds-types-test/structuresPubSubTypes.h @@ -90,7 +90,7 @@ class StructShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class StructUnsignedShortPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class StructLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class StructUnsignedLongPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class StructLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class StructUnsignedLongLongPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class StructFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class StructDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class StructLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class StructBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class StructOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class StructChar8PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class StructChar16PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class StructStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class StructWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class StructBoundedStringPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class StructBoundedWStringPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class StructEnumPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class StructBitMaskPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class StructAliasPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class StructShortArrayPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class StructSequencePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class StructMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class StructUnionPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class StructStructurePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class StructBitsetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class StructEmptyPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class StructuresPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2640,7 +2640,7 @@ namespace testing_1 void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2734,7 +2734,7 @@ namespace testing_2 void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2826,7 +2826,7 @@ class barPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2917,7 +2917,7 @@ class root1PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3008,7 +3008,7 @@ class root2PubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3099,7 +3099,7 @@ class rootPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/structuresTypeObjectSupport.cxx b/test/dds-types-test/structuresTypeObjectSupport.cxx index aa81123320a..e00ca3ea2f8 100644 --- a/test/dds-types-test/structuresTypeObjectSupport.cxx +++ b/test/dds-types-test/structuresTypeObjectSupport.cxx @@ -39,98 +39,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_structures_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_StructShort_type_identifier(type_id); - - register_StructUnsignedShort_type_identifier(type_id); - - register_StructLong_type_identifier(type_id); - - register_StructUnsignedLong_type_identifier(type_id); - - register_StructLongLong_type_identifier(type_id); - - register_StructUnsignedLongLong_type_identifier(type_id); - - register_StructFloat_type_identifier(type_id); - - register_StructDouble_type_identifier(type_id); - - register_StructLongDouble_type_identifier(type_id); - - register_StructBoolean_type_identifier(type_id); - - register_StructOctet_type_identifier(type_id); - - register_StructChar8_type_identifier(type_id); - - register_StructChar16_type_identifier(type_id); - - register_StructString_type_identifier(type_id); - - register_StructWString_type_identifier(type_id); - - register_StructBoundedString_type_identifier(type_id); - - register_StructBoundedWString_type_identifier(type_id); - - register_StructEnum_type_identifier(type_id); - - register_StructBitMask_type_identifier(type_id); - - register_StructAlias_type_identifier(type_id); - - register_StructShortArray_type_identifier(type_id); - - register_StructSequence_type_identifier(type_id); - - register_StructMap_type_identifier(type_id); - - register_StructUnion_type_identifier(type_id); - - register_StructStructure_type_identifier(type_id); - - register_StructBitset_type_identifier(type_id); - - register_StructEmpty_type_identifier(type_id); - - register_Structures_type_identifier(type_id); - - testing_1::register_testing_1_foo_type_identifier(type_id); - - testing_2::register_testing_2_foo_type_identifier(type_id); - - register_bar_type_identifier(type_id); - - register_root1_type_identifier(type_id); - - register_root2_type_identifier(type_id); - - register_root_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructShort) { + + ReturnCode_t return_code_StructShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructShort", type_ids_StructShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructShort) { - StructTypeFlag struct_flags_StructShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructShort; - TypeIdentifierPair type_ids_StructShort; QualifiedTypeName type_name_StructShort = "StructShort"; eprosima::fastcdr::optional type_ann_builtin_StructShort; eprosima::fastcdr::optional ann_custom_StructShort; @@ -139,62 +60,26 @@ void register_StructShort_type_identifier( header_StructShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructShort); CompleteStructMemberSeq member_seq_StructShort; { - return_code_StructShort = + TypeIdentifierPair type_ids_var_short; + ReturnCode_t return_code_var_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructShort); + "_int16_t", type_ids_var_short); - if (return_code_StructShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_short; MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_StructShort.type_identifier1()._d() || TK_NONE == type_ids_StructShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_StructShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_short_ec {false}; + CommonStructMember common_var_short {TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_short, common_var_short_ec))}; + if (!common_var_short_ec) { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_StructShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_short member TypeIdentifier inconsistent."); return; } MemberName name_var_short = "var_short"; @@ -206,32 +91,26 @@ void register_StructShort_type_identifier( } CompleteStructType struct_type_StructShort = TypeObjectUtils::build_complete_struct_type(struct_flags_StructShort, header_StructShort, member_seq_StructShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShort, type_name_StructShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShort, type_name_StructShort.to_string(), type_ids_StructShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructShort already registered in TypeObjectRegistry for a different type."); } - return_code_StructShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShort", type_ids_StructShort); - if (return_code_StructShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructUnsignedShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructUnsignedShort) { + + ReturnCode_t return_code_StructUnsignedShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructUnsignedShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructUnsignedShort", type_ids_StructUnsignedShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructUnsignedShort) { - StructTypeFlag struct_flags_StructUnsignedShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructUnsignedShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructUnsignedShort; - TypeIdentifierPair type_ids_StructUnsignedShort; QualifiedTypeName type_name_StructUnsignedShort = "StructUnsignedShort"; eprosima::fastcdr::optional type_ann_builtin_StructUnsignedShort; eprosima::fastcdr::optional ann_custom_StructUnsignedShort; @@ -240,62 +119,26 @@ void register_StructUnsignedShort_type_identifier( header_StructUnsignedShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedShort); CompleteStructMemberSeq member_seq_StructUnsignedShort; { - return_code_StructUnsignedShort = + TypeIdentifierPair type_ids_var_ushort; + ReturnCode_t return_code_var_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructUnsignedShort); + "_uint16_t", type_ids_var_ushort); - if (return_code_StructUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ushort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ushort; MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_StructUnsignedShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_StructUnsignedShort.type_identifier2()); - } - else + bool common_var_ushort_ec {false}; + CommonStructMember common_var_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ushort, common_var_ushort_ec))}; + if (!common_var_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_ushort = "var_ushort"; @@ -307,32 +150,26 @@ void register_StructUnsignedShort_type_identifier( } CompleteStructType struct_type_StructUnsignedShort = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedShort, header_StructUnsignedShort, member_seq_StructUnsignedShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedShort, type_name_StructUnsignedShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedShort, type_name_StructUnsignedShort.to_string(), type_ids_StructUnsignedShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructUnsignedShort already registered in TypeObjectRegistry for a different type."); } - return_code_StructUnsignedShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedShort", type_ids_StructUnsignedShort); - if (return_code_StructUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructLong) { + + ReturnCode_t return_code_StructLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructLong", type_ids_StructLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructLong) { - StructTypeFlag struct_flags_StructLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructLong; - TypeIdentifierPair type_ids_StructLong; QualifiedTypeName type_name_StructLong = "StructLong"; eprosima::fastcdr::optional type_ann_builtin_StructLong; eprosima::fastcdr::optional ann_custom_StructLong; @@ -341,62 +178,26 @@ void register_StructLong_type_identifier( header_StructLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLong); CompleteStructMemberSeq member_seq_StructLong; { - return_code_StructLong = + TypeIdentifierPair type_ids_var_long; + ReturnCode_t return_code_var_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructLong); + "_int32_t", type_ids_var_long); - if (return_code_StructLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_long; MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_StructLong.type_identifier1()._d() || TK_NONE == type_ids_StructLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_StructLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_StructLong.type_identifier2()); - } - else + bool common_var_long_ec {false}; + CommonStructMember common_var_long {TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_long, common_var_long_ec))}; + if (!common_var_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_long member TypeIdentifier inconsistent."); return; } MemberName name_var_long = "var_long"; @@ -408,32 +209,26 @@ void register_StructLong_type_identifier( } CompleteStructType struct_type_StructLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLong, header_StructLong, member_seq_StructLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLong, type_name_StructLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLong, type_name_StructLong.to_string(), type_ids_StructLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructLong already registered in TypeObjectRegistry for a different type."); } - return_code_StructLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLong", type_ids_StructLong); - if (return_code_StructLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructUnsignedLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructUnsignedLong) { + + ReturnCode_t return_code_StructUnsignedLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructUnsignedLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructUnsignedLong", type_ids_StructUnsignedLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructUnsignedLong) { - StructTypeFlag struct_flags_StructUnsignedLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructUnsignedLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructUnsignedLong; - TypeIdentifierPair type_ids_StructUnsignedLong; QualifiedTypeName type_name_StructUnsignedLong = "StructUnsignedLong"; eprosima::fastcdr::optional type_ann_builtin_StructUnsignedLong; eprosima::fastcdr::optional ann_custom_StructUnsignedLong; @@ -442,62 +237,26 @@ void register_StructUnsignedLong_type_identifier( header_StructUnsignedLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedLong); CompleteStructMemberSeq member_seq_StructUnsignedLong; { - return_code_StructUnsignedLong = + TypeIdentifierPair type_ids_var_ulong; + ReturnCode_t return_code_var_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructUnsignedLong); + "_uint32_t", type_ids_var_ulong); - if (return_code_StructUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulong; MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_StructUnsignedLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_StructUnsignedLong.type_identifier2()); - } - else + bool common_var_ulong_ec {false}; + CommonStructMember common_var_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulong, common_var_ulong_ec))}; + if (!common_var_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulong = "var_ulong"; @@ -509,32 +268,26 @@ void register_StructUnsignedLong_type_identifier( } CompleteStructType struct_type_StructUnsignedLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedLong, header_StructUnsignedLong, member_seq_StructUnsignedLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLong, type_name_StructUnsignedLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLong, type_name_StructUnsignedLong.to_string(), type_ids_StructUnsignedLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructUnsignedLong already registered in TypeObjectRegistry for a different type."); } - return_code_StructUnsignedLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLong", type_ids_StructUnsignedLong); - if (return_code_StructUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructLongLong) { + + ReturnCode_t return_code_StructLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructLongLong", type_ids_StructLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructLongLong) { - StructTypeFlag struct_flags_StructLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructLongLong; - TypeIdentifierPair type_ids_StructLongLong; QualifiedTypeName type_name_StructLongLong = "StructLongLong"; eprosima::fastcdr::optional type_ann_builtin_StructLongLong; eprosima::fastcdr::optional ann_custom_StructLongLong; @@ -543,62 +296,26 @@ void register_StructLongLong_type_identifier( header_StructLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLongLong); CompleteStructMemberSeq member_seq_StructLongLong; { - return_code_StructLongLong = + TypeIdentifierPair type_ids_var_longlong; + ReturnCode_t return_code_var_longlong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longlong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructLongLong); + "_int64_t", type_ids_var_longlong); - if (return_code_StructLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longlong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longlong; MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_StructLongLong.type_identifier1()._d() || TK_NONE == type_ids_StructLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_StructLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_longlong_ec {false}; + CommonStructMember common_var_longlong {TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longlong, common_var_longlong_ec))}; + if (!common_var_longlong_ec) { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_StructLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longlong member TypeIdentifier inconsistent."); return; } MemberName name_var_longlong = "var_longlong"; @@ -610,32 +327,26 @@ void register_StructLongLong_type_identifier( } CompleteStructType struct_type_StructLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLongLong, header_StructLongLong, member_seq_StructLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongLong, type_name_StructLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongLong, type_name_StructLongLong.to_string(), type_ids_StructLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_StructLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongLong", type_ids_StructLongLong); - if (return_code_StructLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructUnsignedLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructUnsignedLongLong) { + + ReturnCode_t return_code_StructUnsignedLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructUnsignedLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructUnsignedLongLong", type_ids_StructUnsignedLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructUnsignedLongLong) { - StructTypeFlag struct_flags_StructUnsignedLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructUnsignedLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructUnsignedLongLong; - TypeIdentifierPair type_ids_StructUnsignedLongLong; QualifiedTypeName type_name_StructUnsignedLongLong = "StructUnsignedLongLong"; eprosima::fastcdr::optional type_ann_builtin_StructUnsignedLongLong; eprosima::fastcdr::optional ann_custom_StructUnsignedLongLong; @@ -644,62 +355,26 @@ void register_StructUnsignedLongLong_type_identifier( header_StructUnsignedLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedLongLong); CompleteStructMemberSeq member_seq_StructUnsignedLongLong; { - return_code_StructUnsignedLongLong = + TypeIdentifierPair type_ids_var_ulonglong; + ReturnCode_t return_code_var_ulonglong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_ulonglong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructUnsignedLongLong); + "_uint64_t", type_ids_var_ulonglong); - if (return_code_StructUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_ulonglong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_ulonglong; MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_StructUnsignedLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_StructUnsignedLongLong.type_identifier2()); - } - else + bool common_var_ulonglong_ec {false}; + CommonStructMember common_var_ulonglong {TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_ulonglong, common_var_ulonglong_ec))}; + if (!common_var_ulonglong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_ulonglong member TypeIdentifier inconsistent."); return; } MemberName name_var_ulonglong = "var_ulonglong"; @@ -711,32 +386,26 @@ void register_StructUnsignedLongLong_type_identifier( } CompleteStructType struct_type_StructUnsignedLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedLongLong, header_StructUnsignedLongLong, member_seq_StructUnsignedLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLongLong, type_name_StructUnsignedLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLongLong, type_name_StructUnsignedLongLong.to_string(), type_ids_StructUnsignedLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructUnsignedLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_StructUnsignedLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLongLong", type_ids_StructUnsignedLongLong); - if (return_code_StructUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructFloat) { + + ReturnCode_t return_code_StructFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructFloat", type_ids_StructFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructFloat) { - StructTypeFlag struct_flags_StructFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructFloat; - TypeIdentifierPair type_ids_StructFloat; QualifiedTypeName type_name_StructFloat = "StructFloat"; eprosima::fastcdr::optional type_ann_builtin_StructFloat; eprosima::fastcdr::optional ann_custom_StructFloat; @@ -745,62 +414,26 @@ void register_StructFloat_type_identifier( header_StructFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructFloat); CompleteStructMemberSeq member_seq_StructFloat; { - return_code_StructFloat = + TypeIdentifierPair type_ids_var_float; + ReturnCode_t return_code_var_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructFloat); + "_float", type_ids_var_float); - if (return_code_StructFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_float; MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_StructFloat.type_identifier1()._d() || TK_NONE == type_ids_StructFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_float_ec {false}; + CommonStructMember common_var_float {TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_float, common_var_float_ec))}; + if (!common_var_float_ec) { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_StructFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_StructFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_float member TypeIdentifier inconsistent."); return; } MemberName name_var_float = "var_float"; @@ -812,32 +445,26 @@ void register_StructFloat_type_identifier( } CompleteStructType struct_type_StructFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_StructFloat, header_StructFloat, member_seq_StructFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructFloat, type_name_StructFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructFloat, type_name_StructFloat.to_string(), type_ids_StructFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructFloat already registered in TypeObjectRegistry for a different type."); } - return_code_StructFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructFloat", type_ids_StructFloat); - if (return_code_StructFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructDouble) { + + ReturnCode_t return_code_StructDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructDouble", type_ids_StructDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructDouble) { - StructTypeFlag struct_flags_StructDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructDouble; - TypeIdentifierPair type_ids_StructDouble; QualifiedTypeName type_name_StructDouble = "StructDouble"; eprosima::fastcdr::optional type_ann_builtin_StructDouble; eprosima::fastcdr::optional ann_custom_StructDouble; @@ -846,62 +473,26 @@ void register_StructDouble_type_identifier( header_StructDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructDouble); CompleteStructMemberSeq member_seq_StructDouble; { - return_code_StructDouble = + TypeIdentifierPair type_ids_var_double; + ReturnCode_t return_code_var_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructDouble); + "_double", type_ids_var_double); - if (return_code_StructDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_double; MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_StructDouble.type_identifier1()._d() || TK_NONE == type_ids_StructDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_StructDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_StructDouble.type_identifier2()); - } - else + bool common_var_double_ec {false}; + CommonStructMember common_var_double {TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_double, common_var_double_ec))}; + if (!common_var_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_double member TypeIdentifier inconsistent."); return; } MemberName name_var_double = "var_double"; @@ -913,32 +504,26 @@ void register_StructDouble_type_identifier( } CompleteStructType struct_type_StructDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_StructDouble, header_StructDouble, member_seq_StructDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructDouble, type_name_StructDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructDouble, type_name_StructDouble.to_string(), type_ids_StructDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructDouble already registered in TypeObjectRegistry for a different type."); } - return_code_StructDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructDouble", type_ids_StructDouble); - if (return_code_StructDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructLongDouble) { + + ReturnCode_t return_code_StructLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructLongDouble", type_ids_StructLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructLongDouble) { - StructTypeFlag struct_flags_StructLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructLongDouble; - TypeIdentifierPair type_ids_StructLongDouble; QualifiedTypeName type_name_StructLongDouble = "StructLongDouble"; eprosima::fastcdr::optional type_ann_builtin_StructLongDouble; eprosima::fastcdr::optional ann_custom_StructLongDouble; @@ -947,62 +532,26 @@ void register_StructLongDouble_type_identifier( header_StructLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLongDouble); CompleteStructMemberSeq member_seq_StructLongDouble; { - return_code_StructLongDouble = + TypeIdentifierPair type_ids_var_longdouble; + ReturnCode_t return_code_var_longdouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_longdouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructLongDouble); + "_longdouble", type_ids_var_longdouble); - if (return_code_StructLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_longdouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_longdouble; MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1()._d() || TK_NONE == type_ids_StructLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_StructLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_longdouble_ec {false}; + CommonStructMember common_var_longdouble {TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_longdouble, common_var_longdouble_ec))}; + if (!common_var_longdouble_ec) { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_StructLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_longdouble member TypeIdentifier inconsistent."); return; } MemberName name_var_longdouble = "var_longdouble"; @@ -1014,32 +563,26 @@ void register_StructLongDouble_type_identifier( } CompleteStructType struct_type_StructLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLongDouble, header_StructLongDouble, member_seq_StructLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongDouble, type_name_StructLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongDouble, type_name_StructLongDouble.to_string(), type_ids_StructLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_StructLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongDouble", type_ids_StructLongDouble); - if (return_code_StructLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructBoolean) { + + ReturnCode_t return_code_StructBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructBoolean", type_ids_StructBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructBoolean) { - StructTypeFlag struct_flags_StructBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructBoolean; - TypeIdentifierPair type_ids_StructBoolean; QualifiedTypeName type_name_StructBoolean = "StructBoolean"; eprosima::fastcdr::optional type_ann_builtin_StructBoolean; eprosima::fastcdr::optional ann_custom_StructBoolean; @@ -1048,62 +591,26 @@ void register_StructBoolean_type_identifier( header_StructBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoolean); CompleteStructMemberSeq member_seq_StructBoolean; { - return_code_StructBoolean = + TypeIdentifierPair type_ids_var_boolean; + ReturnCode_t return_code_var_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructBoolean); + "_bool", type_ids_var_boolean); - if (return_code_StructBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_boolean; MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoolean.type_identifier1()._d() || TK_NONE == type_ids_StructBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_StructBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_StructBoolean.type_identifier2()); - } - else + bool common_var_boolean_ec {false}; + CommonStructMember common_var_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_boolean, common_var_boolean_ec))}; + if (!common_var_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_boolean = "var_boolean"; @@ -1115,32 +622,26 @@ void register_StructBoolean_type_identifier( } CompleteStructType struct_type_StructBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoolean, header_StructBoolean, member_seq_StructBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoolean, type_name_StructBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoolean, type_name_StructBoolean.to_string(), type_ids_StructBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_StructBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoolean", type_ids_StructBoolean); - if (return_code_StructBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructOctet) { + + ReturnCode_t return_code_StructOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructOctet", type_ids_StructOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructOctet) { - StructTypeFlag struct_flags_StructOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructOctet; - TypeIdentifierPair type_ids_StructOctet; QualifiedTypeName type_name_StructOctet = "StructOctet"; eprosima::fastcdr::optional type_ann_builtin_StructOctet; eprosima::fastcdr::optional ann_custom_StructOctet; @@ -1149,62 +650,26 @@ void register_StructOctet_type_identifier( header_StructOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructOctet); CompleteStructMemberSeq member_seq_StructOctet; { - return_code_StructOctet = + TypeIdentifierPair type_ids_var_octet; + ReturnCode_t return_code_var_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructOctet); + "_byte", type_ids_var_octet); - if (return_code_StructOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_octet; MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_StructOctet.type_identifier1()._d() || TK_NONE == type_ids_StructOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_StructOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_StructOctet.type_identifier2()); - } - else + bool common_var_octet_ec {false}; + CommonStructMember common_var_octet {TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_octet, common_var_octet_ec))}; + if (!common_var_octet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_octet = "var_octet"; @@ -1216,32 +681,26 @@ void register_StructOctet_type_identifier( } CompleteStructType struct_type_StructOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_StructOctet, header_StructOctet, member_seq_StructOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructOctet, type_name_StructOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructOctet, type_name_StructOctet.to_string(), type_ids_StructOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructOctet already registered in TypeObjectRegistry for a different type."); } - return_code_StructOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructOctet", type_ids_StructOctet); - if (return_code_StructOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructChar8_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructChar8) { + + ReturnCode_t return_code_StructChar8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructChar8 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructChar8", type_ids_StructChar8); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructChar8) { - StructTypeFlag struct_flags_StructChar8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructChar8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructChar8; - TypeIdentifierPair type_ids_StructChar8; QualifiedTypeName type_name_StructChar8 = "StructChar8"; eprosima::fastcdr::optional type_ann_builtin_StructChar8; eprosima::fastcdr::optional ann_custom_StructChar8; @@ -1250,62 +709,26 @@ void register_StructChar8_type_identifier( header_StructChar8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructChar8); CompleteStructMemberSeq member_seq_StructChar8; { - return_code_StructChar8 = + TypeIdentifierPair type_ids_var_char8; + ReturnCode_t return_code_var_char8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructChar8); + "_char", type_ids_var_char8); - if (return_code_StructChar8 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char8) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char8; MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_StructChar8.type_identifier1()._d() || TK_NONE == type_ids_StructChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_StructChar8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_StructChar8.type_identifier2()); - } - else + bool common_var_char8_ec {false}; + CommonStructMember common_var_char8 {TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char8, common_var_char8_ec))}; + if (!common_var_char8_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char8 member TypeIdentifier inconsistent."); return; } MemberName name_var_char8 = "var_char8"; @@ -1317,32 +740,26 @@ void register_StructChar8_type_identifier( } CompleteStructType struct_type_StructChar8 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructChar8, header_StructChar8, member_seq_StructChar8); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar8, type_name_StructChar8.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar8, type_name_StructChar8.to_string(), type_ids_StructChar8)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructChar8 already registered in TypeObjectRegistry for a different type."); } - return_code_StructChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar8", type_ids_StructChar8); - if (return_code_StructChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructChar16_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructChar16) { + + ReturnCode_t return_code_StructChar16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructChar16 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructChar16", type_ids_StructChar16); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructChar16) { - StructTypeFlag struct_flags_StructChar16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructChar16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructChar16; - TypeIdentifierPair type_ids_StructChar16; QualifiedTypeName type_name_StructChar16 = "StructChar16"; eprosima::fastcdr::optional type_ann_builtin_StructChar16; eprosima::fastcdr::optional ann_custom_StructChar16; @@ -1351,62 +768,26 @@ void register_StructChar16_type_identifier( header_StructChar16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructChar16); CompleteStructMemberSeq member_seq_StructChar16; { - return_code_StructChar16 = + TypeIdentifierPair type_ids_var_char16; + ReturnCode_t return_code_var_char16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_char16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_StructChar16); + "_wchar_t", type_ids_var_char16); - if (return_code_StructChar16 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_char16) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_char16; MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_StructChar16.type_identifier1()._d() || TK_NONE == type_ids_StructChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_StructChar16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_char16_ec {false}; + CommonStructMember common_var_char16 {TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_char16, common_var_char16_ec))}; + if (!common_var_char16_ec) { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_StructChar16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_char16 member TypeIdentifier inconsistent."); return; } MemberName name_var_char16 = "var_char16"; @@ -1418,32 +799,26 @@ void register_StructChar16_type_identifier( } CompleteStructType struct_type_StructChar16 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructChar16, header_StructChar16, member_seq_StructChar16); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar16, type_name_StructChar16.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar16, type_name_StructChar16.to_string(), type_ids_StructChar16)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructChar16 already registered in TypeObjectRegistry for a different type."); } - return_code_StructChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar16", type_ids_StructChar16); - if (return_code_StructChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructString) { + + ReturnCode_t return_code_StructString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructString", type_ids_StructString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructString) { - StructTypeFlag struct_flags_StructString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructString; - TypeIdentifierPair type_ids_StructString; QualifiedTypeName type_name_StructString = "StructString"; eprosima::fastcdr::optional type_ann_builtin_StructString; eprosima::fastcdr::optional ann_custom_StructString; @@ -1452,79 +827,34 @@ void register_StructString_type_identifier( header_StructString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructString); CompleteStructMemberSeq member_seq_StructString; { - return_code_StructString = + TypeIdentifierPair type_ids_var_string; + ReturnCode_t return_code_var_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructString); + "anonymous_string_unbounded", type_ids_var_string); - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_string) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_var_string)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StructString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructString); - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_string; MemberId member_id_var_string = 0x00000000; - if (EK_COMPLETE == type_ids_StructString.type_identifier1()._d() || TK_NONE == type_ids_StructString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_string = TypeObjectUtils::build_common_struct_member(member_id_var_string, member_flags_var_string, type_ids_StructString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_string = TypeObjectUtils::build_common_struct_member(member_id_var_string, member_flags_var_string, type_ids_StructString.type_identifier2()); - } - else + bool common_var_string_ec {false}; + CommonStructMember common_var_string {TypeObjectUtils::build_common_struct_member(member_id_var_string, member_flags_var_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_string, common_var_string_ec))}; + if (!common_var_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_string member TypeIdentifier inconsistent."); return; } MemberName name_var_string = "var_string"; @@ -1536,32 +866,26 @@ void register_StructString_type_identifier( } CompleteStructType struct_type_StructString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructString, header_StructString, member_seq_StructString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructString, type_name_StructString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructString, type_name_StructString.to_string(), type_ids_StructString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructString already registered in TypeObjectRegistry for a different type."); } - return_code_StructString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructString", type_ids_StructString); - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructWString) { + + ReturnCode_t return_code_StructWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructWString", type_ids_StructWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructWString) { - StructTypeFlag struct_flags_StructWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructWString; - TypeIdentifierPair type_ids_StructWString; QualifiedTypeName type_name_StructWString = "StructWString"; eprosima::fastcdr::optional type_ann_builtin_StructWString; eprosima::fastcdr::optional ann_custom_StructWString; @@ -1570,79 +894,34 @@ void register_StructWString_type_identifier( header_StructWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructWString); CompleteStructMemberSeq member_seq_StructWString; { - return_code_StructWString = + TypeIdentifierPair type_ids_var_wstring; + ReturnCode_t return_code_var_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_StructWString); + "anonymous_wstring_unbounded", type_ids_var_wstring); - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_wstring) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_var_wstring, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StructWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_StructWString); - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_wstring; MemberId member_id_var_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_StructWString.type_identifier1()._d() || TK_NONE == type_ids_StructWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_wstring, member_flags_var_wstring, type_ids_StructWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_wstring_ec {false}; + CommonStructMember common_var_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_wstring, member_flags_var_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_wstring, common_var_wstring_ec))}; + if (!common_var_wstring_ec) { - common_var_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_wstring, member_flags_var_wstring, type_ids_StructWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_wstring = "var_wstring"; @@ -1654,32 +933,26 @@ void register_StructWString_type_identifier( } CompleteStructType struct_type_StructWString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructWString, header_StructWString, member_seq_StructWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructWString, type_name_StructWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructWString, type_name_StructWString.to_string(), type_ids_StructWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructWString already registered in TypeObjectRegistry for a different type."); } - return_code_StructWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructWString", type_ids_StructWString); - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructBoundedString) { + + ReturnCode_t return_code_StructBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructBoundedString", type_ids_StructBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructBoundedString) { - StructTypeFlag struct_flags_StructBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructBoundedString; - TypeIdentifierPair type_ids_StructBoundedString; QualifiedTypeName type_name_StructBoundedString = "StructBoundedString"; eprosima::fastcdr::optional type_ann_builtin_StructBoundedString; eprosima::fastcdr::optional ann_custom_StructBoundedString; @@ -1688,157 +961,24 @@ void register_StructBoundedString_type_identifier( header_StructBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoundedString); CompleteStructMemberSeq member_seq_StructBoundedString; { - return_code_StructBoundedString = + TypeIdentifierPair type_ids_var_bounded_string; + ReturnCode_t return_code_var_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_StructBoundedString); + "Inner_alias_bounded_string_helper", type_ids_var_bounded_string); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_bounded_string) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_StructBoundedString); - - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_StructBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_StructBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_var_bounded_string); } - StructMemberFlag member_flags_var_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_bounded_string; MemberId member_id_var_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_string, member_flags_var_bounded_string, type_ids_StructBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_string, member_flags_var_bounded_string, type_ids_StructBoundedString.type_identifier2()); - } - else + bool common_var_bounded_string_ec {false}; + CommonStructMember common_var_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_bounded_string, member_flags_var_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_bounded_string, common_var_bounded_string_ec))}; + if (!common_var_bounded_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_bounded_string = "var_bounded_string"; @@ -1850,32 +990,26 @@ void register_StructBoundedString_type_identifier( } CompleteStructType struct_type_StructBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoundedString, header_StructBoundedString, member_seq_StructBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedString, type_name_StructBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedString, type_name_StructBoundedString.to_string(), type_ids_StructBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedString", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructBoundedWString) { + + ReturnCode_t return_code_StructBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructBoundedWString", type_ids_StructBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructBoundedWString) { - StructTypeFlag struct_flags_StructBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructBoundedWString; - TypeIdentifierPair type_ids_StructBoundedWString; QualifiedTypeName type_name_StructBoundedWString = "StructBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_StructBoundedWString; eprosima::fastcdr::optional ann_custom_StructBoundedWString; @@ -1884,157 +1018,24 @@ void register_StructBoundedWString_type_identifier( header_StructBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoundedWString); CompleteStructMemberSeq member_seq_StructBoundedWString; { - return_code_StructBoundedWString = + TypeIdentifierPair type_ids_var_bounded_wstring; + ReturnCode_t return_code_var_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_StructBoundedWString); + "Inner_alias_bounded_wstring_helper", type_ids_var_bounded_wstring); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_bounded_wstring) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_StructBoundedWString); - - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_StructBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_StructBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_var_bounded_wstring); } - StructMemberFlag member_flags_var_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_bounded_wstring; MemberId member_id_var_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_wstring, member_flags_var_bounded_wstring, type_ids_StructBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_bounded_wstring_ec {false}; + CommonStructMember common_var_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_bounded_wstring, member_flags_var_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_bounded_wstring, common_var_bounded_wstring_ec))}; + if (!common_var_bounded_wstring_ec) { - common_var_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_wstring, member_flags_var_bounded_wstring, type_ids_StructBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_bounded_wstring = "var_bounded_wstring"; @@ -2046,32 +1047,26 @@ void register_StructBoundedWString_type_identifier( } CompleteStructType struct_type_StructBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoundedWString, header_StructBoundedWString, member_seq_StructBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedWString, type_name_StructBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedWString, type_name_StructBoundedWString.to_string(), type_ids_StructBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedWString", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructEnum) { + + ReturnCode_t return_code_StructEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructEnum", type_ids_StructEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructEnum) { - StructTypeFlag struct_flags_StructEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructEnum; - TypeIdentifierPair type_ids_StructEnum; QualifiedTypeName type_name_StructEnum = "StructEnum"; eprosima::fastcdr::optional type_ann_builtin_StructEnum; eprosima::fastcdr::optional ann_custom_StructEnum; @@ -2080,115 +1075,24 @@ void register_StructEnum_type_identifier( header_StructEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructEnum); CompleteStructMemberSeq member_seq_StructEnum; { - return_code_StructEnum = + TypeIdentifierPair type_ids_var_enum; + ReturnCode_t return_code_var_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_StructEnum); + "InnerEnumHelper", type_ids_var_enum); - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_enum) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_StructEnum); - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_var_enum); } - StructMemberFlag member_flags_var_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_enum; MemberId member_id_var_enum = 0x00000000; - if (EK_COMPLETE == type_ids_StructEnum.type_identifier1()._d() || TK_NONE == type_ids_StructEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_enum = TypeObjectUtils::build_common_struct_member(member_id_var_enum, member_flags_var_enum, type_ids_StructEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_enum = TypeObjectUtils::build_common_struct_member(member_id_var_enum, member_flags_var_enum, type_ids_StructEnum.type_identifier2()); - } - else + bool common_var_enum_ec {false}; + CommonStructMember common_var_enum {TypeObjectUtils::build_common_struct_member(member_id_var_enum, member_flags_var_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_enum, common_var_enum_ec))}; + if (!common_var_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_enum = "var_enum"; @@ -2200,32 +1104,26 @@ void register_StructEnum_type_identifier( } CompleteStructType struct_type_StructEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_StructEnum, header_StructEnum, member_seq_StructEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEnum, type_name_StructEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEnum, type_name_StructEnum.to_string(), type_ids_StructEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructEnum already registered in TypeObjectRegistry for a different type."); } - return_code_StructEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEnum", type_ids_StructEnum); - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructBitMask_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructBitMask) { + + ReturnCode_t return_code_StructBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructBitMask = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructBitMask", type_ids_StructBitMask); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructBitMask) { - StructTypeFlag struct_flags_StructBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructBitMask; - TypeIdentifierPair type_ids_StructBitMask; QualifiedTypeName type_name_StructBitMask = "StructBitMask"; eprosima::fastcdr::optional type_ann_builtin_StructBitMask; eprosima::fastcdr::optional ann_custom_StructBitMask; @@ -2234,148 +1132,24 @@ void register_StructBitMask_type_identifier( header_StructBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBitMask); CompleteStructMemberSeq member_seq_StructBitMask; { - return_code_StructBitMask = + TypeIdentifierPair type_ids_var_bitmask; + ReturnCode_t return_code_var_bitmask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_bitmask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_StructBitMask); + "InnerBitMaskHelper", type_ids_var_bitmask); - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_bitmask) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_StructBitMask); - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_var_bitmask); } - StructMemberFlag member_flags_var_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_bitmask; MemberId member_id_var_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_StructBitMask.type_identifier1()._d() || TK_NONE == type_ids_StructBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_bitmask, member_flags_var_bitmask, type_ids_StructBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_bitmask_ec {false}; + CommonStructMember common_var_bitmask {TypeObjectUtils::build_common_struct_member(member_id_var_bitmask, member_flags_var_bitmask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_bitmask, common_var_bitmask_ec))}; + if (!common_var_bitmask_ec) { - common_var_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_bitmask, member_flags_var_bitmask, type_ids_StructBitMask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_bitmask member TypeIdentifier inconsistent."); return; } MemberName name_var_bitmask = "var_bitmask"; @@ -2387,32 +1161,26 @@ void register_StructBitMask_type_identifier( } CompleteStructType struct_type_StructBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBitMask, header_StructBitMask, member_seq_StructBitMask); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitMask, type_name_StructBitMask.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitMask, type_name_StructBitMask.to_string(), type_ids_StructBitMask)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructBitMask already registered in TypeObjectRegistry for a different type."); } - return_code_StructBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitMask", type_ids_StructBitMask); - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructAlias) { + + ReturnCode_t return_code_StructAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructAlias", type_ids_StructAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructAlias) { - StructTypeFlag struct_flags_StructAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructAlias; - TypeIdentifierPair type_ids_StructAlias; QualifiedTypeName type_name_StructAlias = "StructAlias"; eprosima::fastcdr::optional type_ann_builtin_StructAlias; eprosima::fastcdr::optional ann_custom_StructAlias; @@ -2421,140 +1189,24 @@ void register_StructAlias_type_identifier( header_StructAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructAlias); CompleteStructMemberSeq member_seq_StructAlias; { - return_code_StructAlias = + TypeIdentifierPair type_ids_var_alias; + ReturnCode_t return_code_var_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_StructAlias); + "InnerAliasHelper", type_ids_var_alias); - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_alias) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructAlias); - - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_StructAlias.type_identifier1()._d() || TK_NONE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_StructAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_StructAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_StructAlias); - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_var_alias); } - StructMemberFlag member_flags_var_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_alias; MemberId member_id_var_alias = 0x00000000; - if (EK_COMPLETE == type_ids_StructAlias.type_identifier1()._d() || TK_NONE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_alias = TypeObjectUtils::build_common_struct_member(member_id_var_alias, member_flags_var_alias, type_ids_StructAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_alias = TypeObjectUtils::build_common_struct_member(member_id_var_alias, member_flags_var_alias, type_ids_StructAlias.type_identifier2()); - } - else + bool common_var_alias_ec {false}; + CommonStructMember common_var_alias {TypeObjectUtils::build_common_struct_member(member_id_var_alias, member_flags_var_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_alias, common_var_alias_ec))}; + if (!common_var_alias_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_alias = "var_alias"; @@ -2566,32 +1218,26 @@ void register_StructAlias_type_identifier( } CompleteStructType struct_type_StructAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_StructAlias, header_StructAlias, member_seq_StructAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAlias, type_name_StructAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAlias, type_name_StructAlias.to_string(), type_ids_StructAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructAlias already registered in TypeObjectRegistry for a different type."); } - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAlias", type_ids_StructAlias); - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructShortArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructShortArray) { + + ReturnCode_t return_code_StructShortArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructShortArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructShortArray", type_ids_StructShortArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructShortArray) { - StructTypeFlag struct_flags_StructShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructShortArray; - TypeIdentifierPair type_ids_StructShortArray; QualifiedTypeName type_name_StructShortArray = "StructShortArray"; eprosima::fastcdr::optional type_ann_builtin_StructShortArray; eprosima::fastcdr::optional ann_custom_StructShortArray; @@ -2600,69 +1246,33 @@ void register_StructShortArray_type_identifier( header_StructShortArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructShortArray); CompleteStructMemberSeq member_seq_StructShortArray; { - return_code_StructShortArray = + TypeIdentifierPair type_ids_var_array_short; + ReturnCode_t return_code_var_array_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_StructShortArray); + "anonymous_array_int16_t_10", type_ids_var_array_short); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { - return_code_StructShortArray = + return_code_var_array_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructShortArray); + "_int16_t", type_ids_var_array_short); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_array_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_StructShortArray.type_identifier1()._d() || TK_NONE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_StructShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_array_int16_t_10_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, element_identifier_anonymous_array_int16_t_10_ec))}; + if (!element_identifier_anonymous_array_int16_t_10_ec) { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_StructShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_StructShortArray.type_identifier2()._d()) + if (TK_NONE == type_ids_var_array_short.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; } @@ -2675,68 +1285,21 @@ void register_StructShortArray_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10", type_ids_var_array_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); } } - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_StructShortArray); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_array_short; MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_StructShortArray.type_identifier1()._d() || TK_NONE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_array_short_ec {false}; + CommonStructMember common_var_array_short {TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_array_short, common_var_array_short_ec))}; + if (!common_var_array_short_ec) { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_StructShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_StructShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_array_short member TypeIdentifier inconsistent."); return; } MemberName name_var_array_short = "var_array_short"; @@ -2748,32 +1311,26 @@ void register_StructShortArray_type_identifier( } CompleteStructType struct_type_StructShortArray = TypeObjectUtils::build_complete_struct_type(struct_flags_StructShortArray, header_StructShortArray, member_seq_StructShortArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShortArray, type_name_StructShortArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShortArray, type_name_StructShortArray.to_string(), type_ids_StructShortArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructShortArray already registered in TypeObjectRegistry for a different type."); } - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShortArray", type_ids_StructShortArray); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShortArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructSequence) { + + ReturnCode_t return_code_StructSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructSequence", type_ids_StructSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructSequence) { - StructTypeFlag struct_flags_StructSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructSequence; - TypeIdentifierPair type_ids_StructSequence; QualifiedTypeName type_name_StructSequence = "StructSequence"; eprosima::fastcdr::optional type_ann_builtin_StructSequence; eprosima::fastcdr::optional ann_custom_StructSequence; @@ -2782,69 +1339,33 @@ void register_StructSequence_type_identifier( header_StructSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructSequence); CompleteStructMemberSeq member_seq_StructSequence; { - return_code_StructSequence = + TypeIdentifierPair type_ids_var_sequence; + ReturnCode_t return_code_var_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_StructSequence); + "anonymous_sequence_int32_t_unbounded", type_ids_var_sequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence) { - return_code_StructSequence = + return_code_var_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructSequence); + "_int32_t", type_ids_var_sequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructSequence.type_identifier1()._d() || TK_NONE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_StructSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_StructSequence.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_StructSequence.type_identifier2()._d()) + if (TK_NONE == type_ids_var_sequence.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -2855,68 +1376,21 @@ void register_StructSequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_var_sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_StructSequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_sequence; MemberId member_id_var_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_StructSequence.type_identifier1()._d() || TK_NONE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence, member_flags_var_sequence, type_ids_StructSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence, member_flags_var_sequence, type_ids_StructSequence.type_identifier2()); - } - else + bool common_var_sequence_ec {false}; + CommonStructMember common_var_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_sequence, member_flags_var_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_sequence, common_var_sequence_ec))}; + if (!common_var_sequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_sequence = "var_sequence"; @@ -2928,32 +1402,26 @@ void register_StructSequence_type_identifier( } CompleteStructType struct_type_StructSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_StructSequence, header_StructSequence, member_seq_StructSequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructSequence, type_name_StructSequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructSequence, type_name_StructSequence.to_string(), type_ids_StructSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructSequence already registered in TypeObjectRegistry for a different type."); } - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructSequence", type_ids_StructSequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructMap) { + + ReturnCode_t return_code_StructMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructMap", type_ids_StructMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructMap) { - StructTypeFlag struct_flags_StructMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructMap; - TypeIdentifierPair type_ids_StructMap; QualifiedTypeName type_name_StructMap = "StructMap"; eprosima::fastcdr::optional type_ann_builtin_StructMap; eprosima::fastcdr::optional ann_custom_StructMap; @@ -2962,120 +1430,48 @@ void register_StructMap_type_identifier( header_StructMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructMap); CompleteStructMemberSeq member_seq_StructMap; { - return_code_StructMap = + TypeIdentifierPair type_ids_var_map; + ReturnCode_t return_code_var_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_StructMap); + "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_map); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map) { - return_code_StructMap = + return_code_var_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructMap); + "_int32_t", type_ids_var_map); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } - return_code_StructMap = + return_code_var_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructMap); + "_int32_t", type_ids_var_map); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -3098,68 +1494,21 @@ void register_StructMap_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_var_map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_StructMap); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_var_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_map; MemberId member_id_var_map = 0x00000000; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map = TypeObjectUtils::build_common_struct_member(member_id_var_map, member_flags_var_map, type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map = TypeObjectUtils::build_common_struct_member(member_id_var_map, member_flags_var_map, type_ids_StructMap.type_identifier2()); - } - else + bool common_var_map_ec {false}; + CommonStructMember common_var_map {TypeObjectUtils::build_common_struct_member(member_id_var_map, member_flags_var_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_map, common_var_map_ec))}; + if (!common_var_map_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_map member TypeIdentifier inconsistent."); return; } MemberName name_var_map = "var_map"; @@ -3171,32 +1520,26 @@ void register_StructMap_type_identifier( } CompleteStructType struct_type_StructMap = TypeObjectUtils::build_complete_struct_type(struct_flags_StructMap, header_StructMap, member_seq_StructMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructMap, type_name_StructMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructMap, type_name_StructMap.to_string(), type_ids_StructMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructMap already registered in TypeObjectRegistry for a different type."); } - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructMap", type_ids_StructMap); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructUnion_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructUnion) { + + ReturnCode_t return_code_StructUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructUnion = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructUnion", type_ids_StructUnion); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructUnion) { - StructTypeFlag struct_flags_StructUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructUnion; - TypeIdentifierPair type_ids_StructUnion; QualifiedTypeName type_name_StructUnion = "StructUnion"; eprosima::fastcdr::optional type_ann_builtin_StructUnion; eprosima::fastcdr::optional ann_custom_StructUnion; @@ -3205,339 +1548,24 @@ void register_StructUnion_type_identifier( header_StructUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnion); CompleteStructMemberSeq member_seq_StructUnion; { - return_code_StructUnion = + TypeIdentifierPair type_ids_var_union; + ReturnCode_t return_code_var_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_StructUnion); + "InnerUnionHelper", type_ids_var_union); - if (return_code_StructUnion != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructUnion = return_code_InnerUnionHelper; - type_ids_StructUnion = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_var_union); } - StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union; MemberId member_id_var_union = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnion.type_identifier1()._d() || TK_NONE == type_ids_StructUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_StructUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_ec {false}; + CommonStructMember common_var_union {TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union, common_var_union_ec))}; + if (!common_var_union_ec) { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_StructUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union member TypeIdentifier inconsistent."); return; } MemberName name_var_union = "var_union"; @@ -3549,32 +1577,26 @@ void register_StructUnion_type_identifier( } CompleteStructType struct_type_StructUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnion, header_StructUnion, member_seq_StructUnion); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnion, type_name_StructUnion.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnion, type_name_StructUnion.to_string(), type_ids_StructUnion)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructUnion already registered in TypeObjectRegistry for a different type."); } - return_code_StructUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnion", type_ids_StructUnion); - if (return_code_StructUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructStructure_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructStructure) { + + ReturnCode_t return_code_StructStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructStructure = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructStructure", type_ids_StructStructure); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructStructure) { - StructTypeFlag struct_flags_StructStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructStructure; - TypeIdentifierPair type_ids_StructStructure; QualifiedTypeName type_name_StructStructure = "StructStructure"; eprosima::fastcdr::optional type_ann_builtin_StructStructure; eprosima::fastcdr::optional ann_custom_StructStructure; @@ -3583,229 +1605,24 @@ void register_StructStructure_type_identifier( header_StructStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructStructure); CompleteStructMemberSeq member_seq_StructStructure; { - return_code_StructStructure = + TypeIdentifierPair type_ids_var_structure; + ReturnCode_t return_code_var_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_StructStructure); + "InnerStructureHelper", type_ids_var_structure); - if (return_code_StructStructure != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_structure) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructStructure = return_code_InnerStructureHelper; - type_ids_StructStructure = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_var_structure); } - StructMemberFlag member_flags_var_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_structure; MemberId member_id_var_structure = 0x00000000; - if (EK_COMPLETE == type_ids_StructStructure.type_identifier1()._d() || TK_NONE == type_ids_StructStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_structure = TypeObjectUtils::build_common_struct_member(member_id_var_structure, member_flags_var_structure, type_ids_StructStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_structure = TypeObjectUtils::build_common_struct_member(member_id_var_structure, member_flags_var_structure, type_ids_StructStructure.type_identifier2()); - } - else + bool common_var_structure_ec {false}; + CommonStructMember common_var_structure {TypeObjectUtils::build_common_struct_member(member_id_var_structure, member_flags_var_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_structure, common_var_structure_ec))}; + if (!common_var_structure_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_structure = "var_structure"; @@ -3817,32 +1634,26 @@ void register_StructStructure_type_identifier( } CompleteStructType struct_type_StructStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_StructStructure, header_StructStructure, member_seq_StructStructure); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructStructure, type_name_StructStructure.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructStructure, type_name_StructStructure.to_string(), type_ids_StructStructure)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructStructure already registered in TypeObjectRegistry for a different type."); } - return_code_StructStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructStructure", type_ids_StructStructure); - if (return_code_StructStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructBitset_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructBitset) { + + ReturnCode_t return_code_StructBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructBitset = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructBitset", type_ids_StructBitset); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructBitset) { - StructTypeFlag struct_flags_StructBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructBitset; - TypeIdentifierPair type_ids_StructBitset; QualifiedTypeName type_name_StructBitset = "StructBitset"; eprosima::fastcdr::optional type_ann_builtin_StructBitset; eprosima::fastcdr::optional ann_custom_StructBitset; @@ -3851,134 +1662,24 @@ void register_StructBitset_type_identifier( header_StructBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBitset); CompleteStructMemberSeq member_seq_StructBitset; { - return_code_StructBitset = + TypeIdentifierPair type_ids_var_bitset; + ReturnCode_t return_code_var_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_StructBitset); + "InnerBitsetHelper", type_ids_var_bitset); - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_bitset) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_StructBitset); - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_var_bitset); } - StructMemberFlag member_flags_var_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_bitset; MemberId member_id_var_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_StructBitset.type_identifier1()._d() || TK_NONE == type_ids_StructBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_bitset, member_flags_var_bitset, type_ids_StructBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_bitset_ec {false}; + CommonStructMember common_var_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_bitset, member_flags_var_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_bitset, common_var_bitset_ec))}; + if (!common_var_bitset_ec) { - common_var_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_bitset, member_flags_var_bitset, type_ids_StructBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_bitset = "var_bitset"; @@ -3990,32 +1691,26 @@ void register_StructBitset_type_identifier( } CompleteStructType struct_type_StructBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBitset, header_StructBitset, member_seq_StructBitset); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitset, type_name_StructBitset.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitset, type_name_StructBitset.to_string(), type_ids_StructBitset)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructBitset already registered in TypeObjectRegistry for a different type."); } - return_code_StructBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitset", type_ids_StructBitset); - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructEmpty_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructEmpty) { + + ReturnCode_t return_code_StructEmpty {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructEmpty = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructEmpty", type_ids_StructEmpty); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructEmpty) { - StructTypeFlag struct_flags_StructEmpty = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructEmpty = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_StructEmpty; - TypeIdentifierPair type_ids_StructEmpty; QualifiedTypeName type_name_StructEmpty = "StructEmpty"; eprosima::fastcdr::optional type_ann_builtin_StructEmpty; eprosima::fastcdr::optional ann_custom_StructEmpty; @@ -4025,32 +1720,26 @@ void register_StructEmpty_type_identifier( CompleteStructMemberSeq member_seq_StructEmpty; CompleteStructType struct_type_StructEmpty = TypeObjectUtils::build_complete_struct_type(struct_flags_StructEmpty, header_StructEmpty, member_seq_StructEmpty); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEmpty, type_name_StructEmpty.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEmpty, type_name_StructEmpty.to_string(), type_ids_StructEmpty)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructEmpty already registered in TypeObjectRegistry for a different type."); } - return_code_StructEmpty = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEmpty", type_ids_StructEmpty); - if (return_code_StructEmpty != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEmpty: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Structures_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Structures) { + + ReturnCode_t return_code_Structures {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Structures = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Structures", type_ids_Structures); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Structures) { - StructTypeFlag struct_flags_Structures = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_Structures = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_Structures; - TypeIdentifierPair type_ids_Structures; QualifiedTypeName type_name_Structures = "Structures"; eprosima::fastcdr::optional type_ann_builtin_Structures; eprosima::fastcdr::optional ann_custom_Structures; @@ -4059,157 +1748,25 @@ void register_Structures_type_identifier( header_Structures = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_Structures); CompleteStructMemberSeq member_seq_Structures; { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructShort; + ReturnCode_t return_code_var_StructShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructShort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShort", type_ids_Structures); + "StructShort", type_ids_var_StructShort); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructShort) { - { - StructTypeFlag struct_flags_StructShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructShort; - TypeIdentifierPair type_ids_StructShort; - QualifiedTypeName type_name_StructShort = "StructShort"; - eprosima::fastcdr::optional type_ann_builtin_StructShort; - eprosima::fastcdr::optional ann_custom_StructShort; - CompleteTypeDetail detail_StructShort = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructShort, ann_custom_StructShort, type_name_StructShort.to_string()); - CompleteStructHeader header_StructShort; - header_StructShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructShort); - CompleteStructMemberSeq member_seq_StructShort; - { - return_code_StructShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructShort); - - if (return_code_StructShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_short Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_short; - MemberId member_id_var_short = 0x00000000; - if (EK_COMPLETE == type_ids_StructShort.type_identifier1()._d() || TK_NONE == type_ids_StructShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_StructShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_short = TypeObjectUtils::build_common_struct_member(member_id_var_short, member_flags_var_short, type_ids_StructShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_short = "var_short"; - eprosima::fastcdr::optional member_ann_builtin_var_short; - ann_custom_StructShort.reset(); - CompleteMemberDetail detail_var_short = TypeObjectUtils::build_complete_member_detail(name_var_short, member_ann_builtin_var_short, ann_custom_StructShort); - CompleteStructMember member_var_short = TypeObjectUtils::build_complete_struct_member(common_var_short, detail_var_short); - TypeObjectUtils::add_complete_struct_member(member_seq_StructShort, member_var_short); - } - CompleteStructType struct_type_StructShort = TypeObjectUtils::build_complete_struct_type(struct_flags_StructShort, header_StructShort, member_seq_StructShort); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShort, type_name_StructShort.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShort already registered in TypeObjectRegistry for a different type."); - } - return_code_StructShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShort", type_ids_StructShort); - if (return_code_StructShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructShort; - type_ids_Structures = type_ids_StructShort; - } + ::register_StructShort_type_identifier(type_ids_var_StructShort); } - StructMemberFlag member_flags_var_StructShort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructShort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructShort; MemberId member_id_var_StructShort = 0x00000000; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructShort_ec {false}; + CommonStructMember common_var_StructShort {TypeObjectUtils::build_common_struct_member(member_id_var_StructShort, member_flags_var_StructShort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructShort, common_var_StructShort_ec))}; + if (!common_var_StructShort_ec) { - common_var_StructShort = TypeObjectUtils::build_common_struct_member(member_id_var_StructShort, member_flags_var_StructShort, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructShort = TypeObjectUtils::build_common_struct_member(member_id_var_StructShort, member_flags_var_StructShort, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructShort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructShort member TypeIdentifier inconsistent."); + return; } MemberName name_var_StructShort = "var_StructShort"; eprosima::fastcdr::optional member_ann_builtin_var_StructShort; @@ -4219,156 +1776,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructShort); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructUnsignedShort; + ReturnCode_t return_code_var_StructUnsignedShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructUnsignedShort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedShort", type_ids_Structures); + "StructUnsignedShort", type_ids_var_StructUnsignedShort); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructUnsignedShort) { - { - StructTypeFlag struct_flags_StructUnsignedShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructUnsignedShort; - TypeIdentifierPair type_ids_StructUnsignedShort; - QualifiedTypeName type_name_StructUnsignedShort = "StructUnsignedShort"; - eprosima::fastcdr::optional type_ann_builtin_StructUnsignedShort; - eprosima::fastcdr::optional ann_custom_StructUnsignedShort; - CompleteTypeDetail detail_StructUnsignedShort = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructUnsignedShort, ann_custom_StructUnsignedShort, type_name_StructUnsignedShort.to_string()); - CompleteStructHeader header_StructUnsignedShort; - header_StructUnsignedShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedShort); - CompleteStructMemberSeq member_seq_StructUnsignedShort; - { - return_code_StructUnsignedShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructUnsignedShort); - - if (return_code_StructUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ushort Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_ushort; - MemberId member_id_var_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_StructUnsignedShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_ushort, member_flags_var_ushort, type_ids_StructUnsignedShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ushort = "var_ushort"; - eprosima::fastcdr::optional member_ann_builtin_var_ushort; - ann_custom_StructUnsignedShort.reset(); - CompleteMemberDetail detail_var_ushort = TypeObjectUtils::build_complete_member_detail(name_var_ushort, member_ann_builtin_var_ushort, ann_custom_StructUnsignedShort); - CompleteStructMember member_var_ushort = TypeObjectUtils::build_complete_struct_member(common_var_ushort, detail_var_ushort); - TypeObjectUtils::add_complete_struct_member(member_seq_StructUnsignedShort, member_var_ushort); - } - CompleteStructType struct_type_StructUnsignedShort = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedShort, header_StructUnsignedShort, member_seq_StructUnsignedShort); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedShort, type_name_StructUnsignedShort.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedShort already registered in TypeObjectRegistry for a different type."); - } - return_code_StructUnsignedShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedShort", type_ids_StructUnsignedShort); - if (return_code_StructUnsignedShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructUnsignedShort; - type_ids_Structures = type_ids_StructUnsignedShort; - } + ::register_StructUnsignedShort_type_identifier(type_ids_var_StructUnsignedShort); } - StructMemberFlag member_flags_var_StructUnsignedShort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructUnsignedShort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructUnsignedShort; MemberId member_id_var_StructUnsignedShort = 0x00000001; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructUnsignedShort_ec {false}; + CommonStructMember common_var_StructUnsignedShort {TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedShort, member_flags_var_StructUnsignedShort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructUnsignedShort, common_var_StructUnsignedShort_ec))}; + if (!common_var_StructUnsignedShort_ec) { - common_var_StructUnsignedShort = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedShort, member_flags_var_StructUnsignedShort, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructUnsignedShort = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedShort, member_flags_var_StructUnsignedShort, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructUnsignedShort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructUnsignedShort member TypeIdentifier inconsistent."); return; } MemberName name_var_StructUnsignedShort = "var_StructUnsignedShort"; @@ -4379,156 +1804,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructUnsignedShort); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructLong; + ReturnCode_t return_code_var_StructLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructLong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLong", type_ids_Structures); + "StructLong", type_ids_var_StructLong); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructLong) { - { - StructTypeFlag struct_flags_StructLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructLong; - TypeIdentifierPair type_ids_StructLong; - QualifiedTypeName type_name_StructLong = "StructLong"; - eprosima::fastcdr::optional type_ann_builtin_StructLong; - eprosima::fastcdr::optional ann_custom_StructLong; - CompleteTypeDetail detail_StructLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructLong, ann_custom_StructLong, type_name_StructLong.to_string()); - CompleteStructHeader header_StructLong; - header_StructLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLong); - CompleteStructMemberSeq member_seq_StructLong; - { - return_code_StructLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructLong); - - if (return_code_StructLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_long Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_long; - MemberId member_id_var_long = 0x00000000; - if (EK_COMPLETE == type_ids_StructLong.type_identifier1()._d() || TK_NONE == type_ids_StructLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_StructLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_long = TypeObjectUtils::build_common_struct_member(member_id_var_long, member_flags_var_long, type_ids_StructLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_long = "var_long"; - eprosima::fastcdr::optional member_ann_builtin_var_long; - ann_custom_StructLong.reset(); - CompleteMemberDetail detail_var_long = TypeObjectUtils::build_complete_member_detail(name_var_long, member_ann_builtin_var_long, ann_custom_StructLong); - CompleteStructMember member_var_long = TypeObjectUtils::build_complete_struct_member(common_var_long, detail_var_long); - TypeObjectUtils::add_complete_struct_member(member_seq_StructLong, member_var_long); - } - CompleteStructType struct_type_StructLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLong, header_StructLong, member_seq_StructLong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLong, type_name_StructLong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLong already registered in TypeObjectRegistry for a different type."); - } - return_code_StructLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLong", type_ids_StructLong); - if (return_code_StructLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructLong; - type_ids_Structures = type_ids_StructLong; - } + ::register_StructLong_type_identifier(type_ids_var_StructLong); } - StructMemberFlag member_flags_var_StructLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructLong; MemberId member_id_var_StructLong = 0x00000002; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructLong, member_flags_var_StructLong, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructLong, member_flags_var_StructLong, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructLong_ec {false}; + CommonStructMember common_var_StructLong {TypeObjectUtils::build_common_struct_member(member_id_var_StructLong, member_flags_var_StructLong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructLong, common_var_StructLong_ec))}; + if (!common_var_StructLong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructLong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructLong member TypeIdentifier inconsistent."); return; } MemberName name_var_StructLong = "var_StructLong"; @@ -4539,156 +1832,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructLong); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructUnsignedLong; + ReturnCode_t return_code_var_StructUnsignedLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructUnsignedLong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLong", type_ids_Structures); + "StructUnsignedLong", type_ids_var_StructUnsignedLong); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructUnsignedLong) { - { - StructTypeFlag struct_flags_StructUnsignedLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructUnsignedLong; - TypeIdentifierPair type_ids_StructUnsignedLong; - QualifiedTypeName type_name_StructUnsignedLong = "StructUnsignedLong"; - eprosima::fastcdr::optional type_ann_builtin_StructUnsignedLong; - eprosima::fastcdr::optional ann_custom_StructUnsignedLong; - CompleteTypeDetail detail_StructUnsignedLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructUnsignedLong, ann_custom_StructUnsignedLong, type_name_StructUnsignedLong.to_string()); - CompleteStructHeader header_StructUnsignedLong; - header_StructUnsignedLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedLong); - CompleteStructMemberSeq member_seq_StructUnsignedLong; - { - return_code_StructUnsignedLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructUnsignedLong); - - if (return_code_StructUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_ulong; - MemberId member_id_var_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_StructUnsignedLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_ulong, member_flags_var_ulong, type_ids_StructUnsignedLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulong = "var_ulong"; - eprosima::fastcdr::optional member_ann_builtin_var_ulong; - ann_custom_StructUnsignedLong.reset(); - CompleteMemberDetail detail_var_ulong = TypeObjectUtils::build_complete_member_detail(name_var_ulong, member_ann_builtin_var_ulong, ann_custom_StructUnsignedLong); - CompleteStructMember member_var_ulong = TypeObjectUtils::build_complete_struct_member(common_var_ulong, detail_var_ulong); - TypeObjectUtils::add_complete_struct_member(member_seq_StructUnsignedLong, member_var_ulong); - } - CompleteStructType struct_type_StructUnsignedLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedLong, header_StructUnsignedLong, member_seq_StructUnsignedLong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLong, type_name_StructUnsignedLong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLong already registered in TypeObjectRegistry for a different type."); - } - return_code_StructUnsignedLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLong", type_ids_StructUnsignedLong); - if (return_code_StructUnsignedLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructUnsignedLong; - type_ids_Structures = type_ids_StructUnsignedLong; - } + ::register_StructUnsignedLong_type_identifier(type_ids_var_StructUnsignedLong); } - StructMemberFlag member_flags_var_StructUnsignedLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructUnsignedLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructUnsignedLong; MemberId member_id_var_StructUnsignedLong = 0x00000003; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructUnsignedLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLong, member_flags_var_StructUnsignedLong, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructUnsignedLong_ec {false}; + CommonStructMember common_var_StructUnsignedLong {TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLong, member_flags_var_StructUnsignedLong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructUnsignedLong, common_var_StructUnsignedLong_ec))}; + if (!common_var_StructUnsignedLong_ec) { - common_var_StructUnsignedLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLong, member_flags_var_StructUnsignedLong, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructUnsignedLong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructUnsignedLong member TypeIdentifier inconsistent."); return; } MemberName name_var_StructUnsignedLong = "var_StructUnsignedLong"; @@ -4699,156 +1860,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructUnsignedLong); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructLongLong; + ReturnCode_t return_code_var_StructLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructLongLong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongLong", type_ids_Structures); + "StructLongLong", type_ids_var_StructLongLong); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructLongLong) { - { - StructTypeFlag struct_flags_StructLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructLongLong; - TypeIdentifierPair type_ids_StructLongLong; - QualifiedTypeName type_name_StructLongLong = "StructLongLong"; - eprosima::fastcdr::optional type_ann_builtin_StructLongLong; - eprosima::fastcdr::optional ann_custom_StructLongLong; - CompleteTypeDetail detail_StructLongLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructLongLong, ann_custom_StructLongLong, type_name_StructLongLong.to_string()); - CompleteStructHeader header_StructLongLong; - header_StructLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLongLong); - CompleteStructMemberSeq member_seq_StructLongLong; - { - return_code_StructLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructLongLong); - - if (return_code_StructLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longlong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_longlong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_longlong; - MemberId member_id_var_longlong = 0x00000000; - if (EK_COMPLETE == type_ids_StructLongLong.type_identifier1()._d() || TK_NONE == type_ids_StructLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_StructLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longlong = TypeObjectUtils::build_common_struct_member(member_id_var_longlong, member_flags_var_longlong, type_ids_StructLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longlong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_longlong = "var_longlong"; - eprosima::fastcdr::optional member_ann_builtin_var_longlong; - ann_custom_StructLongLong.reset(); - CompleteMemberDetail detail_var_longlong = TypeObjectUtils::build_complete_member_detail(name_var_longlong, member_ann_builtin_var_longlong, ann_custom_StructLongLong); - CompleteStructMember member_var_longlong = TypeObjectUtils::build_complete_struct_member(common_var_longlong, detail_var_longlong); - TypeObjectUtils::add_complete_struct_member(member_seq_StructLongLong, member_var_longlong); - } - CompleteStructType struct_type_StructLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLongLong, header_StructLongLong, member_seq_StructLongLong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongLong, type_name_StructLongLong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongLong already registered in TypeObjectRegistry for a different type."); - } - return_code_StructLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongLong", type_ids_StructLongLong); - if (return_code_StructLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructLongLong; - type_ids_Structures = type_ids_StructLongLong; - } + ::register_StructLongLong_type_identifier(type_ids_var_StructLongLong); } - StructMemberFlag member_flags_var_StructLongLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructLongLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructLongLong; MemberId member_id_var_StructLongLong = 0x00000004; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLongLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructLongLong, member_flags_var_StructLongLong, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLongLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructLongLong, member_flags_var_StructLongLong, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructLongLong_ec {false}; + CommonStructMember common_var_StructLongLong {TypeObjectUtils::build_common_struct_member(member_id_var_StructLongLong, member_flags_var_StructLongLong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructLongLong, common_var_StructLongLong_ec))}; + if (!common_var_StructLongLong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructLongLong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructLongLong member TypeIdentifier inconsistent."); return; } MemberName name_var_StructLongLong = "var_StructLongLong"; @@ -4859,156 +1888,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructLongLong); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructUnsignedLongLong; + ReturnCode_t return_code_var_StructUnsignedLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructUnsignedLongLong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLongLong", type_ids_Structures); + "StructUnsignedLongLong", type_ids_var_StructUnsignedLongLong); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructUnsignedLongLong) { - { - StructTypeFlag struct_flags_StructUnsignedLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructUnsignedLongLong; - TypeIdentifierPair type_ids_StructUnsignedLongLong; - QualifiedTypeName type_name_StructUnsignedLongLong = "StructUnsignedLongLong"; - eprosima::fastcdr::optional type_ann_builtin_StructUnsignedLongLong; - eprosima::fastcdr::optional ann_custom_StructUnsignedLongLong; - CompleteTypeDetail detail_StructUnsignedLongLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructUnsignedLongLong, ann_custom_StructUnsignedLongLong, type_name_StructUnsignedLongLong.to_string()); - CompleteStructHeader header_StructUnsignedLongLong; - header_StructUnsignedLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnsignedLongLong); - CompleteStructMemberSeq member_seq_StructUnsignedLongLong; - { - return_code_StructUnsignedLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructUnsignedLongLong); - - if (return_code_StructUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_ulonglong Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_ulonglong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_ulonglong; - MemberId member_id_var_ulonglong = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1()._d() || TK_NONE == type_ids_StructUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_StructUnsignedLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnsignedLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnsignedLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_ulonglong = TypeObjectUtils::build_common_struct_member(member_id_var_ulonglong, member_flags_var_ulonglong, type_ids_StructUnsignedLongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_ulonglong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_ulonglong = "var_ulonglong"; - eprosima::fastcdr::optional member_ann_builtin_var_ulonglong; - ann_custom_StructUnsignedLongLong.reset(); - CompleteMemberDetail detail_var_ulonglong = TypeObjectUtils::build_complete_member_detail(name_var_ulonglong, member_ann_builtin_var_ulonglong, ann_custom_StructUnsignedLongLong); - CompleteStructMember member_var_ulonglong = TypeObjectUtils::build_complete_struct_member(common_var_ulonglong, detail_var_ulonglong); - TypeObjectUtils::add_complete_struct_member(member_seq_StructUnsignedLongLong, member_var_ulonglong); - } - CompleteStructType struct_type_StructUnsignedLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnsignedLongLong, header_StructUnsignedLongLong, member_seq_StructUnsignedLongLong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnsignedLongLong, type_name_StructUnsignedLongLong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLongLong already registered in TypeObjectRegistry for a different type."); - } - return_code_StructUnsignedLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnsignedLongLong", type_ids_StructUnsignedLongLong); - if (return_code_StructUnsignedLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnsignedLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructUnsignedLongLong; - type_ids_Structures = type_ids_StructUnsignedLongLong; - } + ::register_StructUnsignedLongLong_type_identifier(type_ids_var_StructUnsignedLongLong); } - StructMemberFlag member_flags_var_StructUnsignedLongLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructUnsignedLongLong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructUnsignedLongLong; MemberId member_id_var_StructUnsignedLongLong = 0x00000005; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructUnsignedLongLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLongLong, member_flags_var_StructUnsignedLongLong, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructUnsignedLongLong = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLongLong, member_flags_var_StructUnsignedLongLong, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructUnsignedLongLong_ec {false}; + CommonStructMember common_var_StructUnsignedLongLong {TypeObjectUtils::build_common_struct_member(member_id_var_StructUnsignedLongLong, member_flags_var_StructUnsignedLongLong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructUnsignedLongLong, common_var_StructUnsignedLongLong_ec))}; + if (!common_var_StructUnsignedLongLong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructUnsignedLongLong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructUnsignedLongLong member TypeIdentifier inconsistent."); return; } MemberName name_var_StructUnsignedLongLong = "var_StructUnsignedLongLong"; @@ -5019,156 +1916,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructUnsignedLongLong); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructFloat; + ReturnCode_t return_code_var_StructFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructFloat = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructFloat", type_ids_Structures); + "StructFloat", type_ids_var_StructFloat); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructFloat) { - { - StructTypeFlag struct_flags_StructFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructFloat; - TypeIdentifierPair type_ids_StructFloat; - QualifiedTypeName type_name_StructFloat = "StructFloat"; - eprosima::fastcdr::optional type_ann_builtin_StructFloat; - eprosima::fastcdr::optional ann_custom_StructFloat; - CompleteTypeDetail detail_StructFloat = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructFloat, ann_custom_StructFloat, type_name_StructFloat.to_string()); - CompleteStructHeader header_StructFloat; - header_StructFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructFloat); - CompleteStructMemberSeq member_seq_StructFloat; - { - return_code_StructFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructFloat); - - if (return_code_StructFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_float Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_float; - MemberId member_id_var_float = 0x00000000; - if (EK_COMPLETE == type_ids_StructFloat.type_identifier1()._d() || TK_NONE == type_ids_StructFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_StructFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_float = TypeObjectUtils::build_common_struct_member(member_id_var_float, member_flags_var_float, type_ids_StructFloat.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_float = "var_float"; - eprosima::fastcdr::optional member_ann_builtin_var_float; - ann_custom_StructFloat.reset(); - CompleteMemberDetail detail_var_float = TypeObjectUtils::build_complete_member_detail(name_var_float, member_ann_builtin_var_float, ann_custom_StructFloat); - CompleteStructMember member_var_float = TypeObjectUtils::build_complete_struct_member(common_var_float, detail_var_float); - TypeObjectUtils::add_complete_struct_member(member_seq_StructFloat, member_var_float); - } - CompleteStructType struct_type_StructFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_StructFloat, header_StructFloat, member_seq_StructFloat); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructFloat, type_name_StructFloat.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructFloat already registered in TypeObjectRegistry for a different type."); - } - return_code_StructFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructFloat", type_ids_StructFloat); - if (return_code_StructFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructFloat; - type_ids_Structures = type_ids_StructFloat; - } + ::register_StructFloat_type_identifier(type_ids_var_StructFloat); } - StructMemberFlag member_flags_var_StructFloat = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructFloat = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructFloat; MemberId member_id_var_StructFloat = 0x00000006; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructFloat = TypeObjectUtils::build_common_struct_member(member_id_var_StructFloat, member_flags_var_StructFloat, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructFloat_ec {false}; + CommonStructMember common_var_StructFloat {TypeObjectUtils::build_common_struct_member(member_id_var_StructFloat, member_flags_var_StructFloat, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructFloat, common_var_StructFloat_ec))}; + if (!common_var_StructFloat_ec) { - common_var_StructFloat = TypeObjectUtils::build_common_struct_member(member_id_var_StructFloat, member_flags_var_StructFloat, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructFloat member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructFloat member TypeIdentifier inconsistent."); return; } MemberName name_var_StructFloat = "var_StructFloat"; @@ -5179,156 +1944,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructFloat); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructDouble; + ReturnCode_t return_code_var_StructDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructDouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructDouble", type_ids_Structures); + "StructDouble", type_ids_var_StructDouble); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructDouble) { - { - StructTypeFlag struct_flags_StructDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructDouble; - TypeIdentifierPair type_ids_StructDouble; - QualifiedTypeName type_name_StructDouble = "StructDouble"; - eprosima::fastcdr::optional type_ann_builtin_StructDouble; - eprosima::fastcdr::optional ann_custom_StructDouble; - CompleteTypeDetail detail_StructDouble = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructDouble, ann_custom_StructDouble, type_name_StructDouble.to_string()); - CompleteStructHeader header_StructDouble; - header_StructDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructDouble); - CompleteStructMemberSeq member_seq_StructDouble; - { - return_code_StructDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructDouble); - - if (return_code_StructDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_double Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_double; - MemberId member_id_var_double = 0x00000000; - if (EK_COMPLETE == type_ids_StructDouble.type_identifier1()._d() || TK_NONE == type_ids_StructDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_StructDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_double = TypeObjectUtils::build_common_struct_member(member_id_var_double, member_flags_var_double, type_ids_StructDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_double = "var_double"; - eprosima::fastcdr::optional member_ann_builtin_var_double; - ann_custom_StructDouble.reset(); - CompleteMemberDetail detail_var_double = TypeObjectUtils::build_complete_member_detail(name_var_double, member_ann_builtin_var_double, ann_custom_StructDouble); - CompleteStructMember member_var_double = TypeObjectUtils::build_complete_struct_member(common_var_double, detail_var_double); - TypeObjectUtils::add_complete_struct_member(member_seq_StructDouble, member_var_double); - } - CompleteStructType struct_type_StructDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_StructDouble, header_StructDouble, member_seq_StructDouble); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructDouble, type_name_StructDouble.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructDouble already registered in TypeObjectRegistry for a different type."); - } - return_code_StructDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructDouble", type_ids_StructDouble); - if (return_code_StructDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructDouble; - type_ids_Structures = type_ids_StructDouble; - } + ::register_StructDouble_type_identifier(type_ids_var_StructDouble); } - StructMemberFlag member_flags_var_StructDouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructDouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructDouble; MemberId member_id_var_StructDouble = 0x00000007; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructDouble_ec {false}; + CommonStructMember common_var_StructDouble {TypeObjectUtils::build_common_struct_member(member_id_var_StructDouble, member_flags_var_StructDouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructDouble, common_var_StructDouble_ec))}; + if (!common_var_StructDouble_ec) { - common_var_StructDouble = TypeObjectUtils::build_common_struct_member(member_id_var_StructDouble, member_flags_var_StructDouble, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructDouble = TypeObjectUtils::build_common_struct_member(member_id_var_StructDouble, member_flags_var_StructDouble, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructDouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructDouble member TypeIdentifier inconsistent."); return; } MemberName name_var_StructDouble = "var_StructDouble"; @@ -5339,156 +1972,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructDouble); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructLongDouble; + ReturnCode_t return_code_var_StructLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructLongDouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongDouble", type_ids_Structures); + "StructLongDouble", type_ids_var_StructLongDouble); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructLongDouble) { - { - StructTypeFlag struct_flags_StructLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructLongDouble; - TypeIdentifierPair type_ids_StructLongDouble; - QualifiedTypeName type_name_StructLongDouble = "StructLongDouble"; - eprosima::fastcdr::optional type_ann_builtin_StructLongDouble; - eprosima::fastcdr::optional ann_custom_StructLongDouble; - CompleteTypeDetail detail_StructLongDouble = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructLongDouble, ann_custom_StructLongDouble, type_name_StructLongDouble.to_string()); - CompleteStructHeader header_StructLongDouble; - header_StructLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructLongDouble); - CompleteStructMemberSeq member_seq_StructLongDouble; - { - return_code_StructLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructLongDouble); - - if (return_code_StructLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_longdouble Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_longdouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_longdouble; - MemberId member_id_var_longdouble = 0x00000000; - if (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1()._d() || TK_NONE == type_ids_StructLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_StructLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_longdouble = TypeObjectUtils::build_common_struct_member(member_id_var_longdouble, member_flags_var_longdouble, type_ids_StructLongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_longdouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_longdouble = "var_longdouble"; - eprosima::fastcdr::optional member_ann_builtin_var_longdouble; - ann_custom_StructLongDouble.reset(); - CompleteMemberDetail detail_var_longdouble = TypeObjectUtils::build_complete_member_detail(name_var_longdouble, member_ann_builtin_var_longdouble, ann_custom_StructLongDouble); - CompleteStructMember member_var_longdouble = TypeObjectUtils::build_complete_struct_member(common_var_longdouble, detail_var_longdouble); - TypeObjectUtils::add_complete_struct_member(member_seq_StructLongDouble, member_var_longdouble); - } - CompleteStructType struct_type_StructLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_StructLongDouble, header_StructLongDouble, member_seq_StructLongDouble); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructLongDouble, type_name_StructLongDouble.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongDouble already registered in TypeObjectRegistry for a different type."); - } - return_code_StructLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructLongDouble", type_ids_StructLongDouble); - if (return_code_StructLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructLongDouble; - type_ids_Structures = type_ids_StructLongDouble; - } + ::register_StructLongDouble_type_identifier(type_ids_var_StructLongDouble); } - StructMemberFlag member_flags_var_StructLongDouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructLongDouble = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructLongDouble; MemberId member_id_var_StructLongDouble = 0x00000008; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLongDouble = TypeObjectUtils::build_common_struct_member(member_id_var_StructLongDouble, member_flags_var_StructLongDouble, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructLongDouble = TypeObjectUtils::build_common_struct_member(member_id_var_StructLongDouble, member_flags_var_StructLongDouble, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructLongDouble_ec {false}; + CommonStructMember common_var_StructLongDouble {TypeObjectUtils::build_common_struct_member(member_id_var_StructLongDouble, member_flags_var_StructLongDouble, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructLongDouble, common_var_StructLongDouble_ec))}; + if (!common_var_StructLongDouble_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructLongDouble member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructLongDouble member TypeIdentifier inconsistent."); return; } MemberName name_var_StructLongDouble = "var_StructLongDouble"; @@ -5499,156 +2000,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructLongDouble); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructBoolean; + ReturnCode_t return_code_var_StructBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructBoolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoolean", type_ids_Structures); + "StructBoolean", type_ids_var_StructBoolean); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructBoolean) { - { - StructTypeFlag struct_flags_StructBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructBoolean; - TypeIdentifierPair type_ids_StructBoolean; - QualifiedTypeName type_name_StructBoolean = "StructBoolean"; - eprosima::fastcdr::optional type_ann_builtin_StructBoolean; - eprosima::fastcdr::optional ann_custom_StructBoolean; - CompleteTypeDetail detail_StructBoolean = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructBoolean, ann_custom_StructBoolean, type_name_StructBoolean.to_string()); - CompleteStructHeader header_StructBoolean; - header_StructBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoolean); - CompleteStructMemberSeq member_seq_StructBoolean; - { - return_code_StructBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructBoolean); - - if (return_code_StructBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_boolean Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_boolean; - MemberId member_id_var_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoolean.type_identifier1()._d() || TK_NONE == type_ids_StructBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_StructBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_boolean, member_flags_var_boolean, type_ids_StructBoolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_boolean = "var_boolean"; - eprosima::fastcdr::optional member_ann_builtin_var_boolean; - ann_custom_StructBoolean.reset(); - CompleteMemberDetail detail_var_boolean = TypeObjectUtils::build_complete_member_detail(name_var_boolean, member_ann_builtin_var_boolean, ann_custom_StructBoolean); - CompleteStructMember member_var_boolean = TypeObjectUtils::build_complete_struct_member(common_var_boolean, detail_var_boolean); - TypeObjectUtils::add_complete_struct_member(member_seq_StructBoolean, member_var_boolean); - } - CompleteStructType struct_type_StructBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoolean, header_StructBoolean, member_seq_StructBoolean); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoolean, type_name_StructBoolean.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoolean already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoolean", type_ids_StructBoolean); - if (return_code_StructBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructBoolean; - type_ids_Structures = type_ids_StructBoolean; - } + ::register_StructBoolean_type_identifier(type_ids_var_StructBoolean); } - StructMemberFlag member_flags_var_StructBoolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructBoolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructBoolean; MemberId member_id_var_StructBoolean = 0x00000009; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBoolean = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoolean, member_flags_var_StructBoolean, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructBoolean_ec {false}; + CommonStructMember common_var_StructBoolean {TypeObjectUtils::build_common_struct_member(member_id_var_StructBoolean, member_flags_var_StructBoolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructBoolean, common_var_StructBoolean_ec))}; + if (!common_var_StructBoolean_ec) { - common_var_StructBoolean = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoolean, member_flags_var_StructBoolean, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructBoolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructBoolean member TypeIdentifier inconsistent."); return; } MemberName name_var_StructBoolean = "var_StructBoolean"; @@ -5659,156 +2028,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructBoolean); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructOctet; + ReturnCode_t return_code_var_StructOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructOctet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructOctet", type_ids_Structures); + "StructOctet", type_ids_var_StructOctet); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructOctet) { - { - StructTypeFlag struct_flags_StructOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructOctet; - TypeIdentifierPair type_ids_StructOctet; - QualifiedTypeName type_name_StructOctet = "StructOctet"; - eprosima::fastcdr::optional type_ann_builtin_StructOctet; - eprosima::fastcdr::optional ann_custom_StructOctet; - CompleteTypeDetail detail_StructOctet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructOctet, ann_custom_StructOctet, type_name_StructOctet.to_string()); - CompleteStructHeader header_StructOctet; - header_StructOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructOctet); - CompleteStructMemberSeq member_seq_StructOctet; - { - return_code_StructOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructOctet); - - if (return_code_StructOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_octet Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_octet; - MemberId member_id_var_octet = 0x00000000; - if (EK_COMPLETE == type_ids_StructOctet.type_identifier1()._d() || TK_NONE == type_ids_StructOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_StructOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_octet = TypeObjectUtils::build_common_struct_member(member_id_var_octet, member_flags_var_octet, type_ids_StructOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_octet = "var_octet"; - eprosima::fastcdr::optional member_ann_builtin_var_octet; - ann_custom_StructOctet.reset(); - CompleteMemberDetail detail_var_octet = TypeObjectUtils::build_complete_member_detail(name_var_octet, member_ann_builtin_var_octet, ann_custom_StructOctet); - CompleteStructMember member_var_octet = TypeObjectUtils::build_complete_struct_member(common_var_octet, detail_var_octet); - TypeObjectUtils::add_complete_struct_member(member_seq_StructOctet, member_var_octet); - } - CompleteStructType struct_type_StructOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_StructOctet, header_StructOctet, member_seq_StructOctet); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructOctet, type_name_StructOctet.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructOctet already registered in TypeObjectRegistry for a different type."); - } - return_code_StructOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructOctet", type_ids_StructOctet); - if (return_code_StructOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructOctet; - type_ids_Structures = type_ids_StructOctet; - } + ::register_StructOctet_type_identifier(type_ids_var_StructOctet); } - StructMemberFlag member_flags_var_StructOctet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructOctet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructOctet; MemberId member_id_var_StructOctet = 0x0000000a; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructOctet = TypeObjectUtils::build_common_struct_member(member_id_var_StructOctet, member_flags_var_StructOctet, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructOctet = TypeObjectUtils::build_common_struct_member(member_id_var_StructOctet, member_flags_var_StructOctet, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructOctet_ec {false}; + CommonStructMember common_var_StructOctet {TypeObjectUtils::build_common_struct_member(member_id_var_StructOctet, member_flags_var_StructOctet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructOctet, common_var_StructOctet_ec))}; + if (!common_var_StructOctet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructOctet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructOctet member TypeIdentifier inconsistent."); return; } MemberName name_var_StructOctet = "var_StructOctet"; @@ -5819,156 +2056,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructOctet); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructChar8; + ReturnCode_t return_code_var_StructChar8 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructChar8 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar8", type_ids_Structures); + "StructChar8", type_ids_var_StructChar8); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructChar8) { - { - StructTypeFlag struct_flags_StructChar8 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructChar8; - TypeIdentifierPair type_ids_StructChar8; - QualifiedTypeName type_name_StructChar8 = "StructChar8"; - eprosima::fastcdr::optional type_ann_builtin_StructChar8; - eprosima::fastcdr::optional ann_custom_StructChar8; - CompleteTypeDetail detail_StructChar8 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructChar8, ann_custom_StructChar8, type_name_StructChar8.to_string()); - CompleteStructHeader header_StructChar8; - header_StructChar8 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructChar8); - CompleteStructMemberSeq member_seq_StructChar8; - { - return_code_StructChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructChar8); - - if (return_code_StructChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char8 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_char8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_char8; - MemberId member_id_var_char8 = 0x00000000; - if (EK_COMPLETE == type_ids_StructChar8.type_identifier1()._d() || TK_NONE == type_ids_StructChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar8.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar8.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_StructChar8.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructChar8.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar8.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar8.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar8.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar8.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char8 = TypeObjectUtils::build_common_struct_member(member_id_var_char8, member_flags_var_char8, type_ids_StructChar8.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char8 = "var_char8"; - eprosima::fastcdr::optional member_ann_builtin_var_char8; - ann_custom_StructChar8.reset(); - CompleteMemberDetail detail_var_char8 = TypeObjectUtils::build_complete_member_detail(name_var_char8, member_ann_builtin_var_char8, ann_custom_StructChar8); - CompleteStructMember member_var_char8 = TypeObjectUtils::build_complete_struct_member(common_var_char8, detail_var_char8); - TypeObjectUtils::add_complete_struct_member(member_seq_StructChar8, member_var_char8); - } - CompleteStructType struct_type_StructChar8 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructChar8, header_StructChar8, member_seq_StructChar8); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar8, type_name_StructChar8.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar8 already registered in TypeObjectRegistry for a different type."); - } - return_code_StructChar8 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar8", type_ids_StructChar8); - if (return_code_StructChar8 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar8: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructChar8; - type_ids_Structures = type_ids_StructChar8; - } + ::register_StructChar8_type_identifier(type_ids_var_StructChar8); } - StructMemberFlag member_flags_var_StructChar8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructChar8 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructChar8; MemberId member_id_var_StructChar8 = 0x0000000b; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructChar8_ec {false}; + CommonStructMember common_var_StructChar8 {TypeObjectUtils::build_common_struct_member(member_id_var_StructChar8, member_flags_var_StructChar8, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructChar8, common_var_StructChar8_ec))}; + if (!common_var_StructChar8_ec) { - common_var_StructChar8 = TypeObjectUtils::build_common_struct_member(member_id_var_StructChar8, member_flags_var_StructChar8, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructChar8 = TypeObjectUtils::build_common_struct_member(member_id_var_StructChar8, member_flags_var_StructChar8, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructChar8 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructChar8 member TypeIdentifier inconsistent."); return; } MemberName name_var_StructChar8 = "var_StructChar8"; @@ -5979,156 +2084,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructChar8); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructChar16; + ReturnCode_t return_code_var_StructChar16 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructChar16 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar16", type_ids_Structures); + "StructChar16", type_ids_var_StructChar16); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructChar16) { - { - StructTypeFlag struct_flags_StructChar16 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructChar16; - TypeIdentifierPair type_ids_StructChar16; - QualifiedTypeName type_name_StructChar16 = "StructChar16"; - eprosima::fastcdr::optional type_ann_builtin_StructChar16; - eprosima::fastcdr::optional ann_custom_StructChar16; - CompleteTypeDetail detail_StructChar16 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructChar16, ann_custom_StructChar16, type_name_StructChar16.to_string()); - CompleteStructHeader header_StructChar16; - header_StructChar16 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructChar16); - CompleteStructMemberSeq member_seq_StructChar16; - { - return_code_StructChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_StructChar16); - - if (return_code_StructChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "var_char16 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_var_char16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_char16; - MemberId member_id_var_char16 = 0x00000000; - if (EK_COMPLETE == type_ids_StructChar16.type_identifier1()._d() || TK_NONE == type_ids_StructChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar16.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar16.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_StructChar16.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructChar16.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructChar16.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructChar16.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructChar16.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructChar16.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_char16 = TypeObjectUtils::build_common_struct_member(member_id_var_char16, member_flags_var_char16, type_ids_StructChar16.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_char16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_char16 = "var_char16"; - eprosima::fastcdr::optional member_ann_builtin_var_char16; - ann_custom_StructChar16.reset(); - CompleteMemberDetail detail_var_char16 = TypeObjectUtils::build_complete_member_detail(name_var_char16, member_ann_builtin_var_char16, ann_custom_StructChar16); - CompleteStructMember member_var_char16 = TypeObjectUtils::build_complete_struct_member(common_var_char16, detail_var_char16); - TypeObjectUtils::add_complete_struct_member(member_seq_StructChar16, member_var_char16); - } - CompleteStructType struct_type_StructChar16 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructChar16, header_StructChar16, member_seq_StructChar16); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructChar16, type_name_StructChar16.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar16 already registered in TypeObjectRegistry for a different type."); - } - return_code_StructChar16 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructChar16", type_ids_StructChar16); - if (return_code_StructChar16 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructChar16: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructChar16; - type_ids_Structures = type_ids_StructChar16; - } + ::register_StructChar16_type_identifier(type_ids_var_StructChar16); } - StructMemberFlag member_flags_var_StructChar16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructChar16 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructChar16; MemberId member_id_var_StructChar16 = 0x0000000c; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructChar16 = TypeObjectUtils::build_common_struct_member(member_id_var_StructChar16, member_flags_var_StructChar16, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructChar16 = TypeObjectUtils::build_common_struct_member(member_id_var_StructChar16, member_flags_var_StructChar16, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructChar16_ec {false}; + CommonStructMember common_var_StructChar16 {TypeObjectUtils::build_common_struct_member(member_id_var_StructChar16, member_flags_var_StructChar16, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructChar16, common_var_StructChar16_ec))}; + if (!common_var_StructChar16_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructChar16 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructChar16 member TypeIdentifier inconsistent."); return; } MemberName name_var_StructChar16 = "var_StructChar16"; @@ -6139,173 +2112,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructChar16); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructString; + ReturnCode_t return_code_var_StructString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructString", type_ids_Structures); + "StructString", type_ids_var_StructString); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructString) { - { - StructTypeFlag struct_flags_StructString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructString; - TypeIdentifierPair type_ids_StructString; - QualifiedTypeName type_name_StructString = "StructString"; - eprosima::fastcdr::optional type_ann_builtin_StructString; - eprosima::fastcdr::optional ann_custom_StructString; - CompleteTypeDetail detail_StructString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructString, ann_custom_StructString, type_name_StructString.to_string()); - CompleteStructHeader header_StructString; - header_StructString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructString); - CompleteStructMemberSeq member_seq_StructString; - { - return_code_StructString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructString); - - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructString); - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_string; - MemberId member_id_var_string = 0x00000000; - if (EK_COMPLETE == type_ids_StructString.type_identifier1()._d() || TK_NONE == type_ids_StructString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_string = TypeObjectUtils::build_common_struct_member(member_id_var_string, member_flags_var_string, type_ids_StructString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_string = TypeObjectUtils::build_common_struct_member(member_id_var_string, member_flags_var_string, type_ids_StructString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_string = "var_string"; - eprosima::fastcdr::optional member_ann_builtin_var_string; - ann_custom_StructString.reset(); - CompleteMemberDetail detail_var_string = TypeObjectUtils::build_complete_member_detail(name_var_string, member_ann_builtin_var_string, ann_custom_StructString); - CompleteStructMember member_var_string = TypeObjectUtils::build_complete_struct_member(common_var_string, detail_var_string); - TypeObjectUtils::add_complete_struct_member(member_seq_StructString, member_var_string); - } - CompleteStructType struct_type_StructString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructString, header_StructString, member_seq_StructString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructString, type_name_StructString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructString already registered in TypeObjectRegistry for a different type."); - } - return_code_StructString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructString", type_ids_StructString); - if (return_code_StructString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructString; - type_ids_Structures = type_ids_StructString; - } + ::register_StructString_type_identifier(type_ids_var_StructString); } - StructMemberFlag member_flags_var_StructString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructString; MemberId member_id_var_StructString = 0x0000000d; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructString = TypeObjectUtils::build_common_struct_member(member_id_var_StructString, member_flags_var_StructString, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructString_ec {false}; + CommonStructMember common_var_StructString {TypeObjectUtils::build_common_struct_member(member_id_var_StructString, member_flags_var_StructString, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructString, common_var_StructString_ec))}; + if (!common_var_StructString_ec) { - common_var_StructString = TypeObjectUtils::build_common_struct_member(member_id_var_StructString, member_flags_var_StructString, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructString member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructString member TypeIdentifier inconsistent."); return; } MemberName name_var_StructString = "var_StructString"; @@ -6316,173 +2140,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructString); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructWString; + ReturnCode_t return_code_var_StructWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructWString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructWString", type_ids_Structures); + "StructWString", type_ids_var_StructWString); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructWString) { - { - StructTypeFlag struct_flags_StructWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructWString; - TypeIdentifierPair type_ids_StructWString; - QualifiedTypeName type_name_StructWString = "StructWString"; - eprosima::fastcdr::optional type_ann_builtin_StructWString; - eprosima::fastcdr::optional ann_custom_StructWString; - CompleteTypeDetail detail_StructWString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructWString, ann_custom_StructWString, type_name_StructWString.to_string()); - CompleteStructHeader header_StructWString; - header_StructWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructWString); - CompleteStructMemberSeq member_seq_StructWString; - { - return_code_StructWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_StructWString); - - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_StructWString); - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_wstring; - MemberId member_id_var_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_StructWString.type_identifier1()._d() || TK_NONE == type_ids_StructWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_wstring, member_flags_var_wstring, type_ids_StructWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_wstring, member_flags_var_wstring, type_ids_StructWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_wstring = "var_wstring"; - eprosima::fastcdr::optional member_ann_builtin_var_wstring; - ann_custom_StructWString.reset(); - CompleteMemberDetail detail_var_wstring = TypeObjectUtils::build_complete_member_detail(name_var_wstring, member_ann_builtin_var_wstring, ann_custom_StructWString); - CompleteStructMember member_var_wstring = TypeObjectUtils::build_complete_struct_member(common_var_wstring, detail_var_wstring); - TypeObjectUtils::add_complete_struct_member(member_seq_StructWString, member_var_wstring); - } - CompleteStructType struct_type_StructWString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructWString, header_StructWString, member_seq_StructWString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructWString, type_name_StructWString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructWString already registered in TypeObjectRegistry for a different type."); - } - return_code_StructWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructWString", type_ids_StructWString); - if (return_code_StructWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructWString; - type_ids_Structures = type_ids_StructWString; - } + ::register_StructWString_type_identifier(type_ids_var_StructWString); } - StructMemberFlag member_flags_var_StructWString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructWString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructWString; MemberId member_id_var_StructWString = 0x0000000e; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructWString_ec {false}; + CommonStructMember common_var_StructWString {TypeObjectUtils::build_common_struct_member(member_id_var_StructWString, member_flags_var_StructWString, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructWString, common_var_StructWString_ec))}; + if (!common_var_StructWString_ec) { - common_var_StructWString = TypeObjectUtils::build_common_struct_member(member_id_var_StructWString, member_flags_var_StructWString, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructWString = TypeObjectUtils::build_common_struct_member(member_id_var_StructWString, member_flags_var_StructWString, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructWString member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructWString member TypeIdentifier inconsistent."); return; } MemberName name_var_StructWString = "var_StructWString"; @@ -6493,251 +2168,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructWString); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructBoundedString; + ReturnCode_t return_code_var_StructBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructBoundedString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedString", type_ids_Structures); + "StructBoundedString", type_ids_var_StructBoundedString); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructBoundedString) { - { - StructTypeFlag struct_flags_StructBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructBoundedString; - TypeIdentifierPair type_ids_StructBoundedString; - QualifiedTypeName type_name_StructBoundedString = "StructBoundedString"; - eprosima::fastcdr::optional type_ann_builtin_StructBoundedString; - eprosima::fastcdr::optional ann_custom_StructBoundedString; - CompleteTypeDetail detail_StructBoundedString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructBoundedString, ann_custom_StructBoundedString, type_name_StructBoundedString.to_string()); - CompleteStructHeader header_StructBoundedString; - header_StructBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoundedString); - CompleteStructMemberSeq member_seq_StructBoundedString; - { - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_StructBoundedString); - - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_StructBoundedString); - - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_StructBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_StructBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_bounded_string; - MemberId member_id_var_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_string, member_flags_var_bounded_string, type_ids_StructBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_string, member_flags_var_bounded_string, type_ids_StructBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_bounded_string = "var_bounded_string"; - eprosima::fastcdr::optional member_ann_builtin_var_bounded_string; - ann_custom_StructBoundedString.reset(); - CompleteMemberDetail detail_var_bounded_string = TypeObjectUtils::build_complete_member_detail(name_var_bounded_string, member_ann_builtin_var_bounded_string, ann_custom_StructBoundedString); - CompleteStructMember member_var_bounded_string = TypeObjectUtils::build_complete_struct_member(common_var_bounded_string, detail_var_bounded_string); - TypeObjectUtils::add_complete_struct_member(member_seq_StructBoundedString, member_var_bounded_string); - } - CompleteStructType struct_type_StructBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoundedString, header_StructBoundedString, member_seq_StructBoundedString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedString, type_name_StructBoundedString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedString already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedString", type_ids_StructBoundedString); - if (return_code_StructBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructBoundedString; - type_ids_Structures = type_ids_StructBoundedString; - } + ::register_StructBoundedString_type_identifier(type_ids_var_StructBoundedString); } - StructMemberFlag member_flags_var_StructBoundedString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructBoundedString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructBoundedString; MemberId member_id_var_StructBoundedString = 0x0000000f; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructBoundedString_ec {false}; + CommonStructMember common_var_StructBoundedString {TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedString, member_flags_var_StructBoundedString, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructBoundedString, common_var_StructBoundedString_ec))}; + if (!common_var_StructBoundedString_ec) { - common_var_StructBoundedString = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedString, member_flags_var_StructBoundedString, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBoundedString = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedString, member_flags_var_StructBoundedString, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructBoundedString member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructBoundedString member TypeIdentifier inconsistent."); return; } MemberName name_var_StructBoundedString = "var_StructBoundedString"; @@ -6748,251 +2196,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructBoundedString); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructBoundedWString; + ReturnCode_t return_code_var_StructBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructBoundedWString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedWString", type_ids_Structures); + "StructBoundedWString", type_ids_var_StructBoundedWString); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructBoundedWString) { - { - StructTypeFlag struct_flags_StructBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructBoundedWString; - TypeIdentifierPair type_ids_StructBoundedWString; - QualifiedTypeName type_name_StructBoundedWString = "StructBoundedWString"; - eprosima::fastcdr::optional type_ann_builtin_StructBoundedWString; - eprosima::fastcdr::optional ann_custom_StructBoundedWString; - CompleteTypeDetail detail_StructBoundedWString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructBoundedWString, ann_custom_StructBoundedWString, type_name_StructBoundedWString.to_string()); - CompleteStructHeader header_StructBoundedWString; - header_StructBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBoundedWString); - CompleteStructMemberSeq member_seq_StructBoundedWString; - { - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_StructBoundedWString); - - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_StructBoundedWString); - - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_StructBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_StructBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_bounded_wstring; - MemberId member_id_var_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_wstring, member_flags_var_bounded_wstring, type_ids_StructBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_bounded_wstring, member_flags_var_bounded_wstring, type_ids_StructBoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_bounded_wstring = "var_bounded_wstring"; - eprosima::fastcdr::optional member_ann_builtin_var_bounded_wstring; - ann_custom_StructBoundedWString.reset(); - CompleteMemberDetail detail_var_bounded_wstring = TypeObjectUtils::build_complete_member_detail(name_var_bounded_wstring, member_ann_builtin_var_bounded_wstring, ann_custom_StructBoundedWString); - CompleteStructMember member_var_bounded_wstring = TypeObjectUtils::build_complete_struct_member(common_var_bounded_wstring, detail_var_bounded_wstring); - TypeObjectUtils::add_complete_struct_member(member_seq_StructBoundedWString, member_var_bounded_wstring); - } - CompleteStructType struct_type_StructBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBoundedWString, header_StructBoundedWString, member_seq_StructBoundedWString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBoundedWString, type_name_StructBoundedWString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedWString already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBoundedWString", type_ids_StructBoundedWString); - if (return_code_StructBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructBoundedWString; - type_ids_Structures = type_ids_StructBoundedWString; - } + ::register_StructBoundedWString_type_identifier(type_ids_var_StructBoundedWString); } - StructMemberFlag member_flags_var_StructBoundedWString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructBoundedWString = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructBoundedWString; MemberId member_id_var_StructBoundedWString = 0x00000010; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructBoundedWString_ec {false}; + CommonStructMember common_var_StructBoundedWString {TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedWString, member_flags_var_StructBoundedWString, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructBoundedWString, common_var_StructBoundedWString_ec))}; + if (!common_var_StructBoundedWString_ec) { - common_var_StructBoundedWString = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedWString, member_flags_var_StructBoundedWString, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBoundedWString = TypeObjectUtils::build_common_struct_member(member_id_var_StructBoundedWString, member_flags_var_StructBoundedWString, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructBoundedWString member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructBoundedWString member TypeIdentifier inconsistent."); return; } MemberName name_var_StructBoundedWString = "var_StructBoundedWString"; @@ -7003,209 +2224,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructBoundedWString); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructEnum; + ReturnCode_t return_code_var_StructEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructEnum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEnum", type_ids_Structures); + "StructEnum", type_ids_var_StructEnum); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructEnum) { - { - StructTypeFlag struct_flags_StructEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructEnum; - TypeIdentifierPair type_ids_StructEnum; - QualifiedTypeName type_name_StructEnum = "StructEnum"; - eprosima::fastcdr::optional type_ann_builtin_StructEnum; - eprosima::fastcdr::optional ann_custom_StructEnum; - CompleteTypeDetail detail_StructEnum = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructEnum, ann_custom_StructEnum, type_name_StructEnum.to_string()); - CompleteStructHeader header_StructEnum; - header_StructEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructEnum); - CompleteStructMemberSeq member_seq_StructEnum; - { - return_code_StructEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_StructEnum); - - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_StructEnum); - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_enum; - MemberId member_id_var_enum = 0x00000000; - if (EK_COMPLETE == type_ids_StructEnum.type_identifier1()._d() || TK_NONE == type_ids_StructEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_enum = TypeObjectUtils::build_common_struct_member(member_id_var_enum, member_flags_var_enum, type_ids_StructEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_enum = TypeObjectUtils::build_common_struct_member(member_id_var_enum, member_flags_var_enum, type_ids_StructEnum.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_enum = "var_enum"; - eprosima::fastcdr::optional member_ann_builtin_var_enum; - ann_custom_StructEnum.reset(); - CompleteMemberDetail detail_var_enum = TypeObjectUtils::build_complete_member_detail(name_var_enum, member_ann_builtin_var_enum, ann_custom_StructEnum); - CompleteStructMember member_var_enum = TypeObjectUtils::build_complete_struct_member(common_var_enum, detail_var_enum); - TypeObjectUtils::add_complete_struct_member(member_seq_StructEnum, member_var_enum); - } - CompleteStructType struct_type_StructEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_StructEnum, header_StructEnum, member_seq_StructEnum); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEnum, type_name_StructEnum.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEnum already registered in TypeObjectRegistry for a different type."); - } - return_code_StructEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEnum", type_ids_StructEnum); - if (return_code_StructEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructEnum; - type_ids_Structures = type_ids_StructEnum; - } + ::register_StructEnum_type_identifier(type_ids_var_StructEnum); } - StructMemberFlag member_flags_var_StructEnum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructEnum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructEnum; MemberId member_id_var_StructEnum = 0x00000011; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructEnum_ec {false}; + CommonStructMember common_var_StructEnum {TypeObjectUtils::build_common_struct_member(member_id_var_StructEnum, member_flags_var_StructEnum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructEnum, common_var_StructEnum_ec))}; + if (!common_var_StructEnum_ec) { - common_var_StructEnum = TypeObjectUtils::build_common_struct_member(member_id_var_StructEnum, member_flags_var_StructEnum, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructEnum = TypeObjectUtils::build_common_struct_member(member_id_var_StructEnum, member_flags_var_StructEnum, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructEnum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructEnum member TypeIdentifier inconsistent."); return; } MemberName name_var_StructEnum = "var_StructEnum"; @@ -7216,242 +2252,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructEnum); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructBitMask; + ReturnCode_t return_code_var_StructBitMask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructBitMask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitMask", type_ids_Structures); + "StructBitMask", type_ids_var_StructBitMask); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructBitMask) { - { - StructTypeFlag struct_flags_StructBitMask = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructBitMask; - TypeIdentifierPair type_ids_StructBitMask; - QualifiedTypeName type_name_StructBitMask = "StructBitMask"; - eprosima::fastcdr::optional type_ann_builtin_StructBitMask; - eprosima::fastcdr::optional ann_custom_StructBitMask; - CompleteTypeDetail detail_StructBitMask = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructBitMask, ann_custom_StructBitMask, type_name_StructBitMask.to_string()); - CompleteStructHeader header_StructBitMask; - header_StructBitMask = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBitMask); - CompleteStructMemberSeq member_seq_StructBitMask; - { - return_code_StructBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_StructBitMask); - - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_StructBitMask); - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_bitmask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_bitmask; - MemberId member_id_var_bitmask = 0x00000000; - if (EK_COMPLETE == type_ids_StructBitMask.type_identifier1()._d() || TK_NONE == type_ids_StructBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitMask.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_bitmask, member_flags_var_bitmask, type_ids_StructBitMask.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBitMask.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitMask.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitMask.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_bitmask = TypeObjectUtils::build_common_struct_member(member_id_var_bitmask, member_flags_var_bitmask, type_ids_StructBitMask.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bitmask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_bitmask = "var_bitmask"; - eprosima::fastcdr::optional member_ann_builtin_var_bitmask; - ann_custom_StructBitMask.reset(); - CompleteMemberDetail detail_var_bitmask = TypeObjectUtils::build_complete_member_detail(name_var_bitmask, member_ann_builtin_var_bitmask, ann_custom_StructBitMask); - CompleteStructMember member_var_bitmask = TypeObjectUtils::build_complete_struct_member(common_var_bitmask, detail_var_bitmask); - TypeObjectUtils::add_complete_struct_member(member_seq_StructBitMask, member_var_bitmask); - } - CompleteStructType struct_type_StructBitMask = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBitMask, header_StructBitMask, member_seq_StructBitMask); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitMask, type_name_StructBitMask.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitMask already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitMask = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitMask", type_ids_StructBitMask); - if (return_code_StructBitMask != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitMask: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructBitMask; - type_ids_Structures = type_ids_StructBitMask; - } + ::register_StructBitMask_type_identifier(type_ids_var_StructBitMask); } - StructMemberFlag member_flags_var_StructBitMask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructBitMask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructBitMask; MemberId member_id_var_StructBitMask = 0x00000012; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBitMask = TypeObjectUtils::build_common_struct_member(member_id_var_StructBitMask, member_flags_var_StructBitMask, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBitMask = TypeObjectUtils::build_common_struct_member(member_id_var_StructBitMask, member_flags_var_StructBitMask, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructBitMask_ec {false}; + CommonStructMember common_var_StructBitMask {TypeObjectUtils::build_common_struct_member(member_id_var_StructBitMask, member_flags_var_StructBitMask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructBitMask, common_var_StructBitMask_ec))}; + if (!common_var_StructBitMask_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructBitMask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructBitMask member TypeIdentifier inconsistent."); return; } MemberName name_var_StructBitMask = "var_StructBitMask"; @@ -7462,234 +2280,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructBitMask); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructAlias; + ReturnCode_t return_code_var_StructAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructAlias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAlias", type_ids_Structures); + "StructAlias", type_ids_var_StructAlias); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructAlias) { - { - StructTypeFlag struct_flags_StructAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructAlias; - TypeIdentifierPair type_ids_StructAlias; - QualifiedTypeName type_name_StructAlias = "StructAlias"; - eprosima::fastcdr::optional type_ann_builtin_StructAlias; - eprosima::fastcdr::optional ann_custom_StructAlias; - CompleteTypeDetail detail_StructAlias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructAlias, ann_custom_StructAlias, type_name_StructAlias.to_string()); - CompleteStructHeader header_StructAlias; - header_StructAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructAlias); - CompleteStructMemberSeq member_seq_StructAlias; - { - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_StructAlias); - - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructAlias); - - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_StructAlias.type_identifier1()._d() || TK_NONE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_StructAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_StructAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_StructAlias); - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_alias; - MemberId member_id_var_alias = 0x00000000; - if (EK_COMPLETE == type_ids_StructAlias.type_identifier1()._d() || TK_NONE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_alias = TypeObjectUtils::build_common_struct_member(member_id_var_alias, member_flags_var_alias, type_ids_StructAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_alias = TypeObjectUtils::build_common_struct_member(member_id_var_alias, member_flags_var_alias, type_ids_StructAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_alias = "var_alias"; - eprosima::fastcdr::optional member_ann_builtin_var_alias; - ann_custom_StructAlias.reset(); - CompleteMemberDetail detail_var_alias = TypeObjectUtils::build_complete_member_detail(name_var_alias, member_ann_builtin_var_alias, ann_custom_StructAlias); - CompleteStructMember member_var_alias = TypeObjectUtils::build_complete_struct_member(common_var_alias, detail_var_alias); - TypeObjectUtils::add_complete_struct_member(member_seq_StructAlias, member_var_alias); - } - CompleteStructType struct_type_StructAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_StructAlias, header_StructAlias, member_seq_StructAlias); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructAlias, type_name_StructAlias.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAlias already registered in TypeObjectRegistry for a different type."); - } - return_code_StructAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructAlias", type_ids_StructAlias); - if (return_code_StructAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructAlias; - type_ids_Structures = type_ids_StructAlias; - } + ::register_StructAlias_type_identifier(type_ids_var_StructAlias); } - StructMemberFlag member_flags_var_StructAlias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructAlias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructAlias; MemberId member_id_var_StructAlias = 0x00000013; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructAlias = TypeObjectUtils::build_common_struct_member(member_id_var_StructAlias, member_flags_var_StructAlias, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructAlias = TypeObjectUtils::build_common_struct_member(member_id_var_StructAlias, member_flags_var_StructAlias, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructAlias_ec {false}; + CommonStructMember common_var_StructAlias {TypeObjectUtils::build_common_struct_member(member_id_var_StructAlias, member_flags_var_StructAlias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructAlias, common_var_StructAlias_ec))}; + if (!common_var_StructAlias_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructAlias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructAlias member TypeIdentifier inconsistent."); return; } MemberName name_var_StructAlias = "var_StructAlias"; @@ -7700,476 +2308,52 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructAlias); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructShortArray; + ReturnCode_t return_code_var_StructShortArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructShortArray = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShortArray", type_ids_Structures); + "StructShortArray", type_ids_var_StructShortArray); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructShortArray) { - { - StructTypeFlag struct_flags_StructShortArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructShortArray; - TypeIdentifierPair type_ids_StructShortArray; - QualifiedTypeName type_name_StructShortArray = "StructShortArray"; - eprosima::fastcdr::optional type_ann_builtin_StructShortArray; - eprosima::fastcdr::optional ann_custom_StructShortArray; - CompleteTypeDetail detail_StructShortArray = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructShortArray, ann_custom_StructShortArray, type_name_StructShortArray.to_string()); - CompleteStructHeader header_StructShortArray; - header_StructShortArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructShortArray); - CompleteStructMemberSeq member_seq_StructShortArray; - { - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_StructShortArray); - - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructShortArray); - - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_10 {nullptr}; - if (EK_COMPLETE == type_ids_StructShortArray.type_identifier1()._d() || TK_NONE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_StructShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_10 = new TypeIdentifier(type_ids_StructShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_10 = EK_COMPLETE; - if (TK_NONE == type_ids_StructShortArray.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_10 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_10 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_10 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_10, element_flags_anonymous_array_int16_t_10); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(10)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_10, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_10)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_10", type_ids_StructShortArray); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_10: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_array_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_array_short; - MemberId member_id_var_array_short = 0x00000000; - if (EK_COMPLETE == type_ids_StructShortArray.type_identifier1()._d() || TK_NONE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_StructShortArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructShortArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructShortArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructShortArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_array_short = TypeObjectUtils::build_common_struct_member(member_id_var_array_short, member_flags_var_array_short, type_ids_StructShortArray.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_array_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_array_short = "var_array_short"; - eprosima::fastcdr::optional member_ann_builtin_var_array_short; - ann_custom_StructShortArray.reset(); - CompleteMemberDetail detail_var_array_short = TypeObjectUtils::build_complete_member_detail(name_var_array_short, member_ann_builtin_var_array_short, ann_custom_StructShortArray); - CompleteStructMember member_var_array_short = TypeObjectUtils::build_complete_struct_member(common_var_array_short, detail_var_array_short); - TypeObjectUtils::add_complete_struct_member(member_seq_StructShortArray, member_var_array_short); - } - CompleteStructType struct_type_StructShortArray = TypeObjectUtils::build_complete_struct_type(struct_flags_StructShortArray, header_StructShortArray, member_seq_StructShortArray); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructShortArray, type_name_StructShortArray.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShortArray already registered in TypeObjectRegistry for a different type."); - } - return_code_StructShortArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructShortArray", type_ids_StructShortArray); - if (return_code_StructShortArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructShortArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructShortArray; - type_ids_Structures = type_ids_StructShortArray; - } + ::register_StructShortArray_type_identifier(type_ids_var_StructShortArray); } - StructMemberFlag member_flags_var_StructShortArray = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructShortArray = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructShortArray; MemberId member_id_var_StructShortArray = 0x00000014; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructShortArray = TypeObjectUtils::build_common_struct_member(member_id_var_StructShortArray, member_flags_var_StructShortArray, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructShortArray = TypeObjectUtils::build_common_struct_member(member_id_var_StructShortArray, member_flags_var_StructShortArray, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructShortArray member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_StructShortArray = "var_StructShortArray"; - eprosima::fastcdr::optional member_ann_builtin_var_StructShortArray; - ann_custom_Structures.reset(); - CompleteMemberDetail detail_var_StructShortArray = TypeObjectUtils::build_complete_member_detail(name_var_StructShortArray, member_ann_builtin_var_StructShortArray, ann_custom_Structures); - CompleteStructMember member_var_StructShortArray = TypeObjectUtils::build_complete_struct_member(common_var_StructShortArray, detail_var_StructShortArray); - TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructShortArray); - } - { - return_code_Structures = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructSequence", type_ids_Structures); - - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_StructSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructSequence; - TypeIdentifierPair type_ids_StructSequence; - QualifiedTypeName type_name_StructSequence = "StructSequence"; - eprosima::fastcdr::optional type_ann_builtin_StructSequence; - eprosima::fastcdr::optional ann_custom_StructSequence; - CompleteTypeDetail detail_StructSequence = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructSequence, ann_custom_StructSequence, type_name_StructSequence.to_string()); - CompleteStructHeader header_StructSequence; - header_StructSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructSequence); - CompleteStructMemberSeq member_seq_StructSequence; - { - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_StructSequence); - - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructSequence); - - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructSequence.type_identifier1()._d() || TK_NONE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_StructSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_StructSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_StructSequence.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_unbounded, element_flags_anonymous_sequence_int32_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_StructSequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_sequence; - MemberId member_id_var_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_StructSequence.type_identifier1()._d() || TK_NONE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence, member_flags_var_sequence, type_ids_StructSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_sequence, member_flags_var_sequence, type_ids_StructSequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_sequence = "var_sequence"; - eprosima::fastcdr::optional member_ann_builtin_var_sequence; - ann_custom_StructSequence.reset(); - CompleteMemberDetail detail_var_sequence = TypeObjectUtils::build_complete_member_detail(name_var_sequence, member_ann_builtin_var_sequence, ann_custom_StructSequence); - CompleteStructMember member_var_sequence = TypeObjectUtils::build_complete_struct_member(common_var_sequence, detail_var_sequence); - TypeObjectUtils::add_complete_struct_member(member_seq_StructSequence, member_var_sequence); - } - CompleteStructType struct_type_StructSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_StructSequence, header_StructSequence, member_seq_StructSequence); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructSequence, type_name_StructSequence.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructSequence already registered in TypeObjectRegistry for a different type."); - } - return_code_StructSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructSequence", type_ids_StructSequence); - if (return_code_StructSequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructSequence; - type_ids_Structures = type_ids_StructSequence; - } - } - StructMemberFlag member_flags_var_StructSequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_StructSequence; - MemberId member_id_var_StructSequence = 0x00000015; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_StructShortArray_ec {false}; + CommonStructMember common_var_StructShortArray {TypeObjectUtils::build_common_struct_member(member_id_var_StructShortArray, member_flags_var_StructShortArray, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructShortArray, common_var_StructShortArray_ec))}; + if (!common_var_StructShortArray_ec) { - common_var_StructSequence = TypeObjectUtils::build_common_struct_member(member_id_var_StructSequence, member_flags_var_StructSequence, type_ids_Structures.type_identifier1()); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructShortArray member TypeIdentifier inconsistent."); + return; } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + MemberName name_var_StructShortArray = "var_StructShortArray"; + eprosima::fastcdr::optional member_ann_builtin_var_StructShortArray; + ann_custom_Structures.reset(); + CompleteMemberDetail detail_var_StructShortArray = TypeObjectUtils::build_complete_member_detail(name_var_StructShortArray, member_ann_builtin_var_StructShortArray, ann_custom_Structures); + CompleteStructMember member_var_StructShortArray = TypeObjectUtils::build_complete_struct_member(common_var_StructShortArray, detail_var_StructShortArray); + TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructShortArray); + } + { + TypeIdentifierPair type_ids_var_StructSequence; + ReturnCode_t return_code_var_StructSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructSequence", type_ids_var_StructSequence); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructSequence) { - common_var_StructSequence = TypeObjectUtils::build_common_struct_member(member_id_var_StructSequence, member_flags_var_StructSequence, type_ids_Structures.type_identifier2()); + ::register_StructSequence_type_identifier(type_ids_var_StructSequence); } - else + StructMemberFlag member_flags_var_StructSequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_var_StructSequence = 0x00000015; + bool common_var_StructSequence_ec {false}; + CommonStructMember common_var_StructSequence {TypeObjectUtils::build_common_struct_member(member_id_var_StructSequence, member_flags_var_StructSequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructSequence, common_var_StructSequence_ec))}; + if (!common_var_StructSequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructSequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructSequence member TypeIdentifier inconsistent."); return; } MemberName name_var_StructSequence = "var_StructSequence"; @@ -8180,298 +2364,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructSequence); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructMap; + ReturnCode_t return_code_var_StructMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructMap = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructMap", type_ids_Structures); + "StructMap", type_ids_var_StructMap); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructMap) { - { - StructTypeFlag struct_flags_StructMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructMap; - TypeIdentifierPair type_ids_StructMap; - QualifiedTypeName type_name_StructMap = "StructMap"; - eprosima::fastcdr::optional type_ann_builtin_StructMap; - eprosima::fastcdr::optional ann_custom_StructMap; - CompleteTypeDetail detail_StructMap = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructMap, ann_custom_StructMap, type_name_StructMap.to_string()); - CompleteStructHeader header_StructMap; - header_StructMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructMap); - CompleteStructMemberSeq member_seq_StructMap; - { - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_StructMap); - - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructMap); - - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructMap); - - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_StructMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_StructMap); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_map; - MemberId member_id_var_map = 0x00000000; - if (EK_COMPLETE == type_ids_StructMap.type_identifier1()._d() || TK_NONE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_map = TypeObjectUtils::build_common_struct_member(member_id_var_map, member_flags_var_map, type_ids_StructMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructMap.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_map = TypeObjectUtils::build_common_struct_member(member_id_var_map, member_flags_var_map, type_ids_StructMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_map = "var_map"; - eprosima::fastcdr::optional member_ann_builtin_var_map; - ann_custom_StructMap.reset(); - CompleteMemberDetail detail_var_map = TypeObjectUtils::build_complete_member_detail(name_var_map, member_ann_builtin_var_map, ann_custom_StructMap); - CompleteStructMember member_var_map = TypeObjectUtils::build_complete_struct_member(common_var_map, detail_var_map); - TypeObjectUtils::add_complete_struct_member(member_seq_StructMap, member_var_map); - } - CompleteStructType struct_type_StructMap = TypeObjectUtils::build_complete_struct_type(struct_flags_StructMap, header_StructMap, member_seq_StructMap); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructMap, type_name_StructMap.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructMap already registered in TypeObjectRegistry for a different type."); - } - return_code_StructMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructMap", type_ids_StructMap); - if (return_code_StructMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructMap; - type_ids_Structures = type_ids_StructMap; - } + ::register_StructMap_type_identifier(type_ids_var_StructMap); } - StructMemberFlag member_flags_var_StructMap = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructMap = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructMap; MemberId member_id_var_StructMap = 0x00000016; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructMap = TypeObjectUtils::build_common_struct_member(member_id_var_StructMap, member_flags_var_StructMap, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructMap = TypeObjectUtils::build_common_struct_member(member_id_var_StructMap, member_flags_var_StructMap, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructMap_ec {false}; + CommonStructMember common_var_StructMap {TypeObjectUtils::build_common_struct_member(member_id_var_StructMap, member_flags_var_StructMap, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructMap, common_var_StructMap_ec))}; + if (!common_var_StructMap_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructMap member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructMap member TypeIdentifier inconsistent."); return; } MemberName name_var_StructMap = "var_StructMap"; @@ -8482,433 +2392,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructMap); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructUnion; + ReturnCode_t return_code_var_StructUnion {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructUnion = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnion", type_ids_Structures); + "StructUnion", type_ids_var_StructUnion); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructUnion) { - { - StructTypeFlag struct_flags_StructUnion = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructUnion; - TypeIdentifierPair type_ids_StructUnion; - QualifiedTypeName type_name_StructUnion = "StructUnion"; - eprosima::fastcdr::optional type_ann_builtin_StructUnion; - eprosima::fastcdr::optional ann_custom_StructUnion; - CompleteTypeDetail detail_StructUnion = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructUnion, ann_custom_StructUnion, type_name_StructUnion.to_string()); - CompleteStructHeader header_StructUnion; - header_StructUnion = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructUnion); - CompleteStructMemberSeq member_seq_StructUnion; - { - return_code_StructUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_StructUnion); - - if (return_code_StructUnion != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructUnion = return_code_InnerUnionHelper; - type_ids_StructUnion = type_ids_InnerUnionHelper; - } - } - StructMemberFlag member_flags_var_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_union; - MemberId member_id_var_union = 0x00000000; - if (EK_COMPLETE == type_ids_StructUnion.type_identifier1()._d() || TK_NONE == type_ids_StructUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnion.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnion.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_StructUnion.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructUnion.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructUnion.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructUnion.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructUnion.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructUnion.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union = TypeObjectUtils::build_common_struct_member(member_id_var_union, member_flags_var_union, type_ids_StructUnion.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_union = "var_union"; - eprosima::fastcdr::optional member_ann_builtin_var_union; - ann_custom_StructUnion.reset(); - CompleteMemberDetail detail_var_union = TypeObjectUtils::build_complete_member_detail(name_var_union, member_ann_builtin_var_union, ann_custom_StructUnion); - CompleteStructMember member_var_union = TypeObjectUtils::build_complete_struct_member(common_var_union, detail_var_union); - TypeObjectUtils::add_complete_struct_member(member_seq_StructUnion, member_var_union); - } - CompleteStructType struct_type_StructUnion = TypeObjectUtils::build_complete_struct_type(struct_flags_StructUnion, header_StructUnion, member_seq_StructUnion); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructUnion, type_name_StructUnion.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnion already registered in TypeObjectRegistry for a different type."); - } - return_code_StructUnion = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructUnion", type_ids_StructUnion); - if (return_code_StructUnion != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructUnion: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructUnion; - type_ids_Structures = type_ids_StructUnion; - } + ::register_StructUnion_type_identifier(type_ids_var_StructUnion); } - StructMemberFlag member_flags_var_StructUnion = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructUnion = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructUnion; MemberId member_id_var_StructUnion = 0x00000017; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructUnion = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnion, member_flags_var_StructUnion, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructUnion_ec {false}; + CommonStructMember common_var_StructUnion {TypeObjectUtils::build_common_struct_member(member_id_var_StructUnion, member_flags_var_StructUnion, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructUnion, common_var_StructUnion_ec))}; + if (!common_var_StructUnion_ec) { - common_var_StructUnion = TypeObjectUtils::build_common_struct_member(member_id_var_StructUnion, member_flags_var_StructUnion, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructUnion member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructUnion member TypeIdentifier inconsistent."); return; } MemberName name_var_StructUnion = "var_StructUnion"; @@ -8919,323 +2420,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructUnion); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructStructure; + ReturnCode_t return_code_var_StructStructure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructStructure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructStructure", type_ids_Structures); + "StructStructure", type_ids_var_StructStructure); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructStructure) { - { - StructTypeFlag struct_flags_StructStructure = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructStructure; - TypeIdentifierPair type_ids_StructStructure; - QualifiedTypeName type_name_StructStructure = "StructStructure"; - eprosima::fastcdr::optional type_ann_builtin_StructStructure; - eprosima::fastcdr::optional ann_custom_StructStructure; - CompleteTypeDetail detail_StructStructure = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructStructure, ann_custom_StructStructure, type_name_StructStructure.to_string()); - CompleteStructHeader header_StructStructure; - header_StructStructure = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructStructure); - CompleteStructMemberSeq member_seq_StructStructure; - { - return_code_StructStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_StructStructure); - - if (return_code_StructStructure != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_StructStructure = return_code_InnerStructureHelper; - type_ids_StructStructure = type_ids_InnerStructureHelper; - } - } - StructMemberFlag member_flags_var_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_structure; - MemberId member_id_var_structure = 0x00000000; - if (EK_COMPLETE == type_ids_StructStructure.type_identifier1()._d() || TK_NONE == type_ids_StructStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructStructure.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructStructure.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_structure = TypeObjectUtils::build_common_struct_member(member_id_var_structure, member_flags_var_structure, type_ids_StructStructure.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructStructure.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructStructure.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructStructure.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructStructure.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructStructure.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_structure = TypeObjectUtils::build_common_struct_member(member_id_var_structure, member_flags_var_structure, type_ids_StructStructure.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_structure = "var_structure"; - eprosima::fastcdr::optional member_ann_builtin_var_structure; - ann_custom_StructStructure.reset(); - CompleteMemberDetail detail_var_structure = TypeObjectUtils::build_complete_member_detail(name_var_structure, member_ann_builtin_var_structure, ann_custom_StructStructure); - CompleteStructMember member_var_structure = TypeObjectUtils::build_complete_struct_member(common_var_structure, detail_var_structure); - TypeObjectUtils::add_complete_struct_member(member_seq_StructStructure, member_var_structure); - } - CompleteStructType struct_type_StructStructure = TypeObjectUtils::build_complete_struct_type(struct_flags_StructStructure, header_StructStructure, member_seq_StructStructure); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructStructure, type_name_StructStructure.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructStructure already registered in TypeObjectRegistry for a different type."); - } - return_code_StructStructure = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructStructure", type_ids_StructStructure); - if (return_code_StructStructure != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructStructure: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructStructure; - type_ids_Structures = type_ids_StructStructure; - } + ::register_StructStructure_type_identifier(type_ids_var_StructStructure); } - StructMemberFlag member_flags_var_StructStructure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructStructure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructStructure; MemberId member_id_var_StructStructure = 0x00000018; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructStructure = TypeObjectUtils::build_common_struct_member(member_id_var_StructStructure, member_flags_var_StructStructure, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_StructStructure_ec {false}; + CommonStructMember common_var_StructStructure {TypeObjectUtils::build_common_struct_member(member_id_var_StructStructure, member_flags_var_StructStructure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructStructure, common_var_StructStructure_ec))}; + if (!common_var_StructStructure_ec) { - common_var_StructStructure = TypeObjectUtils::build_common_struct_member(member_id_var_StructStructure, member_flags_var_StructStructure, type_ids_Structures.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructStructure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructStructure member TypeIdentifier inconsistent."); return; } MemberName name_var_StructStructure = "var_StructStructure"; @@ -9246,228 +2448,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructStructure); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructBitset; + ReturnCode_t return_code_var_StructBitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructBitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitset", type_ids_Structures); + "StructBitset", type_ids_var_StructBitset); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructBitset) { - { - StructTypeFlag struct_flags_StructBitset = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructBitset; - TypeIdentifierPair type_ids_StructBitset; - QualifiedTypeName type_name_StructBitset = "StructBitset"; - eprosima::fastcdr::optional type_ann_builtin_StructBitset; - eprosima::fastcdr::optional ann_custom_StructBitset; - CompleteTypeDetail detail_StructBitset = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructBitset, ann_custom_StructBitset, type_name_StructBitset.to_string()); - CompleteStructHeader header_StructBitset; - header_StructBitset = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructBitset); - CompleteStructMemberSeq member_seq_StructBitset; - { - return_code_StructBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_StructBitset); - - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) - { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_StructBitset); - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_var_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_bitset; - MemberId member_id_var_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_StructBitset.type_identifier1()._d() || TK_NONE == type_ids_StructBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitset.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitset.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_bitset, member_flags_var_bitset, type_ids_StructBitset.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructBitset.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructBitset.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructBitset.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructBitset.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructBitset.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_bitset, member_flags_var_bitset, type_ids_StructBitset.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_var_bitset = "var_bitset"; - eprosima::fastcdr::optional member_ann_builtin_var_bitset; - ann_custom_StructBitset.reset(); - CompleteMemberDetail detail_var_bitset = TypeObjectUtils::build_complete_member_detail(name_var_bitset, member_ann_builtin_var_bitset, ann_custom_StructBitset); - CompleteStructMember member_var_bitset = TypeObjectUtils::build_complete_struct_member(common_var_bitset, detail_var_bitset); - TypeObjectUtils::add_complete_struct_member(member_seq_StructBitset, member_var_bitset); - } - CompleteStructType struct_type_StructBitset = TypeObjectUtils::build_complete_struct_type(struct_flags_StructBitset, header_StructBitset, member_seq_StructBitset); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructBitset, type_name_StructBitset.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitset already registered in TypeObjectRegistry for a different type."); - } - return_code_StructBitset = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructBitset", type_ids_StructBitset); - if (return_code_StructBitset != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructBitset: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructBitset; - type_ids_Structures = type_ids_StructBitset; - } + ::register_StructBitset_type_identifier(type_ids_var_StructBitset); } - StructMemberFlag member_flags_var_StructBitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructBitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructBitset; MemberId member_id_var_StructBitset = 0x00000019; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBitset = TypeObjectUtils::build_common_struct_member(member_id_var_StructBitset, member_flags_var_StructBitset, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructBitset = TypeObjectUtils::build_common_struct_member(member_id_var_StructBitset, member_flags_var_StructBitset, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructBitset_ec {false}; + CommonStructMember common_var_StructBitset {TypeObjectUtils::build_common_struct_member(member_id_var_StructBitset, member_flags_var_StructBitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructBitset, common_var_StructBitset_ec))}; + if (!common_var_StructBitset_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructBitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructBitset member TypeIdentifier inconsistent."); return; } MemberName name_var_StructBitset = "var_StructBitset"; @@ -9478,90 +2476,24 @@ void register_Structures_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_Structures, member_var_StructBitset); } { - return_code_Structures = + TypeIdentifierPair type_ids_var_StructEmpty; + ReturnCode_t return_code_var_StructEmpty {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_StructEmpty = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEmpty", type_ids_Structures); + "StructEmpty", type_ids_var_StructEmpty); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_StructEmpty) { - { - StructTypeFlag struct_flags_StructEmpty = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_StructEmpty; - TypeIdentifierPair type_ids_StructEmpty; - QualifiedTypeName type_name_StructEmpty = "StructEmpty"; - eprosima::fastcdr::optional type_ann_builtin_StructEmpty; - eprosima::fastcdr::optional ann_custom_StructEmpty; - CompleteTypeDetail detail_StructEmpty = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructEmpty, ann_custom_StructEmpty, type_name_StructEmpty.to_string()); - CompleteStructHeader header_StructEmpty; - header_StructEmpty = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructEmpty); - CompleteStructMemberSeq member_seq_StructEmpty; - CompleteStructType struct_type_StructEmpty = TypeObjectUtils::build_complete_struct_type(struct_flags_StructEmpty, header_StructEmpty, member_seq_StructEmpty); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructEmpty, type_name_StructEmpty.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEmpty already registered in TypeObjectRegistry for a different type."); - } - return_code_StructEmpty = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructEmpty", type_ids_StructEmpty); - if (return_code_StructEmpty != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructEmpty: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Structures = return_code_StructEmpty; - type_ids_Structures = type_ids_StructEmpty; - } + ::register_StructEmpty_type_identifier(type_ids_var_StructEmpty); } - StructMemberFlag member_flags_var_StructEmpty = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_StructEmpty = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_StructEmpty; MemberId member_id_var_StructEmpty = 0x0000001a; - if (EK_COMPLETE == type_ids_Structures.type_identifier1()._d() || TK_NONE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier1()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_StructEmpty = TypeObjectUtils::build_common_struct_member(member_id_var_StructEmpty, member_flags_var_StructEmpty, type_ids_Structures.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Structures.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Structures.type_identifier2()._d() && - EK_COMPLETE == type_ids_Structures.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Structures.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Structures.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_StructEmpty = TypeObjectUtils::build_common_struct_member(member_id_var_StructEmpty, member_flags_var_StructEmpty, type_ids_Structures.type_identifier2()); - } - else + bool common_var_StructEmpty_ec {false}; + CommonStructMember common_var_StructEmpty {TypeObjectUtils::build_common_struct_member(member_id_var_StructEmpty, member_flags_var_StructEmpty, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_StructEmpty, common_var_StructEmpty_ec))}; + if (!common_var_StructEmpty_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_StructEmpty member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_StructEmpty member TypeIdentifier inconsistent."); return; } MemberName name_var_StructEmpty = "var_StructEmpty"; @@ -9573,33 +2505,27 @@ void register_Structures_type_identifier( } CompleteStructType struct_type_Structures = TypeObjectUtils::build_complete_struct_type(struct_flags_Structures, header_Structures, member_seq_Structures); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_Structures, type_name_Structures.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_Structures, type_name_Structures.to_string(), type_ids_Structures)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structures already registered in TypeObjectRegistry for a different type."); } - return_code_Structures = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Structures", type_ids_Structures); - if (return_code_Structures != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structures: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } namespace testing_1 { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_testing_1_foo_type_identifier( - TypeIdentifier& type_id) +void register_foo_type_identifier( + TypeIdentifierPair& type_ids_foo) { + + ReturnCode_t return_code_foo {eprosima::fastdds::dds::RETCODE_OK}; + return_code_foo = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "testing_1::foo", type_ids_foo); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_foo) { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; QualifiedTypeName type_name_foo = "testing_1::foo"; eprosima::fastcdr::optional type_ann_builtin_foo; eprosima::fastcdr::optional ann_custom_foo; @@ -9608,62 +2534,26 @@ void register_testing_1_foo_type_identifier( header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); CompleteStructMemberSeq member_seq_foo; { - return_code_foo = + TypeIdentifierPair type_ids_a; + ReturnCode_t return_code_a {eprosima::fastdds::dds::RETCODE_OK}; + return_code_a = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); + "_int32_t", type_ids_a); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_a) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "a Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_a = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_a = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_a; MemberId member_id_a = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_a_ec {false}; + CommonStructMember common_a {TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_a, common_a_ec))}; + if (!common_a_ec) { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure a member TypeIdentifier inconsistent."); return; } MemberName name_a = "a"; @@ -9674,62 +2564,26 @@ void register_testing_1_foo_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_a); } { - return_code_foo = + TypeIdentifierPair type_ids_b; + ReturnCode_t return_code_b {eprosima::fastdds::dds::RETCODE_OK}; + return_code_b = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); + "_int32_t", type_ids_b); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_b) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "b Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_b = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_b = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_b; MemberId member_id_b = 0x00000001; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier2()); - } - else + bool common_b_ec {false}; + CommonStructMember common_b {TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_b, common_b_ec))}; + if (!common_b_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure b member TypeIdentifier inconsistent."); return; } MemberName name_b = "b"; @@ -9741,35 +2595,29 @@ void register_testing_1_foo_type_identifier( } CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_ids_foo)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "testing_1::foo already registered in TypeObjectRegistry for a different type."); } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_1::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_1::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace testing_1 namespace testing_2 { // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method -void register_testing_2_foo_type_identifier( - TypeIdentifier& type_id) +void register_foo_type_identifier( + TypeIdentifierPair& type_ids_foo) { + + ReturnCode_t return_code_foo {eprosima::fastdds::dds::RETCODE_OK}; + return_code_foo = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "testing_2::foo", type_ids_foo); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_foo) { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; QualifiedTypeName type_name_foo = "testing_2::foo"; eprosima::fastcdr::optional type_ann_builtin_foo; eprosima::fastcdr::optional ann_custom_foo; @@ -9778,62 +2626,26 @@ void register_testing_2_foo_type_identifier( header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); CompleteStructMemberSeq member_seq_foo; { - return_code_foo = + TypeIdentifierPair type_ids_d; + ReturnCode_t return_code_d {eprosima::fastdds::dds::RETCODE_OK}; + return_code_d = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_foo); + "_bool", type_ids_d); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_d) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "d Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_d = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_d = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_d; MemberId member_id_d = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier2()); - } - else + bool common_d_ec {false}; + CommonStructMember common_d {TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_d, common_d_ec))}; + if (!common_d_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure d member TypeIdentifier inconsistent."); return; } MemberName name_d = "d"; @@ -9845,34 +2657,28 @@ void register_testing_2_foo_type_identifier( } CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_ids_foo)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "testing_2::foo already registered in TypeObjectRegistry for a different type."); } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_2::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_2::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } } // namespace testing_2 // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_bar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_bar) { + + ReturnCode_t return_code_bar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "bar", type_ids_bar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bar) { - StructTypeFlag struct_flags_bar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_bar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_bar; - TypeIdentifierPair type_ids_bar; QualifiedTypeName type_name_bar = "bar"; eprosima::fastcdr::optional type_ann_builtin_bar; eprosima::fastcdr::optional ann_custom_bar; @@ -9881,62 +2687,26 @@ void register_bar_type_identifier( header_bar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_bar); CompleteStructMemberSeq member_seq_bar; { - return_code_bar = + TypeIdentifierPair type_ids_e; + ReturnCode_t return_code_e {eprosima::fastdds::dds::RETCODE_OK}; + return_code_e = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_bar); + "_double", type_ids_e); - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_e) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "e Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_e = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_e = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_e; MemberId member_id_e = 0x00000000; - if (EK_COMPLETE == type_ids_bar.type_identifier1()._d() || TK_NONE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier2()); - } - else + bool common_e_ec {false}; + CommonStructMember common_e {TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_e, common_e_ec))}; + if (!common_e_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure e member TypeIdentifier inconsistent."); return; } MemberName name_e = "e"; @@ -9948,32 +2718,26 @@ void register_bar_type_identifier( } CompleteStructType struct_type_bar = TypeObjectUtils::build_complete_struct_type(struct_flags_bar, header_bar, member_seq_bar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_bar, type_name_bar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_bar, type_name_bar.to_string(), type_ids_bar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "bar already registered in TypeObjectRegistry for a different type."); } - return_code_bar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "bar", type_ids_bar); - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_root1_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_root1) { + + ReturnCode_t return_code_root1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_root1 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "root1", type_ids_root1); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_root1) { - StructTypeFlag struct_flags_root1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_root1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_root1; - TypeIdentifierPair type_ids_root1; QualifiedTypeName type_name_root1 = "root1"; eprosima::fastcdr::optional type_ann_builtin_root1; eprosima::fastcdr::optional ann_custom_root1; @@ -9982,222 +2746,24 @@ void register_root1_type_identifier( header_root1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_root1); CompleteStructMemberSeq member_seq_root1; { - return_code_root1 = + TypeIdentifierPair type_ids_foo_struct; + ReturnCode_t return_code_foo_struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_foo_struct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_1::foo", type_ids_root1); + "testing_1::foo", type_ids_foo_struct); - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_foo_struct) { - { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; - QualifiedTypeName type_name_foo = "testing_1::foo"; - eprosima::fastcdr::optional type_ann_builtin_foo; - eprosima::fastcdr::optional ann_custom_foo; - CompleteTypeDetail detail_foo = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_foo, ann_custom_foo, type_name_foo.to_string()); - CompleteStructHeader header_foo; - header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); - CompleteStructMemberSeq member_seq_foo; - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "a Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_a = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_a; - MemberId member_id_a = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_a = "a"; - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_foo.reset(); - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_foo); - CompleteStructMember member_a = TypeObjectUtils::build_complete_struct_member(common_a, detail_a); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_a); - } - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "b Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_b = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_b; - MemberId member_id_b = 0x00000001; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_b = "b"; - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_foo.reset(); - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_foo); - CompleteStructMember member_b = TypeObjectUtils::build_complete_struct_member(common_b, detail_b); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_b); - } - CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_1::foo already registered in TypeObjectRegistry for a different type."); - } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_1::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_1::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root1 = return_code_foo; - type_ids_root1 = type_ids_foo; - } + testing_1::register_foo_type_identifier(type_ids_foo_struct); } - StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_foo_struct; MemberId member_id_foo_struct = 0x00000000; - if (EK_COMPLETE == type_ids_root1.type_identifier1()._d() || TK_NONE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root1.type_identifier2()); - } - else + bool common_foo_struct_ec {false}; + CommonStructMember common_foo_struct {TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_foo_struct, common_foo_struct_ec))}; + if (!common_foo_struct_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure foo_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure foo_struct member TypeIdentifier inconsistent."); return; } MemberName name_foo_struct = "foo_struct"; @@ -10208,62 +2774,26 @@ void register_root1_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_root1, member_foo_struct); } { - return_code_root1 = + TypeIdentifierPair type_ids_c; + ReturnCode_t return_code_c {eprosima::fastdds::dds::RETCODE_OK}; + return_code_c = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_root1); + "_float", type_ids_c); - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_c) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_c; MemberId member_id_c = 0x00000001; - if (EK_COMPLETE == type_ids_root1.type_identifier1()._d() || TK_NONE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_root1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_c_ec {false}; + CommonStructMember common_c {TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_c, common_c_ec))}; + if (!common_c_ec) { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_root1.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -10275,32 +2805,26 @@ void register_root1_type_identifier( } CompleteStructType struct_type_root1 = TypeObjectUtils::build_complete_struct_type(struct_flags_root1, header_root1, member_seq_root1); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_root1, type_name_root1.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_root1, type_name_root1.to_string(), type_ids_root1)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "root1 already registered in TypeObjectRegistry for a different type."); } - return_code_root1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root1", type_ids_root1); - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_root2_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_root2) { + + ReturnCode_t return_code_root2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_root2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "root2", type_ids_root2); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_root2) { - StructTypeFlag struct_flags_root2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_root2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_root2; - TypeIdentifierPair type_ids_root2; QualifiedTypeName type_name_root2 = "root2"; eprosima::fastcdr::optional type_ann_builtin_root2; eprosima::fastcdr::optional ann_custom_root2; @@ -10309,156 +2833,24 @@ void register_root2_type_identifier( header_root2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_root2); CompleteStructMemberSeq member_seq_root2; { - return_code_root2 = + TypeIdentifierPair type_ids_foo_struct; + ReturnCode_t return_code_foo_struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_foo_struct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_2::foo", type_ids_root2); + "testing_2::foo", type_ids_foo_struct); - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_foo_struct) { - { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; - QualifiedTypeName type_name_foo = "testing_2::foo"; - eprosima::fastcdr::optional type_ann_builtin_foo; - eprosima::fastcdr::optional ann_custom_foo; - CompleteTypeDetail detail_foo = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_foo, ann_custom_foo, type_name_foo.to_string()); - CompleteStructHeader header_foo; - header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); - CompleteStructMemberSeq member_seq_foo; - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "d Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_d = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_d; - MemberId member_id_d = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_foo.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_foo); - CompleteStructMember member_d = TypeObjectUtils::build_complete_struct_member(common_d, detail_d); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_d); - } - CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_2::foo already registered in TypeObjectRegistry for a different type."); - } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_2::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_2::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root2 = return_code_foo; - type_ids_root2 = type_ids_foo; - } + testing_2::register_foo_type_identifier(type_ids_foo_struct); } - StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_foo_struct; MemberId member_id_foo_struct = 0x00000000; - if (EK_COMPLETE == type_ids_root2.type_identifier1()._d() || TK_NONE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root2.type_identifier2()); - } - else + bool common_foo_struct_ec {false}; + CommonStructMember common_foo_struct {TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_foo_struct, common_foo_struct_ec))}; + if (!common_foo_struct_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure foo_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure foo_struct member TypeIdentifier inconsistent."); return; } MemberName name_foo_struct = "foo_struct"; @@ -10469,156 +2861,24 @@ void register_root2_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_root2, member_foo_struct); } { - return_code_root2 = + TypeIdentifierPair type_ids_bar_struct; + ReturnCode_t return_code_bar_struct {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bar_struct = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "bar", type_ids_root2); + "bar", type_ids_bar_struct); - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bar_struct) { - { - StructTypeFlag struct_flags_bar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_bar; - TypeIdentifierPair type_ids_bar; - QualifiedTypeName type_name_bar = "bar"; - eprosima::fastcdr::optional type_ann_builtin_bar; - eprosima::fastcdr::optional ann_custom_bar; - CompleteTypeDetail detail_bar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_bar, ann_custom_bar, type_name_bar.to_string()); - CompleteStructHeader header_bar; - header_bar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_bar); - CompleteStructMemberSeq member_seq_bar; - { - return_code_bar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_bar); - - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "e Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_e = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_e; - MemberId member_id_e = 0x00000000; - if (EK_COMPLETE == type_ids_bar.type_identifier1()._d() || TK_NONE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_e = "e"; - eprosima::fastcdr::optional member_ann_builtin_e; - ann_custom_bar.reset(); - CompleteMemberDetail detail_e = TypeObjectUtils::build_complete_member_detail(name_e, member_ann_builtin_e, ann_custom_bar); - CompleteStructMember member_e = TypeObjectUtils::build_complete_struct_member(common_e, detail_e); - TypeObjectUtils::add_complete_struct_member(member_seq_bar, member_e); - } - CompleteStructType struct_type_bar = TypeObjectUtils::build_complete_struct_type(struct_flags_bar, header_bar, member_seq_bar); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_bar, type_name_bar.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bar already registered in TypeObjectRegistry for a different type."); - } - return_code_bar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "bar", type_ids_bar); - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root2 = return_code_bar; - type_ids_root2 = type_ids_bar; - } + ::register_bar_type_identifier(type_ids_bar_struct); } - StructMemberFlag member_flags_bar_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bar_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bar_struct; MemberId member_id_bar_struct = 0x00000001; - if (EK_COMPLETE == type_ids_root2.type_identifier1()._d() || TK_NONE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_bar_struct_ec {false}; + CommonStructMember common_bar_struct {TypeObjectUtils::build_common_struct_member(member_id_bar_struct, member_flags_bar_struct, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bar_struct, common_bar_struct_ec))}; + if (!common_bar_struct_ec) { - common_bar_struct = TypeObjectUtils::build_common_struct_member(member_id_bar_struct, member_flags_bar_struct, type_ids_root2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bar_struct = TypeObjectUtils::build_common_struct_member(member_id_bar_struct, member_flags_bar_struct, type_ids_root2.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bar_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bar_struct member TypeIdentifier inconsistent."); return; } MemberName name_bar_struct = "bar_struct"; @@ -10630,32 +2890,26 @@ void register_root2_type_identifier( } CompleteStructType struct_type_root2 = TypeObjectUtils::build_complete_struct_type(struct_flags_root2, header_root2, member_seq_root2); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_root2, type_name_root2.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_root2, type_name_root2.to_string(), type_ids_root2)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "root2 already registered in TypeObjectRegistry for a different type."); } - return_code_root2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root2", type_ids_root2); - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_root_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_root) { + + ReturnCode_t return_code_root {eprosima::fastdds::dds::RETCODE_OK}; + return_code_root = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "root", type_ids_root); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_root) { - StructTypeFlag struct_flags_root = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_root = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_root; - TypeIdentifierPair type_ids_root; QualifiedTypeName type_name_root = "root"; eprosima::fastcdr::optional type_ann_builtin_root; eprosima::fastcdr::optional ann_custom_root; @@ -10664,382 +2918,24 @@ void register_root_type_identifier( header_root = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_root); CompleteStructMemberSeq member_seq_root; { - return_code_root = + TypeIdentifierPair type_ids_var_root1; + ReturnCode_t return_code_var_root1 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_root1 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root1", type_ids_root); + "root1", type_ids_var_root1); - if (return_code_root != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_root1) { - { - StructTypeFlag struct_flags_root1 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_root1; - TypeIdentifierPair type_ids_root1; - QualifiedTypeName type_name_root1 = "root1"; - eprosima::fastcdr::optional type_ann_builtin_root1; - eprosima::fastcdr::optional ann_custom_root1; - CompleteTypeDetail detail_root1 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_root1, ann_custom_root1, type_name_root1.to_string()); - CompleteStructHeader header_root1; - header_root1 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_root1); - CompleteStructMemberSeq member_seq_root1; - { - return_code_root1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_1::foo", type_ids_root1); - - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; - QualifiedTypeName type_name_foo = "testing_1::foo"; - eprosima::fastcdr::optional type_ann_builtin_foo; - eprosima::fastcdr::optional ann_custom_foo; - CompleteTypeDetail detail_foo = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_foo, ann_custom_foo, type_name_foo.to_string()); - CompleteStructHeader header_foo; - header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); - CompleteStructMemberSeq member_seq_foo; - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "a Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_a = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_a; - MemberId member_id_a = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_struct_member(member_id_a, member_flags_a, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_a = "a"; - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_foo.reset(); - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_foo); - CompleteStructMember member_a = TypeObjectUtils::build_complete_struct_member(common_a, detail_a); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_a); - } - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "b Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_b = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_b; - MemberId member_id_b = 0x00000001; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_struct_member(member_id_b, member_flags_b, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_b = "b"; - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_foo.reset(); - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_foo); - CompleteStructMember member_b = TypeObjectUtils::build_complete_struct_member(common_b, detail_b); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_b); - } - CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_1::foo already registered in TypeObjectRegistry for a different type."); - } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_1::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_1::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root1 = return_code_foo; - type_ids_root1 = type_ids_foo; - } - } - StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_foo_struct; - MemberId member_id_foo_struct = 0x00000000; - if (EK_COMPLETE == type_ids_root1.type_identifier1()._d() || TK_NONE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root1.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure foo_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_foo_struct = "foo_struct"; - eprosima::fastcdr::optional member_ann_builtin_foo_struct; - ann_custom_root1.reset(); - CompleteMemberDetail detail_foo_struct = TypeObjectUtils::build_complete_member_detail(name_foo_struct, member_ann_builtin_foo_struct, ann_custom_root1); - CompleteStructMember member_foo_struct = TypeObjectUtils::build_complete_struct_member(common_foo_struct, detail_foo_struct); - TypeObjectUtils::add_complete_struct_member(member_seq_root1, member_foo_struct); - } - { - return_code_root1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_root1); - - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_c = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_c; - MemberId member_id_c = 0x00000001; - if (EK_COMPLETE == type_ids_root1.type_identifier1()._d() || TK_NONE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier1()._d() && - EK_COMPLETE == type_ids_root1.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_root1.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root1.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root1.type_identifier2()._d() && - EK_COMPLETE == type_ids_root1.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root1.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root1.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_struct_member(member_id_c, member_flags_c, type_ids_root1.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_root1.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_root1); - CompleteStructMember member_c = TypeObjectUtils::build_complete_struct_member(common_c, detail_c); - TypeObjectUtils::add_complete_struct_member(member_seq_root1, member_c); - } - CompleteStructType struct_type_root1 = TypeObjectUtils::build_complete_struct_type(struct_flags_root1, header_root1, member_seq_root1); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_root1, type_name_root1.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root1 already registered in TypeObjectRegistry for a different type."); - } - return_code_root1 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root1", type_ids_root1); - if (return_code_root1 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root1: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root = return_code_root1; - type_ids_root = type_ids_root1; - } + ::register_root1_type_identifier(type_ids_var_root1); } - StructMemberFlag member_flags_var_root1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_root1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_root1; MemberId member_id_var_root1 = 0x00000000; - if (EK_COMPLETE == type_ids_root.type_identifier1()._d() || TK_NONE == type_ids_root.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_root1 = TypeObjectUtils::build_common_struct_member(member_id_var_root1, member_flags_var_root1, type_ids_root.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_root1_ec {false}; + CommonStructMember common_var_root1 {TypeObjectUtils::build_common_struct_member(member_id_var_root1, member_flags_var_root1, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_root1, common_var_root1_ec))}; + if (!common_var_root1_ec) { - common_var_root1 = TypeObjectUtils::build_common_struct_member(member_id_var_root1, member_flags_var_root1, type_ids_root.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_root1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_root1 member TypeIdentifier inconsistent."); return; } MemberName name_var_root1 = "var_root1"; @@ -11050,410 +2946,24 @@ void register_root_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_root, member_var_root1); } { - return_code_root = + TypeIdentifierPair type_ids_var_root2; + ReturnCode_t return_code_var_root2 {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_root2 = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root2", type_ids_root); + "root2", type_ids_var_root2); - if (return_code_root != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_root2) { - { - StructTypeFlag struct_flags_root2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_root2; - TypeIdentifierPair type_ids_root2; - QualifiedTypeName type_name_root2 = "root2"; - eprosima::fastcdr::optional type_ann_builtin_root2; - eprosima::fastcdr::optional ann_custom_root2; - CompleteTypeDetail detail_root2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_root2, ann_custom_root2, type_name_root2.to_string()); - CompleteStructHeader header_root2; - header_root2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_root2); - CompleteStructMemberSeq member_seq_root2; - { - return_code_root2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_2::foo", type_ids_root2); - - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_foo = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_foo; - TypeIdentifierPair type_ids_foo; - QualifiedTypeName type_name_foo = "testing_2::foo"; - eprosima::fastcdr::optional type_ann_builtin_foo; - eprosima::fastcdr::optional ann_custom_foo; - CompleteTypeDetail detail_foo = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_foo, ann_custom_foo, type_name_foo.to_string()); - CompleteStructHeader header_foo; - header_foo = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_foo); - CompleteStructMemberSeq member_seq_foo; - { - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_foo); - - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "d Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_d = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_d; - MemberId member_id_d = 0x00000000; - if (EK_COMPLETE == type_ids_foo.type_identifier1()._d() || TK_NONE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier1()._d() && - EK_COMPLETE == type_ids_foo.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier1()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_foo.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_foo.type_identifier2()._d() && - EK_COMPLETE == type_ids_foo.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_foo.type_identifier2()._d() && - (EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_foo.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_struct_member(member_id_d, member_flags_d, type_ids_foo.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_foo.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_foo); - CompleteStructMember member_d = TypeObjectUtils::build_complete_struct_member(common_d, detail_d); - TypeObjectUtils::add_complete_struct_member(member_seq_foo, member_d); - } - CompleteStructType struct_type_foo = TypeObjectUtils::build_complete_struct_type(struct_flags_foo, header_foo, member_seq_foo); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_foo, type_name_foo.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_2::foo already registered in TypeObjectRegistry for a different type."); - } - return_code_foo = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "testing_2::foo", type_ids_foo); - if (return_code_foo != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "testing_2::foo: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root2 = return_code_foo; - type_ids_root2 = type_ids_foo; - } - } - StructMemberFlag member_flags_foo_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_foo_struct; - MemberId member_id_foo_struct = 0x00000000; - if (EK_COMPLETE == type_ids_root2.type_identifier1()._d() || TK_NONE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_foo_struct = TypeObjectUtils::build_common_struct_member(member_id_foo_struct, member_flags_foo_struct, type_ids_root2.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure foo_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_foo_struct = "foo_struct"; - eprosima::fastcdr::optional member_ann_builtin_foo_struct; - ann_custom_root2.reset(); - CompleteMemberDetail detail_foo_struct = TypeObjectUtils::build_complete_member_detail(name_foo_struct, member_ann_builtin_foo_struct, ann_custom_root2); - CompleteStructMember member_foo_struct = TypeObjectUtils::build_complete_struct_member(common_foo_struct, detail_foo_struct); - TypeObjectUtils::add_complete_struct_member(member_seq_root2, member_foo_struct); - } - { - return_code_root2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "bar", type_ids_root2); - - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_bar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - ReturnCode_t return_code_bar; - TypeIdentifierPair type_ids_bar; - QualifiedTypeName type_name_bar = "bar"; - eprosima::fastcdr::optional type_ann_builtin_bar; - eprosima::fastcdr::optional ann_custom_bar; - CompleteTypeDetail detail_bar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_bar, ann_custom_bar, type_name_bar.to_string()); - CompleteStructHeader header_bar; - header_bar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_bar); - CompleteStructMemberSeq member_seq_bar; - { - return_code_bar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_bar); - - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "e Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_e = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_e; - MemberId member_id_e = 0x00000000; - if (EK_COMPLETE == type_ids_bar.type_identifier1()._d() || TK_NONE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier1()._d() && - EK_COMPLETE == type_ids_bar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_bar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_bar.type_identifier2()._d() && - EK_COMPLETE == type_ids_bar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_bar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_bar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_struct_member(member_id_e, member_flags_e, type_ids_bar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_e = "e"; - eprosima::fastcdr::optional member_ann_builtin_e; - ann_custom_bar.reset(); - CompleteMemberDetail detail_e = TypeObjectUtils::build_complete_member_detail(name_e, member_ann_builtin_e, ann_custom_bar); - CompleteStructMember member_e = TypeObjectUtils::build_complete_struct_member(common_e, detail_e); - TypeObjectUtils::add_complete_struct_member(member_seq_bar, member_e); - } - CompleteStructType struct_type_bar = TypeObjectUtils::build_complete_struct_type(struct_flags_bar, header_bar, member_seq_bar); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_bar, type_name_bar.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bar already registered in TypeObjectRegistry for a different type."); - } - return_code_bar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "bar", type_ids_bar); - if (return_code_bar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root2 = return_code_bar; - type_ids_root2 = type_ids_bar; - } - } - StructMemberFlag member_flags_bar_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_bar_struct; - MemberId member_id_bar_struct = 0x00000001; - if (EK_COMPLETE == type_ids_root2.type_identifier1()._d() || TK_NONE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier1()._d() && - EK_COMPLETE == type_ids_root2.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bar_struct = TypeObjectUtils::build_common_struct_member(member_id_bar_struct, member_flags_bar_struct, type_ids_root2.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root2.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root2.type_identifier2()._d() && - EK_COMPLETE == type_ids_root2.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root2.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root2.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bar_struct = TypeObjectUtils::build_common_struct_member(member_id_bar_struct, member_flags_bar_struct, type_ids_root2.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bar_struct member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bar_struct = "bar_struct"; - eprosima::fastcdr::optional member_ann_builtin_bar_struct; - ann_custom_root2.reset(); - CompleteMemberDetail detail_bar_struct = TypeObjectUtils::build_complete_member_detail(name_bar_struct, member_ann_builtin_bar_struct, ann_custom_root2); - CompleteStructMember member_bar_struct = TypeObjectUtils::build_complete_struct_member(common_bar_struct, detail_bar_struct); - TypeObjectUtils::add_complete_struct_member(member_seq_root2, member_bar_struct); - } - CompleteStructType struct_type_root2 = TypeObjectUtils::build_complete_struct_type(struct_flags_root2, header_root2, member_seq_root2); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_root2, type_name_root2.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root2 already registered in TypeObjectRegistry for a different type."); - } - return_code_root2 = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root2", type_ids_root2); - if (return_code_root2 != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_root = return_code_root2; - type_ids_root = type_ids_root2; - } + ::register_root2_type_identifier(type_ids_var_root2); } - StructMemberFlag member_flags_var_root2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_root2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_root2; MemberId member_id_var_root2 = 0x00000001; - if (EK_COMPLETE == type_ids_root.type_identifier1()._d() || TK_NONE == type_ids_root.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root.type_identifier1()._d() && - EK_COMPLETE == type_ids_root.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root.type_identifier1()._d() && - (EK_COMPLETE == type_ids_root.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_var_root2_ec {false}; + CommonStructMember common_var_root2 {TypeObjectUtils::build_common_struct_member(member_id_var_root2, member_flags_var_root2, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_root2, common_var_root2_ec))}; + if (!common_var_root2_ec) { - common_var_root2 = TypeObjectUtils::build_common_struct_member(member_id_var_root2, member_flags_var_root2, type_ids_root.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_root.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_root.type_identifier2()._d() && - EK_COMPLETE == type_ids_root.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_root.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_root.type_identifier2()._d() && - (EK_COMPLETE == type_ids_root.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_root.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_root2 = TypeObjectUtils::build_common_struct_member(member_id_var_root2, member_flags_var_root2, type_ids_root.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_root2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_root2 member TypeIdentifier inconsistent."); return; } MemberName name_var_root2 = "var_root2"; @@ -11465,21 +2975,11 @@ void register_root_type_identifier( } CompleteStructType struct_type_root = TypeObjectUtils::build_complete_struct_type(struct_flags_root, header_root, member_seq_root); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_root, type_name_root.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_root, type_name_root.to_string(), type_ids_root)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "root already registered in TypeObjectRegistry for a different type."); } - return_code_root = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "root", type_ids_root); - if (return_code_root != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "root: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/structuresTypeObjectSupport.hpp b/test/dds-types-test/structuresTypeObjectSupport.hpp index 18ed602b851..b5a5472038b 100644 --- a/test/dds-types-test/structuresTypeObjectSupport.hpp +++ b/test/dds-types-test/structuresTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_structures_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_structures_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructUnsignedShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_StructShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructUnsignedShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_StructUnsignedShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructUnsignedLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_StructLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructUnsignedLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_StructUnsignedLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructUnsignedLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_StructLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructUnsignedLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_StructUnsignedLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_StructFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_StructDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_StructLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_StructBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructChar8 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_StructOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructChar8_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructChar16 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_StructChar8_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructChar16_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_StructChar16_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_StructString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_StructWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_StructBoundedString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_StructBoundedWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructBitMask related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_StructEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructBitMask_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_StructBitMask_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructShortArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_StructAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructShortArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_StructShortArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_StructSequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructUnion related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_StructMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructUnion_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructStructure related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_StructUnion_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructStructure_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructBitset related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_StructStructure_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructBitset_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructEmpty related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_StructBitset_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructEmpty_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Structures related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,10 +373,10 @@ eProsima_user_DllExport void register_StructEmpty_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Structures_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); namespace testing_1 { /** - * @brief Register testing_1_foo related TypeIdentifier. + * @brief Register foo related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -390,13 +385,13 @@ namespace testing_1 { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_testing_1_foo_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_foo_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace testing_1 namespace testing_2 { /** - * @brief Register testing_2_foo related TypeIdentifier. + * @brief Register foo related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is * indirectly registered as well. @@ -405,8 +400,8 @@ namespace testing_2 { * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. * Invalid TypeIdentifier is returned in case of error. */ -eProsima_user_DllExport void register_testing_2_foo_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); +eProsima_user_DllExport void register_foo_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); } // namespace testing_2 /** @@ -420,7 +415,7 @@ eProsima_user_DllExport void register_testing_2_foo_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_bar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register root1 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -432,7 +427,7 @@ eProsima_user_DllExport void register_bar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_root1_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register root2 related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -444,7 +439,7 @@ eProsima_user_DllExport void register_root1_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_root2_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register root related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -456,7 +451,7 @@ eProsima_user_DllExport void register_root2_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_root_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/dds-types-test/unionsPubSubTypes.cxx b/test/dds-types-test/unionsPubSubTypes.cxx index 5284db492e6..5fe777061f4 100644 --- a/test/dds-types-test/unionsPubSubTypes.cxx +++ b/test/dds-types-test/unionsPubSubTypes.cxx @@ -219,9 +219,9 @@ bool UnionShortPubSubType::getKey( return true; } -void UnionShortPubSubType::register_type_object_representation() const +void UnionShortPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionShort_type_identifier(type_identifiers_); } UnionUShortPubSubType::UnionUShortPubSubType() @@ -412,9 +412,9 @@ bool UnionUShortPubSubType::getKey( return true; } -void UnionUShortPubSubType::register_type_object_representation() const +void UnionUShortPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionUShort_type_identifier(type_identifiers_); } UnionLongPubSubType::UnionLongPubSubType() @@ -605,9 +605,9 @@ bool UnionLongPubSubType::getKey( return true; } -void UnionLongPubSubType::register_type_object_representation() const +void UnionLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionLong_type_identifier(type_identifiers_); } UnionULongPubSubType::UnionULongPubSubType() @@ -798,9 +798,9 @@ bool UnionULongPubSubType::getKey( return true; } -void UnionULongPubSubType::register_type_object_representation() const +void UnionULongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionULong_type_identifier(type_identifiers_); } UnionLongLongPubSubType::UnionLongLongPubSubType() @@ -991,9 +991,9 @@ bool UnionLongLongPubSubType::getKey( return true; } -void UnionLongLongPubSubType::register_type_object_representation() const +void UnionLongLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionLongLong_type_identifier(type_identifiers_); } UnionULongLongPubSubType::UnionULongLongPubSubType() @@ -1184,9 +1184,9 @@ bool UnionULongLongPubSubType::getKey( return true; } -void UnionULongLongPubSubType::register_type_object_representation() const +void UnionULongLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionULongLong_type_identifier(type_identifiers_); } UnionFloatPubSubType::UnionFloatPubSubType() @@ -1377,9 +1377,9 @@ bool UnionFloatPubSubType::getKey( return true; } -void UnionFloatPubSubType::register_type_object_representation() const +void UnionFloatPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionFloat_type_identifier(type_identifiers_); } UnionDoublePubSubType::UnionDoublePubSubType() @@ -1570,9 +1570,9 @@ bool UnionDoublePubSubType::getKey( return true; } -void UnionDoublePubSubType::register_type_object_representation() const +void UnionDoublePubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDouble_type_identifier(type_identifiers_); } UnionLongDoublePubSubType::UnionLongDoublePubSubType() @@ -1763,9 +1763,9 @@ bool UnionLongDoublePubSubType::getKey( return true; } -void UnionLongDoublePubSubType::register_type_object_representation() const +void UnionLongDoublePubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionLongDouble_type_identifier(type_identifiers_); } UnionBooleanPubSubType::UnionBooleanPubSubType() @@ -1956,9 +1956,9 @@ bool UnionBooleanPubSubType::getKey( return true; } -void UnionBooleanPubSubType::register_type_object_representation() const +void UnionBooleanPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionBoolean_type_identifier(type_identifiers_); } UnionOctetPubSubType::UnionOctetPubSubType() @@ -2149,9 +2149,9 @@ bool UnionOctetPubSubType::getKey( return true; } -void UnionOctetPubSubType::register_type_object_representation() const +void UnionOctetPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionOctet_type_identifier(type_identifiers_); } UnionCharPubSubType::UnionCharPubSubType() @@ -2342,9 +2342,9 @@ bool UnionCharPubSubType::getKey( return true; } -void UnionCharPubSubType::register_type_object_representation() const +void UnionCharPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionChar_type_identifier(type_identifiers_); } UnionWCharPubSubType::UnionWCharPubSubType() @@ -2535,9 +2535,9 @@ bool UnionWCharPubSubType::getKey( return true; } -void UnionWCharPubSubType::register_type_object_representation() const +void UnionWCharPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionWChar_type_identifier(type_identifiers_); } UnionStringPubSubType::UnionStringPubSubType() @@ -2728,9 +2728,9 @@ bool UnionStringPubSubType::getKey( return true; } -void UnionStringPubSubType::register_type_object_representation() const +void UnionStringPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionString_type_identifier(type_identifiers_); } UnionWStringPubSubType::UnionWStringPubSubType() @@ -2921,9 +2921,9 @@ bool UnionWStringPubSubType::getKey( return true; } -void UnionWStringPubSubType::register_type_object_representation() const +void UnionWStringPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionWString_type_identifier(type_identifiers_); } UnionBoundedStringPubSubType::UnionBoundedStringPubSubType() @@ -3114,9 +3114,9 @@ bool UnionBoundedStringPubSubType::getKey( return true; } -void UnionBoundedStringPubSubType::register_type_object_representation() const +void UnionBoundedStringPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionBoundedString_type_identifier(type_identifiers_); } UnionBoundedWStringPubSubType::UnionBoundedWStringPubSubType() @@ -3307,9 +3307,9 @@ bool UnionBoundedWStringPubSubType::getKey( return true; } -void UnionBoundedWStringPubSubType::register_type_object_representation() const +void UnionBoundedWStringPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionBoundedWString_type_identifier(type_identifiers_); } UnionInnerEnumHelperPubSubType::UnionInnerEnumHelperPubSubType() @@ -3500,9 +3500,9 @@ bool UnionInnerEnumHelperPubSubType::getKey( return true; } -void UnionInnerEnumHelperPubSubType::register_type_object_representation() const +void UnionInnerEnumHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerEnumHelper_type_identifier(type_identifiers_); } UnionInnerBitMaskHelperPubSubType::UnionInnerBitMaskHelperPubSubType() @@ -3693,9 +3693,9 @@ bool UnionInnerBitMaskHelperPubSubType::getKey( return true; } -void UnionInnerBitMaskHelperPubSubType::register_type_object_representation() const +void UnionInnerBitMaskHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerBitMaskHelper_type_identifier(type_identifiers_); } UnionInnerAliasHelperPubSubType::UnionInnerAliasHelperPubSubType() @@ -3886,9 +3886,9 @@ bool UnionInnerAliasHelperPubSubType::getKey( return true; } -void UnionInnerAliasHelperPubSubType::register_type_object_representation() const +void UnionInnerAliasHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerAliasHelper_type_identifier(type_identifiers_); } UnionArrayPubSubType::UnionArrayPubSubType() @@ -4079,9 +4079,9 @@ bool UnionArrayPubSubType::getKey( return true; } -void UnionArrayPubSubType::register_type_object_representation() const +void UnionArrayPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionArray_type_identifier(type_identifiers_); } UnionSequencePubSubType::UnionSequencePubSubType() @@ -4272,9 +4272,9 @@ bool UnionSequencePubSubType::getKey( return true; } -void UnionSequencePubSubType::register_type_object_representation() const +void UnionSequencePubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionSequence_type_identifier(type_identifiers_); } UnionMapPubSubType::UnionMapPubSubType() @@ -4465,9 +4465,9 @@ bool UnionMapPubSubType::getKey( return true; } -void UnionMapPubSubType::register_type_object_representation() const +void UnionMapPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionMap_type_identifier(type_identifiers_); } UnionInnerUnionHelperPubSubType::UnionInnerUnionHelperPubSubType() @@ -4658,9 +4658,9 @@ bool UnionInnerUnionHelperPubSubType::getKey( return true; } -void UnionInnerUnionHelperPubSubType::register_type_object_representation() const +void UnionInnerUnionHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerUnionHelper_type_identifier(type_identifiers_); } UnionInnerStructureHelperPubSubType::UnionInnerStructureHelperPubSubType() @@ -4851,9 +4851,9 @@ bool UnionInnerStructureHelperPubSubType::getKey( return true; } -void UnionInnerStructureHelperPubSubType::register_type_object_representation() const +void UnionInnerStructureHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerStructureHelper_type_identifier(type_identifiers_); } UnionInnerBitsetHelperPubSubType::UnionInnerBitsetHelperPubSubType() @@ -5044,9 +5044,9 @@ bool UnionInnerBitsetHelperPubSubType::getKey( return true; } -void UnionInnerBitsetHelperPubSubType::register_type_object_representation() const +void UnionInnerBitsetHelperPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionInnerBitsetHelper_type_identifier(type_identifiers_); } UnionDiscriminatorShortPubSubType::UnionDiscriminatorShortPubSubType() @@ -5237,9 +5237,9 @@ bool UnionDiscriminatorShortPubSubType::getKey( return true; } -void UnionDiscriminatorShortPubSubType::register_type_object_representation() const +void UnionDiscriminatorShortPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorShort_type_identifier(type_identifiers_); } UnionDiscriminatorUShortPubSubType::UnionDiscriminatorUShortPubSubType() @@ -5430,9 +5430,9 @@ bool UnionDiscriminatorUShortPubSubType::getKey( return true; } -void UnionDiscriminatorUShortPubSubType::register_type_object_representation() const +void UnionDiscriminatorUShortPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorUShort_type_identifier(type_identifiers_); } UnionDiscriminatorLongPubSubType::UnionDiscriminatorLongPubSubType() @@ -5623,9 +5623,9 @@ bool UnionDiscriminatorLongPubSubType::getKey( return true; } -void UnionDiscriminatorLongPubSubType::register_type_object_representation() const +void UnionDiscriminatorLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorLong_type_identifier(type_identifiers_); } UnionDiscriminatorULongPubSubType::UnionDiscriminatorULongPubSubType() @@ -5816,9 +5816,9 @@ bool UnionDiscriminatorULongPubSubType::getKey( return true; } -void UnionDiscriminatorULongPubSubType::register_type_object_representation() const +void UnionDiscriminatorULongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorULong_type_identifier(type_identifiers_); } UnionDiscriminatorLongLongPubSubType::UnionDiscriminatorLongLongPubSubType() @@ -6009,9 +6009,9 @@ bool UnionDiscriminatorLongLongPubSubType::getKey( return true; } -void UnionDiscriminatorLongLongPubSubType::register_type_object_representation() const +void UnionDiscriminatorLongLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorLongLong_type_identifier(type_identifiers_); } UnionDiscriminatorULongLongPubSubType::UnionDiscriminatorULongLongPubSubType() @@ -6202,9 +6202,9 @@ bool UnionDiscriminatorULongLongPubSubType::getKey( return true; } -void UnionDiscriminatorULongLongPubSubType::register_type_object_representation() const +void UnionDiscriminatorULongLongPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorULongLong_type_identifier(type_identifiers_); } UnionDiscriminatorBooleanPubSubType::UnionDiscriminatorBooleanPubSubType() @@ -6395,9 +6395,9 @@ bool UnionDiscriminatorBooleanPubSubType::getKey( return true; } -void UnionDiscriminatorBooleanPubSubType::register_type_object_representation() const +void UnionDiscriminatorBooleanPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorBoolean_type_identifier(type_identifiers_); } UnionDiscriminatorOctetPubSubType::UnionDiscriminatorOctetPubSubType() @@ -6588,9 +6588,9 @@ bool UnionDiscriminatorOctetPubSubType::getKey( return true; } -void UnionDiscriminatorOctetPubSubType::register_type_object_representation() const +void UnionDiscriminatorOctetPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorOctet_type_identifier(type_identifiers_); } UnionDiscriminatorCharPubSubType::UnionDiscriminatorCharPubSubType() @@ -6781,9 +6781,9 @@ bool UnionDiscriminatorCharPubSubType::getKey( return true; } -void UnionDiscriminatorCharPubSubType::register_type_object_representation() const +void UnionDiscriminatorCharPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorChar_type_identifier(type_identifiers_); } UnionDiscriminatorWCharPubSubType::UnionDiscriminatorWCharPubSubType() @@ -6974,9 +6974,9 @@ bool UnionDiscriminatorWCharPubSubType::getKey( return true; } -void UnionDiscriminatorWCharPubSubType::register_type_object_representation() const +void UnionDiscriminatorWCharPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorWChar_type_identifier(type_identifiers_); } UnionDiscriminatorEnumPubSubType::UnionDiscriminatorEnumPubSubType() @@ -7167,9 +7167,9 @@ bool UnionDiscriminatorEnumPubSubType::getKey( return true; } -void UnionDiscriminatorEnumPubSubType::register_type_object_representation() const +void UnionDiscriminatorEnumPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorEnum_type_identifier(type_identifiers_); } UnionDiscriminatorEnumLabelPubSubType::UnionDiscriminatorEnumLabelPubSubType() @@ -7360,9 +7360,9 @@ bool UnionDiscriminatorEnumLabelPubSubType::getKey( return true; } -void UnionDiscriminatorEnumLabelPubSubType::register_type_object_representation() const +void UnionDiscriminatorEnumLabelPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorEnumLabel_type_identifier(type_identifiers_); } UnionDiscriminatorAliasPubSubType::UnionDiscriminatorAliasPubSubType() @@ -7553,9 +7553,9 @@ bool UnionDiscriminatorAliasPubSubType::getKey( return true; } -void UnionDiscriminatorAliasPubSubType::register_type_object_representation() const +void UnionDiscriminatorAliasPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionDiscriminatorAlias_type_identifier(type_identifiers_); } UnionSeveralFieldsPubSubType::UnionSeveralFieldsPubSubType() @@ -7746,9 +7746,9 @@ bool UnionSeveralFieldsPubSubType::getKey( return true; } -void UnionSeveralFieldsPubSubType::register_type_object_representation() const +void UnionSeveralFieldsPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionSeveralFields_type_identifier(type_identifiers_); } UnionSeveralFieldsWithDefaultPubSubType::UnionSeveralFieldsWithDefaultPubSubType() @@ -7939,9 +7939,9 @@ bool UnionSeveralFieldsWithDefaultPubSubType::getKey( return true; } -void UnionSeveralFieldsWithDefaultPubSubType::register_type_object_representation() const +void UnionSeveralFieldsWithDefaultPubSubType::register_type_object_representation() { - register_unions_type_objects(); + register_UnionSeveralFieldsWithDefault_type_identifier(type_identifiers_); } diff --git a/test/dds-types-test/unionsPubSubTypes.h b/test/dds-types-test/unionsPubSubTypes.h index 5db4eb593ca..c23d50529b4 100644 --- a/test/dds-types-test/unionsPubSubTypes.h +++ b/test/dds-types-test/unionsPubSubTypes.h @@ -90,7 +90,7 @@ class UnionShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -181,7 +181,7 @@ class UnionUShortPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -272,7 +272,7 @@ class UnionLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -363,7 +363,7 @@ class UnionULongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -454,7 +454,7 @@ class UnionLongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -545,7 +545,7 @@ class UnionULongLongPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -636,7 +636,7 @@ class UnionFloatPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -727,7 +727,7 @@ class UnionDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -818,7 +818,7 @@ class UnionLongDoublePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -909,7 +909,7 @@ class UnionBooleanPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1000,7 +1000,7 @@ class UnionOctetPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1091,7 +1091,7 @@ class UnionCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1182,7 +1182,7 @@ class UnionWCharPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1273,7 +1273,7 @@ class UnionStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1364,7 +1364,7 @@ class UnionWStringPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1455,7 +1455,7 @@ class UnionBoundedStringPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1546,7 +1546,7 @@ class UnionBoundedWStringPubSubType : public eprosima::fastdds::dds::TopicDataTy void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1637,7 +1637,7 @@ class UnionInnerEnumHelperPubSubType : public eprosima::fastdds::dds::TopicDataT void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1728,7 +1728,7 @@ class UnionInnerBitMaskHelperPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1819,7 +1819,7 @@ class UnionInnerAliasHelperPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -1910,7 +1910,7 @@ class UnionArrayPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2001,7 +2001,7 @@ class UnionSequencePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2092,7 +2092,7 @@ class UnionMapPubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2183,7 +2183,7 @@ class UnionInnerUnionHelperPubSubType : public eprosima::fastdds::dds::TopicData void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2274,7 +2274,7 @@ class UnionInnerStructureHelperPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2365,7 +2365,7 @@ class UnionInnerBitsetHelperPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2456,7 +2456,7 @@ class UnionDiscriminatorShortPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2547,7 +2547,7 @@ class UnionDiscriminatorUShortPubSubType : public eprosima::fastdds::dds::TopicD void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2638,7 +2638,7 @@ class UnionDiscriminatorLongPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2729,7 +2729,7 @@ class UnionDiscriminatorULongPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2820,7 +2820,7 @@ class UnionDiscriminatorLongLongPubSubType : public eprosima::fastdds::dds::Topi void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -2911,7 +2911,7 @@ class UnionDiscriminatorULongLongPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3002,7 +3002,7 @@ class UnionDiscriminatorBooleanPubSubType : public eprosima::fastdds::dds::Topic void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3093,7 +3093,7 @@ class UnionDiscriminatorOctetPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3184,7 +3184,7 @@ class UnionDiscriminatorCharPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3275,7 +3275,7 @@ class UnionDiscriminatorWCharPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3366,7 +3366,7 @@ class UnionDiscriminatorEnumPubSubType : public eprosima::fastdds::dds::TopicDat void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3457,7 +3457,7 @@ class UnionDiscriminatorEnumLabelPubSubType : public eprosima::fastdds::dds::Top void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3548,7 +3548,7 @@ class UnionDiscriminatorAliasPubSubType : public eprosima::fastdds::dds::TopicDa void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3639,7 +3639,7 @@ class UnionSeveralFieldsPubSubType : public eprosima::fastdds::dds::TopicDataTyp void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override @@ -3730,7 +3730,7 @@ class UnionSeveralFieldsWithDefaultPubSubType : public eprosima::fastdds::dds::T void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/dds-types-test/unionsTypeObjectSupport.cxx b/test/dds-types-test/unionsTypeObjectSupport.cxx index 9838b9420df..b2f69f42cf4 100644 --- a/test/dds-types-test/unionsTypeObjectSupport.cxx +++ b/test/dds-types-test/unionsTypeObjectSupport.cxx @@ -39,200 +39,24 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_unions_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_InnerStructureHelper_type_identifier(type_id); - - register_InnerEmptyStructureHelper_type_identifier(type_id); - - register_InnerUnionHelper_type_identifier(type_id); - - register_Union_Short_type_identifier(type_id); - - register_Union_UShort_type_identifier(type_id); - - register_Union_Long_type_identifier(type_id); - - register_Union_ULong_type_identifier(type_id); - - register_Union_LongLong_type_identifier(type_id); - - register_Union_ULongLOng_type_identifier(type_id); - - register_Union_Float_type_identifier(type_id); - - register_Union_Double_type_identifier(type_id); - - register_Union_LongDouble_type_identifier(type_id); - - register_Union_Boolean_type_identifier(type_id); - - register_Union_Octet_type_identifier(type_id); - - register_Union_Char_type_identifier(type_id); - - register_Union_WChar_type_identifier(type_id); - - register_Union_String_type_identifier(type_id); - - register_Union_WString_type_identifier(type_id); - - register_Union_BoundedString_type_identifier(type_id); - - register_Union_BoundedWString_type_identifier(type_id); - - register_Union_InnerEnumHelper_type_identifier(type_id); - - register_Union_InnerBitMaskHelper_type_identifier(type_id); - - register_Union_InnerAliasHelper_type_identifier(type_id); - - register_Union_Array_type_identifier(type_id); - - register_Union_Sequence_type_identifier(type_id); - - register_Union_Map_type_identifier(type_id); - - register_Union_InnerUnionHelper_type_identifier(type_id); - - register_Union_InnerStructureHelper_type_identifier(type_id); - - register_Union_InnerBitsetHelper_type_identifier(type_id); - - register_Union_Discriminator_short_type_identifier(type_id); - - register_Union_Discriminator_unsigned_short_type_identifier(type_id); - - register_Union_Discriminator_long_type_identifier(type_id); - - register_Union_Discriminator_unsigned_long_type_identifier(type_id); - - register_Union_Discriminator_long_long_type_identifier(type_id); - - register_Union_Discriminator_unsigned_long_long_type_identifier(type_id); - - register_Union_Discriminator_boolean_type_identifier(type_id); - - register_Union_Discriminator_octet_type_identifier(type_id); - - register_Union_Discriminator_char_type_identifier(type_id); - - register_Union_Discriminator_wchar_type_identifier(type_id); - - register_Union_Discriminator_enum_type_identifier(type_id); - - register_Union_Discriminator_enum_labels_type_identifier(type_id); - - register_Union_Discriminator_alias_type_identifier(type_id); - - register_Union_Several_Fields_type_identifier(type_id); - - register_Union_Several_Fields_With_Default_type_identifier(type_id); - - register_UnionShort_type_identifier(type_id); - - register_UnionUShort_type_identifier(type_id); - - register_UnionLong_type_identifier(type_id); - - register_UnionULong_type_identifier(type_id); - - register_UnionLongLong_type_identifier(type_id); - - register_UnionULongLong_type_identifier(type_id); - - register_UnionFloat_type_identifier(type_id); - - register_UnionDouble_type_identifier(type_id); - - register_UnionLongDouble_type_identifier(type_id); - - register_UnionBoolean_type_identifier(type_id); - - register_UnionOctet_type_identifier(type_id); - - register_UnionChar_type_identifier(type_id); - - register_UnionWChar_type_identifier(type_id); - - register_UnionString_type_identifier(type_id); - - register_UnionWString_type_identifier(type_id); - - register_UnionBoundedString_type_identifier(type_id); - - register_UnionBoundedWString_type_identifier(type_id); - - register_UnionInnerEnumHelper_type_identifier(type_id); - - register_UnionInnerBitMaskHelper_type_identifier(type_id); - - register_UnionInnerAliasHelper_type_identifier(type_id); - - register_UnionArray_type_identifier(type_id); - - register_UnionSequence_type_identifier(type_id); - - register_UnionMap_type_identifier(type_id); - - register_UnionInnerUnionHelper_type_identifier(type_id); - - register_UnionInnerStructureHelper_type_identifier(type_id); - - register_UnionInnerBitsetHelper_type_identifier(type_id); - - register_UnionDiscriminatorShort_type_identifier(type_id); - - register_UnionDiscriminatorUShort_type_identifier(type_id); - - register_UnionDiscriminatorLong_type_identifier(type_id); - - register_UnionDiscriminatorULong_type_identifier(type_id); - - register_UnionDiscriminatorLongLong_type_identifier(type_id); - - register_UnionDiscriminatorULongLong_type_identifier(type_id); - - register_UnionDiscriminatorBoolean_type_identifier(type_id); - - register_UnionDiscriminatorOctet_type_identifier(type_id); - - register_UnionDiscriminatorChar_type_identifier(type_id); - - register_UnionDiscriminatorWChar_type_identifier(type_id); - - register_UnionDiscriminatorEnum_type_identifier(type_id); - - register_UnionDiscriminatorEnumLabel_type_identifier(type_id); - - register_UnionDiscriminatorAlias_type_identifier(type_id); - - register_UnionSeveralFields_type_identifier(type_id); - - register_UnionSeveralFieldsWithDefault_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Short_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Short) { + ReturnCode_t return_code_Union_Short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Short", type_ids_Union_Short); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Short) { - ReturnCode_t return_code_Union_Short; - TypeIdentifierPair type_ids_Union_Short; - UnionTypeFlag union_flags_Union_Short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Short = "Union_Short"; eprosima::fastcdr::optional type_ann_builtin_Union_Short; eprosima::fastcdr::optional ann_custom_Union_Short; CompleteTypeDetail detail_Union_Short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Short, ann_custom_Union_Short, type_name_Union_Short.to_string()); CompleteUnionHeader header_Union_Short = TypeObjectUtils::build_complete_union_header(detail_Union_Short); - UnionDiscriminatorFlag member_flags_Union_Short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -242,7 +66,6 @@ void register_Union_Short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Short; @@ -258,7 +81,6 @@ void register_Union_Short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Short.reset(); @@ -271,62 +93,24 @@ void register_Union_Short_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_Union_Short); - if (return_code_Union_Short != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "a Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_a; TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Short.type_identifier1()._d() || TK_NONE == type_ids_Union_Short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Short.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Short.type_identifier2(), - label_seq_a); - } - else + bool common_a_ec {false}; + CommonUnionMember common_a {TypeObjectUtils::build_common_union_member(member_id_a, + member_flags_a, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Short, + common_a_ec), label_seq_a)}; + if (!common_a_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union a member TypeIdentifier inconsistent."); return; } MemberName name_a = "a"; @@ -339,38 +123,31 @@ void register_Union_Short_type_identifier( CompleteUnionType union_type_Union_Short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Short, header_Union_Short, discriminator_Union_Short, member_seq_Union_Short); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Short, type_name_Union_Short.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Short, type_name_Union_Short.to_string(), type_ids_Union_Short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Short already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Short", type_ids_Union_Short); - if (return_code_Union_Short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_UShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_UShort) { + ReturnCode_t return_code_Union_UShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_UShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_UShort", type_ids_Union_UShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_UShort) { - ReturnCode_t return_code_Union_UShort; - TypeIdentifierPair type_ids_Union_UShort; - UnionTypeFlag union_flags_Union_UShort = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_UShort = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_UShort = "Union_UShort"; eprosima::fastcdr::optional type_ann_builtin_Union_UShort; eprosima::fastcdr::optional ann_custom_Union_UShort; CompleteTypeDetail detail_Union_UShort = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_UShort, ann_custom_Union_UShort, type_name_Union_UShort.to_string()); CompleteUnionHeader header_Union_UShort = TypeObjectUtils::build_complete_union_header(detail_Union_UShort); - UnionDiscriminatorFlag member_flags_Union_UShort = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_UShort = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_UShort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -380,7 +157,6 @@ void register_Union_UShort_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_UShort; @@ -396,7 +172,6 @@ void register_Union_UShort_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_UShort discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_UShort.reset(); @@ -409,62 +184,24 @@ void register_Union_UShort_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_uint16_t", type_ids_Union_UShort); - if (return_code_Union_UShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_UShort) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "b Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_b; TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; MemberId member_id_b = 0x00000001; - if (EK_COMPLETE == type_ids_Union_UShort.type_identifier1()._d() || TK_NONE == type_ids_Union_UShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_UShort.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_UShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_UShort.type_identifier2(), - label_seq_b); - } - else + bool common_b_ec {false}; + CommonUnionMember common_b {TypeObjectUtils::build_common_union_member(member_id_b, + member_flags_b, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_UShort, + common_b_ec), label_seq_b)}; + if (!common_b_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union b member TypeIdentifier inconsistent."); return; } MemberName name_b = "b"; @@ -477,38 +214,31 @@ void register_Union_UShort_type_identifier( CompleteUnionType union_type_Union_UShort = TypeObjectUtils::build_complete_union_type(union_flags_Union_UShort, header_Union_UShort, discriminator_Union_UShort, member_seq_Union_UShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_UShort, type_name_Union_UShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_UShort, type_name_Union_UShort.to_string(), type_ids_Union_UShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_UShort already registered in TypeObjectRegistry for a different type."); } - return_code_Union_UShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_UShort", type_ids_Union_UShort); - if (return_code_Union_UShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_UShort: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Long_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Long) { + ReturnCode_t return_code_Union_Long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Long", type_ids_Union_Long); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Long) { - ReturnCode_t return_code_Union_Long; - TypeIdentifierPair type_ids_Union_Long; - UnionTypeFlag union_flags_Union_Long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Long = "Union_Long"; eprosima::fastcdr::optional type_ann_builtin_Union_Long; eprosima::fastcdr::optional ann_custom_Union_Long; CompleteTypeDetail detail_Union_Long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Long, ann_custom_Union_Long, type_name_Union_Long.to_string()); CompleteUnionHeader header_Union_Long = TypeObjectUtils::build_complete_union_header(detail_Union_Long); - UnionDiscriminatorFlag member_flags_Union_Long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -518,7 +248,6 @@ void register_Union_Long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Long; @@ -534,7 +263,6 @@ void register_Union_Long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Long.reset(); @@ -547,62 +275,24 @@ void register_Union_Long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Long); - if (return_code_Union_Long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "c Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_c; TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; MemberId member_id_c = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Long.type_identifier1()._d() || TK_NONE == type_ids_Union_Long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Long.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Long.type_identifier2(), - label_seq_c); - } - else + bool common_c_ec {false}; + CommonUnionMember common_c {TypeObjectUtils::build_common_union_member(member_id_c, + member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Long, + common_c_ec), label_seq_c)}; + if (!common_c_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -615,38 +305,31 @@ void register_Union_Long_type_identifier( CompleteUnionType union_type_Union_Long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Long, header_Union_Long, discriminator_Union_Long, member_seq_Union_Long); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Long, type_name_Union_Long.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Long, type_name_Union_Long.to_string(), type_ids_Union_Long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Long already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Long", type_ids_Union_Long); - if (return_code_Union_Long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_ULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_ULong) { + ReturnCode_t return_code_Union_ULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_ULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_ULong", type_ids_Union_ULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_ULong) { - ReturnCode_t return_code_Union_ULong; - TypeIdentifierPair type_ids_Union_ULong; - UnionTypeFlag union_flags_Union_ULong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_ULong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_ULong = "Union_ULong"; eprosima::fastcdr::optional type_ann_builtin_Union_ULong; eprosima::fastcdr::optional ann_custom_Union_ULong; CompleteTypeDetail detail_Union_ULong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_ULong, ann_custom_Union_ULong, type_name_Union_ULong.to_string()); CompleteUnionHeader header_Union_ULong = TypeObjectUtils::build_complete_union_header(detail_Union_ULong); - UnionDiscriminatorFlag member_flags_Union_ULong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_ULong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_ULong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -656,7 +339,6 @@ void register_Union_ULong_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_ULong; @@ -672,7 +354,6 @@ void register_Union_ULong_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_ULong discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_ULong.reset(); @@ -685,62 +366,24 @@ void register_Union_ULong_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_uint32_t", type_ids_Union_ULong); - if (return_code_Union_ULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_ULong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "d Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_d; TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; MemberId member_id_d = 0x00000001; - if (EK_COMPLETE == type_ids_Union_ULong.type_identifier1()._d() || TK_NONE == type_ids_Union_ULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_ULong.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_ULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_ULong.type_identifier2(), - label_seq_d); - } - else + bool common_d_ec {false}; + CommonUnionMember common_d {TypeObjectUtils::build_common_union_member(member_id_d, + member_flags_d, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_ULong, + common_d_ec), label_seq_d)}; + if (!common_d_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union d member TypeIdentifier inconsistent."); return; } MemberName name_d = "d"; @@ -753,38 +396,31 @@ void register_Union_ULong_type_identifier( CompleteUnionType union_type_Union_ULong = TypeObjectUtils::build_complete_union_type(union_flags_Union_ULong, header_Union_ULong, discriminator_Union_ULong, member_seq_Union_ULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULong, type_name_Union_ULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULong, type_name_Union_ULong.to_string(), type_ids_Union_ULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_ULong already registered in TypeObjectRegistry for a different type."); } - return_code_Union_ULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULong", type_ids_Union_ULong); - if (return_code_Union_ULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULong: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_LongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_LongLong) { + ReturnCode_t return_code_Union_LongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_LongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_LongLong", type_ids_Union_LongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_LongLong) { - ReturnCode_t return_code_Union_LongLong; - TypeIdentifierPair type_ids_Union_LongLong; - UnionTypeFlag union_flags_Union_LongLong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_LongLong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_LongLong = "Union_LongLong"; eprosima::fastcdr::optional type_ann_builtin_Union_LongLong; eprosima::fastcdr::optional ann_custom_Union_LongLong; CompleteTypeDetail detail_Union_LongLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_LongLong, ann_custom_Union_LongLong, type_name_Union_LongLong.to_string()); CompleteUnionHeader header_Union_LongLong = TypeObjectUtils::build_complete_union_header(detail_Union_LongLong); - UnionDiscriminatorFlag member_flags_Union_LongLong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_LongLong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_LongLong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -794,7 +430,6 @@ void register_Union_LongLong_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_LongLong; @@ -810,7 +445,6 @@ void register_Union_LongLong_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_LongLong discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_LongLong.reset(); @@ -823,62 +457,24 @@ void register_Union_LongLong_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_LongLong); - if (return_code_Union_LongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_LongLong) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "e Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_e; TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; MemberId member_id_e = 0x00000001; - if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1()._d() || TK_NONE == type_ids_Union_LongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_LongLong.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_LongLong.type_identifier2(), - label_seq_e); - } - else + bool common_e_ec {false}; + CommonUnionMember common_e {TypeObjectUtils::build_common_union_member(member_id_e, + member_flags_e, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_LongLong, + common_e_ec), label_seq_e)}; + if (!common_e_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union e member TypeIdentifier inconsistent."); return; } MemberName name_e = "e"; @@ -891,38 +487,31 @@ void register_Union_LongLong_type_identifier( CompleteUnionType union_type_Union_LongLong = TypeObjectUtils::build_complete_union_type(union_flags_Union_LongLong, header_Union_LongLong, discriminator_Union_LongLong, member_seq_Union_LongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongLong, type_name_Union_LongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongLong, type_name_Union_LongLong.to_string(), type_ids_Union_LongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_LongLong already registered in TypeObjectRegistry for a different type."); } - return_code_Union_LongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongLong", type_ids_Union_LongLong); - if (return_code_Union_LongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongLong: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_ULongLOng_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_ULongLOng) { + ReturnCode_t return_code_Union_ULongLOng {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_ULongLOng = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_ULongLOng", type_ids_Union_ULongLOng); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_ULongLOng) { - ReturnCode_t return_code_Union_ULongLOng; - TypeIdentifierPair type_ids_Union_ULongLOng; - UnionTypeFlag union_flags_Union_ULongLOng = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_ULongLOng = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_ULongLOng = "Union_ULongLOng"; eprosima::fastcdr::optional type_ann_builtin_Union_ULongLOng; eprosima::fastcdr::optional ann_custom_Union_ULongLOng; CompleteTypeDetail detail_Union_ULongLOng = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_ULongLOng, ann_custom_Union_ULongLOng, type_name_Union_ULongLOng.to_string()); CompleteUnionHeader header_Union_ULongLOng = TypeObjectUtils::build_complete_union_header(detail_Union_ULongLOng); - UnionDiscriminatorFlag member_flags_Union_ULongLOng = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_ULongLOng = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_ULongLOng = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -932,7 +521,6 @@ void register_Union_ULongLOng_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_ULongLOng; @@ -948,7 +536,6 @@ void register_Union_ULongLOng_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_ULongLOng discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_ULongLOng.reset(); @@ -961,62 +548,24 @@ void register_Union_ULongLOng_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_uint64_t", type_ids_Union_ULongLOng); - if (return_code_Union_ULongLOng != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_ULongLOng) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "f Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_f; TypeObjectUtils::add_union_case_label(label_seq_f, static_cast(5)); - CommonUnionMember common_f; MemberId member_id_f = 0x00000001; - if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1()._d() || TK_NONE == type_ids_Union_ULongLOng.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_ULongLOng.type_identifier1(), - label_seq_f); - } - else if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_ULongLOng.type_identifier2(), - label_seq_f); - } - else + bool common_f_ec {false}; + CommonUnionMember common_f {TypeObjectUtils::build_common_union_member(member_id_f, + member_flags_f, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_ULongLOng, + common_f_ec), label_seq_f)}; + if (!common_f_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union f member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union f member TypeIdentifier inconsistent."); return; } MemberName name_f = "f"; @@ -1029,38 +578,31 @@ void register_Union_ULongLOng_type_identifier( CompleteUnionType union_type_Union_ULongLOng = TypeObjectUtils::build_complete_union_type(union_flags_Union_ULongLOng, header_Union_ULongLOng, discriminator_Union_ULongLOng, member_seq_Union_ULongLOng); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULongLOng, type_name_Union_ULongLOng.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULongLOng, type_name_Union_ULongLOng.to_string(), type_ids_Union_ULongLOng)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_ULongLOng already registered in TypeObjectRegistry for a different type."); } - return_code_Union_ULongLOng = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULongLOng", type_ids_Union_ULongLOng); - if (return_code_Union_ULongLOng != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULongLOng: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Float_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Float) { + ReturnCode_t return_code_Union_Float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Float = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Float", type_ids_Union_Float); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Float) { - ReturnCode_t return_code_Union_Float; - TypeIdentifierPair type_ids_Union_Float; - UnionTypeFlag union_flags_Union_Float = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Float = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Float = "Union_Float"; eprosima::fastcdr::optional type_ann_builtin_Union_Float; eprosima::fastcdr::optional ann_custom_Union_Float; CompleteTypeDetail detail_Union_Float = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Float, ann_custom_Union_Float, type_name_Union_Float.to_string()); CompleteUnionHeader header_Union_Float = TypeObjectUtils::build_complete_union_header(detail_Union_Float); - UnionDiscriminatorFlag member_flags_Union_Float = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Float = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1070,7 +612,6 @@ void register_Union_Float_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Float; @@ -1086,7 +627,6 @@ void register_Union_Float_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Float discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Float.reset(); @@ -1099,62 +639,24 @@ void register_Union_Float_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_float", type_ids_Union_Float); - if (return_code_Union_Float != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Float) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "g Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_g = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_g = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_g; TypeObjectUtils::add_union_case_label(label_seq_g, static_cast(6)); - CommonUnionMember common_g; MemberId member_id_g = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Float.type_identifier1()._d() || TK_NONE == type_ids_Union_Float.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Float.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Float.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_g = TypeObjectUtils::build_common_union_member(member_id_g, member_flags_g, type_ids_Union_Float.type_identifier1(), - label_seq_g); - } - else if (EK_COMPLETE == type_ids_Union_Float.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Float.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Float.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_g = TypeObjectUtils::build_common_union_member(member_id_g, member_flags_g, type_ids_Union_Float.type_identifier2(), - label_seq_g); - } - else + bool common_g_ec {false}; + CommonUnionMember common_g {TypeObjectUtils::build_common_union_member(member_id_g, + member_flags_g, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Float, + common_g_ec), label_seq_g)}; + if (!common_g_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union g member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union g member TypeIdentifier inconsistent."); return; } MemberName name_g = "g"; @@ -1167,38 +669,31 @@ void register_Union_Float_type_identifier( CompleteUnionType union_type_Union_Float = TypeObjectUtils::build_complete_union_type(union_flags_Union_Float, header_Union_Float, discriminator_Union_Float, member_seq_Union_Float); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Float, type_name_Union_Float.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Float, type_name_Union_Float.to_string(), type_ids_Union_Float)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Float already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Float", type_ids_Union_Float); - if (return_code_Union_Float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Float: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Double_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Double) { + ReturnCode_t return_code_Union_Double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Double = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Double", type_ids_Union_Double); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Double) { - ReturnCode_t return_code_Union_Double; - TypeIdentifierPair type_ids_Union_Double; - UnionTypeFlag union_flags_Union_Double = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Double = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Double = "Union_Double"; eprosima::fastcdr::optional type_ann_builtin_Union_Double; eprosima::fastcdr::optional ann_custom_Union_Double; CompleteTypeDetail detail_Union_Double = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Double, ann_custom_Union_Double, type_name_Union_Double.to_string()); CompleteUnionHeader header_Union_Double = TypeObjectUtils::build_complete_union_header(detail_Union_Double); - UnionDiscriminatorFlag member_flags_Union_Double = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Double = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1208,7 +703,6 @@ void register_Union_Double_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Double; @@ -1224,7 +718,6 @@ void register_Union_Double_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Double discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Double.reset(); @@ -1237,62 +730,24 @@ void register_Union_Double_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_double", type_ids_Union_Double); - if (return_code_Union_Double != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Double) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "h Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_h = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_h = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_h; TypeObjectUtils::add_union_case_label(label_seq_h, static_cast(7)); - CommonUnionMember common_h; MemberId member_id_h = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Double.type_identifier1()._d() || TK_NONE == type_ids_Union_Double.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Double.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Double.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_h = TypeObjectUtils::build_common_union_member(member_id_h, member_flags_h, type_ids_Union_Double.type_identifier1(), - label_seq_h); - } - else if (EK_COMPLETE == type_ids_Union_Double.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Double.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Double.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_h = TypeObjectUtils::build_common_union_member(member_id_h, member_flags_h, type_ids_Union_Double.type_identifier2(), - label_seq_h); - } - else + bool common_h_ec {false}; + CommonUnionMember common_h {TypeObjectUtils::build_common_union_member(member_id_h, + member_flags_h, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Double, + common_h_ec), label_seq_h)}; + if (!common_h_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union h member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union h member TypeIdentifier inconsistent."); return; } MemberName name_h = "h"; @@ -1305,38 +760,31 @@ void register_Union_Double_type_identifier( CompleteUnionType union_type_Union_Double = TypeObjectUtils::build_complete_union_type(union_flags_Union_Double, header_Union_Double, discriminator_Union_Double, member_seq_Union_Double); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Double, type_name_Union_Double.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Double, type_name_Union_Double.to_string(), type_ids_Union_Double)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Double already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Double", type_ids_Union_Double); - if (return_code_Union_Double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Double: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_LongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_LongDouble) { + ReturnCode_t return_code_Union_LongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_LongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_LongDouble", type_ids_Union_LongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_LongDouble) { - ReturnCode_t return_code_Union_LongDouble; - TypeIdentifierPair type_ids_Union_LongDouble; - UnionTypeFlag union_flags_Union_LongDouble = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_LongDouble = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_LongDouble = "Union_LongDouble"; eprosima::fastcdr::optional type_ann_builtin_Union_LongDouble; eprosima::fastcdr::optional ann_custom_Union_LongDouble; CompleteTypeDetail detail_Union_LongDouble = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_LongDouble, ann_custom_Union_LongDouble, type_name_Union_LongDouble.to_string()); CompleteUnionHeader header_Union_LongDouble = TypeObjectUtils::build_complete_union_header(detail_Union_LongDouble); - UnionDiscriminatorFlag member_flags_Union_LongDouble = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_LongDouble = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_LongDouble = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1346,7 +794,6 @@ void register_Union_LongDouble_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_LongDouble; @@ -1362,7 +809,6 @@ void register_Union_LongDouble_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_LongDouble discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_LongDouble.reset(); @@ -1375,62 +821,24 @@ void register_Union_LongDouble_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_longdouble", type_ids_Union_LongDouble); - if (return_code_Union_LongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_LongDouble) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "i Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_i = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_i = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_i; TypeObjectUtils::add_union_case_label(label_seq_i, static_cast(8)); - CommonUnionMember common_i; MemberId member_id_i = 0x00000001; - if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1()._d() || TK_NONE == type_ids_Union_LongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_i = TypeObjectUtils::build_common_union_member(member_id_i, member_flags_i, type_ids_Union_LongDouble.type_identifier1(), - label_seq_i); - } - else if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_i = TypeObjectUtils::build_common_union_member(member_id_i, member_flags_i, type_ids_Union_LongDouble.type_identifier2(), - label_seq_i); - } - else + bool common_i_ec {false}; + CommonUnionMember common_i {TypeObjectUtils::build_common_union_member(member_id_i, + member_flags_i, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_LongDouble, + common_i_ec), label_seq_i)}; + if (!common_i_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union i member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union i member TypeIdentifier inconsistent."); return; } MemberName name_i = "i"; @@ -1443,38 +851,31 @@ void register_Union_LongDouble_type_identifier( CompleteUnionType union_type_Union_LongDouble = TypeObjectUtils::build_complete_union_type(union_flags_Union_LongDouble, header_Union_LongDouble, discriminator_Union_LongDouble, member_seq_Union_LongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongDouble, type_name_Union_LongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongDouble, type_name_Union_LongDouble.to_string(), type_ids_Union_LongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_LongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_Union_LongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongDouble", type_ids_Union_LongDouble); - if (return_code_Union_LongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongDouble: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Boolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Boolean) { + ReturnCode_t return_code_Union_Boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Boolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Boolean", type_ids_Union_Boolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Boolean) { - ReturnCode_t return_code_Union_Boolean; - TypeIdentifierPair type_ids_Union_Boolean; - UnionTypeFlag union_flags_Union_Boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Boolean = "Union_Boolean"; eprosima::fastcdr::optional type_ann_builtin_Union_Boolean; eprosima::fastcdr::optional ann_custom_Union_Boolean; CompleteTypeDetail detail_Union_Boolean = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Boolean, ann_custom_Union_Boolean, type_name_Union_Boolean.to_string()); CompleteUnionHeader header_Union_Boolean = TypeObjectUtils::build_complete_union_header(detail_Union_Boolean); - UnionDiscriminatorFlag member_flags_Union_Boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1484,7 +885,6 @@ void register_Union_Boolean_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Boolean; @@ -1500,7 +900,6 @@ void register_Union_Boolean_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Boolean discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Boolean.reset(); @@ -1513,62 +912,24 @@ void register_Union_Boolean_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_bool", type_ids_Union_Boolean); - if (return_code_Union_Boolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "j Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_j = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_j = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_j; TypeObjectUtils::add_union_case_label(label_seq_j, static_cast(9)); - CommonUnionMember common_j; MemberId member_id_j = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_j = TypeObjectUtils::build_common_union_member(member_id_j, member_flags_j, type_ids_Union_Boolean.type_identifier1(), - label_seq_j); - } - else if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_j = TypeObjectUtils::build_common_union_member(member_id_j, member_flags_j, type_ids_Union_Boolean.type_identifier2(), - label_seq_j); - } - else + bool common_j_ec {false}; + CommonUnionMember common_j {TypeObjectUtils::build_common_union_member(member_id_j, + member_flags_j, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Boolean, + common_j_ec), label_seq_j)}; + if (!common_j_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union j member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union j member TypeIdentifier inconsistent."); return; } MemberName name_j = "j"; @@ -1581,38 +942,31 @@ void register_Union_Boolean_type_identifier( CompleteUnionType union_type_Union_Boolean = TypeObjectUtils::build_complete_union_type(union_flags_Union_Boolean, header_Union_Boolean, discriminator_Union_Boolean, member_seq_Union_Boolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Boolean, type_name_Union_Boolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Boolean, type_name_Union_Boolean.to_string(), type_ids_Union_Boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Boolean already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Boolean", type_ids_Union_Boolean); - if (return_code_Union_Boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Boolean: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Octet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Octet) { + ReturnCode_t return_code_Union_Octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Octet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Octet", type_ids_Union_Octet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Octet) { - ReturnCode_t return_code_Union_Octet; - TypeIdentifierPair type_ids_Union_Octet; - UnionTypeFlag union_flags_Union_Octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Octet = "Union_Octet"; eprosima::fastcdr::optional type_ann_builtin_Union_Octet; eprosima::fastcdr::optional ann_custom_Union_Octet; CompleteTypeDetail detail_Union_Octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Octet, ann_custom_Union_Octet, type_name_Union_Octet.to_string()); CompleteUnionHeader header_Union_Octet = TypeObjectUtils::build_complete_union_header(detail_Union_Octet); - UnionDiscriminatorFlag member_flags_Union_Octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1622,7 +976,6 @@ void register_Union_Octet_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Octet; @@ -1638,7 +991,6 @@ void register_Union_Octet_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Octet discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Octet.reset(); @@ -1651,62 +1003,24 @@ void register_Union_Octet_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_Union_Octet); - if (return_code_Union_Octet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "k Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_k = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_k = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_k; TypeObjectUtils::add_union_case_label(label_seq_k, static_cast(10)); - CommonUnionMember common_k; MemberId member_id_k = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_k = TypeObjectUtils::build_common_union_member(member_id_k, member_flags_k, type_ids_Union_Octet.type_identifier1(), - label_seq_k); - } - else if (EK_COMPLETE == type_ids_Union_Octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_k = TypeObjectUtils::build_common_union_member(member_id_k, member_flags_k, type_ids_Union_Octet.type_identifier2(), - label_seq_k); - } - else + bool common_k_ec {false}; + CommonUnionMember common_k {TypeObjectUtils::build_common_union_member(member_id_k, + member_flags_k, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Octet, + common_k_ec), label_seq_k)}; + if (!common_k_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union k member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union k member TypeIdentifier inconsistent."); return; } MemberName name_k = "k"; @@ -1719,38 +1033,31 @@ void register_Union_Octet_type_identifier( CompleteUnionType union_type_Union_Octet = TypeObjectUtils::build_complete_union_type(union_flags_Union_Octet, header_Union_Octet, discriminator_Union_Octet, member_seq_Union_Octet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Octet, type_name_Union_Octet.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Octet, type_name_Union_Octet.to_string(), type_ids_Union_Octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Octet already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Octet", type_ids_Union_Octet); - if (return_code_Union_Octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Octet: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Char_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Char) { + ReturnCode_t return_code_Union_Char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Char = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Char", type_ids_Union_Char); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Char) { - ReturnCode_t return_code_Union_Char; - TypeIdentifierPair type_ids_Union_Char; - UnionTypeFlag union_flags_Union_Char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Char = "Union_Char"; eprosima::fastcdr::optional type_ann_builtin_Union_Char; eprosima::fastcdr::optional ann_custom_Union_Char; CompleteTypeDetail detail_Union_Char = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Char, ann_custom_Union_Char, type_name_Union_Char.to_string()); CompleteUnionHeader header_Union_Char = TypeObjectUtils::build_complete_union_header(detail_Union_Char); - UnionDiscriminatorFlag member_flags_Union_Char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1760,7 +1067,6 @@ void register_Union_Char_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Char; @@ -1776,7 +1082,6 @@ void register_Union_Char_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Char discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Char.reset(); @@ -1789,62 +1094,24 @@ void register_Union_Char_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_char", type_ids_Union_Char); - if (return_code_Union_Char != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "l Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_l = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_l = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_l; TypeObjectUtils::add_union_case_label(label_seq_l, static_cast(11)); - CommonUnionMember common_l; MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Char.type_identifier1()._d() || TK_NONE == type_ids_Union_Char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_union_member(member_id_l, member_flags_l, type_ids_Union_Char.type_identifier1(), - label_seq_l); - } - else if (EK_COMPLETE == type_ids_Union_Char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_union_member(member_id_l, member_flags_l, type_ids_Union_Char.type_identifier2(), - label_seq_l); - } - else + bool common_l_ec {false}; + CommonUnionMember common_l {TypeObjectUtils::build_common_union_member(member_id_l, + member_flags_l, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Char, + common_l_ec), label_seq_l)}; + if (!common_l_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union l member TypeIdentifier inconsistent."); return; } MemberName name_l = "l"; @@ -1857,38 +1124,31 @@ void register_Union_Char_type_identifier( CompleteUnionType union_type_Union_Char = TypeObjectUtils::build_complete_union_type(union_flags_Union_Char, header_Union_Char, discriminator_Union_Char, member_seq_Union_Char); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Char, type_name_Union_Char.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Char, type_name_Union_Char.to_string(), type_ids_Union_Char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Char already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Char", type_ids_Union_Char); - if (return_code_Union_Char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Char: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_WChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_WChar) { + ReturnCode_t return_code_Union_WChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_WChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_WChar", type_ids_Union_WChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_WChar) { - ReturnCode_t return_code_Union_WChar; - TypeIdentifierPair type_ids_Union_WChar; - UnionTypeFlag union_flags_Union_WChar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_WChar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_WChar = "Union_WChar"; eprosima::fastcdr::optional type_ann_builtin_Union_WChar; eprosima::fastcdr::optional ann_custom_Union_WChar; CompleteTypeDetail detail_Union_WChar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_WChar, ann_custom_Union_WChar, type_name_Union_WChar.to_string()); CompleteUnionHeader header_Union_WChar = TypeObjectUtils::build_complete_union_header(detail_Union_WChar); - UnionDiscriminatorFlag member_flags_Union_WChar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_WChar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_WChar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -1898,7 +1158,6 @@ void register_Union_WChar_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_WChar; @@ -1914,7 +1173,6 @@ void register_Union_WChar_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_WChar discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_WChar.reset(); @@ -1927,62 +1185,24 @@ void register_Union_WChar_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_wchar_t", type_ids_Union_WChar); - if (return_code_Union_WChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_WChar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "m Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_m = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_m = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_m; TypeObjectUtils::add_union_case_label(label_seq_m, static_cast(12)); - CommonUnionMember common_m; MemberId member_id_m = 0x00000001; - if (EK_COMPLETE == type_ids_Union_WChar.type_identifier1()._d() || TK_NONE == type_ids_Union_WChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_m = TypeObjectUtils::build_common_union_member(member_id_m, member_flags_m, type_ids_Union_WChar.type_identifier1(), - label_seq_m); - } - else if (EK_COMPLETE == type_ids_Union_WChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_m = TypeObjectUtils::build_common_union_member(member_id_m, member_flags_m, type_ids_Union_WChar.type_identifier2(), - label_seq_m); - } - else + bool common_m_ec {false}; + CommonUnionMember common_m {TypeObjectUtils::build_common_union_member(member_id_m, + member_flags_m, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_WChar, + common_m_ec), label_seq_m)}; + if (!common_m_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union m member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union m member TypeIdentifier inconsistent."); return; } MemberName name_m = "m"; @@ -1995,38 +1215,31 @@ void register_Union_WChar_type_identifier( CompleteUnionType union_type_Union_WChar = TypeObjectUtils::build_complete_union_type(union_flags_Union_WChar, header_Union_WChar, discriminator_Union_WChar, member_seq_Union_WChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WChar, type_name_Union_WChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WChar, type_name_Union_WChar.to_string(), type_ids_Union_WChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_WChar already registered in TypeObjectRegistry for a different type."); } - return_code_Union_WChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WChar", type_ids_Union_WChar); - if (return_code_Union_WChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WChar: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_String_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_String) { + ReturnCode_t return_code_Union_String {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_String = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_String", type_ids_Union_String); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_String) { - ReturnCode_t return_code_Union_String; - TypeIdentifierPair type_ids_Union_String; - UnionTypeFlag union_flags_Union_String = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_String = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_String = "Union_String"; eprosima::fastcdr::optional type_ann_builtin_Union_String; eprosima::fastcdr::optional ann_custom_Union_String; CompleteTypeDetail detail_Union_String = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_String, ann_custom_Union_String, type_name_Union_String.to_string()); CompleteUnionHeader header_Union_String = TypeObjectUtils::build_complete_union_header(detail_Union_String); - UnionDiscriminatorFlag member_flags_Union_String = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_String = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_String = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -2036,7 +1249,6 @@ void register_Union_String_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_String; @@ -2052,7 +1264,6 @@ void register_Union_String_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_String discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_String.reset(); @@ -2065,79 +1276,32 @@ void register_Union_String_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_string_unbounded", type_ids_Union_String); - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_String) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_Union_String)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_Union_String); - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_n = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_n = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_n; TypeObjectUtils::add_union_case_label(label_seq_n, static_cast(13)); - CommonUnionMember common_n; MemberId member_id_n = 0x00000001; - if (EK_COMPLETE == type_ids_Union_String.type_identifier1()._d() || TK_NONE == type_ids_Union_String.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_String.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_String.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_n = TypeObjectUtils::build_common_union_member(member_id_n, member_flags_n, type_ids_Union_String.type_identifier1(), - label_seq_n); - } - else if (EK_COMPLETE == type_ids_Union_String.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_String.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_String.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_n_ec {false}; + CommonUnionMember common_n {TypeObjectUtils::build_common_union_member(member_id_n, + member_flags_n, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_String, + common_n_ec), label_seq_n)}; + if (!common_n_ec) { - common_n = TypeObjectUtils::build_common_union_member(member_id_n, member_flags_n, type_ids_Union_String.type_identifier2(), - label_seq_n); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union n member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union n member TypeIdentifier inconsistent."); return; } MemberName name_n = "n"; @@ -2150,38 +1314,31 @@ void register_Union_String_type_identifier( CompleteUnionType union_type_Union_String = TypeObjectUtils::build_complete_union_type(union_flags_Union_String, header_Union_String, discriminator_Union_String, member_seq_Union_String); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_String, type_name_Union_String.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_String, type_name_Union_String.to_string(), type_ids_Union_String)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_String already registered in TypeObjectRegistry for a different type."); } - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_String", type_ids_Union_String); - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_String: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_WString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_WString) { + ReturnCode_t return_code_Union_WString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_WString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_WString", type_ids_Union_WString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_WString) { - ReturnCode_t return_code_Union_WString; - TypeIdentifierPair type_ids_Union_WString; - UnionTypeFlag union_flags_Union_WString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_WString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_WString = "Union_WString"; eprosima::fastcdr::optional type_ann_builtin_Union_WString; eprosima::fastcdr::optional ann_custom_Union_WString; CompleteTypeDetail detail_Union_WString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_WString, ann_custom_Union_WString, type_name_Union_WString.to_string()); CompleteUnionHeader header_Union_WString = TypeObjectUtils::build_complete_union_header(detail_Union_WString); - UnionDiscriminatorFlag member_flags_Union_WString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_WString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_WString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -2191,7 +1348,6 @@ void register_Union_WString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_WString; @@ -2207,7 +1363,6 @@ void register_Union_WString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_WString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_WString.reset(); @@ -2220,79 +1375,32 @@ void register_Union_WString_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_wstring_unbounded", type_ids_Union_WString); - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_WString) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) + "anonymous_wstring_unbounded", type_ids_Union_WString, true)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_Union_WString); - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_o = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_o = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_o; TypeObjectUtils::add_union_case_label(label_seq_o, static_cast(14)); - CommonUnionMember common_o; MemberId member_id_o = 0x00000001; - if (EK_COMPLETE == type_ids_Union_WString.type_identifier1()._d() || TK_NONE == type_ids_Union_WString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_union_member(member_id_o, member_flags_o, type_ids_Union_WString.type_identifier1(), - label_seq_o); - } - else if (EK_COMPLETE == type_ids_Union_WString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_union_member(member_id_o, member_flags_o, type_ids_Union_WString.type_identifier2(), - label_seq_o); - } - else + bool common_o_ec {false}; + CommonUnionMember common_o {TypeObjectUtils::build_common_union_member(member_id_o, + member_flags_o, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_WString, + common_o_ec), label_seq_o)}; + if (!common_o_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union o member TypeIdentifier inconsistent."); return; } MemberName name_o = "o"; @@ -2305,38 +1413,31 @@ void register_Union_WString_type_identifier( CompleteUnionType union_type_Union_WString = TypeObjectUtils::build_complete_union_type(union_flags_Union_WString, header_Union_WString, discriminator_Union_WString, member_seq_Union_WString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WString, type_name_Union_WString.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WString, type_name_Union_WString.to_string(), type_ids_Union_WString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_WString already registered in TypeObjectRegistry for a different type."); } - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WString", type_ids_Union_WString); - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_BoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_BoundedString) { + ReturnCode_t return_code_Union_BoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_BoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_BoundedString", type_ids_Union_BoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_BoundedString) { - ReturnCode_t return_code_Union_BoundedString; - TypeIdentifierPair type_ids_Union_BoundedString; - UnionTypeFlag union_flags_Union_BoundedString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_BoundedString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_BoundedString = "Union_BoundedString"; eprosima::fastcdr::optional type_ann_builtin_Union_BoundedString; eprosima::fastcdr::optional ann_custom_Union_BoundedString; CompleteTypeDetail detail_Union_BoundedString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_BoundedString, ann_custom_Union_BoundedString, type_name_Union_BoundedString.to_string()); CompleteUnionHeader header_Union_BoundedString = TypeObjectUtils::build_complete_union_header(detail_Union_BoundedString); - UnionDiscriminatorFlag member_flags_Union_BoundedString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_BoundedString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_BoundedString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -2346,7 +1447,6 @@ void register_Union_BoundedString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_BoundedString; @@ -2362,7 +1462,6 @@ void register_Union_BoundedString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_BoundedString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_BoundedString.reset(); @@ -2375,157 +1474,22 @@ void register_Union_BoundedString_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_bounded_string_helper", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_BoundedString) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_BoundedString); - - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_BoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_BoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_Union_BoundedString); } - UnionMemberFlag member_flags_bn = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_bn = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_bn; TypeObjectUtils::add_union_case_label(label_seq_bn, static_cast(13)); - CommonUnionMember common_bn; MemberId member_id_bn = 0x00000001; - if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_bn_ec {false}; + CommonUnionMember common_bn {TypeObjectUtils::build_common_union_member(member_id_bn, + member_flags_bn, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_BoundedString, + common_bn_ec), label_seq_bn)}; + if (!common_bn_ec) { - common_bn = TypeObjectUtils::build_common_union_member(member_id_bn, member_flags_bn, type_ids_Union_BoundedString.type_identifier1(), - label_seq_bn); - } - else if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bn = TypeObjectUtils::build_common_union_member(member_id_bn, member_flags_bn, type_ids_Union_BoundedString.type_identifier2(), - label_seq_bn); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union bn member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union bn member TypeIdentifier inconsistent."); return; } MemberName name_bn = "bn"; @@ -2538,38 +1502,31 @@ void register_Union_BoundedString_type_identifier( CompleteUnionType union_type_Union_BoundedString = TypeObjectUtils::build_complete_union_type(union_flags_Union_BoundedString, header_Union_BoundedString, discriminator_Union_BoundedString, member_seq_Union_BoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedString, type_name_Union_BoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedString, type_name_Union_BoundedString.to_string(), type_ids_Union_BoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_BoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedString", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_BoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_BoundedWString) { + ReturnCode_t return_code_Union_BoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_BoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_BoundedWString", type_ids_Union_BoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_BoundedWString) { - ReturnCode_t return_code_Union_BoundedWString; - TypeIdentifierPair type_ids_Union_BoundedWString; - UnionTypeFlag union_flags_Union_BoundedWString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_BoundedWString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_BoundedWString = "Union_BoundedWString"; eprosima::fastcdr::optional type_ann_builtin_Union_BoundedWString; eprosima::fastcdr::optional ann_custom_Union_BoundedWString; CompleteTypeDetail detail_Union_BoundedWString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_BoundedWString, ann_custom_Union_BoundedWString, type_name_Union_BoundedWString.to_string()); CompleteUnionHeader header_Union_BoundedWString = TypeObjectUtils::build_complete_union_header(detail_Union_BoundedWString); - UnionDiscriminatorFlag member_flags_Union_BoundedWString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_BoundedWString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_BoundedWString = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -2579,7 +1536,6 @@ void register_Union_BoundedWString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_BoundedWString; @@ -2595,7 +1551,6 @@ void register_Union_BoundedWString_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_BoundedWString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_BoundedWString.reset(); @@ -2608,157 +1563,22 @@ void register_Union_BoundedWString_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_bounded_wstring_helper", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_BoundedWString) { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_Union_BoundedWString); - - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_Union_BoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_Union_BoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_wstring_helper_type_identifier(type_ids_Union_BoundedWString); } - UnionMemberFlag member_flags_bo = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_bo = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_bo; TypeObjectUtils::add_union_case_label(label_seq_bo, static_cast(14)); - CommonUnionMember common_bo; MemberId member_id_bo = 0x00000001; - if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bo = TypeObjectUtils::build_common_union_member(member_id_bo, member_flags_bo, type_ids_Union_BoundedWString.type_identifier1(), - label_seq_bo); - } - else if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bo = TypeObjectUtils::build_common_union_member(member_id_bo, member_flags_bo, type_ids_Union_BoundedWString.type_identifier2(), - label_seq_bo); - } - else + bool common_bo_ec {false}; + CommonUnionMember common_bo {TypeObjectUtils::build_common_union_member(member_id_bo, + member_flags_bo, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_BoundedWString, + common_bo_ec), label_seq_bo)}; + if (!common_bo_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union bo member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union bo member TypeIdentifier inconsistent."); return; } MemberName name_bo = "bo"; @@ -2771,38 +1591,31 @@ void register_Union_BoundedWString_type_identifier( CompleteUnionType union_type_Union_BoundedWString = TypeObjectUtils::build_complete_union_type(union_flags_Union_BoundedWString, header_Union_BoundedWString, discriminator_Union_BoundedWString, member_seq_Union_BoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedWString, type_name_Union_BoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedWString, type_name_Union_BoundedWString.to_string(), type_ids_Union_BoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_BoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedWString", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedWString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerEnumHelper) { + ReturnCode_t return_code_Union_InnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerEnumHelper", type_ids_Union_InnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerEnumHelper) { - ReturnCode_t return_code_Union_InnerEnumHelper; - TypeIdentifierPair type_ids_Union_InnerEnumHelper; - UnionTypeFlag union_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerEnumHelper = "Union_InnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerEnumHelper; eprosima::fastcdr::optional ann_custom_Union_InnerEnumHelper; CompleteTypeDetail detail_Union_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerEnumHelper, ann_custom_Union_InnerEnumHelper, type_name_Union_InnerEnumHelper.to_string()); CompleteUnionHeader header_Union_InnerEnumHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerEnumHelper); - UnionDiscriminatorFlag member_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerEnumHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -2812,7 +1625,6 @@ void register_Union_InnerEnumHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerEnumHelper; @@ -2828,7 +1640,6 @@ void register_Union_InnerEnumHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerEnumHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerEnumHelper.reset(); @@ -2841,115 +1652,22 @@ void register_Union_InnerEnumHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerEnumHelper", type_ids_Union_InnerEnumHelper); - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerEnumHelper) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_InnerEnumHelper); - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerEnumHelper_type_identifier(type_ids_Union_InnerEnumHelper); } - UnionMemberFlag member_flags_p = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_p = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_p; TypeObjectUtils::add_union_case_label(label_seq_p, static_cast(15)); - CommonUnionMember common_p; MemberId member_id_p = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_p = TypeObjectUtils::build_common_union_member(member_id_p, member_flags_p, type_ids_Union_InnerEnumHelper.type_identifier1(), - label_seq_p); - } - else if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_p = TypeObjectUtils::build_common_union_member(member_id_p, member_flags_p, type_ids_Union_InnerEnumHelper.type_identifier2(), - label_seq_p); - } - else + bool common_p_ec {false}; + CommonUnionMember common_p {TypeObjectUtils::build_common_union_member(member_id_p, + member_flags_p, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerEnumHelper, + common_p_ec), label_seq_p)}; + if (!common_p_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union p member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union p member TypeIdentifier inconsistent."); return; } MemberName name_p = "p"; @@ -2962,38 +1680,31 @@ void register_Union_InnerEnumHelper_type_identifier( CompleteUnionType union_type_Union_InnerEnumHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerEnumHelper, header_Union_InnerEnumHelper, discriminator_Union_InnerEnumHelper, member_seq_Union_InnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerEnumHelper, type_name_Union_InnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerEnumHelper, type_name_Union_InnerEnumHelper.to_string(), type_ids_Union_InnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerEnumHelper", type_ids_Union_InnerEnumHelper); - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerEnumHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerBitMaskHelper) { + ReturnCode_t return_code_Union_InnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerBitMaskHelper) { - ReturnCode_t return_code_Union_InnerBitMaskHelper; - TypeIdentifierPair type_ids_Union_InnerBitMaskHelper; - UnionTypeFlag union_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerBitMaskHelper = "Union_InnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_Union_InnerBitMaskHelper; CompleteTypeDetail detail_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerBitMaskHelper, ann_custom_Union_InnerBitMaskHelper, type_name_Union_InnerBitMaskHelper.to_string()); CompleteUnionHeader header_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerBitMaskHelper); - UnionDiscriminatorFlag member_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerBitMaskHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3003,7 +1714,6 @@ void register_Union_InnerBitMaskHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerBitMaskHelper; @@ -3019,7 +1729,6 @@ void register_Union_InnerBitMaskHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerBitMaskHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerBitMaskHelper.reset(); @@ -3032,148 +1741,22 @@ void register_Union_InnerBitMaskHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerBitMaskHelper) { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitMaskHelper_type_identifier(type_ids_Union_InnerBitMaskHelper); } - UnionMemberFlag member_flags_q = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_q = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_q; TypeObjectUtils::add_union_case_label(label_seq_q, static_cast(16)); - CommonUnionMember common_q; MemberId member_id_q = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_q = TypeObjectUtils::build_common_union_member(member_id_q, member_flags_q, type_ids_Union_InnerBitMaskHelper.type_identifier1(), - label_seq_q); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_q = TypeObjectUtils::build_common_union_member(member_id_q, member_flags_q, type_ids_Union_InnerBitMaskHelper.type_identifier2(), - label_seq_q); - } - else + bool common_q_ec {false}; + CommonUnionMember common_q {TypeObjectUtils::build_common_union_member(member_id_q, + member_flags_q, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerBitMaskHelper, + common_q_ec), label_seq_q)}; + if (!common_q_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union q member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union q member TypeIdentifier inconsistent."); return; } MemberName name_q = "q"; @@ -3186,38 +1769,31 @@ void register_Union_InnerBitMaskHelper_type_identifier( CompleteUnionType union_type_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerBitMaskHelper, header_Union_InnerBitMaskHelper, discriminator_Union_InnerBitMaskHelper, member_seq_Union_InnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitMaskHelper, type_name_Union_InnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitMaskHelper, type_name_Union_InnerBitMaskHelper.to_string(), type_ids_Union_InnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitMaskHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerAliasHelper) { + ReturnCode_t return_code_Union_InnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerAliasHelper", type_ids_Union_InnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerAliasHelper) { - ReturnCode_t return_code_Union_InnerAliasHelper; - TypeIdentifierPair type_ids_Union_InnerAliasHelper; - UnionTypeFlag union_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerAliasHelper = "Union_InnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerAliasHelper; eprosima::fastcdr::optional ann_custom_Union_InnerAliasHelper; CompleteTypeDetail detail_Union_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerAliasHelper, ann_custom_Union_InnerAliasHelper, type_name_Union_InnerAliasHelper.to_string()); CompleteUnionHeader header_Union_InnerAliasHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerAliasHelper); - UnionDiscriminatorFlag member_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerAliasHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3227,7 +1803,6 @@ void register_Union_InnerAliasHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerAliasHelper; @@ -3243,7 +1818,6 @@ void register_Union_InnerAliasHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerAliasHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerAliasHelper.reset(); @@ -3256,140 +1830,22 @@ void register_Union_InnerAliasHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerAliasHelper", type_ids_Union_InnerAliasHelper); - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerAliasHelper) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerAliasHelper); - - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_InnerAliasHelper); - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerAliasHelper_type_identifier(type_ids_Union_InnerAliasHelper); } - UnionMemberFlag member_flags_r = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_r = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_r; TypeObjectUtils::add_union_case_label(label_seq_r, static_cast(17)); - CommonUnionMember common_r; MemberId member_id_r = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_r = TypeObjectUtils::build_common_union_member(member_id_r, member_flags_r, type_ids_Union_InnerAliasHelper.type_identifier1(), - label_seq_r); - } - else if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_r = TypeObjectUtils::build_common_union_member(member_id_r, member_flags_r, type_ids_Union_InnerAliasHelper.type_identifier2(), - label_seq_r); - } - else + bool common_r_ec {false}; + CommonUnionMember common_r {TypeObjectUtils::build_common_union_member(member_id_r, + member_flags_r, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerAliasHelper, + common_r_ec), label_seq_r)}; + if (!common_r_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union r member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union r member TypeIdentifier inconsistent."); return; } MemberName name_r = "r"; @@ -3402,38 +1858,31 @@ void register_Union_InnerAliasHelper_type_identifier( CompleteUnionType union_type_Union_InnerAliasHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerAliasHelper, header_Union_InnerAliasHelper, discriminator_Union_InnerAliasHelper, member_seq_Union_InnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerAliasHelper, type_name_Union_InnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerAliasHelper, type_name_Union_InnerAliasHelper.to_string(), type_ids_Union_InnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerAliasHelper", type_ids_Union_InnerAliasHelper); - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerAliasHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Array_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Array) { + ReturnCode_t return_code_Union_Array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Array = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Array", type_ids_Union_Array); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Array) { - ReturnCode_t return_code_Union_Array; - TypeIdentifierPair type_ids_Union_Array; - UnionTypeFlag union_flags_Union_Array = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Array = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Array = "Union_Array"; eprosima::fastcdr::optional type_ann_builtin_Union_Array; eprosima::fastcdr::optional ann_custom_Union_Array; CompleteTypeDetail detail_Union_Array = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Array, ann_custom_Union_Array, type_name_Union_Array.to_string()); CompleteUnionHeader header_Union_Array = TypeObjectUtils::build_complete_union_header(detail_Union_Array); - UnionDiscriminatorFlag member_flags_Union_Array = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Array = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3443,7 +1892,6 @@ void register_Union_Array_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Array; @@ -3459,7 +1907,6 @@ void register_Union_Array_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Array discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Array.reset(); @@ -3472,221 +1919,22 @@ void register_Union_Array_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_array_helper", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Array) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Array.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Array.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Array.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Array.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Array.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_Union_Array); } - UnionMemberFlag member_flags_s = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_s = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_s; TypeObjectUtils::add_union_case_label(label_seq_s, static_cast(18)); - CommonUnionMember common_s; MemberId member_id_s = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_s_ec {false}; + CommonUnionMember common_s {TypeObjectUtils::build_common_union_member(member_id_s, + member_flags_s, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Array, + common_s_ec), label_seq_s)}; + if (!common_s_ec) { - common_s = TypeObjectUtils::build_common_union_member(member_id_s, member_flags_s, type_ids_Union_Array.type_identifier1(), - label_seq_s); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_union_member(member_id_s, member_flags_s, type_ids_Union_Array.type_identifier2(), - label_seq_s); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union s member TypeIdentifier inconsistent."); return; } MemberName name_s = "s"; @@ -3699,38 +1947,31 @@ void register_Union_Array_type_identifier( CompleteUnionType union_type_Union_Array = TypeObjectUtils::build_complete_union_type(union_flags_Union_Array, header_Union_Array, discriminator_Union_Array, member_seq_Union_Array); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Array, type_name_Union_Array.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Array, type_name_Union_Array.to_string(), type_ids_Union_Array)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Array already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Array", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Array: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Sequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Sequence) { + ReturnCode_t return_code_Union_Sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Sequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Sequence", type_ids_Union_Sequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Sequence) { - ReturnCode_t return_code_Union_Sequence; - TypeIdentifierPair type_ids_Union_Sequence; - UnionTypeFlag union_flags_Union_Sequence = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Sequence = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Sequence = "Union_Sequence"; eprosima::fastcdr::optional type_ann_builtin_Union_Sequence; eprosima::fastcdr::optional ann_custom_Union_Sequence; CompleteTypeDetail detail_Union_Sequence = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Sequence, ann_custom_Union_Sequence, type_name_Union_Sequence.to_string()); CompleteUnionHeader header_Union_Sequence = TypeObjectUtils::build_complete_union_header(detail_Union_Sequence); - UnionDiscriminatorFlag member_flags_Union_Sequence = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Sequence = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3740,7 +1981,6 @@ void register_Union_Sequence_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Sequence; @@ -3756,7 +1996,6 @@ void register_Union_Sequence_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Sequence discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Sequence.reset(); @@ -3769,61 +2008,23 @@ void register_Union_Sequence_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_int16_t_unbounded", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Sequence) { return_code_Union_Sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Sequence) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1()._d() || TK_NONE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Sequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Sequence.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Sequence, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; @@ -3838,73 +2039,26 @@ void register_Union_Sequence_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_Union_Sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_t = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_t = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_t; TypeObjectUtils::add_union_case_label(label_seq_t, static_cast(19)); - CommonUnionMember common_t; MemberId member_id_t = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1()._d() || TK_NONE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_t_ec {false}; + CommonUnionMember common_t {TypeObjectUtils::build_common_union_member(member_id_t, + member_flags_t, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Sequence, + common_t_ec), label_seq_t)}; + if (!common_t_ec) { - common_t = TypeObjectUtils::build_common_union_member(member_id_t, member_flags_t, type_ids_Union_Sequence.type_identifier1(), - label_seq_t); - } - else if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_t = TypeObjectUtils::build_common_union_member(member_id_t, member_flags_t, type_ids_Union_Sequence.type_identifier2(), - label_seq_t); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union t member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union t member TypeIdentifier inconsistent."); + return; } MemberName name_t = "t"; eprosima::fastcdr::optional member_ann_builtin_t; @@ -3916,38 +2070,31 @@ void register_Union_Sequence_type_identifier( CompleteUnionType union_type_Union_Sequence = TypeObjectUtils::build_complete_union_type(union_flags_Union_Sequence, header_Union_Sequence, discriminator_Union_Sequence, member_seq_Union_Sequence); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Sequence, type_name_Union_Sequence.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Sequence, type_name_Union_Sequence.to_string(), type_ids_Union_Sequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Sequence already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Sequence", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Sequence: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Map_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Map) { + ReturnCode_t return_code_Union_Map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Map = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Map", type_ids_Union_Map); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Map) { - ReturnCode_t return_code_Union_Map; - TypeIdentifierPair type_ids_Union_Map; - UnionTypeFlag union_flags_Union_Map = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Map = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Map = "Union_Map"; eprosima::fastcdr::optional type_ann_builtin_Union_Map; eprosima::fastcdr::optional ann_custom_Union_Map; CompleteTypeDetail detail_Union_Map = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Map, ann_custom_Union_Map, type_name_Union_Map.to_string()); CompleteUnionHeader header_Union_Map = TypeObjectUtils::build_complete_union_header(detail_Union_Map); - UnionDiscriminatorFlag member_flags_Union_Map = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Map = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -3957,7 +2104,6 @@ void register_Union_Map_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Map; @@ -3973,7 +2119,6 @@ void register_Union_Map_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Map discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Map.reset(); @@ -3986,116 +2131,42 @@ void register_Union_Map_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_map_int32_t_int32_t_unbounded", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Map) { return_code_Union_Map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier2()); - } - else + bool element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Map, element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); return; } return_code_Union_Map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Map) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier2()); - } - else + bool key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec {false}; + TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Map, key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec))}; + if (!key_identifier_anonymous_map_int32_t_int32_t_unbounded_ec) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); return; } EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; @@ -4118,72 +2189,25 @@ void register_Union_Map_type_identifier( eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded", type_ids_Union_Map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_u = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_u = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_u; TypeObjectUtils::add_union_case_label(label_seq_u, static_cast(20)); - CommonUnionMember common_u; MemberId member_id_u = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_u = TypeObjectUtils::build_common_union_member(member_id_u, member_flags_u, type_ids_Union_Map.type_identifier1(), - label_seq_u); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_u = TypeObjectUtils::build_common_union_member(member_id_u, member_flags_u, type_ids_Union_Map.type_identifier2(), - label_seq_u); - } - else + bool common_u_ec {false}; + CommonUnionMember common_u {TypeObjectUtils::build_common_union_member(member_id_u, + member_flags_u, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Map, + common_u_ec), label_seq_u)}; + if (!common_u_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union u member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union u member TypeIdentifier inconsistent."); return; } MemberName name_u = "u"; @@ -4196,38 +2220,31 @@ void register_Union_Map_type_identifier( CompleteUnionType union_type_Union_Map = TypeObjectUtils::build_complete_union_type(union_flags_Union_Map, header_Union_Map, discriminator_Union_Map, member_seq_Union_Map); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Map, type_name_Union_Map.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Map, type_name_Union_Map.to_string(), type_ids_Union_Map)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Map already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Map", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Map: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerUnionHelper) { + ReturnCode_t return_code_Union_InnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerUnionHelper", type_ids_Union_InnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerUnionHelper) { - ReturnCode_t return_code_Union_InnerUnionHelper; - TypeIdentifierPair type_ids_Union_InnerUnionHelper; - UnionTypeFlag union_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerUnionHelper = "Union_InnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerUnionHelper; eprosima::fastcdr::optional ann_custom_Union_InnerUnionHelper; CompleteTypeDetail detail_Union_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerUnionHelper, ann_custom_Union_InnerUnionHelper, type_name_Union_InnerUnionHelper.to_string()); CompleteUnionHeader header_Union_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerUnionHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -4237,7 +2254,6 @@ void register_Union_InnerUnionHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerUnionHelper; @@ -4253,7 +2269,6 @@ void register_Union_InnerUnionHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerUnionHelper.reset(); @@ -4266,339 +2281,22 @@ void register_Union_InnerUnionHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerUnionHelper", type_ids_Union_InnerUnionHelper); - if (return_code_Union_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerUnionHelper) { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_InnerUnionHelper = return_code_InnerUnionHelper; - type_ids_Union_InnerUnionHelper = type_ids_InnerUnionHelper; - } + ::register_InnerUnionHelper_type_identifier(type_ids_Union_InnerUnionHelper); } - UnionMemberFlag member_flags_v = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_v = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_v; TypeObjectUtils::add_union_case_label(label_seq_v, static_cast(21)); - CommonUnionMember common_v; MemberId member_id_v = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_v = TypeObjectUtils::build_common_union_member(member_id_v, member_flags_v, type_ids_Union_InnerUnionHelper.type_identifier1(), - label_seq_v); - } - else if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_v = TypeObjectUtils::build_common_union_member(member_id_v, member_flags_v, type_ids_Union_InnerUnionHelper.type_identifier2(), - label_seq_v); - } - else + bool common_v_ec {false}; + CommonUnionMember common_v {TypeObjectUtils::build_common_union_member(member_id_v, + member_flags_v, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerUnionHelper, + common_v_ec), label_seq_v)}; + if (!common_v_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union v member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union v member TypeIdentifier inconsistent."); return; } MemberName name_v = "v"; @@ -4611,38 +2309,31 @@ void register_Union_InnerUnionHelper_type_identifier( CompleteUnionType union_type_Union_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerUnionHelper, header_Union_InnerUnionHelper, discriminator_Union_InnerUnionHelper, member_seq_Union_InnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerUnionHelper, type_name_Union_InnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerUnionHelper, type_name_Union_InnerUnionHelper.to_string(), type_ids_Union_InnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerUnionHelper", type_ids_Union_InnerUnionHelper); - if (return_code_Union_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerStructureHelper) { + ReturnCode_t return_code_Union_InnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerStructureHelper", type_ids_Union_InnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerStructureHelper) { - ReturnCode_t return_code_Union_InnerStructureHelper; - TypeIdentifierPair type_ids_Union_InnerStructureHelper; - UnionTypeFlag union_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerStructureHelper = "Union_InnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerStructureHelper; eprosima::fastcdr::optional ann_custom_Union_InnerStructureHelper; CompleteTypeDetail detail_Union_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerStructureHelper, ann_custom_Union_InnerStructureHelper, type_name_Union_InnerStructureHelper.to_string()); CompleteUnionHeader header_Union_InnerStructureHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerStructureHelper); - UnionDiscriminatorFlag member_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerStructureHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -4652,7 +2343,6 @@ void register_Union_InnerStructureHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerStructureHelper; @@ -4668,7 +2358,6 @@ void register_Union_InnerStructureHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerStructureHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerStructureHelper.reset(); @@ -4681,229 +2370,22 @@ void register_Union_InnerStructureHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelper", type_ids_Union_InnerStructureHelper); - if (return_code_Union_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerStructureHelper) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_InnerStructureHelper = return_code_InnerStructureHelper; - type_ids_Union_InnerStructureHelper = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_Union_InnerStructureHelper); } - UnionMemberFlag member_flags_w = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_w = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_w; TypeObjectUtils::add_union_case_label(label_seq_w, static_cast(22)); - CommonUnionMember common_w; MemberId member_id_w = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_w = TypeObjectUtils::build_common_union_member(member_id_w, member_flags_w, type_ids_Union_InnerStructureHelper.type_identifier1(), - label_seq_w); - } - else if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_w = TypeObjectUtils::build_common_union_member(member_id_w, member_flags_w, type_ids_Union_InnerStructureHelper.type_identifier2(), - label_seq_w); - } - else + bool common_w_ec {false}; + CommonUnionMember common_w {TypeObjectUtils::build_common_union_member(member_id_w, + member_flags_w, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerStructureHelper, + common_w_ec), label_seq_w)}; + if (!common_w_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union w member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union w member TypeIdentifier inconsistent."); return; } MemberName name_w = "w"; @@ -4916,38 +2398,31 @@ void register_Union_InnerStructureHelper_type_identifier( CompleteUnionType union_type_Union_InnerStructureHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerStructureHelper, header_Union_InnerStructureHelper, discriminator_Union_InnerStructureHelper, member_seq_Union_InnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerStructureHelper, type_name_Union_InnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerStructureHelper, type_name_Union_InnerStructureHelper.to_string(), type_ids_Union_InnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerStructureHelper", type_ids_Union_InnerStructureHelper); - if (return_code_Union_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerStructureHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_InnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_InnerBitsetHelper) { + ReturnCode_t return_code_Union_InnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_InnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerBitsetHelper) { - ReturnCode_t return_code_Union_InnerBitsetHelper; - TypeIdentifierPair type_ids_Union_InnerBitsetHelper; - UnionTypeFlag union_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_InnerBitsetHelper = "Union_InnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_Union_InnerBitsetHelper; eprosima::fastcdr::optional ann_custom_Union_InnerBitsetHelper; CompleteTypeDetail detail_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerBitsetHelper, ann_custom_Union_InnerBitsetHelper, type_name_Union_InnerBitsetHelper.to_string()); CompleteUnionHeader header_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerBitsetHelper); - UnionDiscriminatorFlag member_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_InnerBitsetHelper = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -4957,7 +2432,6 @@ void register_Union_InnerBitsetHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_InnerBitsetHelper; @@ -4973,7 +2447,6 @@ void register_Union_InnerBitsetHelper_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerBitsetHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_InnerBitsetHelper.reset(); @@ -4986,134 +2459,22 @@ void register_Union_InnerBitsetHelper_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_InnerBitsetHelper) { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_InnerBitsetHelper_type_identifier(type_ids_Union_InnerBitsetHelper); } - UnionMemberFlag member_flags_x = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_x = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_x; TypeObjectUtils::add_union_case_label(label_seq_x, static_cast(23)); - CommonUnionMember common_x; MemberId member_id_x = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_union_member(member_id_x, member_flags_x, type_ids_Union_InnerBitsetHelper.type_identifier1(), - label_seq_x); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_union_member(member_id_x, member_flags_x, type_ids_Union_InnerBitsetHelper.type_identifier2(), - label_seq_x); - } - else + bool common_x_ec {false}; + CommonUnionMember common_x {TypeObjectUtils::build_common_union_member(member_id_x, + member_flags_x, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_InnerBitsetHelper, + common_x_ec), label_seq_x)}; + if (!common_x_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union x member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union x member TypeIdentifier inconsistent."); return; } MemberName name_x = "x"; @@ -5126,38 +2487,31 @@ void register_Union_InnerBitsetHelper_type_identifier( CompleteUnionType union_type_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerBitsetHelper, header_Union_InnerBitsetHelper, discriminator_Union_InnerBitsetHelper, member_seq_Union_InnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitsetHelper, type_name_Union_InnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitsetHelper, type_name_Union_InnerBitsetHelper.to_string(), type_ids_Union_InnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitsetHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_short_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_short) { + ReturnCode_t return_code_Union_Discriminator_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_short", type_ids_Union_Discriminator_short); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_short) { - ReturnCode_t return_code_Union_Discriminator_short; - TypeIdentifierPair type_ids_Union_Discriminator_short; - UnionTypeFlag union_flags_Union_Discriminator_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_short = "Union_Discriminator_short"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_short; eprosima::fastcdr::optional ann_custom_Union_Discriminator_short; CompleteTypeDetail detail_Union_Discriminator_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_short, ann_custom_Union_Discriminator_short, type_name_Union_Discriminator_short.to_string()); CompleteUnionHeader header_Union_Discriminator_short = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_short); - UnionDiscriminatorFlag member_flags_Union_Discriminator_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -5167,7 +2521,6 @@ void register_Union_Discriminator_short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_short; @@ -5183,7 +2536,6 @@ void register_Union_Discriminator_short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_short.reset(); @@ -5196,62 +2548,24 @@ void register_Union_Discriminator_short_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_short); - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_short.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_short.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_short, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -5266,62 +2580,24 @@ void register_Union_Discriminator_short_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_short); - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_short.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_short, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_short.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -5334,38 +2610,31 @@ void register_Union_Discriminator_short_type_identifier( CompleteUnionType union_type_Union_Discriminator_short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_short, header_Union_Discriminator_short, discriminator_Union_Discriminator_short, member_seq_Union_Discriminator_short); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_short, type_name_Union_Discriminator_short.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_short, type_name_Union_Discriminator_short.to_string(), type_ids_Union_Discriminator_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_short already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_short", type_ids_Union_Discriminator_short); - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_unsigned_short_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_unsigned_short) { + ReturnCode_t return_code_Union_Discriminator_unsigned_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_unsigned_short = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_unsigned_short", type_ids_Union_Discriminator_unsigned_short); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_short) { - ReturnCode_t return_code_Union_Discriminator_unsigned_short; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_short; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_unsigned_short = "Union_Discriminator_unsigned_short"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_short; eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_short; CompleteTypeDetail detail_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_short, ann_custom_Union_Discriminator_unsigned_short, type_name_Union_Discriminator_unsigned_short.to_string()); CompleteUnionHeader header_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_short); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_unsigned_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -5375,7 +2644,6 @@ void register_Union_Discriminator_unsigned_short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_unsigned_short; @@ -5391,7 +2659,6 @@ void register_Union_Discriminator_unsigned_short_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_unsigned_short.reset(); @@ -5404,62 +2671,24 @@ void register_Union_Discriminator_unsigned_short_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_unsigned_short); - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_short.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_short, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_short.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -5474,62 +2703,24 @@ void register_Union_Discriminator_unsigned_short_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_unsigned_short); - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_short) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_short.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_short.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_short, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -5542,38 +2733,31 @@ void register_Union_Discriminator_unsigned_short_type_identifier( CompleteUnionType union_type_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_short, header_Union_Discriminator_unsigned_short, discriminator_Union_Discriminator_unsigned_short, member_seq_Union_Discriminator_unsigned_short); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_short, type_name_Union_Discriminator_unsigned_short.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_short, type_name_Union_Discriminator_unsigned_short.to_string(), type_ids_Union_Discriminator_unsigned_short)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_short already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_unsigned_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_short", type_ids_Union_Discriminator_unsigned_short); - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_long_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_long) { + ReturnCode_t return_code_Union_Discriminator_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_long", type_ids_Union_Discriminator_long); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long) { - ReturnCode_t return_code_Union_Discriminator_long; - TypeIdentifierPair type_ids_Union_Discriminator_long; - UnionTypeFlag union_flags_Union_Discriminator_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_long = "Union_Discriminator_long"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_long; eprosima::fastcdr::optional ann_custom_Union_Discriminator_long; CompleteTypeDetail detail_Union_Discriminator_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_long, ann_custom_Union_Discriminator_long, type_name_Union_Discriminator_long.to_string()); CompleteUnionHeader header_Union_Discriminator_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -5583,7 +2767,6 @@ void register_Union_Discriminator_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_long; @@ -5599,7 +2782,6 @@ void register_Union_Discriminator_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_long.reset(); @@ -5612,62 +2794,24 @@ void register_Union_Discriminator_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_long); - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_long, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -5682,62 +2826,24 @@ void register_Union_Discriminator_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_long); - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_long, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -5750,38 +2856,31 @@ void register_Union_Discriminator_long_type_identifier( CompleteUnionType union_type_Union_Discriminator_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_long, header_Union_Discriminator_long, discriminator_Union_Discriminator_long, member_seq_Union_Discriminator_long); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long, type_name_Union_Discriminator_long.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long, type_name_Union_Discriminator_long.to_string(), type_ids_Union_Discriminator_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_long already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long", type_ids_Union_Discriminator_long); - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_unsigned_long_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_unsigned_long) { + ReturnCode_t return_code_Union_Discriminator_unsigned_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_unsigned_long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_unsigned_long", type_ids_Union_Discriminator_unsigned_long); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long) { - ReturnCode_t return_code_Union_Discriminator_unsigned_long; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_long; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_unsigned_long = "Union_Discriminator_unsigned_long"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_long; eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_long; CompleteTypeDetail detail_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_long, ann_custom_Union_Discriminator_unsigned_long, type_name_Union_Discriminator_unsigned_long.to_string()); CompleteUnionHeader header_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_unsigned_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -5791,7 +2890,6 @@ void register_Union_Discriminator_unsigned_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_unsigned_long; @@ -5807,7 +2905,6 @@ void register_Union_Discriminator_unsigned_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_unsigned_long.reset(); @@ -5820,62 +2917,24 @@ void register_Union_Discriminator_unsigned_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_unsigned_long); - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_long, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -5890,62 +2949,24 @@ void register_Union_Discriminator_unsigned_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_unsigned_long); - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_long, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -5958,38 +2979,31 @@ void register_Union_Discriminator_unsigned_long_type_identifier( CompleteUnionType union_type_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_long, header_Union_Discriminator_unsigned_long, discriminator_Union_Discriminator_unsigned_long, member_seq_Union_Discriminator_unsigned_long); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long, type_name_Union_Discriminator_unsigned_long.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long, type_name_Union_Discriminator_unsigned_long.to_string(), type_ids_Union_Discriminator_unsigned_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_long already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_unsigned_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long", type_ids_Union_Discriminator_unsigned_long); - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_long_long_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_long_long) { + ReturnCode_t return_code_Union_Discriminator_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_long_long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_long_long", type_ids_Union_Discriminator_long_long); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long_long) { - ReturnCode_t return_code_Union_Discriminator_long_long; - TypeIdentifierPair type_ids_Union_Discriminator_long_long; - UnionTypeFlag union_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_long_long = "Union_Discriminator_long_long"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_long_long; eprosima::fastcdr::optional ann_custom_Union_Discriminator_long_long; CompleteTypeDetail detail_Union_Discriminator_long_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_long_long, ann_custom_Union_Discriminator_long_long, type_name_Union_Discriminator_long_long.to_string()); CompleteUnionHeader header_Union_Discriminator_long_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_long_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -5999,7 +3013,6 @@ void register_Union_Discriminator_long_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_long_long; @@ -6015,7 +3028,6 @@ void register_Union_Discriminator_long_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_long_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_long_long.reset(); @@ -6028,62 +3040,24 @@ void register_Union_Discriminator_long_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_long_long); - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long_long.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_long_long, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -6098,62 +3072,24 @@ void register_Union_Discriminator_long_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_long_long); - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_long_long, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long_long.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -6166,38 +3102,31 @@ void register_Union_Discriminator_long_long_type_identifier( CompleteUnionType union_type_Union_Discriminator_long_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_long_long, header_Union_Discriminator_long_long, discriminator_Union_Discriminator_long_long, member_seq_Union_Discriminator_long_long); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long_long, type_name_Union_Discriminator_long_long.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long_long, type_name_Union_Discriminator_long_long.to_string(), type_ids_Union_Discriminator_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_long_long already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long_long", type_ids_Union_Discriminator_long_long); - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_unsigned_long_long_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_unsigned_long_long) { + ReturnCode_t return_code_Union_Discriminator_unsigned_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_unsigned_long_long = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_unsigned_long_long", type_ids_Union_Discriminator_unsigned_long_long); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long_long) { - ReturnCode_t return_code_Union_Discriminator_unsigned_long_long; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_long_long; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_unsigned_long_long = "Union_Discriminator_unsigned_long_long"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_long_long; eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_long_long; CompleteTypeDetail detail_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_long_long, ann_custom_Union_Discriminator_unsigned_long_long, type_name_Union_Discriminator_unsigned_long_long.to_string()); CompleteUnionHeader header_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_long_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_unsigned_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -6207,7 +3136,6 @@ void register_Union_Discriminator_unsigned_long_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_unsigned_long_long; @@ -6223,7 +3151,6 @@ void register_Union_Discriminator_unsigned_long_long_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_long_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_unsigned_long_long.reset(); @@ -6236,62 +3163,24 @@ void register_Union_Discriminator_unsigned_long_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_unsigned_long_long); - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(2)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_long_long, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -6306,62 +3195,24 @@ void register_Union_Discriminator_unsigned_long_long_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_unsigned_long_long); - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_unsigned_long_long) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(1)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long_long.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_unsigned_long_long, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -6374,38 +3225,31 @@ void register_Union_Discriminator_unsigned_long_long_type_identifier( CompleteUnionType union_type_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_long_long, header_Union_Discriminator_unsigned_long_long, discriminator_Union_Discriminator_unsigned_long_long, member_seq_Union_Discriminator_unsigned_long_long); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long_long, type_name_Union_Discriminator_unsigned_long_long.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long_long, type_name_Union_Discriminator_unsigned_long_long.to_string(), type_ids_Union_Discriminator_unsigned_long_long)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_unsigned_long_long already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_unsigned_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long_long", type_ids_Union_Discriminator_unsigned_long_long); - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_boolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_boolean) { + ReturnCode_t return_code_Union_Discriminator_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_boolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_boolean", type_ids_Union_Discriminator_boolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_boolean) { - ReturnCode_t return_code_Union_Discriminator_boolean; - TypeIdentifierPair type_ids_Union_Discriminator_boolean; - UnionTypeFlag union_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_boolean = "Union_Discriminator_boolean"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_boolean; eprosima::fastcdr::optional ann_custom_Union_Discriminator_boolean; CompleteTypeDetail detail_Union_Discriminator_boolean = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_boolean, ann_custom_Union_Discriminator_boolean, type_name_Union_Discriminator_boolean.to_string()); CompleteUnionHeader header_Union_Discriminator_boolean = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_boolean); - UnionDiscriminatorFlag member_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -6415,7 +3259,6 @@ void register_Union_Discriminator_boolean_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_boolean; @@ -6431,7 +3274,6 @@ void register_Union_Discriminator_boolean_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_boolean discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_boolean.reset(); @@ -6444,62 +3286,24 @@ void register_Union_Discriminator_boolean_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_boolean); - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(true)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_boolean.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_boolean.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_boolean, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -6514,62 +3318,24 @@ void register_Union_Discriminator_boolean_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_boolean); - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_boolean) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(false)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_boolean, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_boolean.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_boolean.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -6582,38 +3348,31 @@ void register_Union_Discriminator_boolean_type_identifier( CompleteUnionType union_type_Union_Discriminator_boolean = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_boolean, header_Union_Discriminator_boolean, discriminator_Union_Discriminator_boolean, member_seq_Union_Discriminator_boolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_boolean, type_name_Union_Discriminator_boolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_boolean, type_name_Union_Discriminator_boolean.to_string(), type_ids_Union_Discriminator_boolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_boolean already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_boolean", type_ids_Union_Discriminator_boolean); - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_boolean: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_octet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_octet) { + ReturnCode_t return_code_Union_Discriminator_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_octet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_octet", type_ids_Union_Discriminator_octet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_octet) { - ReturnCode_t return_code_Union_Discriminator_octet; - TypeIdentifierPair type_ids_Union_Discriminator_octet; - UnionTypeFlag union_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_octet = "Union_Discriminator_octet"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_octet; eprosima::fastcdr::optional ann_custom_Union_Discriminator_octet; CompleteTypeDetail detail_Union_Discriminator_octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_octet, ann_custom_Union_Discriminator_octet, type_name_Union_Discriminator_octet.to_string()); CompleteUnionHeader header_Union_Discriminator_octet = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_octet); - UnionDiscriminatorFlag member_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -6623,7 +3382,6 @@ void register_Union_Discriminator_octet_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_octet; @@ -6639,7 +3397,6 @@ void register_Union_Discriminator_octet_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_octet discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_octet.reset(); @@ -6652,62 +3409,24 @@ void register_Union_Discriminator_octet_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_octet); - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(0)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_octet.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_octet.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_octet, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -6722,62 +3441,24 @@ void register_Union_Discriminator_octet_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_octet); - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_octet) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(1)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_octet.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_octet.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_octet, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -6790,38 +3471,31 @@ void register_Union_Discriminator_octet_type_identifier( CompleteUnionType union_type_Union_Discriminator_octet = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_octet, header_Union_Discriminator_octet, discriminator_Union_Discriminator_octet, member_seq_Union_Discriminator_octet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_octet, type_name_Union_Discriminator_octet.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_octet, type_name_Union_Discriminator_octet.to_string(), type_ids_Union_Discriminator_octet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_octet already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_octet", type_ids_Union_Discriminator_octet); - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_octet: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_char_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_char) { + ReturnCode_t return_code_Union_Discriminator_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_char = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_char", type_ids_Union_Discriminator_char); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_char) { - ReturnCode_t return_code_Union_Discriminator_char; - TypeIdentifierPair type_ids_Union_Discriminator_char; - UnionTypeFlag union_flags_Union_Discriminator_char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_char = "Union_Discriminator_char"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_char; eprosima::fastcdr::optional ann_custom_Union_Discriminator_char; CompleteTypeDetail detail_Union_Discriminator_char = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_char, ann_custom_Union_Discriminator_char, type_name_Union_Discriminator_char.to_string()); CompleteUnionHeader header_Union_Discriminator_char = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_char); - UnionDiscriminatorFlag member_flags_Union_Discriminator_char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -6831,7 +3505,6 @@ void register_Union_Discriminator_char_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_char; @@ -6847,7 +3520,6 @@ void register_Union_Discriminator_char_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_char discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_char.reset(); @@ -6860,62 +3532,24 @@ void register_Union_Discriminator_char_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_char); - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast('a')); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_char.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_char.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_char, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -6930,62 +3564,24 @@ void register_Union_Discriminator_char_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_char); - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_char) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast('b')); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_char.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_char, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_char.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -6998,38 +3594,31 @@ void register_Union_Discriminator_char_type_identifier( CompleteUnionType union_type_Union_Discriminator_char = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_char, header_Union_Discriminator_char, discriminator_Union_Discriminator_char, member_seq_Union_Discriminator_char); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_char, type_name_Union_Discriminator_char.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_char, type_name_Union_Discriminator_char.to_string(), type_ids_Union_Discriminator_char)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_char already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_char", type_ids_Union_Discriminator_char); - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_char: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_wchar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_wchar) { + ReturnCode_t return_code_Union_Discriminator_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_wchar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_wchar", type_ids_Union_Discriminator_wchar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_wchar) { - ReturnCode_t return_code_Union_Discriminator_wchar; - TypeIdentifierPair type_ids_Union_Discriminator_wchar; - UnionTypeFlag union_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_wchar = "Union_Discriminator_wchar"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_wchar; eprosima::fastcdr::optional ann_custom_Union_Discriminator_wchar; CompleteTypeDetail detail_Union_Discriminator_wchar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_wchar, ann_custom_Union_Discriminator_wchar, type_name_Union_Discriminator_wchar.to_string()); CompleteUnionHeader header_Union_Discriminator_wchar = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_wchar); - UnionDiscriminatorFlag member_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -7039,7 +3628,6 @@ void register_Union_Discriminator_wchar_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Discriminator_wchar; @@ -7055,7 +3643,6 @@ void register_Union_Discriminator_wchar_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_wchar discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_wchar.reset(); @@ -7068,62 +3655,24 @@ void register_Union_Discriminator_wchar_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_wchar); - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(L'a')); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_wchar.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_wchar, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_wchar.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -7138,62 +3687,24 @@ void register_Union_Discriminator_wchar_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_wchar); - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_wchar) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(L'b')); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_wchar.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_wchar.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_wchar, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -7206,38 +3717,31 @@ void register_Union_Discriminator_wchar_type_identifier( CompleteUnionType union_type_Union_Discriminator_wchar = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_wchar, header_Union_Discriminator_wchar, discriminator_Union_Discriminator_wchar, member_seq_Union_Discriminator_wchar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_wchar, type_name_Union_Discriminator_wchar.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_wchar, type_name_Union_Discriminator_wchar.to_string(), type_ids_Union_Discriminator_wchar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_wchar already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_wchar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_wchar", type_ids_Union_Discriminator_wchar); - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_wchar: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_enum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_enum) { + ReturnCode_t return_code_Union_Discriminator_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_enum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_enum", type_ids_Union_Discriminator_enum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum) { - ReturnCode_t return_code_Union_Discriminator_enum; - TypeIdentifierPair type_ids_Union_Discriminator_enum; - UnionTypeFlag union_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_enum = "Union_Discriminator_enum"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_enum; eprosima::fastcdr::optional ann_custom_Union_Discriminator_enum; CompleteTypeDetail detail_Union_Discriminator_enum = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_enum, ann_custom_Union_Discriminator_enum, type_name_Union_Discriminator_enum.to_string()); CompleteUnionHeader header_Union_Discriminator_enum = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_enum); - UnionDiscriminatorFlag member_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -7245,63 +3749,7 @@ void register_Union_Discriminator_enum_type_identifier( if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } +::register_InnerEnumHelper_type_identifier(type_ids_Union_Discriminator_enum); } CommonDiscriminatorMember common_Union_Discriminator_enum; if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d()) @@ -7316,7 +3764,6 @@ void register_Union_Discriminator_enum_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_enum discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_enum.reset(); @@ -7329,62 +3776,24 @@ void register_Union_Discriminator_enum_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_enum, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -7399,62 +3808,24 @@ void register_Union_Discriminator_enum_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(InnerEnumHelper::ENUM_VALUE_2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_second); - } - else + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_enum, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -7469,61 +3840,23 @@ void register_Union_Discriminator_enum_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_byte", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "third Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_third = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_third = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false); UnionCaseLabelSeq label_seq_third; - CommonUnionMember common_third; MemberId member_id_third = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_third_ec {false}; + CommonUnionMember common_third {TypeObjectUtils::build_common_union_member(member_id_third, + member_flags_third, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_enum, + common_third_ec), label_seq_third)}; + if (!common_third_ec) { - common_third = TypeObjectUtils::build_common_union_member(member_id_third, member_flags_third, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_third); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_third = TypeObjectUtils::build_common_union_member(member_id_third, member_flags_third, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_third); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union third member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union third member TypeIdentifier inconsistent."); return; } MemberName name_third = "third"; @@ -7536,38 +3869,31 @@ void register_Union_Discriminator_enum_type_identifier( CompleteUnionType union_type_Union_Discriminator_enum = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_enum, header_Union_Discriminator_enum, discriminator_Union_Discriminator_enum, member_seq_Union_Discriminator_enum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum, type_name_Union_Discriminator_enum.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum, type_name_Union_Discriminator_enum.to_string(), type_ids_Union_Discriminator_enum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_enum already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_enum_labels_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_enum_labels) { + ReturnCode_t return_code_Union_Discriminator_enum_labels {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_enum_labels = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_enum_labels", type_ids_Union_Discriminator_enum_labels); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum_labels) { - ReturnCode_t return_code_Union_Discriminator_enum_labels; - TypeIdentifierPair type_ids_Union_Discriminator_enum_labels; - UnionTypeFlag union_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_enum_labels = "Union_Discriminator_enum_labels"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_enum_labels; eprosima::fastcdr::optional ann_custom_Union_Discriminator_enum_labels; CompleteTypeDetail detail_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_enum_labels, ann_custom_Union_Discriminator_enum_labels, type_name_Union_Discriminator_enum_labels.to_string()); CompleteUnionHeader header_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_enum_labels); - UnionDiscriminatorFlag member_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_enum_labels = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -7575,63 +3901,7 @@ void register_Union_Discriminator_enum_labels_type_identifier( if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } +::register_InnerEnumHelper_type_identifier(type_ids_Union_Discriminator_enum_labels); } CommonDiscriminatorMember common_Union_Discriminator_enum_labels; if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d()) @@ -7646,7 +3916,6 @@ void register_Union_Discriminator_enum_labels_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_enum_labels discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_enum_labels.reset(); @@ -7659,63 +3928,25 @@ void register_Union_Discriminator_enum_labels_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum_labels) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_3)); TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum_labels.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum_labels.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_enum_labels, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -7730,62 +3961,24 @@ void register_Union_Discriminator_enum_labels_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_enum_labels) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(InnerEnumHelper::ENUM_VALUE_2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_enum_labels, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum_labels.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum_labels.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -7798,38 +3991,31 @@ void register_Union_Discriminator_enum_labels_type_identifier( CompleteUnionType union_type_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_enum_labels, header_Union_Discriminator_enum_labels, discriminator_Union_Discriminator_enum_labels, member_seq_Union_Discriminator_enum_labels); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum_labels, type_name_Union_Discriminator_enum_labels.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum_labels, type_name_Union_Discriminator_enum_labels.to_string(), type_ids_Union_Discriminator_enum_labels)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_enum_labels already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum_labels", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum_labels: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Discriminator_alias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Discriminator_alias) { + ReturnCode_t return_code_Union_Discriminator_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Discriminator_alias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_alias", type_ids_Union_Discriminator_alias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_alias) { - ReturnCode_t return_code_Union_Discriminator_alias; - TypeIdentifierPair type_ids_Union_Discriminator_alias; - UnionTypeFlag union_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Discriminator_alias = "Union_Discriminator_alias"; eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_alias; eprosima::fastcdr::optional ann_custom_Union_Discriminator_alias; CompleteTypeDetail detail_Union_Discriminator_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_alias, ann_custom_Union_Discriminator_alias, type_name_Union_Discriminator_alias.to_string()); CompleteUnionHeader header_Union_Discriminator_alias = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_alias); - UnionDiscriminatorFlag member_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Discriminator_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -7837,88 +4023,7 @@ void register_Union_Discriminator_alias_type_identifier( if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_alias); - - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_Discriminator_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_Discriminator_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } +::register_InnerAliasHelper_type_identifier(type_ids_Union_Discriminator_alias); } CommonDiscriminatorMember common_Union_Discriminator_alias; if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d()) @@ -7933,7 +4038,6 @@ void register_Union_Discriminator_alias_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_alias discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Discriminator_alias.reset(); @@ -7946,62 +4050,24 @@ void register_Union_Discriminator_alias_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int32_t", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_alias) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_first; TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_alias.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_alias.type_identifier2(), - label_seq_first); - } - else + bool common_first_ec {false}; + CommonUnionMember common_first {TypeObjectUtils::build_common_union_member(member_id_first, + member_flags_first, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_alias, + common_first_ec), label_seq_first)}; + if (!common_first_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union first member TypeIdentifier inconsistent."); return; } MemberName name_first = "first"; @@ -8016,62 +4082,24 @@ void register_Union_Discriminator_alias_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int64_t", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Discriminator_alias) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_second; TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_alias.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_second_ec {false}; + CommonUnionMember common_second {TypeObjectUtils::build_common_union_member(member_id_second, + member_flags_second, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Discriminator_alias, + common_second_ec), label_seq_second)}; + if (!common_second_ec) { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_alias.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union second member TypeIdentifier inconsistent."); return; } MemberName name_second = "second"; @@ -8084,38 +4112,31 @@ void register_Union_Discriminator_alias_type_identifier( CompleteUnionType union_type_Union_Discriminator_alias = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_alias, header_Union_Discriminator_alias, discriminator_Union_Discriminator_alias, member_seq_Union_Discriminator_alias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_alias, type_name_Union_Discriminator_alias.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_alias, type_name_Union_Discriminator_alias.to_string(), type_ids_Union_Discriminator_alias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Discriminator_alias already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_alias", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_alias: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Several_Fields_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Several_Fields) { + ReturnCode_t return_code_Union_Several_Fields {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Several_Fields = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Several_Fields", type_ids_Union_Several_Fields); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - ReturnCode_t return_code_Union_Several_Fields; - TypeIdentifierPair type_ids_Union_Several_Fields; - UnionTypeFlag union_flags_Union_Several_Fields = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Several_Fields = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Several_Fields = "Union_Several_Fields"; eprosima::fastcdr::optional type_ann_builtin_Union_Several_Fields; eprosima::fastcdr::optional ann_custom_Union_Several_Fields; CompleteTypeDetail detail_Union_Several_Fields = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Several_Fields, ann_custom_Union_Several_Fields, type_name_Union_Several_Fields.to_string()); CompleteUnionHeader header_Union_Several_Fields = TypeObjectUtils::build_complete_union_header(detail_Union_Several_Fields); - UnionDiscriminatorFlag member_flags_Union_Several_Fields = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Several_Fields = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Several_Fields = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -8125,7 +4146,6 @@ void register_Union_Several_Fields_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Several_Fields; @@ -8141,7 +4161,6 @@ void register_Union_Several_Fields_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Several_Fields discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Several_Fields.reset(); @@ -8154,229 +4173,22 @@ void register_Union_Several_Fields_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields = return_code_InnerStructureHelper; - type_ids_Union_Several_Fields = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_Union_Several_Fields); } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_a; TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_a_ec {false}; + CommonUnionMember common_a {TypeObjectUtils::build_common_union_member(member_id_a, + member_flags_a, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields, + common_a_ec), label_seq_a)}; + if (!common_a_ec) { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_a); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union a member TypeIdentifier inconsistent."); return; } MemberName name_a = "a"; @@ -8391,97 +4203,22 @@ void register_Union_Several_Fields_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerEmptyStructureHelper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields = return_code_InnerEmptyStructureHelper; - type_ids_Union_Several_Fields = type_ids_InnerEmptyStructureHelper; - } + ::register_InnerEmptyStructureHelper_type_identifier(type_ids_Union_Several_Fields); } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_b; TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; MemberId member_id_b = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_b); - } - else + bool common_b_ec {false}; + CommonUnionMember common_b {TypeObjectUtils::build_common_union_member(member_id_b, + member_flags_b, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields, + common_b_ec), label_seq_b)}; + if (!common_b_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union b member TypeIdentifier inconsistent."); return; } MemberName name_b = "b"; @@ -8496,157 +4233,22 @@ void register_Union_Several_Fields_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_Union_Several_Fields); } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_c; TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; MemberId member_id_c = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_c); - } - else + bool common_c_ec {false}; + CommonUnionMember common_c {TypeObjectUtils::build_common_union_member(member_id_c, + member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields, + common_c_ec), label_seq_c)}; + if (!common_c_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -8661,448 +4263,52 @@ void register_Union_Several_Fields_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_array_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields); + ::register_Inner_alias_array_helper_type_identifier(type_ids_Union_Several_Fields); + } + UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false); + UnionCaseLabelSeq label_seq_d; + TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); + MemberId member_id_d = 0x00000004; + bool common_d_ec {false}; + CommonUnionMember common_d {TypeObjectUtils::build_common_union_member(member_id_d, + member_flags_d, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields, + common_d_ec), label_seq_d)}; + if (!common_d_ec) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union d member TypeIdentifier inconsistent."); + return; + } + MemberName name_d = "d"; + eprosima::fastcdr::optional member_ann_builtin_d; + ann_custom_Union_Several_Fields.reset(); + CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_Union_Several_Fields); + CompleteUnionMember member_d = TypeObjectUtils::build_complete_union_member(common_d, detail_d); + TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_d); + } + { + return_code_Union_Several_Fields = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Inner_alias_sequence_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_d; - TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; - MemberId member_id_d = 0x00000004; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_d); - } - else + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_Union_Several_Fields); - CompleteUnionMember member_d = TypeObjectUtils::build_complete_union_member(common_d, detail_d); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_d); - } - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_Union_Several_Fields); } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_e; TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; MemberId member_id_e = 0x00000005; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_e); - } - else + bool common_e_ec {false}; + CommonUnionMember common_e {TypeObjectUtils::build_common_union_member(member_id_e, + member_flags_e, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields, + common_e_ec), label_seq_e)}; + if (!common_e_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union e member TypeIdentifier inconsistent."); return; } MemberName name_e = "e"; @@ -9115,38 +4321,31 @@ void register_Union_Several_Fields_type_identifier( CompleteUnionType union_type_Union_Several_Fields = TypeObjectUtils::build_complete_union_type(union_flags_Union_Several_Fields, header_Union_Several_Fields, discriminator_Union_Several_Fields, member_seq_Union_Several_Fields); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields, type_name_Union_Several_Fields.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields, type_name_Union_Several_Fields.to_string(), type_ids_Union_Several_Fields)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Several_Fields already registered in TypeObjectRegistry for a different type."); } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_Union_Several_Fields_With_Default_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_Union_Several_Fields_With_Default) { + ReturnCode_t return_code_Union_Several_Fields_With_Default {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Union_Several_Fields_With_Default = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Several_Fields_With_Default", type_ids_Union_Several_Fields_With_Default); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - ReturnCode_t return_code_Union_Several_Fields_With_Default; - TypeIdentifierPair type_ids_Union_Several_Fields_With_Default; - UnionTypeFlag union_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + UnionTypeFlag union_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); QualifiedTypeName type_name_Union_Several_Fields_With_Default = "Union_Several_Fields_With_Default"; eprosima::fastcdr::optional type_ann_builtin_Union_Several_Fields_With_Default; eprosima::fastcdr::optional ann_custom_Union_Several_Fields_With_Default; CompleteTypeDetail detail_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Several_Fields_With_Default, ann_custom_Union_Several_Fields_With_Default, type_name_Union_Several_Fields_With_Default.to_string()); CompleteUnionHeader header_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_union_header(detail_Union_Several_Fields_With_Default); - UnionDiscriminatorFlag member_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionDiscriminatorFlag member_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return_code_Union_Several_Fields_With_Default = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( @@ -9156,7 +4355,6 @@ void register_Union_Several_Fields_With_Default_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } CommonDiscriminatorMember common_Union_Several_Fields_With_Default; @@ -9172,7 +4370,6 @@ void register_Union_Several_Fields_With_Default_type_identifier( { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union_Several_Fields_With_Default discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); return; } type_ann_builtin_Union_Several_Fields_With_Default.reset(); @@ -9185,229 +4382,22 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerStructureHelper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields_With_Default = return_code_InnerStructureHelper; - type_ids_Union_Several_Fields_With_Default = type_ids_InnerStructureHelper; - } + ::register_InnerStructureHelper_type_identifier(type_ids_Union_Several_Fields_With_Default); } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_a; TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_a_ec {false}; + CommonUnionMember common_a {TypeObjectUtils::build_common_union_member(member_id_a, + member_flags_a, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_a_ec), label_seq_a)}; + if (!common_a_ec) { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_a); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union a member TypeIdentifier inconsistent."); return; } MemberName name_a = "a"; @@ -9422,97 +4412,22 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "InnerEmptyStructureHelper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields_With_Default = return_code_InnerEmptyStructureHelper; - type_ids_Union_Several_Fields_With_Default = type_ids_InnerEmptyStructureHelper; - } + ::register_InnerEmptyStructureHelper_type_identifier(type_ids_Union_Several_Fields_With_Default); } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_b; TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; MemberId member_id_b = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_b_ec {false}; + CommonUnionMember common_b {TypeObjectUtils::build_common_union_member(member_id_b, + member_flags_b, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_b_ec), label_seq_b)}; + if (!common_b_ec) { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_b); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union b member TypeIdentifier inconsistent."); return; } MemberName name_b = "b"; @@ -9527,157 +4442,22 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_bounded_string_helper_type_identifier(type_ids_Union_Several_Fields_With_Default); } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_c; TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; MemberId member_id_c = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_c_ec {false}; + CommonUnionMember common_c {TypeObjectUtils::build_common_union_member(member_id_c, + member_flags_c, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_c_ec), label_seq_c)}; + if (!common_c_ec) { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_c); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union c member TypeIdentifier inconsistent."); return; } MemberName name_c = "c"; @@ -9692,221 +4472,22 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_array_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_array_helper_type_identifier(type_ids_Union_Several_Fields_With_Default); } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_d; TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; MemberId member_id_d = 0x00000004; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) + bool common_d_ec {false}; + CommonUnionMember common_d {TypeObjectUtils::build_common_union_member(member_id_d, + member_flags_d, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_d_ec), label_seq_d)}; + if (!common_d_ec) { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_d); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union d member TypeIdentifier inconsistent."); return; } MemberName name_d = "d"; @@ -9921,219 +4502,22 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "Inner_alias_sequence_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + ::register_Inner_alias_sequence_helper_type_identifier(type_ids_Union_Several_Fields_With_Default); } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionCaseLabelSeq label_seq_e; TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; MemberId member_id_e = 0x00000005; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_e_ec {false}; + CommonUnionMember common_e {TypeObjectUtils::build_common_union_member(member_id_e, + member_flags_e, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_e_ec), label_seq_e)}; + if (!common_e_ec) { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_e); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union e member TypeIdentifier inconsistent."); return; } MemberName name_e = "e"; @@ -10148,61 +4532,23 @@ void register_Union_Several_Fields_With_Default_type_identifier( eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "anonymous_sequence_int16_t_30", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { return_code_Union_Several_Fields_With_Default = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( "_int16_t", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Union_Several_Fields_With_Default) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_30 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_30 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool element_identifier_anonymous_sequence_int16_t_30_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_30 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, element_identifier_anonymous_sequence_int16_t_30_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_30_ec) { - element_identifier_anonymous_sequence_int16_t_30 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_30 = EK_COMPLETE; @@ -10217,71 +4563,24 @@ void register_Union_Several_Fields_With_Default_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_30, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_30)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_30")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_30", type_ids_Union_Several_Fields_With_Default)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_30 already registered in TypeObjectRegistry for a different type."); } } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_30", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_30: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false); UnionCaseLabelSeq label_seq_f; - CommonUnionMember common_f; MemberId member_id_f = 0x00000006; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_f); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_f); - } - else + bool common_f_ec {false}; + CommonUnionMember common_f {TypeObjectUtils::build_common_union_member(member_id_f, + member_flags_f, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_Union_Several_Fields_With_Default, + common_f_ec), label_seq_f)}; + if (!common_f_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union f member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Union f member TypeIdentifier inconsistent."); return; } MemberName name_f = "f"; @@ -10294,32 +4593,26 @@ void register_Union_Several_Fields_With_Default_type_identifier( CompleteUnionType union_type_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_union_type(union_flags_Union_Several_Fields_With_Default, header_Union_Several_Fields_With_Default, discriminator_Union_Several_Fields_With_Default, member_seq_Union_Several_Fields_With_Default); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields_With_Default, type_name_Union_Several_Fields_With_Default.to_string(), type_id)) + TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields_With_Default, type_name_Union_Several_Fields_With_Default.to_string(), type_ids_Union_Several_Fields_With_Default)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields_With_Default already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields_With_Default", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields_With_Default: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "Union_Several_Fields_With_Default already registered in TypeObjectRegistry for a different type."); } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionShort) { + + ReturnCode_t return_code_UnionShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionShort", type_ids_UnionShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionShort) { - StructTypeFlag struct_flags_UnionShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionShort; - TypeIdentifierPair type_ids_UnionShort; QualifiedTypeName type_name_UnionShort = "UnionShort"; eprosima::fastcdr::optional type_ann_builtin_UnionShort; eprosima::fastcdr::optional ann_custom_UnionShort; @@ -10328,193 +4621,24 @@ void register_UnionShort_type_identifier( header_UnionShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionShort); CompleteStructMemberSeq member_seq_UnionShort; { - return_code_UnionShort = + TypeIdentifierPair type_ids_var_union_short; + ReturnCode_t return_code_var_union_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Short", type_ids_UnionShort); + "Union_Short", type_ids_var_union_short); - if (return_code_UnionShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_short) { - { - ReturnCode_t return_code_Union_Short; - TypeIdentifierPair type_ids_Union_Short; - UnionTypeFlag union_flags_Union_Short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Short = "Union_Short"; - eprosima::fastcdr::optional type_ann_builtin_Union_Short; - eprosima::fastcdr::optional ann_custom_Union_Short; - CompleteTypeDetail detail_Union_Short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Short, ann_custom_Union_Short, type_name_Union_Short.to_string()); - CompleteUnionHeader header_Union_Short = TypeObjectUtils::build_complete_union_header(detail_Union_Short); - UnionDiscriminatorFlag member_flags_Union_Short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Short); - - if (return_code_Union_Short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Short; - if (EK_COMPLETE == type_ids_Union_Short.type_identifier1()._d() || TK_NONE == type_ids_Union_Short.type_identifier2()._d()) - { - common_Union_Short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Short, type_ids_Union_Short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Short.type_identifier2()._d()) - { - common_Union_Short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Short, type_ids_Union_Short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Short.reset(); - ann_custom_Union_Short.reset(); - CompleteDiscriminatorMember discriminator_Union_Short = TypeObjectUtils::build_complete_discriminator_member(common_Union_Short, - type_ann_builtin_Union_Short, ann_custom_Union_Short); - CompleteUnionMemberSeq member_seq_Union_Short; - { - return_code_Union_Short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Short); - - if (return_code_Union_Short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "a Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_a; - TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; - MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Short.type_identifier1()._d() || TK_NONE == type_ids_Union_Short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Short.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Short.type_identifier2(), - label_seq_a); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_a = "a"; - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_Union_Short.reset(); - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_Union_Short); - CompleteUnionMember member_a = TypeObjectUtils::build_complete_union_member(common_a, detail_a); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Short, member_a); - } - CompleteUnionType union_type_Union_Short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Short, header_Union_Short, discriminator_Union_Short, - member_seq_Union_Short); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Short, type_name_Union_Short.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Short already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Short", type_ids_Union_Short); - if (return_code_Union_Short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionShort = return_code_Union_Short; - type_ids_UnionShort = type_ids_Union_Short; - } + ::register_Union_Short_type_identifier(type_ids_var_union_short); } - StructMemberFlag member_flags_var_union_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_short; MemberId member_id_var_union_short = 0x00000000; - if (EK_COMPLETE == type_ids_UnionShort.type_identifier1()._d() || TK_NONE == type_ids_UnionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_short = TypeObjectUtils::build_common_struct_member(member_id_var_union_short, member_flags_var_union_short, type_ids_UnionShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_short = TypeObjectUtils::build_common_struct_member(member_id_var_union_short, member_flags_var_union_short, type_ids_UnionShort.type_identifier2()); - } - else + bool common_var_union_short_ec {false}; + CommonStructMember common_var_union_short {TypeObjectUtils::build_common_struct_member(member_id_var_union_short, member_flags_var_union_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_short, common_var_union_short_ec))}; + if (!common_var_union_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_short member TypeIdentifier inconsistent."); return; } MemberName name_var_union_short = "var_union_short"; @@ -10526,32 +4650,26 @@ void register_UnionShort_type_identifier( } CompleteStructType struct_type_UnionShort = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionShort, header_UnionShort, member_seq_UnionShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionShort, type_name_UnionShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionShort, type_name_UnionShort.to_string(), type_ids_UnionShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionShort already registered in TypeObjectRegistry for a different type."); } - return_code_UnionShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionShort", type_ids_UnionShort); - if (return_code_UnionShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionUShort) { + + ReturnCode_t return_code_UnionUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionUShort", type_ids_UnionUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionUShort) { - StructTypeFlag struct_flags_UnionUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionUShort; - TypeIdentifierPair type_ids_UnionUShort; QualifiedTypeName type_name_UnionUShort = "UnionUShort"; eprosima::fastcdr::optional type_ann_builtin_UnionUShort; eprosima::fastcdr::optional ann_custom_UnionUShort; @@ -10560,193 +4678,24 @@ void register_UnionUShort_type_identifier( header_UnionUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionUShort); CompleteStructMemberSeq member_seq_UnionUShort; { - return_code_UnionUShort = + TypeIdentifierPair type_ids_var_union_ushort; + ReturnCode_t return_code_var_union_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_UShort", type_ids_UnionUShort); + "Union_UShort", type_ids_var_union_ushort); - if (return_code_UnionUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_ushort) { - { - ReturnCode_t return_code_Union_UShort; - TypeIdentifierPair type_ids_Union_UShort; - UnionTypeFlag union_flags_Union_UShort = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_UShort = "Union_UShort"; - eprosima::fastcdr::optional type_ann_builtin_Union_UShort; - eprosima::fastcdr::optional ann_custom_Union_UShort; - CompleteTypeDetail detail_Union_UShort = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_UShort, ann_custom_Union_UShort, type_name_Union_UShort.to_string()); - CompleteUnionHeader header_Union_UShort = TypeObjectUtils::build_complete_union_header(detail_Union_UShort); - UnionDiscriminatorFlag member_flags_Union_UShort = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_UShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_UShort); - - if (return_code_Union_UShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_UShort; - if (EK_COMPLETE == type_ids_Union_UShort.type_identifier1()._d() || TK_NONE == type_ids_Union_UShort.type_identifier2()._d()) - { - common_Union_UShort = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_UShort, type_ids_Union_UShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_UShort.type_identifier2()._d()) - { - common_Union_UShort = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_UShort, type_ids_Union_UShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_UShort discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_UShort.reset(); - ann_custom_Union_UShort.reset(); - CompleteDiscriminatorMember discriminator_Union_UShort = TypeObjectUtils::build_complete_discriminator_member(common_Union_UShort, - type_ann_builtin_Union_UShort, ann_custom_Union_UShort); - CompleteUnionMemberSeq member_seq_Union_UShort; - { - return_code_Union_UShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Union_UShort); - - if (return_code_Union_UShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "b Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_b; - TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; - MemberId member_id_b = 0x00000001; - if (EK_COMPLETE == type_ids_Union_UShort.type_identifier1()._d() || TK_NONE == type_ids_Union_UShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_UShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_UShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_UShort.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_UShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_UShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_UShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_UShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_UShort.type_identifier2(), - label_seq_b); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_b = "b"; - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_Union_UShort.reset(); - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_Union_UShort); - CompleteUnionMember member_b = TypeObjectUtils::build_complete_union_member(common_b, detail_b); - TypeObjectUtils::add_complete_union_member(member_seq_Union_UShort, member_b); - } - CompleteUnionType union_type_Union_UShort = TypeObjectUtils::build_complete_union_type(union_flags_Union_UShort, header_Union_UShort, discriminator_Union_UShort, - member_seq_Union_UShort); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_UShort, type_name_Union_UShort.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_UShort already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_UShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_UShort", type_ids_Union_UShort); - if (return_code_Union_UShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_UShort: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionUShort = return_code_Union_UShort; - type_ids_UnionUShort = type_ids_Union_UShort; - } + ::register_Union_UShort_type_identifier(type_ids_var_union_ushort); } - StructMemberFlag member_flags_var_union_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_ushort; MemberId member_id_var_union_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_UnionUShort.type_identifier1()._d() || TK_NONE == type_ids_UnionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_union_ushort, member_flags_var_union_ushort, type_ids_UnionUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_union_ushort, member_flags_var_union_ushort, type_ids_UnionUShort.type_identifier2()); - } - else + bool common_var_union_ushort_ec {false}; + CommonStructMember common_var_union_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_union_ushort, member_flags_var_union_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_ushort, common_var_union_ushort_ec))}; + if (!common_var_union_ushort_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_union_ushort = "var_union_ushort"; @@ -10758,32 +4707,26 @@ void register_UnionUShort_type_identifier( } CompleteStructType struct_type_UnionUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionUShort, header_UnionUShort, member_seq_UnionUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionUShort, type_name_UnionUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionUShort, type_name_UnionUShort.to_string(), type_ids_UnionUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionUShort already registered in TypeObjectRegistry for a different type."); } - return_code_UnionUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionUShort", type_ids_UnionUShort); - if (return_code_UnionUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionLong) { + + ReturnCode_t return_code_UnionLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionLong", type_ids_UnionLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionLong) { - StructTypeFlag struct_flags_UnionLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionLong; - TypeIdentifierPair type_ids_UnionLong; QualifiedTypeName type_name_UnionLong = "UnionLong"; eprosima::fastcdr::optional type_ann_builtin_UnionLong; eprosima::fastcdr::optional ann_custom_UnionLong; @@ -10792,193 +4735,24 @@ void register_UnionLong_type_identifier( header_UnionLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionLong); CompleteStructMemberSeq member_seq_UnionLong; { - return_code_UnionLong = + TypeIdentifierPair type_ids_var_union_long; + ReturnCode_t return_code_var_union_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Long", type_ids_UnionLong); + "Union_Long", type_ids_var_union_long); - if (return_code_UnionLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_long) { - { - ReturnCode_t return_code_Union_Long; - TypeIdentifierPair type_ids_Union_Long; - UnionTypeFlag union_flags_Union_Long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Long = "Union_Long"; - eprosima::fastcdr::optional type_ann_builtin_Union_Long; - eprosima::fastcdr::optional ann_custom_Union_Long; - CompleteTypeDetail detail_Union_Long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Long, ann_custom_Union_Long, type_name_Union_Long.to_string()); - CompleteUnionHeader header_Union_Long = TypeObjectUtils::build_complete_union_header(detail_Union_Long); - UnionDiscriminatorFlag member_flags_Union_Long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Long); - - if (return_code_Union_Long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Long; - if (EK_COMPLETE == type_ids_Union_Long.type_identifier1()._d() || TK_NONE == type_ids_Union_Long.type_identifier2()._d()) - { - common_Union_Long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Long, type_ids_Union_Long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Long.type_identifier2()._d()) - { - common_Union_Long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Long, type_ids_Union_Long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Long.reset(); - ann_custom_Union_Long.reset(); - CompleteDiscriminatorMember discriminator_Union_Long = TypeObjectUtils::build_complete_discriminator_member(common_Union_Long, - type_ann_builtin_Union_Long, ann_custom_Union_Long); - CompleteUnionMemberSeq member_seq_Union_Long; - { - return_code_Union_Long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Long); - - if (return_code_Union_Long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "c Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_c; - TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; - MemberId member_id_c = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Long.type_identifier1()._d() || TK_NONE == type_ids_Union_Long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Long.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Long.type_identifier2(), - label_seq_c); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_Union_Long.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_Union_Long); - CompleteUnionMember member_c = TypeObjectUtils::build_complete_union_member(common_c, detail_c); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Long, member_c); - } - CompleteUnionType union_type_Union_Long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Long, header_Union_Long, discriminator_Union_Long, - member_seq_Union_Long); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Long, type_name_Union_Long.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Long already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Long", type_ids_Union_Long); - if (return_code_Union_Long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionLong = return_code_Union_Long; - type_ids_UnionLong = type_ids_Union_Long; - } + ::register_Union_Long_type_identifier(type_ids_var_union_long); } - StructMemberFlag member_flags_var_union_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_long; MemberId member_id_var_union_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionLong.type_identifier1()._d() || TK_NONE == type_ids_UnionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_long, member_flags_var_union_long, type_ids_UnionLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_long, member_flags_var_union_long, type_ids_UnionLong.type_identifier2()); - } - else + bool common_var_union_long_ec {false}; + CommonStructMember common_var_union_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_long, member_flags_var_union_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_long, common_var_union_long_ec))}; + if (!common_var_union_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_long = "var_union_long"; @@ -10990,32 +4764,26 @@ void register_UnionLong_type_identifier( } CompleteStructType struct_type_UnionLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionLong, header_UnionLong, member_seq_UnionLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLong, type_name_UnionLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLong, type_name_UnionLong.to_string(), type_ids_UnionLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionLong", type_ids_UnionLong); - if (return_code_UnionLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionULong) { + + ReturnCode_t return_code_UnionULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionULong", type_ids_UnionULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionULong) { - StructTypeFlag struct_flags_UnionULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionULong; - TypeIdentifierPair type_ids_UnionULong; QualifiedTypeName type_name_UnionULong = "UnionULong"; eprosima::fastcdr::optional type_ann_builtin_UnionULong; eprosima::fastcdr::optional ann_custom_UnionULong; @@ -11024,193 +4792,24 @@ void register_UnionULong_type_identifier( header_UnionULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionULong); CompleteStructMemberSeq member_seq_UnionULong; { - return_code_UnionULong = + TypeIdentifierPair type_ids_var_union_ulong; + ReturnCode_t return_code_var_union_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULong", type_ids_UnionULong); + "Union_ULong", type_ids_var_union_ulong); - if (return_code_UnionULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_ulong) { - { - ReturnCode_t return_code_Union_ULong; - TypeIdentifierPair type_ids_Union_ULong; - UnionTypeFlag union_flags_Union_ULong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_ULong = "Union_ULong"; - eprosima::fastcdr::optional type_ann_builtin_Union_ULong; - eprosima::fastcdr::optional ann_custom_Union_ULong; - CompleteTypeDetail detail_Union_ULong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_ULong, ann_custom_Union_ULong, type_name_Union_ULong.to_string()); - CompleteUnionHeader header_Union_ULong = TypeObjectUtils::build_complete_union_header(detail_Union_ULong); - UnionDiscriminatorFlag member_flags_Union_ULong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_ULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_ULong); - - if (return_code_Union_ULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_ULong; - if (EK_COMPLETE == type_ids_Union_ULong.type_identifier1()._d() || TK_NONE == type_ids_Union_ULong.type_identifier2()._d()) - { - common_Union_ULong = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_ULong, type_ids_Union_ULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_ULong.type_identifier2()._d()) - { - common_Union_ULong = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_ULong, type_ids_Union_ULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULong discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_ULong.reset(); - ann_custom_Union_ULong.reset(); - CompleteDiscriminatorMember discriminator_Union_ULong = TypeObjectUtils::build_complete_discriminator_member(common_Union_ULong, - type_ann_builtin_Union_ULong, ann_custom_Union_ULong); - CompleteUnionMemberSeq member_seq_Union_ULong; - { - return_code_Union_ULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Union_ULong); - - if (return_code_Union_ULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "d Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_d; - TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; - MemberId member_id_d = 0x00000001; - if (EK_COMPLETE == type_ids_Union_ULong.type_identifier1()._d() || TK_NONE == type_ids_Union_ULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_ULong.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_ULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_ULong.type_identifier2(), - label_seq_d); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_Union_ULong.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_Union_ULong); - CompleteUnionMember member_d = TypeObjectUtils::build_complete_union_member(common_d, detail_d); - TypeObjectUtils::add_complete_union_member(member_seq_Union_ULong, member_d); - } - CompleteUnionType union_type_Union_ULong = TypeObjectUtils::build_complete_union_type(union_flags_Union_ULong, header_Union_ULong, discriminator_Union_ULong, - member_seq_Union_ULong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULong, type_name_Union_ULong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULong already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_ULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULong", type_ids_Union_ULong); - if (return_code_Union_ULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULong: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionULong = return_code_Union_ULong; - type_ids_UnionULong = type_ids_Union_ULong; - } + ::register_Union_ULong_type_identifier(type_ids_var_union_ulong); } - StructMemberFlag member_flags_var_union_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_ulong; MemberId member_id_var_union_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_UnionULong.type_identifier1()._d() || TK_NONE == type_ids_UnionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong, member_flags_var_union_ulong, type_ids_UnionULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong, member_flags_var_union_ulong, type_ids_UnionULong.type_identifier2()); - } - else + bool common_var_union_ulong_ec {false}; + CommonStructMember common_var_union_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong, member_flags_var_union_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_ulong, common_var_union_ulong_ec))}; + if (!common_var_union_ulong_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_union_ulong = "var_union_ulong"; @@ -11222,32 +4821,26 @@ void register_UnionULong_type_identifier( } CompleteStructType struct_type_UnionULong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionULong, header_UnionULong, member_seq_UnionULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionULong, type_name_UnionULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionULong, type_name_UnionULong.to_string(), type_ids_UnionULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionULong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionULong", type_ids_UnionULong); - if (return_code_UnionULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionLongLong) { + + ReturnCode_t return_code_UnionLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionLongLong", type_ids_UnionLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionLongLong) { - StructTypeFlag struct_flags_UnionLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionLongLong; - TypeIdentifierPair type_ids_UnionLongLong; QualifiedTypeName type_name_UnionLongLong = "UnionLongLong"; eprosima::fastcdr::optional type_ann_builtin_UnionLongLong; eprosima::fastcdr::optional ann_custom_UnionLongLong; @@ -11256,193 +4849,24 @@ void register_UnionLongLong_type_identifier( header_UnionLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionLongLong); CompleteStructMemberSeq member_seq_UnionLongLong; { - return_code_UnionLongLong = + TypeIdentifierPair type_ids_var_union_long_long; + ReturnCode_t return_code_var_union_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongLong", type_ids_UnionLongLong); + "Union_LongLong", type_ids_var_union_long_long); - if (return_code_UnionLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_long_long) { - { - ReturnCode_t return_code_Union_LongLong; - TypeIdentifierPair type_ids_Union_LongLong; - UnionTypeFlag union_flags_Union_LongLong = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_LongLong = "Union_LongLong"; - eprosima::fastcdr::optional type_ann_builtin_Union_LongLong; - eprosima::fastcdr::optional ann_custom_Union_LongLong; - CompleteTypeDetail detail_Union_LongLong = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_LongLong, ann_custom_Union_LongLong, type_name_Union_LongLong.to_string()); - CompleteUnionHeader header_Union_LongLong = TypeObjectUtils::build_complete_union_header(detail_Union_LongLong); - UnionDiscriminatorFlag member_flags_Union_LongLong = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_LongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_LongLong); - - if (return_code_Union_LongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_LongLong; - if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1()._d() || TK_NONE == type_ids_Union_LongLong.type_identifier2()._d()) - { - common_Union_LongLong = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_LongLong, type_ids_Union_LongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2()._d()) - { - common_Union_LongLong = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_LongLong, type_ids_Union_LongLong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongLong discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_LongLong.reset(); - ann_custom_Union_LongLong.reset(); - CompleteDiscriminatorMember discriminator_Union_LongLong = TypeObjectUtils::build_complete_discriminator_member(common_Union_LongLong, - type_ann_builtin_Union_LongLong, ann_custom_Union_LongLong); - CompleteUnionMemberSeq member_seq_Union_LongLong; - { - return_code_Union_LongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_LongLong); - - if (return_code_Union_LongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "e Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_e; - TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; - MemberId member_id_e = 0x00000001; - if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1()._d() || TK_NONE == type_ids_Union_LongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_LongLong.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_LongLong.type_identifier2(), - label_seq_e); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_e = "e"; - eprosima::fastcdr::optional member_ann_builtin_e; - ann_custom_Union_LongLong.reset(); - CompleteMemberDetail detail_e = TypeObjectUtils::build_complete_member_detail(name_e, member_ann_builtin_e, ann_custom_Union_LongLong); - CompleteUnionMember member_e = TypeObjectUtils::build_complete_union_member(common_e, detail_e); - TypeObjectUtils::add_complete_union_member(member_seq_Union_LongLong, member_e); - } - CompleteUnionType union_type_Union_LongLong = TypeObjectUtils::build_complete_union_type(union_flags_Union_LongLong, header_Union_LongLong, discriminator_Union_LongLong, - member_seq_Union_LongLong); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongLong, type_name_Union_LongLong.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongLong already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_LongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongLong", type_ids_Union_LongLong); - if (return_code_Union_LongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongLong: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionLongLong = return_code_Union_LongLong; - type_ids_UnionLongLong = type_ids_Union_LongLong; - } + ::register_Union_LongLong_type_identifier(type_ids_var_union_long_long); } - StructMemberFlag member_flags_var_union_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_long_long; MemberId member_id_var_union_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionLongLong.type_identifier1()._d() || TK_NONE == type_ids_UnionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_long_long, member_flags_var_union_long_long, type_ids_UnionLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_long_long, member_flags_var_union_long_long, type_ids_UnionLongLong.type_identifier2()); - } - else + bool common_var_union_long_long_ec {false}; + CommonStructMember common_var_union_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_long_long, member_flags_var_union_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_long_long, common_var_union_long_long_ec))}; + if (!common_var_union_long_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_long_long = "var_union_long_long"; @@ -11454,32 +4878,26 @@ void register_UnionLongLong_type_identifier( } CompleteStructType struct_type_UnionLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionLongLong, header_UnionLongLong, member_seq_UnionLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLongLong, type_name_UnionLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLongLong, type_name_UnionLongLong.to_string(), type_ids_UnionLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionLongLong", type_ids_UnionLongLong); - if (return_code_UnionLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionULongLong) { + + ReturnCode_t return_code_UnionULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionULongLong", type_ids_UnionULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionULongLong) { - StructTypeFlag struct_flags_UnionULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionULongLong; - TypeIdentifierPair type_ids_UnionULongLong; QualifiedTypeName type_name_UnionULongLong = "UnionULongLong"; eprosima::fastcdr::optional type_ann_builtin_UnionULongLong; eprosima::fastcdr::optional ann_custom_UnionULongLong; @@ -11488,193 +4906,24 @@ void register_UnionULongLong_type_identifier( header_UnionULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionULongLong); CompleteStructMemberSeq member_seq_UnionULongLong; { - return_code_UnionULongLong = + TypeIdentifierPair type_ids_var_union_ulong_long; + ReturnCode_t return_code_var_union_ulong_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_ulong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULongLOng", type_ids_UnionULongLong); + "Union_ULongLOng", type_ids_var_union_ulong_long); - if (return_code_UnionULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_ulong_long) { - { - ReturnCode_t return_code_Union_ULongLOng; - TypeIdentifierPair type_ids_Union_ULongLOng; - UnionTypeFlag union_flags_Union_ULongLOng = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_ULongLOng = "Union_ULongLOng"; - eprosima::fastcdr::optional type_ann_builtin_Union_ULongLOng; - eprosima::fastcdr::optional ann_custom_Union_ULongLOng; - CompleteTypeDetail detail_Union_ULongLOng = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_ULongLOng, ann_custom_Union_ULongLOng, type_name_Union_ULongLOng.to_string()); - CompleteUnionHeader header_Union_ULongLOng = TypeObjectUtils::build_complete_union_header(detail_Union_ULongLOng); - UnionDiscriminatorFlag member_flags_Union_ULongLOng = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_ULongLOng = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_ULongLOng); - - if (return_code_Union_ULongLOng != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_ULongLOng; - if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1()._d() || TK_NONE == type_ids_Union_ULongLOng.type_identifier2()._d()) - { - common_Union_ULongLOng = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_ULongLOng, type_ids_Union_ULongLOng.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2()._d()) - { - common_Union_ULongLOng = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_ULongLOng, type_ids_Union_ULongLOng.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULongLOng discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_ULongLOng.reset(); - ann_custom_Union_ULongLOng.reset(); - CompleteDiscriminatorMember discriminator_Union_ULongLOng = TypeObjectUtils::build_complete_discriminator_member(common_Union_ULongLOng, - type_ann_builtin_Union_ULongLOng, ann_custom_Union_ULongLOng); - CompleteUnionMemberSeq member_seq_Union_ULongLOng; - { - return_code_Union_ULongLOng = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Union_ULongLOng); - - if (return_code_Union_ULongLOng != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "f Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_f; - TypeObjectUtils::add_union_case_label(label_seq_f, static_cast(5)); - CommonUnionMember common_f; - MemberId member_id_f = 0x00000001; - if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1()._d() || TK_NONE == type_ids_Union_ULongLOng.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULongLOng.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULongLOng.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_ULongLOng.type_identifier1(), - label_seq_f); - } - else if (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_ULongLOng.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_ULongLOng.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_ULongLOng.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_ULongLOng.type_identifier2(), - label_seq_f); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union f member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_f = "f"; - eprosima::fastcdr::optional member_ann_builtin_f; - ann_custom_Union_ULongLOng.reset(); - CompleteMemberDetail detail_f = TypeObjectUtils::build_complete_member_detail(name_f, member_ann_builtin_f, ann_custom_Union_ULongLOng); - CompleteUnionMember member_f = TypeObjectUtils::build_complete_union_member(common_f, detail_f); - TypeObjectUtils::add_complete_union_member(member_seq_Union_ULongLOng, member_f); - } - CompleteUnionType union_type_Union_ULongLOng = TypeObjectUtils::build_complete_union_type(union_flags_Union_ULongLOng, header_Union_ULongLOng, discriminator_Union_ULongLOng, - member_seq_Union_ULongLOng); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_ULongLOng, type_name_Union_ULongLOng.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULongLOng already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_ULongLOng = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_ULongLOng", type_ids_Union_ULongLOng); - if (return_code_Union_ULongLOng != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_ULongLOng: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionULongLong = return_code_Union_ULongLOng; - type_ids_UnionULongLong = type_ids_Union_ULongLOng; - } + ::register_Union_ULongLOng_type_identifier(type_ids_var_union_ulong_long); } - StructMemberFlag member_flags_var_union_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_ulong_long; MemberId member_id_var_union_ulong_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionULongLong.type_identifier1()._d() || TK_NONE == type_ids_UnionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong_long, member_flags_var_union_ulong_long, type_ids_UnionULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong_long, member_flags_var_union_ulong_long, type_ids_UnionULongLong.type_identifier2()); - } - else + bool common_var_union_ulong_long_ec {false}; + CommonStructMember common_var_union_ulong_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_ulong_long, member_flags_var_union_ulong_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_ulong_long, common_var_union_ulong_long_ec))}; + if (!common_var_union_ulong_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_ulong_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_ulong_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_ulong_long = "var_union_ulong_long"; @@ -11686,32 +4935,26 @@ void register_UnionULongLong_type_identifier( } CompleteStructType struct_type_UnionULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionULongLong, header_UnionULongLong, member_seq_UnionULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionULongLong, type_name_UnionULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionULongLong, type_name_UnionULongLong.to_string(), type_ids_UnionULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionULongLong", type_ids_UnionULongLong); - if (return_code_UnionULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionFloat_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionFloat) { + + ReturnCode_t return_code_UnionFloat {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionFloat = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionFloat", type_ids_UnionFloat); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionFloat) { - StructTypeFlag struct_flags_UnionFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionFloat = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionFloat; - TypeIdentifierPair type_ids_UnionFloat; QualifiedTypeName type_name_UnionFloat = "UnionFloat"; eprosima::fastcdr::optional type_ann_builtin_UnionFloat; eprosima::fastcdr::optional ann_custom_UnionFloat; @@ -11720,193 +4963,24 @@ void register_UnionFloat_type_identifier( header_UnionFloat = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionFloat); CompleteStructMemberSeq member_seq_UnionFloat; { - return_code_UnionFloat = + TypeIdentifierPair type_ids_var_union_float; + ReturnCode_t return_code_var_union_float {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_float = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Float", type_ids_UnionFloat); + "Union_Float", type_ids_var_union_float); - if (return_code_UnionFloat != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_float) { - { - ReturnCode_t return_code_Union_Float; - TypeIdentifierPair type_ids_Union_Float; - UnionTypeFlag union_flags_Union_Float = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Float = "Union_Float"; - eprosima::fastcdr::optional type_ann_builtin_Union_Float; - eprosima::fastcdr::optional ann_custom_Union_Float; - CompleteTypeDetail detail_Union_Float = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Float, ann_custom_Union_Float, type_name_Union_Float.to_string()); - CompleteUnionHeader header_Union_Float = TypeObjectUtils::build_complete_union_header(detail_Union_Float); - UnionDiscriminatorFlag member_flags_Union_Float = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Float); - - if (return_code_Union_Float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Float; - if (EK_COMPLETE == type_ids_Union_Float.type_identifier1()._d() || TK_NONE == type_ids_Union_Float.type_identifier2()._d()) - { - common_Union_Float = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Float, type_ids_Union_Float.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Float.type_identifier2()._d()) - { - common_Union_Float = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Float, type_ids_Union_Float.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Float discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Float.reset(); - ann_custom_Union_Float.reset(); - CompleteDiscriminatorMember discriminator_Union_Float = TypeObjectUtils::build_complete_discriminator_member(common_Union_Float, - type_ann_builtin_Union_Float, ann_custom_Union_Float); - CompleteUnionMemberSeq member_seq_Union_Float; - { - return_code_Union_Float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_Union_Float); - - if (return_code_Union_Float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "g Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_g = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_g; - TypeObjectUtils::add_union_case_label(label_seq_g, static_cast(6)); - CommonUnionMember common_g; - MemberId member_id_g = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Float.type_identifier1()._d() || TK_NONE == type_ids_Union_Float.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Float.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Float.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Float.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_g = TypeObjectUtils::build_common_union_member(member_id_g, member_flags_g, type_ids_Union_Float.type_identifier1(), - label_seq_g); - } - else if (EK_COMPLETE == type_ids_Union_Float.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Float.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Float.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Float.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Float.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Float.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_g = TypeObjectUtils::build_common_union_member(member_id_g, member_flags_g, type_ids_Union_Float.type_identifier2(), - label_seq_g); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union g member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_g = "g"; - eprosima::fastcdr::optional member_ann_builtin_g; - ann_custom_Union_Float.reset(); - CompleteMemberDetail detail_g = TypeObjectUtils::build_complete_member_detail(name_g, member_ann_builtin_g, ann_custom_Union_Float); - CompleteUnionMember member_g = TypeObjectUtils::build_complete_union_member(common_g, detail_g); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Float, member_g); - } - CompleteUnionType union_type_Union_Float = TypeObjectUtils::build_complete_union_type(union_flags_Union_Float, header_Union_Float, discriminator_Union_Float, - member_seq_Union_Float); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Float, type_name_Union_Float.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Float already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Float = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Float", type_ids_Union_Float); - if (return_code_Union_Float != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Float: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionFloat = return_code_Union_Float; - type_ids_UnionFloat = type_ids_Union_Float; - } + ::register_Union_Float_type_identifier(type_ids_var_union_float); } - StructMemberFlag member_flags_var_union_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_float = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_float; MemberId member_id_var_union_float = 0x00000000; - if (EK_COMPLETE == type_ids_UnionFloat.type_identifier1()._d() || TK_NONE == type_ids_UnionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionFloat.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionFloat.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionFloat.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionFloat.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionFloat.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_float = TypeObjectUtils::build_common_struct_member(member_id_var_union_float, member_flags_var_union_float, type_ids_UnionFloat.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionFloat.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionFloat.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionFloat.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionFloat.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionFloat.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionFloat.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_float = TypeObjectUtils::build_common_struct_member(member_id_var_union_float, member_flags_var_union_float, type_ids_UnionFloat.type_identifier2()); - } - else + bool common_var_union_float_ec {false}; + CommonStructMember common_var_union_float {TypeObjectUtils::build_common_struct_member(member_id_var_union_float, member_flags_var_union_float, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_float, common_var_union_float_ec))}; + if (!common_var_union_float_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_float member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_float member TypeIdentifier inconsistent."); return; } MemberName name_var_union_float = "var_union_float"; @@ -11918,32 +4992,26 @@ void register_UnionFloat_type_identifier( } CompleteStructType struct_type_UnionFloat = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionFloat, header_UnionFloat, member_seq_UnionFloat); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionFloat, type_name_UnionFloat.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionFloat, type_name_UnionFloat.to_string(), type_ids_UnionFloat)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionFloat already registered in TypeObjectRegistry for a different type."); } - return_code_UnionFloat = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionFloat", type_ids_UnionFloat); - if (return_code_UnionFloat != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionFloat: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDouble) { + + ReturnCode_t return_code_UnionDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDouble", type_ids_UnionDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDouble) { - StructTypeFlag struct_flags_UnionDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDouble; - TypeIdentifierPair type_ids_UnionDouble; QualifiedTypeName type_name_UnionDouble = "UnionDouble"; eprosima::fastcdr::optional type_ann_builtin_UnionDouble; eprosima::fastcdr::optional ann_custom_UnionDouble; @@ -11952,193 +5020,24 @@ void register_UnionDouble_type_identifier( header_UnionDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDouble); CompleteStructMemberSeq member_seq_UnionDouble; { - return_code_UnionDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Double", type_ids_UnionDouble); - - if (return_code_UnionDouble != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_Union_Double; - TypeIdentifierPair type_ids_Union_Double; - UnionTypeFlag union_flags_Union_Double = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Double = "Union_Double"; - eprosima::fastcdr::optional type_ann_builtin_Union_Double; - eprosima::fastcdr::optional ann_custom_Union_Double; - CompleteTypeDetail detail_Union_Double = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Double, ann_custom_Union_Double, type_name_Union_Double.to_string()); - CompleteUnionHeader header_Union_Double = TypeObjectUtils::build_complete_union_header(detail_Union_Double); - UnionDiscriminatorFlag member_flags_Union_Double = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Double); - - if (return_code_Union_Double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Double; - if (EK_COMPLETE == type_ids_Union_Double.type_identifier1()._d() || TK_NONE == type_ids_Union_Double.type_identifier2()._d()) - { - common_Union_Double = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Double, type_ids_Union_Double.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Double.type_identifier2()._d()) - { - common_Union_Double = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Double, type_ids_Union_Double.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Double discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Double.reset(); - ann_custom_Union_Double.reset(); - CompleteDiscriminatorMember discriminator_Union_Double = TypeObjectUtils::build_complete_discriminator_member(common_Union_Double, - type_ann_builtin_Union_Double, ann_custom_Union_Double); - CompleteUnionMemberSeq member_seq_Union_Double; - { - return_code_Union_Double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_Union_Double); + TypeIdentifierPair type_ids_var_union_double; + ReturnCode_t return_code_var_union_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_double = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Double", type_ids_var_union_double); - if (return_code_Union_Double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "h Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_h = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_h; - TypeObjectUtils::add_union_case_label(label_seq_h, static_cast(7)); - CommonUnionMember common_h; - MemberId member_id_h = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Double.type_identifier1()._d() || TK_NONE == type_ids_Union_Double.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Double.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Double.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Double.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_h = TypeObjectUtils::build_common_union_member(member_id_h, member_flags_h, type_ids_Union_Double.type_identifier1(), - label_seq_h); - } - else if (EK_COMPLETE == type_ids_Union_Double.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Double.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Double.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Double.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Double.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Double.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_h = TypeObjectUtils::build_common_union_member(member_id_h, member_flags_h, type_ids_Union_Double.type_identifier2(), - label_seq_h); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union h member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_h = "h"; - eprosima::fastcdr::optional member_ann_builtin_h; - ann_custom_Union_Double.reset(); - CompleteMemberDetail detail_h = TypeObjectUtils::build_complete_member_detail(name_h, member_ann_builtin_h, ann_custom_Union_Double); - CompleteUnionMember member_h = TypeObjectUtils::build_complete_union_member(common_h, detail_h); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Double, member_h); - } - CompleteUnionType union_type_Union_Double = TypeObjectUtils::build_complete_union_type(union_flags_Union_Double, header_Union_Double, discriminator_Union_Double, - member_seq_Union_Double); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Double, type_name_Union_Double.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Double already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Double = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Double", type_ids_Union_Double); - if (return_code_Union_Double != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Double: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDouble = return_code_Union_Double; - type_ids_UnionDouble = type_ids_Union_Double; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_double) + { + ::register_Union_Double_type_identifier(type_ids_var_union_double); } - StructMemberFlag member_flags_var_union_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_double; MemberId member_id_var_union_double = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDouble.type_identifier1()._d() || TK_NONE == type_ids_UnionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_double = TypeObjectUtils::build_common_struct_member(member_id_var_union_double, member_flags_var_union_double, type_ids_UnionDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_double = TypeObjectUtils::build_common_struct_member(member_id_var_union_double, member_flags_var_union_double, type_ids_UnionDouble.type_identifier2()); - } - else + bool common_var_union_double_ec {false}; + CommonStructMember common_var_union_double {TypeObjectUtils::build_common_struct_member(member_id_var_union_double, member_flags_var_union_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_double, common_var_union_double_ec))}; + if (!common_var_union_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_double member TypeIdentifier inconsistent."); return; } MemberName name_var_union_double = "var_union_double"; @@ -12150,32 +5049,26 @@ void register_UnionDouble_type_identifier( } CompleteStructType struct_type_UnionDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDouble, header_UnionDouble, member_seq_UnionDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDouble, type_name_UnionDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDouble, type_name_UnionDouble.to_string(), type_ids_UnionDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDouble already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDouble", type_ids_UnionDouble); - if (return_code_UnionDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionLongDouble_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionLongDouble) { + + ReturnCode_t return_code_UnionLongDouble {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionLongDouble = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionLongDouble", type_ids_UnionLongDouble); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionLongDouble) { - StructTypeFlag struct_flags_UnionLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionLongDouble = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionLongDouble; - TypeIdentifierPair type_ids_UnionLongDouble; QualifiedTypeName type_name_UnionLongDouble = "UnionLongDouble"; eprosima::fastcdr::optional type_ann_builtin_UnionLongDouble; eprosima::fastcdr::optional ann_custom_UnionLongDouble; @@ -12184,193 +5077,24 @@ void register_UnionLongDouble_type_identifier( header_UnionLongDouble = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionLongDouble); CompleteStructMemberSeq member_seq_UnionLongDouble; { - return_code_UnionLongDouble = + TypeIdentifierPair type_ids_var_union_long_double; + ReturnCode_t return_code_var_union_long_double {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_long_double = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongDouble", type_ids_UnionLongDouble); + "Union_LongDouble", type_ids_var_union_long_double); - if (return_code_UnionLongDouble != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_long_double) { - { - ReturnCode_t return_code_Union_LongDouble; - TypeIdentifierPair type_ids_Union_LongDouble; - UnionTypeFlag union_flags_Union_LongDouble = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_LongDouble = "Union_LongDouble"; - eprosima::fastcdr::optional type_ann_builtin_Union_LongDouble; - eprosima::fastcdr::optional ann_custom_Union_LongDouble; - CompleteTypeDetail detail_Union_LongDouble = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_LongDouble, ann_custom_Union_LongDouble, type_name_Union_LongDouble.to_string()); - CompleteUnionHeader header_Union_LongDouble = TypeObjectUtils::build_complete_union_header(detail_Union_LongDouble); - UnionDiscriminatorFlag member_flags_Union_LongDouble = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_LongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_LongDouble); - - if (return_code_Union_LongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_LongDouble; - if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1()._d() || TK_NONE == type_ids_Union_LongDouble.type_identifier2()._d()) - { - common_Union_LongDouble = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_LongDouble, type_ids_Union_LongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2()._d()) - { - common_Union_LongDouble = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_LongDouble, type_ids_Union_LongDouble.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongDouble discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_LongDouble.reset(); - ann_custom_Union_LongDouble.reset(); - CompleteDiscriminatorMember discriminator_Union_LongDouble = TypeObjectUtils::build_complete_discriminator_member(common_Union_LongDouble, - type_ann_builtin_Union_LongDouble, ann_custom_Union_LongDouble); - CompleteUnionMemberSeq member_seq_Union_LongDouble; - { - return_code_Union_LongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_Union_LongDouble); - - if (return_code_Union_LongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "i Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_i = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_i; - TypeObjectUtils::add_union_case_label(label_seq_i, static_cast(8)); - CommonUnionMember common_i; - MemberId member_id_i = 0x00000001; - if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1()._d() || TK_NONE == type_ids_Union_LongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_i = TypeObjectUtils::build_common_union_member(member_id_i, member_flags_i, type_ids_Union_LongDouble.type_identifier1(), - label_seq_i); - } - else if (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_LongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_LongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_LongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_i = TypeObjectUtils::build_common_union_member(member_id_i, member_flags_i, type_ids_Union_LongDouble.type_identifier2(), - label_seq_i); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union i member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_i = "i"; - eprosima::fastcdr::optional member_ann_builtin_i; - ann_custom_Union_LongDouble.reset(); - CompleteMemberDetail detail_i = TypeObjectUtils::build_complete_member_detail(name_i, member_ann_builtin_i, ann_custom_Union_LongDouble); - CompleteUnionMember member_i = TypeObjectUtils::build_complete_union_member(common_i, detail_i); - TypeObjectUtils::add_complete_union_member(member_seq_Union_LongDouble, member_i); - } - CompleteUnionType union_type_Union_LongDouble = TypeObjectUtils::build_complete_union_type(union_flags_Union_LongDouble, header_Union_LongDouble, discriminator_Union_LongDouble, - member_seq_Union_LongDouble); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_LongDouble, type_name_Union_LongDouble.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongDouble already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_LongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_LongDouble", type_ids_Union_LongDouble); - if (return_code_Union_LongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_LongDouble: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionLongDouble = return_code_Union_LongDouble; - type_ids_UnionLongDouble = type_ids_Union_LongDouble; - } + ::register_Union_LongDouble_type_identifier(type_ids_var_union_long_double); } - StructMemberFlag member_flags_var_union_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_long_double = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_long_double; MemberId member_id_var_union_long_double = 0x00000000; - if (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1()._d() || TK_NONE == type_ids_UnionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLongDouble.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLongDouble.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_union_long_double, member_flags_var_union_long_double, type_ids_UnionLongDouble.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionLongDouble.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionLongDouble.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionLongDouble.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_long_double = TypeObjectUtils::build_common_struct_member(member_id_var_union_long_double, member_flags_var_union_long_double, type_ids_UnionLongDouble.type_identifier2()); - } - else + bool common_var_union_long_double_ec {false}; + CommonStructMember common_var_union_long_double {TypeObjectUtils::build_common_struct_member(member_id_var_union_long_double, member_flags_var_union_long_double, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_long_double, common_var_union_long_double_ec))}; + if (!common_var_union_long_double_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_long_double member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_long_double member TypeIdentifier inconsistent."); return; } MemberName name_var_union_long_double = "var_union_long_double"; @@ -12382,32 +5106,26 @@ void register_UnionLongDouble_type_identifier( } CompleteStructType struct_type_UnionLongDouble = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionLongDouble, header_UnionLongDouble, member_seq_UnionLongDouble); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLongDouble, type_name_UnionLongDouble.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionLongDouble, type_name_UnionLongDouble.to_string(), type_ids_UnionLongDouble)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionLongDouble already registered in TypeObjectRegistry for a different type."); } - return_code_UnionLongDouble = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionLongDouble", type_ids_UnionLongDouble); - if (return_code_UnionLongDouble != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionLongDouble: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionBoolean) { + + ReturnCode_t return_code_UnionBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionBoolean", type_ids_UnionBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionBoolean) { - StructTypeFlag struct_flags_UnionBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionBoolean; - TypeIdentifierPair type_ids_UnionBoolean; QualifiedTypeName type_name_UnionBoolean = "UnionBoolean"; eprosima::fastcdr::optional type_ann_builtin_UnionBoolean; eprosima::fastcdr::optional ann_custom_UnionBoolean; @@ -12416,193 +5134,24 @@ void register_UnionBoolean_type_identifier( header_UnionBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionBoolean); CompleteStructMemberSeq member_seq_UnionBoolean; { - return_code_UnionBoolean = + TypeIdentifierPair type_ids_var_union_boolean; + ReturnCode_t return_code_var_union_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Boolean", type_ids_UnionBoolean); + "Union_Boolean", type_ids_var_union_boolean); - if (return_code_UnionBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_boolean) { - { - ReturnCode_t return_code_Union_Boolean; - TypeIdentifierPair type_ids_Union_Boolean; - UnionTypeFlag union_flags_Union_Boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Boolean = "Union_Boolean"; - eprosima::fastcdr::optional type_ann_builtin_Union_Boolean; - eprosima::fastcdr::optional ann_custom_Union_Boolean; - CompleteTypeDetail detail_Union_Boolean = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Boolean, ann_custom_Union_Boolean, type_name_Union_Boolean.to_string()); - CompleteUnionHeader header_Union_Boolean = TypeObjectUtils::build_complete_union_header(detail_Union_Boolean); - UnionDiscriminatorFlag member_flags_Union_Boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Boolean); - - if (return_code_Union_Boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Boolean; - if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Boolean.type_identifier2()._d()) - { - common_Union_Boolean = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Boolean, type_ids_Union_Boolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2()._d()) - { - common_Union_Boolean = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Boolean, type_ids_Union_Boolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Boolean discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Boolean.reset(); - ann_custom_Union_Boolean.reset(); - CompleteDiscriminatorMember discriminator_Union_Boolean = TypeObjectUtils::build_complete_discriminator_member(common_Union_Boolean, - type_ann_builtin_Union_Boolean, ann_custom_Union_Boolean); - CompleteUnionMemberSeq member_seq_Union_Boolean; - { - return_code_Union_Boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_Union_Boolean); - - if (return_code_Union_Boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "j Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_j = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_j; - TypeObjectUtils::add_union_case_label(label_seq_j, static_cast(9)); - CommonUnionMember common_j; - MemberId member_id_j = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_j = TypeObjectUtils::build_common_union_member(member_id_j, member_flags_j, type_ids_Union_Boolean.type_identifier1(), - label_seq_j); - } - else if (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_j = TypeObjectUtils::build_common_union_member(member_id_j, member_flags_j, type_ids_Union_Boolean.type_identifier2(), - label_seq_j); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union j member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_j = "j"; - eprosima::fastcdr::optional member_ann_builtin_j; - ann_custom_Union_Boolean.reset(); - CompleteMemberDetail detail_j = TypeObjectUtils::build_complete_member_detail(name_j, member_ann_builtin_j, ann_custom_Union_Boolean); - CompleteUnionMember member_j = TypeObjectUtils::build_complete_union_member(common_j, detail_j); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Boolean, member_j); - } - CompleteUnionType union_type_Union_Boolean = TypeObjectUtils::build_complete_union_type(union_flags_Union_Boolean, header_Union_Boolean, discriminator_Union_Boolean, - member_seq_Union_Boolean); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Boolean, type_name_Union_Boolean.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Boolean already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Boolean", type_ids_Union_Boolean); - if (return_code_Union_Boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Boolean: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionBoolean = return_code_Union_Boolean; - type_ids_UnionBoolean = type_ids_Union_Boolean; - } + ::register_Union_Boolean_type_identifier(type_ids_var_union_boolean); } - StructMemberFlag member_flags_var_union_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_boolean; MemberId member_id_var_union_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_UnionBoolean.type_identifier1()._d() || TK_NONE == type_ids_UnionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_union_boolean, member_flags_var_union_boolean, type_ids_UnionBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_union_boolean, member_flags_var_union_boolean, type_ids_UnionBoolean.type_identifier2()); - } - else + bool common_var_union_boolean_ec {false}; + CommonStructMember common_var_union_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_union_boolean, member_flags_var_union_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_boolean, common_var_union_boolean_ec))}; + if (!common_var_union_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_union_boolean = "var_union_boolean"; @@ -12614,32 +5163,26 @@ void register_UnionBoolean_type_identifier( } CompleteStructType struct_type_UnionBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionBoolean, header_UnionBoolean, member_seq_UnionBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoolean, type_name_UnionBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoolean, type_name_UnionBoolean.to_string(), type_ids_UnionBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_UnionBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionBoolean", type_ids_UnionBoolean); - if (return_code_UnionBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionOctet) { + + ReturnCode_t return_code_UnionOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionOctet", type_ids_UnionOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionOctet) { - StructTypeFlag struct_flags_UnionOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionOctet; - TypeIdentifierPair type_ids_UnionOctet; QualifiedTypeName type_name_UnionOctet = "UnionOctet"; eprosima::fastcdr::optional type_ann_builtin_UnionOctet; eprosima::fastcdr::optional ann_custom_UnionOctet; @@ -12648,193 +5191,24 @@ void register_UnionOctet_type_identifier( header_UnionOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionOctet); CompleteStructMemberSeq member_seq_UnionOctet; { - return_code_UnionOctet = + TypeIdentifierPair type_ids_var_union_octet; + ReturnCode_t return_code_var_union_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Octet", type_ids_UnionOctet); + "Union_Octet", type_ids_var_union_octet); - if (return_code_UnionOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_octet) { - { - ReturnCode_t return_code_Union_Octet; - TypeIdentifierPair type_ids_Union_Octet; - UnionTypeFlag union_flags_Union_Octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Octet = "Union_Octet"; - eprosima::fastcdr::optional type_ann_builtin_Union_Octet; - eprosima::fastcdr::optional ann_custom_Union_Octet; - CompleteTypeDetail detail_Union_Octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Octet, ann_custom_Union_Octet, type_name_Union_Octet.to_string()); - CompleteUnionHeader header_Union_Octet = TypeObjectUtils::build_complete_union_header(detail_Union_Octet); - UnionDiscriminatorFlag member_flags_Union_Octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Octet); - - if (return_code_Union_Octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Octet; - if (EK_COMPLETE == type_ids_Union_Octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Octet.type_identifier2()._d()) - { - common_Union_Octet = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Octet, type_ids_Union_Octet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Octet.type_identifier2()._d()) - { - common_Union_Octet = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Octet, type_ids_Union_Octet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Octet discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Octet.reset(); - ann_custom_Union_Octet.reset(); - CompleteDiscriminatorMember discriminator_Union_Octet = TypeObjectUtils::build_complete_discriminator_member(common_Union_Octet, - type_ann_builtin_Union_Octet, ann_custom_Union_Octet); - CompleteUnionMemberSeq member_seq_Union_Octet; - { - return_code_Union_Octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Union_Octet); - - if (return_code_Union_Octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "k Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_k = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_k; - TypeObjectUtils::add_union_case_label(label_seq_k, static_cast(10)); - CommonUnionMember common_k; - MemberId member_id_k = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_k = TypeObjectUtils::build_common_union_member(member_id_k, member_flags_k, type_ids_Union_Octet.type_identifier1(), - label_seq_k); - } - else if (EK_COMPLETE == type_ids_Union_Octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_k = TypeObjectUtils::build_common_union_member(member_id_k, member_flags_k, type_ids_Union_Octet.type_identifier2(), - label_seq_k); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union k member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_k = "k"; - eprosima::fastcdr::optional member_ann_builtin_k; - ann_custom_Union_Octet.reset(); - CompleteMemberDetail detail_k = TypeObjectUtils::build_complete_member_detail(name_k, member_ann_builtin_k, ann_custom_Union_Octet); - CompleteUnionMember member_k = TypeObjectUtils::build_complete_union_member(common_k, detail_k); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Octet, member_k); - } - CompleteUnionType union_type_Union_Octet = TypeObjectUtils::build_complete_union_type(union_flags_Union_Octet, header_Union_Octet, discriminator_Union_Octet, - member_seq_Union_Octet); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Octet, type_name_Union_Octet.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Octet already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Octet", type_ids_Union_Octet); - if (return_code_Union_Octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Octet: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionOctet = return_code_Union_Octet; - type_ids_UnionOctet = type_ids_Union_Octet; - } + ::register_Union_Octet_type_identifier(type_ids_var_union_octet); } - StructMemberFlag member_flags_var_union_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_octet; MemberId member_id_var_union_octet = 0x00000000; - if (EK_COMPLETE == type_ids_UnionOctet.type_identifier1()._d() || TK_NONE == type_ids_UnionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_octet = TypeObjectUtils::build_common_struct_member(member_id_var_union_octet, member_flags_var_union_octet, type_ids_UnionOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_octet = TypeObjectUtils::build_common_struct_member(member_id_var_union_octet, member_flags_var_union_octet, type_ids_UnionOctet.type_identifier2()); - } - else + bool common_var_union_octet_ec {false}; + CommonStructMember common_var_union_octet {TypeObjectUtils::build_common_struct_member(member_id_var_union_octet, member_flags_var_union_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_octet, common_var_union_octet_ec))}; + if (!common_var_union_octet_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_union_octet = "var_union_octet"; @@ -12846,32 +5220,26 @@ void register_UnionOctet_type_identifier( } CompleteStructType struct_type_UnionOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionOctet, header_UnionOctet, member_seq_UnionOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionOctet, type_name_UnionOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionOctet, type_name_UnionOctet.to_string(), type_ids_UnionOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionOctet already registered in TypeObjectRegistry for a different type."); } - return_code_UnionOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionOctet", type_ids_UnionOctet); - if (return_code_UnionOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionChar) { + + ReturnCode_t return_code_UnionChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionChar", type_ids_UnionChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionChar) { - StructTypeFlag struct_flags_UnionChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionChar; - TypeIdentifierPair type_ids_UnionChar; QualifiedTypeName type_name_UnionChar = "UnionChar"; eprosima::fastcdr::optional type_ann_builtin_UnionChar; eprosima::fastcdr::optional ann_custom_UnionChar; @@ -12880,193 +5248,24 @@ void register_UnionChar_type_identifier( header_UnionChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionChar); CompleteStructMemberSeq member_seq_UnionChar; { - return_code_UnionChar = + TypeIdentifierPair type_ids_var_union_char; + ReturnCode_t return_code_var_union_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Char", type_ids_UnionChar); + "Union_Char", type_ids_var_union_char); - if (return_code_UnionChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_char) { - { - ReturnCode_t return_code_Union_Char; - TypeIdentifierPair type_ids_Union_Char; - UnionTypeFlag union_flags_Union_Char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Char = "Union_Char"; - eprosima::fastcdr::optional type_ann_builtin_Union_Char; - eprosima::fastcdr::optional ann_custom_Union_Char; - CompleteTypeDetail detail_Union_Char = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Char, ann_custom_Union_Char, type_name_Union_Char.to_string()); - CompleteUnionHeader header_Union_Char = TypeObjectUtils::build_complete_union_header(detail_Union_Char); - UnionDiscriminatorFlag member_flags_Union_Char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Char); - - if (return_code_Union_Char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Char; - if (EK_COMPLETE == type_ids_Union_Char.type_identifier1()._d() || TK_NONE == type_ids_Union_Char.type_identifier2()._d()) - { - common_Union_Char = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Char, type_ids_Union_Char.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Char.type_identifier2()._d()) - { - common_Union_Char = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Char, type_ids_Union_Char.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Char discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Char.reset(); - ann_custom_Union_Char.reset(); - CompleteDiscriminatorMember discriminator_Union_Char = TypeObjectUtils::build_complete_discriminator_member(common_Union_Char, - type_ann_builtin_Union_Char, ann_custom_Union_Char); - CompleteUnionMemberSeq member_seq_Union_Char; - { - return_code_Union_Char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_Union_Char); - - if (return_code_Union_Char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "l Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_l = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_l; - TypeObjectUtils::add_union_case_label(label_seq_l, static_cast(11)); - CommonUnionMember common_l; - MemberId member_id_l = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Char.type_identifier1()._d() || TK_NONE == type_ids_Union_Char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_union_member(member_id_l, member_flags_l, type_ids_Union_Char.type_identifier1(), - label_seq_l); - } - else if (EK_COMPLETE == type_ids_Union_Char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Char.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_l = TypeObjectUtils::build_common_union_member(member_id_l, member_flags_l, type_ids_Union_Char.type_identifier2(), - label_seq_l); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union l member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_l = "l"; - eprosima::fastcdr::optional member_ann_builtin_l; - ann_custom_Union_Char.reset(); - CompleteMemberDetail detail_l = TypeObjectUtils::build_complete_member_detail(name_l, member_ann_builtin_l, ann_custom_Union_Char); - CompleteUnionMember member_l = TypeObjectUtils::build_complete_union_member(common_l, detail_l); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Char, member_l); - } - CompleteUnionType union_type_Union_Char = TypeObjectUtils::build_complete_union_type(union_flags_Union_Char, header_Union_Char, discriminator_Union_Char, - member_seq_Union_Char); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Char, type_name_Union_Char.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Char already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Char", type_ids_Union_Char); - if (return_code_Union_Char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Char: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionChar = return_code_Union_Char; - type_ids_UnionChar = type_ids_Union_Char; - } + ::register_Union_Char_type_identifier(type_ids_var_union_char); } - StructMemberFlag member_flags_var_union_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_char; MemberId member_id_var_union_char = 0x00000000; - if (EK_COMPLETE == type_ids_UnionChar.type_identifier1()._d() || TK_NONE == type_ids_UnionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_char = TypeObjectUtils::build_common_struct_member(member_id_var_union_char, member_flags_var_union_char, type_ids_UnionChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_char = TypeObjectUtils::build_common_struct_member(member_id_var_union_char, member_flags_var_union_char, type_ids_UnionChar.type_identifier2()); - } - else + bool common_var_union_char_ec {false}; + CommonStructMember common_var_union_char {TypeObjectUtils::build_common_struct_member(member_id_var_union_char, member_flags_var_union_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_char, common_var_union_char_ec))}; + if (!common_var_union_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_char member TypeIdentifier inconsistent."); return; } MemberName name_var_union_char = "var_union_char"; @@ -13078,32 +5277,26 @@ void register_UnionChar_type_identifier( } CompleteStructType struct_type_UnionChar = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionChar, header_UnionChar, member_seq_UnionChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionChar, type_name_UnionChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionChar, type_name_UnionChar.to_string(), type_ids_UnionChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionChar already registered in TypeObjectRegistry for a different type."); } - return_code_UnionChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionChar", type_ids_UnionChar); - if (return_code_UnionChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionWChar) { + + ReturnCode_t return_code_UnionWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionWChar", type_ids_UnionWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionWChar) { - StructTypeFlag struct_flags_UnionWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionWChar; - TypeIdentifierPair type_ids_UnionWChar; QualifiedTypeName type_name_UnionWChar = "UnionWChar"; eprosima::fastcdr::optional type_ann_builtin_UnionWChar; eprosima::fastcdr::optional ann_custom_UnionWChar; @@ -13112,193 +5305,24 @@ void register_UnionWChar_type_identifier( header_UnionWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionWChar); CompleteStructMemberSeq member_seq_UnionWChar; { - return_code_UnionWChar = + TypeIdentifierPair type_ids_var_union_wchar; + ReturnCode_t return_code_var_union_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_wchar = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WChar", type_ids_UnionWChar); + "Union_WChar", type_ids_var_union_wchar); - if (return_code_UnionWChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_wchar) { - { - ReturnCode_t return_code_Union_WChar; - TypeIdentifierPair type_ids_Union_WChar; - UnionTypeFlag union_flags_Union_WChar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_WChar = "Union_WChar"; - eprosima::fastcdr::optional type_ann_builtin_Union_WChar; - eprosima::fastcdr::optional ann_custom_Union_WChar; - CompleteTypeDetail detail_Union_WChar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_WChar, ann_custom_Union_WChar, type_name_Union_WChar.to_string()); - CompleteUnionHeader header_Union_WChar = TypeObjectUtils::build_complete_union_header(detail_Union_WChar); - UnionDiscriminatorFlag member_flags_Union_WChar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_WChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_WChar); - - if (return_code_Union_WChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_WChar; - if (EK_COMPLETE == type_ids_Union_WChar.type_identifier1()._d() || TK_NONE == type_ids_Union_WChar.type_identifier2()._d()) - { - common_Union_WChar = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_WChar, type_ids_Union_WChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_WChar.type_identifier2()._d()) - { - common_Union_WChar = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_WChar, type_ids_Union_WChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WChar discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_WChar.reset(); - ann_custom_Union_WChar.reset(); - CompleteDiscriminatorMember discriminator_Union_WChar = TypeObjectUtils::build_complete_discriminator_member(common_Union_WChar, - type_ann_builtin_Union_WChar, ann_custom_Union_WChar); - CompleteUnionMemberSeq member_seq_Union_WChar; - { - return_code_Union_WChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_Union_WChar); - - if (return_code_Union_WChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "m Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_m = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_m; - TypeObjectUtils::add_union_case_label(label_seq_m, static_cast(12)); - CommonUnionMember common_m; - MemberId member_id_m = 0x00000001; - if (EK_COMPLETE == type_ids_Union_WChar.type_identifier1()._d() || TK_NONE == type_ids_Union_WChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_m = TypeObjectUtils::build_common_union_member(member_id_m, member_flags_m, type_ids_Union_WChar.type_identifier1(), - label_seq_m); - } - else if (EK_COMPLETE == type_ids_Union_WChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_m = TypeObjectUtils::build_common_union_member(member_id_m, member_flags_m, type_ids_Union_WChar.type_identifier2(), - label_seq_m); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union m member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_m = "m"; - eprosima::fastcdr::optional member_ann_builtin_m; - ann_custom_Union_WChar.reset(); - CompleteMemberDetail detail_m = TypeObjectUtils::build_complete_member_detail(name_m, member_ann_builtin_m, ann_custom_Union_WChar); - CompleteUnionMember member_m = TypeObjectUtils::build_complete_union_member(common_m, detail_m); - TypeObjectUtils::add_complete_union_member(member_seq_Union_WChar, member_m); - } - CompleteUnionType union_type_Union_WChar = TypeObjectUtils::build_complete_union_type(union_flags_Union_WChar, header_Union_WChar, discriminator_Union_WChar, - member_seq_Union_WChar); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WChar, type_name_Union_WChar.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WChar already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_WChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WChar", type_ids_Union_WChar); - if (return_code_Union_WChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WChar: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionWChar = return_code_Union_WChar; - type_ids_UnionWChar = type_ids_Union_WChar; - } + ::register_Union_WChar_type_identifier(type_ids_var_union_wchar); } - StructMemberFlag member_flags_var_union_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_wchar; MemberId member_id_var_union_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_UnionWChar.type_identifier1()._d() || TK_NONE == type_ids_UnionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_union_wchar, member_flags_var_union_wchar, type_ids_UnionWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_union_wchar, member_flags_var_union_wchar, type_ids_UnionWChar.type_identifier2()); - } - else + bool common_var_union_wchar_ec {false}; + CommonStructMember common_var_union_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_union_wchar, member_flags_var_union_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_wchar, common_var_union_wchar_ec))}; + if (!common_var_union_wchar_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_union_wchar = "var_union_wchar"; @@ -13310,32 +5334,26 @@ void register_UnionWChar_type_identifier( } CompleteStructType struct_type_UnionWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionWChar, header_UnionWChar, member_seq_UnionWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionWChar, type_name_UnionWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionWChar, type_name_UnionWChar.to_string(), type_ids_UnionWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionWChar already registered in TypeObjectRegistry for a different type."); } - return_code_UnionWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionWChar", type_ids_UnionWChar); - if (return_code_UnionWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionString) { + + ReturnCode_t return_code_UnionString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionString", type_ids_UnionString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionString) { - StructTypeFlag struct_flags_UnionString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionString; - TypeIdentifierPair type_ids_UnionString; QualifiedTypeName type_name_UnionString = "UnionString"; eprosima::fastcdr::optional type_ann_builtin_UnionString; eprosima::fastcdr::optional ann_custom_UnionString; @@ -13344,210 +5362,24 @@ void register_UnionString_type_identifier( header_UnionString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionString); CompleteStructMemberSeq member_seq_UnionString; { - return_code_UnionString = + TypeIdentifierPair type_ids_var_union_string; + ReturnCode_t return_code_var_union_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_String", type_ids_UnionString); + "Union_String", type_ids_var_union_string); - if (return_code_UnionString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_string) { - { - ReturnCode_t return_code_Union_String; - TypeIdentifierPair type_ids_Union_String; - UnionTypeFlag union_flags_Union_String = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_String = "Union_String"; - eprosima::fastcdr::optional type_ann_builtin_Union_String; - eprosima::fastcdr::optional ann_custom_Union_String; - CompleteTypeDetail detail_Union_String = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_String, ann_custom_Union_String, type_name_Union_String.to_string()); - CompleteUnionHeader header_Union_String = TypeObjectUtils::build_complete_union_header(detail_Union_String); - UnionDiscriminatorFlag member_flags_Union_String = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_String); - - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_String; - if (EK_COMPLETE == type_ids_Union_String.type_identifier1()._d() || TK_NONE == type_ids_Union_String.type_identifier2()._d()) - { - common_Union_String = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_String, type_ids_Union_String.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_String.type_identifier2()._d()) - { - common_Union_String = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_String, type_ids_Union_String.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_String discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_String.reset(); - ann_custom_Union_String.reset(); - CompleteDiscriminatorMember discriminator_Union_String = TypeObjectUtils::build_complete_discriminator_member(common_Union_String, - type_ann_builtin_Union_String, ann_custom_Union_String); - CompleteUnionMemberSeq member_seq_Union_String; - { - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_Union_String); - - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_Union_String); - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_n = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_n; - TypeObjectUtils::add_union_case_label(label_seq_n, static_cast(13)); - CommonUnionMember common_n; - MemberId member_id_n = 0x00000001; - if (EK_COMPLETE == type_ids_Union_String.type_identifier1()._d() || TK_NONE == type_ids_Union_String.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_String.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_String.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_String.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_n = TypeObjectUtils::build_common_union_member(member_id_n, member_flags_n, type_ids_Union_String.type_identifier1(), - label_seq_n); - } - else if (EK_COMPLETE == type_ids_Union_String.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_String.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_String.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_String.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_String.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_String.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_String.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_n = TypeObjectUtils::build_common_union_member(member_id_n, member_flags_n, type_ids_Union_String.type_identifier2(), - label_seq_n); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union n member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_n = "n"; - eprosima::fastcdr::optional member_ann_builtin_n; - ann_custom_Union_String.reset(); - CompleteMemberDetail detail_n = TypeObjectUtils::build_complete_member_detail(name_n, member_ann_builtin_n, ann_custom_Union_String); - CompleteUnionMember member_n = TypeObjectUtils::build_complete_union_member(common_n, detail_n); - TypeObjectUtils::add_complete_union_member(member_seq_Union_String, member_n); - } - CompleteUnionType union_type_Union_String = TypeObjectUtils::build_complete_union_type(union_flags_Union_String, header_Union_String, discriminator_Union_String, - member_seq_Union_String); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_String, type_name_Union_String.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_String already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_String = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_String", type_ids_Union_String); - if (return_code_Union_String != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_String: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionString = return_code_Union_String; - type_ids_UnionString = type_ids_Union_String; - } + ::register_Union_String_type_identifier(type_ids_var_union_string); } - StructMemberFlag member_flags_var_union_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_string; MemberId member_id_var_union_string = 0x00000000; - if (EK_COMPLETE == type_ids_UnionString.type_identifier1()._d() || TK_NONE == type_ids_UnionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_string = TypeObjectUtils::build_common_struct_member(member_id_var_union_string, member_flags_var_union_string, type_ids_UnionString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_string = TypeObjectUtils::build_common_struct_member(member_id_var_union_string, member_flags_var_union_string, type_ids_UnionString.type_identifier2()); - } - else + bool common_var_union_string_ec {false}; + CommonStructMember common_var_union_string {TypeObjectUtils::build_common_struct_member(member_id_var_union_string, member_flags_var_union_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_string, common_var_union_string_ec))}; + if (!common_var_union_string_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_string member TypeIdentifier inconsistent."); return; } MemberName name_var_union_string = "var_union_string"; @@ -13559,32 +5391,26 @@ void register_UnionString_type_identifier( } CompleteStructType struct_type_UnionString = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionString, header_UnionString, member_seq_UnionString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionString, type_name_UnionString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionString, type_name_UnionString.to_string(), type_ids_UnionString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionString already registered in TypeObjectRegistry for a different type."); } - return_code_UnionString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionString", type_ids_UnionString); - if (return_code_UnionString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionWString) { + + ReturnCode_t return_code_UnionWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionWString", type_ids_UnionWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionWString) { - StructTypeFlag struct_flags_UnionWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionWString; - TypeIdentifierPair type_ids_UnionWString; QualifiedTypeName type_name_UnionWString = "UnionWString"; eprosima::fastcdr::optional type_ann_builtin_UnionWString; eprosima::fastcdr::optional ann_custom_UnionWString; @@ -13593,210 +5419,24 @@ void register_UnionWString_type_identifier( header_UnionWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionWString); CompleteStructMemberSeq member_seq_UnionWString; { - return_code_UnionWString = + TypeIdentifierPair type_ids_var_union_wstring; + ReturnCode_t return_code_var_union_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WString", type_ids_UnionWString); - - if (return_code_UnionWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_Union_WString; - TypeIdentifierPair type_ids_Union_WString; - UnionTypeFlag union_flags_Union_WString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_WString = "Union_WString"; - eprosima::fastcdr::optional type_ann_builtin_Union_WString; - eprosima::fastcdr::optional ann_custom_Union_WString; - CompleteTypeDetail detail_Union_WString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_WString, ann_custom_Union_WString, type_name_Union_WString.to_string()); - CompleteUnionHeader header_Union_WString = TypeObjectUtils::build_complete_union_header(detail_Union_WString); - UnionDiscriminatorFlag member_flags_Union_WString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_WString); - - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_WString; - if (EK_COMPLETE == type_ids_Union_WString.type_identifier1()._d() || TK_NONE == type_ids_Union_WString.type_identifier2()._d()) - { - common_Union_WString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_WString, type_ids_Union_WString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_WString.type_identifier2()._d()) - { - common_Union_WString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_WString, type_ids_Union_WString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_WString.reset(); - ann_custom_Union_WString.reset(); - CompleteDiscriminatorMember discriminator_Union_WString = TypeObjectUtils::build_complete_discriminator_member(common_Union_WString, - type_ann_builtin_Union_WString, ann_custom_Union_WString); - CompleteUnionMemberSeq member_seq_Union_WString; - { - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_Union_WString); - - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_unbounded", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_unbounded", type_ids_Union_WString); - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_unbounded: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_o = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_o; - TypeObjectUtils::add_union_case_label(label_seq_o, static_cast(14)); - CommonUnionMember common_o; - MemberId member_id_o = 0x00000001; - if (EK_COMPLETE == type_ids_Union_WString.type_identifier1()._d() || TK_NONE == type_ids_Union_WString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_union_member(member_id_o, member_flags_o, type_ids_Union_WString.type_identifier1(), - label_seq_o); - } - else if (EK_COMPLETE == type_ids_Union_WString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_WString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_WString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_WString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_WString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_WString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_o = TypeObjectUtils::build_common_union_member(member_id_o, member_flags_o, type_ids_Union_WString.type_identifier2(), - label_seq_o); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union o member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_o = "o"; - eprosima::fastcdr::optional member_ann_builtin_o; - ann_custom_Union_WString.reset(); - CompleteMemberDetail detail_o = TypeObjectUtils::build_complete_member_detail(name_o, member_ann_builtin_o, ann_custom_Union_WString); - CompleteUnionMember member_o = TypeObjectUtils::build_complete_union_member(common_o, detail_o); - TypeObjectUtils::add_complete_union_member(member_seq_Union_WString, member_o); - } - CompleteUnionType union_type_Union_WString = TypeObjectUtils::build_complete_union_type(union_flags_Union_WString, header_Union_WString, discriminator_Union_WString, - member_seq_Union_WString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_WString, type_name_Union_WString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WString already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_WString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_WString", type_ids_Union_WString); - if (return_code_Union_WString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_WString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionWString = return_code_Union_WString; - type_ids_UnionWString = type_ids_Union_WString; - } - } - StructMemberFlag member_flags_var_union_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_var_union_wstring; - MemberId member_id_var_union_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_UnionWString.type_identifier1()._d() || TK_NONE == type_ids_UnionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_union_wstring, member_flags_var_union_wstring, type_ids_UnionWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionWString.type_identifier2().map_ldefn().key_identifier()->_d()))) + "Union_WString", type_ids_var_union_wstring); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_wstring) { - common_var_union_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_union_wstring, member_flags_var_union_wstring, type_ids_UnionWString.type_identifier2()); + ::register_Union_WString_type_identifier(type_ids_var_union_wstring); } - else + StructMemberFlag member_flags_var_union_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, + false, false, false, false); + MemberId member_id_var_union_wstring = 0x00000000; + bool common_var_union_wstring_ec {false}; + CommonStructMember common_var_union_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_union_wstring, member_flags_var_union_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_wstring, common_var_union_wstring_ec))}; + if (!common_var_union_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_union_wstring = "var_union_wstring"; @@ -13808,32 +5448,26 @@ void register_UnionWString_type_identifier( } CompleteStructType struct_type_UnionWString = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionWString, header_UnionWString, member_seq_UnionWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionWString, type_name_UnionWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionWString, type_name_UnionWString.to_string(), type_ids_UnionWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionWString already registered in TypeObjectRegistry for a different type."); } - return_code_UnionWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionWString", type_ids_UnionWString); - if (return_code_UnionWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionBoundedString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionBoundedString) { + + ReturnCode_t return_code_UnionBoundedString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionBoundedString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionBoundedString", type_ids_UnionBoundedString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionBoundedString) { - StructTypeFlag struct_flags_UnionBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionBoundedString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionBoundedString; - TypeIdentifierPair type_ids_UnionBoundedString; QualifiedTypeName type_name_UnionBoundedString = "UnionBoundedString"; eprosima::fastcdr::optional type_ann_builtin_UnionBoundedString; eprosima::fastcdr::optional ann_custom_UnionBoundedString; @@ -13842,288 +5476,24 @@ void register_UnionBoundedString_type_identifier( header_UnionBoundedString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionBoundedString); CompleteStructMemberSeq member_seq_UnionBoundedString; { - return_code_UnionBoundedString = + TypeIdentifierPair type_ids_var_union_bounded_string; + ReturnCode_t return_code_var_union_bounded_string {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_bounded_string = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedString", type_ids_UnionBoundedString); + "Union_BoundedString", type_ids_var_union_bounded_string); - if (return_code_UnionBoundedString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_bounded_string) { - { - ReturnCode_t return_code_Union_BoundedString; - TypeIdentifierPair type_ids_Union_BoundedString; - UnionTypeFlag union_flags_Union_BoundedString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_BoundedString = "Union_BoundedString"; - eprosima::fastcdr::optional type_ann_builtin_Union_BoundedString; - eprosima::fastcdr::optional ann_custom_Union_BoundedString; - CompleteTypeDetail detail_Union_BoundedString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_BoundedString, ann_custom_Union_BoundedString, type_name_Union_BoundedString.to_string()); - CompleteUnionHeader header_Union_BoundedString = TypeObjectUtils::build_complete_union_header(detail_Union_BoundedString); - UnionDiscriminatorFlag member_flags_Union_BoundedString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_BoundedString); - - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_BoundedString; - if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedString.type_identifier2()._d()) - { - common_Union_BoundedString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_BoundedString, type_ids_Union_BoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2()._d()) - { - common_Union_BoundedString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_BoundedString, type_ids_Union_BoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_BoundedString.reset(); - ann_custom_Union_BoundedString.reset(); - CompleteDiscriminatorMember discriminator_Union_BoundedString = TypeObjectUtils::build_complete_discriminator_member(common_Union_BoundedString, - type_ann_builtin_Union_BoundedString, ann_custom_Union_BoundedString); - CompleteUnionMemberSeq member_seq_Union_BoundedString; - { - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_BoundedString); - - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_BoundedString); - - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_BoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_BoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_bn = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_bn; - TypeObjectUtils::add_union_case_label(label_seq_bn, static_cast(13)); - CommonUnionMember common_bn; - MemberId member_id_bn = 0x00000001; - if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bn = TypeObjectUtils::build_common_union_member(member_id_bn, member_flags_bn, type_ids_Union_BoundedString.type_identifier1(), - label_seq_bn); - } - else if (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bn = TypeObjectUtils::build_common_union_member(member_id_bn, member_flags_bn, type_ids_Union_BoundedString.type_identifier2(), - label_seq_bn); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union bn member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bn = "bn"; - eprosima::fastcdr::optional member_ann_builtin_bn; - ann_custom_Union_BoundedString.reset(); - CompleteMemberDetail detail_bn = TypeObjectUtils::build_complete_member_detail(name_bn, member_ann_builtin_bn, ann_custom_Union_BoundedString); - CompleteUnionMember member_bn = TypeObjectUtils::build_complete_union_member(common_bn, detail_bn); - TypeObjectUtils::add_complete_union_member(member_seq_Union_BoundedString, member_bn); - } - CompleteUnionType union_type_Union_BoundedString = TypeObjectUtils::build_complete_union_type(union_flags_Union_BoundedString, header_Union_BoundedString, discriminator_Union_BoundedString, - member_seq_Union_BoundedString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedString, type_name_Union_BoundedString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedString already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedString", type_ids_Union_BoundedString); - if (return_code_Union_BoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionBoundedString = return_code_Union_BoundedString; - type_ids_UnionBoundedString = type_ids_Union_BoundedString; - } + ::register_Union_BoundedString_type_identifier(type_ids_var_union_bounded_string); } - StructMemberFlag member_flags_var_union_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_bounded_string = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_bounded_string; MemberId member_id_var_union_bounded_string = 0x00000000; - if (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1()._d() || TK_NONE == type_ids_UnionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoundedString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoundedString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_string, member_flags_var_union_bounded_string, type_ids_UnionBoundedString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoundedString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoundedString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedString.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_bounded_string_ec {false}; + CommonStructMember common_var_union_bounded_string {TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_string, member_flags_var_union_bounded_string, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_bounded_string, common_var_union_bounded_string_ec))}; + if (!common_var_union_bounded_string_ec) { - common_var_union_bounded_string = TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_string, member_flags_var_union_bounded_string, type_ids_UnionBoundedString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_bounded_string member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_bounded_string member TypeIdentifier inconsistent."); return; } MemberName name_var_union_bounded_string = "var_union_bounded_string"; @@ -14135,32 +5505,26 @@ void register_UnionBoundedString_type_identifier( } CompleteStructType struct_type_UnionBoundedString = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionBoundedString, header_UnionBoundedString, member_seq_UnionBoundedString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoundedString, type_name_UnionBoundedString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoundedString, type_name_UnionBoundedString.to_string(), type_ids_UnionBoundedString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionBoundedString already registered in TypeObjectRegistry for a different type."); } - return_code_UnionBoundedString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionBoundedString", type_ids_UnionBoundedString); - if (return_code_UnionBoundedString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionBoundedString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionBoundedWString_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionBoundedWString) { + + ReturnCode_t return_code_UnionBoundedWString {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionBoundedWString = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionBoundedWString", type_ids_UnionBoundedWString); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionBoundedWString) { - StructTypeFlag struct_flags_UnionBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionBoundedWString = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionBoundedWString; - TypeIdentifierPair type_ids_UnionBoundedWString; QualifiedTypeName type_name_UnionBoundedWString = "UnionBoundedWString"; eprosima::fastcdr::optional type_ann_builtin_UnionBoundedWString; eprosima::fastcdr::optional ann_custom_UnionBoundedWString; @@ -14169,288 +5533,24 @@ void register_UnionBoundedWString_type_identifier( header_UnionBoundedWString = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionBoundedWString); CompleteStructMemberSeq member_seq_UnionBoundedWString; { - return_code_UnionBoundedWString = + TypeIdentifierPair type_ids_var_union_bounded_wstring; + ReturnCode_t return_code_var_union_bounded_wstring {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_bounded_wstring = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedWString", type_ids_UnionBoundedWString); + "Union_BoundedWString", type_ids_var_union_bounded_wstring); - if (return_code_UnionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_bounded_wstring) { - { - ReturnCode_t return_code_Union_BoundedWString; - TypeIdentifierPair type_ids_Union_BoundedWString; - UnionTypeFlag union_flags_Union_BoundedWString = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_BoundedWString = "Union_BoundedWString"; - eprosima::fastcdr::optional type_ann_builtin_Union_BoundedWString; - eprosima::fastcdr::optional ann_custom_Union_BoundedWString; - CompleteTypeDetail detail_Union_BoundedWString = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_BoundedWString, ann_custom_Union_BoundedWString, type_name_Union_BoundedWString.to_string()); - CompleteUnionHeader header_Union_BoundedWString = TypeObjectUtils::build_complete_union_header(detail_Union_BoundedWString); - UnionDiscriminatorFlag member_flags_Union_BoundedWString = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_BoundedWString); - - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_BoundedWString; - if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedWString.type_identifier2()._d()) - { - common_Union_BoundedWString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_BoundedWString, type_ids_Union_BoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2()._d()) - { - common_Union_BoundedWString = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_BoundedWString, type_ids_Union_BoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedWString discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_BoundedWString.reset(); - ann_custom_Union_BoundedWString.reset(); - CompleteDiscriminatorMember discriminator_Union_BoundedWString = TypeObjectUtils::build_complete_discriminator_member(common_Union_BoundedWString, - type_ann_builtin_Union_BoundedWString, ann_custom_Union_BoundedWString); - CompleteUnionMemberSeq member_seq_Union_BoundedWString; - { - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_Union_BoundedWString); - - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_wstring_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_wstring_helper = "Inner_alias_bounded_wstring_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_wstring_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_wstring_helper; - CompleteTypeDetail detail_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_wstring_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_wstring_helper = 0; - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_Union_BoundedWString); - - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_wstring_10", true)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_wstring_10", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_wstring_10: Given WString TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_wstring_helper; - if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_Union_BoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_wstring_helper, type_ids_Union_BoundedWString.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_wstring_helper; - ann_custom_Inner_alias_bounded_wstring_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_wstring_helper, member_ann_builtin_Inner_alias_bounded_wstring_helper, ann_custom_Inner_alias_bounded_wstring_helper); - CompleteAliasType alias_type_Inner_alias_bounded_wstring_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_wstring_helper, header_Inner_alias_bounded_wstring_helper, body_Inner_alias_bounded_wstring_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_wstring_helper, type_name_Inner_alias_bounded_wstring_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_wstring_helper", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_wstring_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_bo = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_bo; - TypeObjectUtils::add_union_case_label(label_seq_bo, static_cast(14)); - CommonUnionMember common_bo; - MemberId member_id_bo = 0x00000001; - if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1()._d() || TK_NONE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bo = TypeObjectUtils::build_common_union_member(member_id_bo, member_flags_bo, type_ids_Union_BoundedWString.type_identifier1(), - label_seq_bo); - } - else if (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_BoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_BoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bo = TypeObjectUtils::build_common_union_member(member_id_bo, member_flags_bo, type_ids_Union_BoundedWString.type_identifier2(), - label_seq_bo); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union bo member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bo = "bo"; - eprosima::fastcdr::optional member_ann_builtin_bo; - ann_custom_Union_BoundedWString.reset(); - CompleteMemberDetail detail_bo = TypeObjectUtils::build_complete_member_detail(name_bo, member_ann_builtin_bo, ann_custom_Union_BoundedWString); - CompleteUnionMember member_bo = TypeObjectUtils::build_complete_union_member(common_bo, detail_bo); - TypeObjectUtils::add_complete_union_member(member_seq_Union_BoundedWString, member_bo); - } - CompleteUnionType union_type_Union_BoundedWString = TypeObjectUtils::build_complete_union_type(union_flags_Union_BoundedWString, header_Union_BoundedWString, discriminator_Union_BoundedWString, - member_seq_Union_BoundedWString); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_BoundedWString, type_name_Union_BoundedWString.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedWString already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_BoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_BoundedWString", type_ids_Union_BoundedWString); - if (return_code_Union_BoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_BoundedWString: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionBoundedWString = return_code_Union_BoundedWString; - type_ids_UnionBoundedWString = type_ids_Union_BoundedWString; - } + ::register_Union_BoundedWString_type_identifier(type_ids_var_union_bounded_wstring); } - StructMemberFlag member_flags_var_union_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_bounded_wstring = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_bounded_wstring; MemberId member_id_var_union_bounded_wstring = 0x00000000; - if (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1()._d() || TK_NONE == type_ids_UnionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoundedWString.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoundedWString.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_wstring, member_flags_var_union_bounded_wstring, type_ids_UnionBoundedWString.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionBoundedWString.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionBoundedWString.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionBoundedWString.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_bounded_wstring = TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_wstring, member_flags_var_union_bounded_wstring, type_ids_UnionBoundedWString.type_identifier2()); - } - else + bool common_var_union_bounded_wstring_ec {false}; + CommonStructMember common_var_union_bounded_wstring {TypeObjectUtils::build_common_struct_member(member_id_var_union_bounded_wstring, member_flags_var_union_bounded_wstring, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_bounded_wstring, common_var_union_bounded_wstring_ec))}; + if (!common_var_union_bounded_wstring_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_bounded_wstring member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_bounded_wstring member TypeIdentifier inconsistent."); return; } MemberName name_var_union_bounded_wstring = "var_union_bounded_wstring"; @@ -14462,32 +5562,26 @@ void register_UnionBoundedWString_type_identifier( } CompleteStructType struct_type_UnionBoundedWString = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionBoundedWString, header_UnionBoundedWString, member_seq_UnionBoundedWString); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoundedWString, type_name_UnionBoundedWString.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionBoundedWString, type_name_UnionBoundedWString.to_string(), type_ids_UnionBoundedWString)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionBoundedWString already registered in TypeObjectRegistry for a different type."); } - return_code_UnionBoundedWString = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionBoundedWString", type_ids_UnionBoundedWString); - if (return_code_UnionBoundedWString != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionBoundedWString: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerEnumHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerEnumHelper) { + + ReturnCode_t return_code_UnionInnerEnumHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerEnumHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerEnumHelper", type_ids_UnionInnerEnumHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerEnumHelper) { - StructTypeFlag struct_flags_UnionInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerEnumHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerEnumHelper; - TypeIdentifierPair type_ids_UnionInnerEnumHelper; QualifiedTypeName type_name_UnionInnerEnumHelper = "UnionInnerEnumHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerEnumHelper; eprosima::fastcdr::optional ann_custom_UnionInnerEnumHelper; @@ -14496,246 +5590,24 @@ void register_UnionInnerEnumHelper_type_identifier( header_UnionInnerEnumHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerEnumHelper); CompleteStructMemberSeq member_seq_UnionInnerEnumHelper; { - return_code_UnionInnerEnumHelper = + TypeIdentifierPair type_ids_var_union_my_enum; + ReturnCode_t return_code_var_union_my_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerEnumHelper", type_ids_UnionInnerEnumHelper); + "Union_InnerEnumHelper", type_ids_var_union_my_enum); - if (return_code_UnionInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_enum) { - { - ReturnCode_t return_code_Union_InnerEnumHelper; - TypeIdentifierPair type_ids_Union_InnerEnumHelper; - UnionTypeFlag union_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerEnumHelper = "Union_InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerEnumHelper; - CompleteTypeDetail detail_Union_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerEnumHelper, ann_custom_Union_InnerEnumHelper, type_name_Union_InnerEnumHelper.to_string()); - CompleteUnionHeader header_Union_InnerEnumHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerEnumHelper); - UnionDiscriminatorFlag member_flags_Union_InnerEnumHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerEnumHelper); - - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerEnumHelper; - if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerEnumHelper.type_identifier2()._d()) - { - common_Union_InnerEnumHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerEnumHelper, type_ids_Union_InnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2()._d()) - { - common_Union_InnerEnumHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerEnumHelper, type_ids_Union_InnerEnumHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerEnumHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerEnumHelper.reset(); - ann_custom_Union_InnerEnumHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerEnumHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerEnumHelper, - type_ann_builtin_Union_InnerEnumHelper, ann_custom_Union_InnerEnumHelper); - CompleteUnionMemberSeq member_seq_Union_InnerEnumHelper; - { - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_InnerEnumHelper); - - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_InnerEnumHelper); - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_p = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_p; - TypeObjectUtils::add_union_case_label(label_seq_p, static_cast(15)); - CommonUnionMember common_p; - MemberId member_id_p = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_p = TypeObjectUtils::build_common_union_member(member_id_p, member_flags_p, type_ids_Union_InnerEnumHelper.type_identifier1(), - label_seq_p); - } - else if (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_p = TypeObjectUtils::build_common_union_member(member_id_p, member_flags_p, type_ids_Union_InnerEnumHelper.type_identifier2(), - label_seq_p); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union p member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_p = "p"; - eprosima::fastcdr::optional member_ann_builtin_p; - ann_custom_Union_InnerEnumHelper.reset(); - CompleteMemberDetail detail_p = TypeObjectUtils::build_complete_member_detail(name_p, member_ann_builtin_p, ann_custom_Union_InnerEnumHelper); - CompleteUnionMember member_p = TypeObjectUtils::build_complete_union_member(common_p, detail_p); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerEnumHelper, member_p); - } - CompleteUnionType union_type_Union_InnerEnumHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerEnumHelper, header_Union_InnerEnumHelper, discriminator_Union_InnerEnumHelper, - member_seq_Union_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerEnumHelper, type_name_Union_InnerEnumHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerEnumHelper", type_ids_Union_InnerEnumHelper); - if (return_code_Union_InnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerEnumHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerEnumHelper = return_code_Union_InnerEnumHelper; - type_ids_UnionInnerEnumHelper = type_ids_Union_InnerEnumHelper; - } + ::register_Union_InnerEnumHelper_type_identifier(type_ids_var_union_my_enum); } - StructMemberFlag member_flags_var_union_my_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_enum; MemberId member_id_var_union_my_enum = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerEnumHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_enum, member_flags_var_union_my_enum, type_ids_UnionInnerEnumHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerEnumHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerEnumHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_enum, member_flags_var_union_my_enum, type_ids_UnionInnerEnumHelper.type_identifier2()); - } - else + bool common_var_union_my_enum_ec {false}; + CommonStructMember common_var_union_my_enum {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_enum, member_flags_var_union_my_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_enum, common_var_union_my_enum_ec))}; + if (!common_var_union_my_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_enum = "var_union_my_enum"; @@ -14747,32 +5619,26 @@ void register_UnionInnerEnumHelper_type_identifier( } CompleteStructType struct_type_UnionInnerEnumHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerEnumHelper, header_UnionInnerEnumHelper, member_seq_UnionInnerEnumHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerEnumHelper, type_name_UnionInnerEnumHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerEnumHelper, type_name_UnionInnerEnumHelper.to_string(), type_ids_UnionInnerEnumHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerEnumHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerEnumHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerEnumHelper", type_ids_UnionInnerEnumHelper); - if (return_code_UnionInnerEnumHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerEnumHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerBitMaskHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerBitMaskHelper) { + + ReturnCode_t return_code_UnionInnerBitMaskHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerBitMaskHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerBitMaskHelper", type_ids_UnionInnerBitMaskHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerBitMaskHelper) { - StructTypeFlag struct_flags_UnionInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerBitMaskHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerBitMaskHelper; - TypeIdentifierPair type_ids_UnionInnerBitMaskHelper; QualifiedTypeName type_name_UnionInnerBitMaskHelper = "UnionInnerBitMaskHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerBitMaskHelper; eprosima::fastcdr::optional ann_custom_UnionInnerBitMaskHelper; @@ -14781,279 +5647,24 @@ void register_UnionInnerBitMaskHelper_type_identifier( header_UnionInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerBitMaskHelper); CompleteStructMemberSeq member_seq_UnionInnerBitMaskHelper; { - return_code_UnionInnerBitMaskHelper = + TypeIdentifierPair type_ids_var_union_my_bit_mask; + ReturnCode_t return_code_var_union_my_bit_mask {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_bit_mask = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitMaskHelper", type_ids_UnionInnerBitMaskHelper); + "Union_InnerBitMaskHelper", type_ids_var_union_my_bit_mask); - if (return_code_UnionInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_bit_mask) { - { - ReturnCode_t return_code_Union_InnerBitMaskHelper; - TypeIdentifierPair type_ids_Union_InnerBitMaskHelper; - UnionTypeFlag union_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerBitMaskHelper = "Union_InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerBitMaskHelper; - CompleteTypeDetail detail_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerBitMaskHelper, ann_custom_Union_InnerBitMaskHelper, type_name_Union_InnerBitMaskHelper.to_string()); - CompleteUnionHeader header_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerBitMaskHelper); - UnionDiscriminatorFlag member_flags_Union_InnerBitMaskHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerBitMaskHelper); - - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerBitMaskHelper; - if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d()) - { - common_Union_InnerBitMaskHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerBitMaskHelper, type_ids_Union_InnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d()) - { - common_Union_InnerBitMaskHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerBitMaskHelper, type_ids_Union_InnerBitMaskHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitMaskHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerBitMaskHelper.reset(); - ann_custom_Union_InnerBitMaskHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerBitMaskHelper, - type_ann_builtin_Union_InnerBitMaskHelper, ann_custom_Union_InnerBitMaskHelper); - CompleteUnionMemberSeq member_seq_Union_InnerBitMaskHelper; - { - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - BitmaskTypeFlag bitmask_flags_InnerBitMaskHelper = 0; - BitBound bit_bound_InnerBitMaskHelper = 32; - CommonEnumeratedHeader common_InnerBitMaskHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerBitMaskHelper, true); - QualifiedTypeName type_name_InnerBitMaskHelper = "InnerBitMaskHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitMaskHelper; - eprosima::fastcdr::optional ann_custom_InnerBitMaskHelper; - CompleteTypeDetail detail_InnerBitMaskHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitMaskHelper, ann_custom_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string()); - CompleteEnumeratedHeader header_InnerBitMaskHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerBitMaskHelper, detail_InnerBitMaskHelper, true); - CompleteBitflagSeq flag_seq_InnerBitMaskHelper; - { - uint16_t position_flag0 = 0; - BitflagFlag flags_flag0 = 0; - CommonBitflag common_flag0 = TypeObjectUtils::build_common_bitflag(position_flag0, flags_flag0); - eprosima::fastcdr::optional member_ann_builtin_flag0; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag0; - if (!tmp_ann_custom_flag0.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag0; - } - MemberName name_flag0 = "flag0"; - CompleteMemberDetail detail_flag0 = TypeObjectUtils::build_complete_member_detail(name_flag0, member_ann_builtin_flag0, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag0 = TypeObjectUtils::build_complete_bitflag(common_flag0, detail_flag0); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag0); - } - { - uint16_t position_flag1 = 1; - BitflagFlag flags_flag1 = 0; - CommonBitflag common_flag1 = TypeObjectUtils::build_common_bitflag(position_flag1, flags_flag1); - eprosima::fastcdr::optional member_ann_builtin_flag1; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag1; - if (!tmp_ann_custom_flag1.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag1; - } - MemberName name_flag1 = "flag1"; - CompleteMemberDetail detail_flag1 = TypeObjectUtils::build_complete_member_detail(name_flag1, member_ann_builtin_flag1, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag1 = TypeObjectUtils::build_complete_bitflag(common_flag1, detail_flag1); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag1); - } - { - uint16_t position_flag4 = 4; - BitflagFlag flags_flag4 = 0; - CommonBitflag common_flag4 = TypeObjectUtils::build_common_bitflag(position_flag4, flags_flag4); - eprosima::fastcdr::optional member_ann_builtin_flag4; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag4; - if (!tmp_ann_custom_flag4.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag4; - } - MemberName name_flag4 = "flag4"; - CompleteMemberDetail detail_flag4 = TypeObjectUtils::build_complete_member_detail(name_flag4, member_ann_builtin_flag4, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag4 = TypeObjectUtils::build_complete_bitflag(common_flag4, detail_flag4); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag4); - } - { - uint16_t position_flag6 = 6; - BitflagFlag flags_flag6 = 0; - CommonBitflag common_flag6 = TypeObjectUtils::build_common_bitflag(position_flag6, flags_flag6); - eprosima::fastcdr::optional member_ann_builtin_flag6; - ann_custom_InnerBitMaskHelper.reset(); - AppliedAnnotationSeq tmp_ann_custom_flag6; - if (!tmp_ann_custom_flag6.empty()) - { - ann_custom_InnerBitMaskHelper = tmp_ann_custom_flag6; - } - MemberName name_flag6 = "flag6"; - CompleteMemberDetail detail_flag6 = TypeObjectUtils::build_complete_member_detail(name_flag6, member_ann_builtin_flag6, ann_custom_InnerBitMaskHelper); - CompleteBitflag bitflag_flag6 = TypeObjectUtils::build_complete_bitflag(common_flag6, detail_flag6); - TypeObjectUtils::add_complete_bitflag(flag_seq_InnerBitMaskHelper, bitflag_flag6); - } - CompleteBitmaskType bitmask_type_InnerBitMaskHelper = TypeObjectUtils::build_complete_bitmask_type(bitmask_flags_InnerBitMaskHelper, header_InnerBitMaskHelper, flag_seq_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type_InnerBitMaskHelper, type_name_InnerBitMaskHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitMaskHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_q = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_q; - TypeObjectUtils::add_union_case_label(label_seq_q, static_cast(16)); - CommonUnionMember common_q; - MemberId member_id_q = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_q = TypeObjectUtils::build_common_union_member(member_id_q, member_flags_q, type_ids_Union_InnerBitMaskHelper.type_identifier1(), - label_seq_q); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_q = TypeObjectUtils::build_common_union_member(member_id_q, member_flags_q, type_ids_Union_InnerBitMaskHelper.type_identifier2(), - label_seq_q); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union q member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_q = "q"; - eprosima::fastcdr::optional member_ann_builtin_q; - ann_custom_Union_InnerBitMaskHelper.reset(); - CompleteMemberDetail detail_q = TypeObjectUtils::build_complete_member_detail(name_q, member_ann_builtin_q, ann_custom_Union_InnerBitMaskHelper); - CompleteUnionMember member_q = TypeObjectUtils::build_complete_union_member(common_q, detail_q); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerBitMaskHelper, member_q); - } - CompleteUnionType union_type_Union_InnerBitMaskHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerBitMaskHelper, header_Union_InnerBitMaskHelper, discriminator_Union_InnerBitMaskHelper, - member_seq_Union_InnerBitMaskHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitMaskHelper, type_name_Union_InnerBitMaskHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitMaskHelper", type_ids_Union_InnerBitMaskHelper); - if (return_code_Union_InnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitMaskHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerBitMaskHelper = return_code_Union_InnerBitMaskHelper; - type_ids_UnionInnerBitMaskHelper = type_ids_Union_InnerBitMaskHelper; - } + ::register_Union_InnerBitMaskHelper_type_identifier(type_ids_var_union_my_bit_mask); } - StructMemberFlag member_flags_var_union_my_bit_mask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_bit_mask = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_bit_mask; MemberId member_id_var_union_my_bit_mask = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_bit_mask = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bit_mask, member_flags_var_union_my_bit_mask, type_ids_UnionInnerBitMaskHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerBitMaskHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitMaskHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_bit_mask = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bit_mask, member_flags_var_union_my_bit_mask, type_ids_UnionInnerBitMaskHelper.type_identifier2()); - } - else + bool common_var_union_my_bit_mask_ec {false}; + CommonStructMember common_var_union_my_bit_mask {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bit_mask, member_flags_var_union_my_bit_mask, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_bit_mask, common_var_union_my_bit_mask_ec))}; + if (!common_var_union_my_bit_mask_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_bit_mask member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_bit_mask member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_bit_mask = "var_union_my_bit_mask"; @@ -15065,32 +5676,26 @@ void register_UnionInnerBitMaskHelper_type_identifier( } CompleteStructType struct_type_UnionInnerBitMaskHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerBitMaskHelper, header_UnionInnerBitMaskHelper, member_seq_UnionInnerBitMaskHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerBitMaskHelper, type_name_UnionInnerBitMaskHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerBitMaskHelper, type_name_UnionInnerBitMaskHelper.to_string(), type_ids_UnionInnerBitMaskHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerBitMaskHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerBitMaskHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerBitMaskHelper", type_ids_UnionInnerBitMaskHelper); - if (return_code_UnionInnerBitMaskHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerBitMaskHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerAliasHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerAliasHelper) { + + ReturnCode_t return_code_UnionInnerAliasHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerAliasHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerAliasHelper", type_ids_UnionInnerAliasHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerAliasHelper) { - StructTypeFlag struct_flags_UnionInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerAliasHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerAliasHelper; - TypeIdentifierPair type_ids_UnionInnerAliasHelper; QualifiedTypeName type_name_UnionInnerAliasHelper = "UnionInnerAliasHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerAliasHelper; eprosima::fastcdr::optional ann_custom_UnionInnerAliasHelper; @@ -15099,271 +5704,24 @@ void register_UnionInnerAliasHelper_type_identifier( header_UnionInnerAliasHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerAliasHelper); CompleteStructMemberSeq member_seq_UnionInnerAliasHelper; { - return_code_UnionInnerAliasHelper = + TypeIdentifierPair type_ids_var_union_my_alias; + ReturnCode_t return_code_var_union_my_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerAliasHelper", type_ids_UnionInnerAliasHelper); + "Union_InnerAliasHelper", type_ids_var_union_my_alias); - if (return_code_UnionInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_alias) { - { - ReturnCode_t return_code_Union_InnerAliasHelper; - TypeIdentifierPair type_ids_Union_InnerAliasHelper; - UnionTypeFlag union_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerAliasHelper = "Union_InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerAliasHelper; - CompleteTypeDetail detail_Union_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerAliasHelper, ann_custom_Union_InnerAliasHelper, type_name_Union_InnerAliasHelper.to_string()); - CompleteUnionHeader header_Union_InnerAliasHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerAliasHelper); - UnionDiscriminatorFlag member_flags_Union_InnerAliasHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerAliasHelper); - - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerAliasHelper; - if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerAliasHelper.type_identifier2()._d()) - { - common_Union_InnerAliasHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2()._d()) - { - common_Union_InnerAliasHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerAliasHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerAliasHelper.reset(); - ann_custom_Union_InnerAliasHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerAliasHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerAliasHelper, - type_ann_builtin_Union_InnerAliasHelper, ann_custom_Union_InnerAliasHelper); - CompleteUnionMemberSeq member_seq_Union_InnerAliasHelper; - { - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_InnerAliasHelper); - - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerAliasHelper); - - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_InnerAliasHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_InnerAliasHelper); - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_r = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_r; - TypeObjectUtils::add_union_case_label(label_seq_r, static_cast(17)); - CommonUnionMember common_r; - MemberId member_id_r = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_r = TypeObjectUtils::build_common_union_member(member_id_r, member_flags_r, type_ids_Union_InnerAliasHelper.type_identifier1(), - label_seq_r); - } - else if (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_r = TypeObjectUtils::build_common_union_member(member_id_r, member_flags_r, type_ids_Union_InnerAliasHelper.type_identifier2(), - label_seq_r); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union r member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_r = "r"; - eprosima::fastcdr::optional member_ann_builtin_r; - ann_custom_Union_InnerAliasHelper.reset(); - CompleteMemberDetail detail_r = TypeObjectUtils::build_complete_member_detail(name_r, member_ann_builtin_r, ann_custom_Union_InnerAliasHelper); - CompleteUnionMember member_r = TypeObjectUtils::build_complete_union_member(common_r, detail_r); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerAliasHelper, member_r); - } - CompleteUnionType union_type_Union_InnerAliasHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerAliasHelper, header_Union_InnerAliasHelper, discriminator_Union_InnerAliasHelper, - member_seq_Union_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerAliasHelper, type_name_Union_InnerAliasHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerAliasHelper", type_ids_Union_InnerAliasHelper); - if (return_code_Union_InnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerAliasHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerAliasHelper = return_code_Union_InnerAliasHelper; - type_ids_UnionInnerAliasHelper = type_ids_Union_InnerAliasHelper; - } + ::register_Union_InnerAliasHelper_type_identifier(type_ids_var_union_my_alias); } - StructMemberFlag member_flags_var_union_my_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_alias; MemberId member_id_var_union_my_alias = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerAliasHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_alias = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_alias, member_flags_var_union_my_alias, type_ids_UnionInnerAliasHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerAliasHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerAliasHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_alias = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_alias, member_flags_var_union_my_alias, type_ids_UnionInnerAliasHelper.type_identifier2()); - } - else + bool common_var_union_my_alias_ec {false}; + CommonStructMember common_var_union_my_alias {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_alias, member_flags_var_union_my_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_alias, common_var_union_my_alias_ec))}; + if (!common_var_union_my_alias_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_alias = "var_union_my_alias"; @@ -15375,32 +5733,26 @@ void register_UnionInnerAliasHelper_type_identifier( } CompleteStructType struct_type_UnionInnerAliasHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerAliasHelper, header_UnionInnerAliasHelper, member_seq_UnionInnerAliasHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerAliasHelper, type_name_UnionInnerAliasHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerAliasHelper, type_name_UnionInnerAliasHelper.to_string(), type_ids_UnionInnerAliasHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerAliasHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerAliasHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerAliasHelper", type_ids_UnionInnerAliasHelper); - if (return_code_UnionInnerAliasHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerAliasHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionArray_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionArray) { + + ReturnCode_t return_code_UnionArray {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionArray = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionArray", type_ids_UnionArray); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionArray) { - StructTypeFlag struct_flags_UnionArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionArray = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionArray; - TypeIdentifierPair type_ids_UnionArray; QualifiedTypeName type_name_UnionArray = "UnionArray"; eprosima::fastcdr::optional type_ann_builtin_UnionArray; eprosima::fastcdr::optional ann_custom_UnionArray; @@ -15409,352 +5761,24 @@ void register_UnionArray_type_identifier( header_UnionArray = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionArray); CompleteStructMemberSeq member_seq_UnionArray; { - return_code_UnionArray = + TypeIdentifierPair type_ids_var_union_array; + ReturnCode_t return_code_var_union_array {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_array = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Array", type_ids_UnionArray); + "Union_Array", type_ids_var_union_array); - if (return_code_UnionArray != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_array) { - { - ReturnCode_t return_code_Union_Array; - TypeIdentifierPair type_ids_Union_Array; - UnionTypeFlag union_flags_Union_Array = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Array = "Union_Array"; - eprosima::fastcdr::optional type_ann_builtin_Union_Array; - eprosima::fastcdr::optional ann_custom_Union_Array; - CompleteTypeDetail detail_Union_Array = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Array, ann_custom_Union_Array, type_name_Union_Array.to_string()); - CompleteUnionHeader header_Union_Array = TypeObjectUtils::build_complete_union_header(detail_Union_Array); - UnionDiscriminatorFlag member_flags_Union_Array = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Array; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d()) - { - common_Union_Array = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Array, type_ids_Union_Array.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d()) - { - common_Union_Array = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Array, type_ids_Union_Array.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Array discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Array.reset(); - ann_custom_Union_Array.reset(); - CompleteDiscriminatorMember discriminator_Union_Array = TypeObjectUtils::build_complete_discriminator_member(common_Union_Array, - type_ann_builtin_Union_Array, ann_custom_Union_Array); - CompleteUnionMemberSeq member_seq_Union_Array; - { - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Array); - - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Array.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Array.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Array.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Array.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Array.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_s = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_s; - TypeObjectUtils::add_union_case_label(label_seq_s, static_cast(18)); - CommonUnionMember common_s; - MemberId member_id_s = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Array.type_identifier1()._d() || TK_NONE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_union_member(member_id_s, member_flags_s, type_ids_Union_Array.type_identifier1(), - label_seq_s); - } - else if (EK_COMPLETE == type_ids_Union_Array.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Array.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Array.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Array.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Array.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_s = TypeObjectUtils::build_common_union_member(member_id_s, member_flags_s, type_ids_Union_Array.type_identifier2(), - label_seq_s); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union s member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_s = "s"; - eprosima::fastcdr::optional member_ann_builtin_s; - ann_custom_Union_Array.reset(); - CompleteMemberDetail detail_s = TypeObjectUtils::build_complete_member_detail(name_s, member_ann_builtin_s, ann_custom_Union_Array); - CompleteUnionMember member_s = TypeObjectUtils::build_complete_union_member(common_s, detail_s); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Array, member_s); - } - CompleteUnionType union_type_Union_Array = TypeObjectUtils::build_complete_union_type(union_flags_Union_Array, header_Union_Array, discriminator_Union_Array, - member_seq_Union_Array); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Array, type_name_Union_Array.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Array already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Array = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Array", type_ids_Union_Array); - if (return_code_Union_Array != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Array: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionArray = return_code_Union_Array; - type_ids_UnionArray = type_ids_Union_Array; - } + ::register_Union_Array_type_identifier(type_ids_var_union_array); } - StructMemberFlag member_flags_var_union_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_array = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_array; MemberId member_id_var_union_array = 0x00000000; - if (EK_COMPLETE == type_ids_UnionArray.type_identifier1()._d() || TK_NONE == type_ids_UnionArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionArray.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionArray.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionArray.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionArray.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionArray.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionArray.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_array = TypeObjectUtils::build_common_struct_member(member_id_var_union_array, member_flags_var_union_array, type_ids_UnionArray.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionArray.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionArray.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionArray.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionArray.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionArray.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionArray.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionArray.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionArray.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_array = TypeObjectUtils::build_common_struct_member(member_id_var_union_array, member_flags_var_union_array, type_ids_UnionArray.type_identifier2()); - } - else + bool common_var_union_array_ec {false}; + CommonStructMember common_var_union_array {TypeObjectUtils::build_common_struct_member(member_id_var_union_array, member_flags_var_union_array, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_array, common_var_union_array_ec))}; + if (!common_var_union_array_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_array member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_array member TypeIdentifier inconsistent."); return; } MemberName name_var_union_array = "var_union_array"; @@ -15766,32 +5790,26 @@ void register_UnionArray_type_identifier( } CompleteStructType struct_type_UnionArray = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionArray, header_UnionArray, member_seq_UnionArray); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionArray, type_name_UnionArray.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionArray, type_name_UnionArray.to_string(), type_ids_UnionArray)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionArray already registered in TypeObjectRegistry for a different type."); } - return_code_UnionArray = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionArray", type_ids_UnionArray); - if (return_code_UnionArray != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionArray: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionSequence_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionSequence) { + + ReturnCode_t return_code_UnionSequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionSequence = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionSequence", type_ids_UnionSequence); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionSequence) { - StructTypeFlag struct_flags_UnionSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionSequence = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionSequence; - TypeIdentifierPair type_ids_UnionSequence; QualifiedTypeName type_name_UnionSequence = "UnionSequence"; eprosima::fastcdr::optional type_ann_builtin_UnionSequence; eprosima::fastcdr::optional ann_custom_UnionSequence; @@ -15800,272 +5818,24 @@ void register_UnionSequence_type_identifier( header_UnionSequence = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionSequence); CompleteStructMemberSeq member_seq_UnionSequence; { - return_code_UnionSequence = + TypeIdentifierPair type_ids_var_union_sequence; + ReturnCode_t return_code_var_union_sequence {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_sequence = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Sequence", type_ids_UnionSequence); + "Union_Sequence", type_ids_var_union_sequence); - if (return_code_UnionSequence != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_sequence) { - { - ReturnCode_t return_code_Union_Sequence; - TypeIdentifierPair type_ids_Union_Sequence; - UnionTypeFlag union_flags_Union_Sequence = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Sequence = "Union_Sequence"; - eprosima::fastcdr::optional type_ann_builtin_Union_Sequence; - eprosima::fastcdr::optional ann_custom_Union_Sequence; - CompleteTypeDetail detail_Union_Sequence = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Sequence, ann_custom_Union_Sequence, type_name_Union_Sequence.to_string()); - CompleteUnionHeader header_Union_Sequence = TypeObjectUtils::build_complete_union_header(detail_Union_Sequence); - UnionDiscriminatorFlag member_flags_Union_Sequence = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Sequence); - - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Sequence; - if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1()._d() || TK_NONE == type_ids_Union_Sequence.type_identifier2()._d()) - { - common_Union_Sequence = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Sequence, type_ids_Union_Sequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2()._d()) - { - common_Union_Sequence = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Sequence, type_ids_Union_Sequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Sequence discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Sequence.reset(); - ann_custom_Union_Sequence.reset(); - CompleteDiscriminatorMember discriminator_Union_Sequence = TypeObjectUtils::build_complete_discriminator_member(common_Union_Sequence, - type_ann_builtin_Union_Sequence, ann_custom_Union_Sequence); - CompleteUnionMemberSeq member_seq_Union_Sequence; - { - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Sequence); - - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Sequence); - - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1()._d() || TK_NONE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Sequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Sequence.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Sequence.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_t = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_t; - TypeObjectUtils::add_union_case_label(label_seq_t, static_cast(19)); - CommonUnionMember common_t; - MemberId member_id_t = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1()._d() || TK_NONE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_t = TypeObjectUtils::build_common_union_member(member_id_t, member_flags_t, type_ids_Union_Sequence.type_identifier1(), - label_seq_t); - } - else if (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Sequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Sequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_t = TypeObjectUtils::build_common_union_member(member_id_t, member_flags_t, type_ids_Union_Sequence.type_identifier2(), - label_seq_t); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union t member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_t = "t"; - eprosima::fastcdr::optional member_ann_builtin_t; - ann_custom_Union_Sequence.reset(); - CompleteMemberDetail detail_t = TypeObjectUtils::build_complete_member_detail(name_t, member_ann_builtin_t, ann_custom_Union_Sequence); - CompleteUnionMember member_t = TypeObjectUtils::build_complete_union_member(common_t, detail_t); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Sequence, member_t); - } - CompleteUnionType union_type_Union_Sequence = TypeObjectUtils::build_complete_union_type(union_flags_Union_Sequence, header_Union_Sequence, discriminator_Union_Sequence, - member_seq_Union_Sequence); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Sequence, type_name_Union_Sequence.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Sequence already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Sequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Sequence", type_ids_Union_Sequence); - if (return_code_Union_Sequence != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Sequence: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionSequence = return_code_Union_Sequence; - type_ids_UnionSequence = type_ids_Union_Sequence; - } + ::register_Union_Sequence_type_identifier(type_ids_var_union_sequence); } - StructMemberFlag member_flags_var_union_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_sequence = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_sequence; MemberId member_id_var_union_sequence = 0x00000000; - if (EK_COMPLETE == type_ids_UnionSequence.type_identifier1()._d() || TK_NONE == type_ids_UnionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSequence.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSequence.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSequence.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSequence.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSequence.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_union_sequence, member_flags_var_union_sequence, type_ids_UnionSequence.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionSequence.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSequence.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSequence.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSequence.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSequence.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSequence.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_sequence = TypeObjectUtils::build_common_struct_member(member_id_var_union_sequence, member_flags_var_union_sequence, type_ids_UnionSequence.type_identifier2()); - } - else + bool common_var_union_sequence_ec {false}; + CommonStructMember common_var_union_sequence {TypeObjectUtils::build_common_struct_member(member_id_var_union_sequence, member_flags_var_union_sequence, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_sequence, common_var_union_sequence_ec))}; + if (!common_var_union_sequence_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_sequence member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_sequence member TypeIdentifier inconsistent."); return; } MemberName name_var_union_sequence = "var_union_sequence"; @@ -16075,34 +5845,28 @@ void register_UnionSequence_type_identifier( CompleteStructMember member_var_union_sequence = TypeObjectUtils::build_complete_struct_member(common_var_union_sequence, detail_var_union_sequence); TypeObjectUtils::add_complete_struct_member(member_seq_UnionSequence, member_var_union_sequence); } - CompleteStructType struct_type_UnionSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionSequence, header_UnionSequence, member_seq_UnionSequence); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSequence, type_name_UnionSequence.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionSequence already registered in TypeObjectRegistry for a different type."); - } - return_code_UnionSequence = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionSequence", type_ids_UnionSequence); - if (return_code_UnionSequence != eprosima::fastdds::dds::RETCODE_OK) + CompleteStructType struct_type_UnionSequence = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionSequence, header_UnionSequence, member_seq_UnionSequence); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSequence, type_name_UnionSequence.to_string(), type_ids_UnionSequence)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionSequence: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; + "UnionSequence already registered in TypeObjectRegistry for a different type."); } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionMap_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionMap) { + + ReturnCode_t return_code_UnionMap {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionMap = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionMap", type_ids_UnionMap); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionMap) { - StructTypeFlag struct_flags_UnionMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionMap = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionMap; - TypeIdentifierPair type_ids_UnionMap; QualifiedTypeName type_name_UnionMap = "UnionMap"; eprosima::fastcdr::optional type_ann_builtin_UnionMap; eprosima::fastcdr::optional ann_custom_UnionMap; @@ -16111,335 +5875,24 @@ void register_UnionMap_type_identifier( header_UnionMap = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionMap); CompleteStructMemberSeq member_seq_UnionMap; { - return_code_UnionMap = + TypeIdentifierPair type_ids_var_union_map; + ReturnCode_t return_code_var_union_map {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_map = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Map", type_ids_UnionMap); + "Union_Map", type_ids_var_union_map); - if (return_code_UnionMap != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_map) { - { - ReturnCode_t return_code_Union_Map; - TypeIdentifierPair type_ids_Union_Map; - UnionTypeFlag union_flags_Union_Map = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Map = "Union_Map"; - eprosima::fastcdr::optional type_ann_builtin_Union_Map; - eprosima::fastcdr::optional ann_custom_Union_Map; - CompleteTypeDetail detail_Union_Map = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Map, ann_custom_Union_Map, type_name_Union_Map.to_string()); - CompleteUnionHeader header_Union_Map = TypeObjectUtils::build_complete_union_header(detail_Union_Map); - UnionDiscriminatorFlag member_flags_Union_Map = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Map); - - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Map; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d()) - { - common_Union_Map = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Map, type_ids_Union_Map.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d()) - { - common_Union_Map = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Map, type_ids_Union_Map.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Map discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Map.reset(); - ann_custom_Union_Map.reset(); - CompleteDiscriminatorMember discriminator_Union_Map = TypeObjectUtils::build_complete_discriminator_member(common_Union_Map, - type_ann_builtin_Union_Map, ann_custom_Union_Map); - CompleteUnionMemberSeq member_seq_Union_Map; - { - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_Union_Map); - - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Map); - - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent element TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Map); - - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Map key TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* key_identifier_anonymous_map_int32_t_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - key_identifier_anonymous_map_int32_t_int32_t_unbounded = new TypeIdentifier(type_ids_Union_Map.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded inconsistent key TypeIdentifier."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_BOTH; - if ((EK_COMPLETE == key_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d()) || - (TI_PLAIN_SEQUENCE_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_sdefn().header().equiv_kind())) || - (TI_PLAIN_MAP_LARGE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->_d() && (EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().key_identifier()->_d() || EK_COMPLETE == element_identifier_anonymous_map_int32_t_int32_t_unbounded->map_ldefn().header().equiv_kind()))) - { - equiv_kind_anonymous_map_int32_t_int32_t_unbounded = EK_COMPLETE; - } - CollectionElementFlag element_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - CollectionElementFlag key_flags_anonymous_map_int32_t_int32_t_unbounded = 0; - PlainCollectionHeader header_anonymous_map_int32_t_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_map_int32_t_int32_t_unbounded, element_flags_anonymous_map_int32_t_int32_t_unbounded); - { - SBound bound = 0; - PlainMapSTypeDefn map_sdefn = TypeObjectUtils::build_plain_map_s_type_defn(header_anonymous_map_int32_t_int32_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_map_int32_t_int32_t_unbounded), key_flags_anonymous_map_int32_t_int32_t_unbounded, - eprosima::fastcdr::external(key_identifier_anonymous_map_int32_t_int32_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_map_type_identifier(map_sdefn, "anonymous_map_int32_t_int32_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_map_int32_t_int32_t_unbounded", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_map_int32_t_int32_t_unbounded: Given Map TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_u = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_u; - TypeObjectUtils::add_union_case_label(label_seq_u, static_cast(20)); - CommonUnionMember common_u; - MemberId member_id_u = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Map.type_identifier1()._d() || TK_NONE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_u = TypeObjectUtils::build_common_union_member(member_id_u, member_flags_u, type_ids_Union_Map.type_identifier1(), - label_seq_u); - } - else if (EK_COMPLETE == type_ids_Union_Map.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Map.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Map.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Map.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Map.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_u = TypeObjectUtils::build_common_union_member(member_id_u, member_flags_u, type_ids_Union_Map.type_identifier2(), - label_seq_u); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union u member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_u = "u"; - eprosima::fastcdr::optional member_ann_builtin_u; - ann_custom_Union_Map.reset(); - CompleteMemberDetail detail_u = TypeObjectUtils::build_complete_member_detail(name_u, member_ann_builtin_u, ann_custom_Union_Map); - CompleteUnionMember member_u = TypeObjectUtils::build_complete_union_member(common_u, detail_u); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Map, member_u); - } - CompleteUnionType union_type_Union_Map = TypeObjectUtils::build_complete_union_type(union_flags_Union_Map, header_Union_Map, discriminator_Union_Map, - member_seq_Union_Map); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Map, type_name_Union_Map.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Map already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Map = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Map", type_ids_Union_Map); - if (return_code_Union_Map != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Map: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionMap = return_code_Union_Map; - type_ids_UnionMap = type_ids_Union_Map; - } + ::register_Union_Map_type_identifier(type_ids_var_union_map); } - StructMemberFlag member_flags_var_union_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_map = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_map; MemberId member_id_var_union_map = 0x00000000; - if (EK_COMPLETE == type_ids_UnionMap.type_identifier1()._d() || TK_NONE == type_ids_UnionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionMap.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionMap.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionMap.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionMap.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionMap.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionMap.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_map = TypeObjectUtils::build_common_struct_member(member_id_var_union_map, member_flags_var_union_map, type_ids_UnionMap.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionMap.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionMap.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionMap.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionMap.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionMap.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionMap.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionMap.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionMap.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_map_ec {false}; + CommonStructMember common_var_union_map {TypeObjectUtils::build_common_struct_member(member_id_var_union_map, member_flags_var_union_map, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_map, common_var_union_map_ec))}; + if (!common_var_union_map_ec) { - common_var_union_map = TypeObjectUtils::build_common_struct_member(member_id_var_union_map, member_flags_var_union_map, type_ids_UnionMap.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_map member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_map member TypeIdentifier inconsistent."); return; } MemberName name_var_union_map = "var_union_map"; @@ -16451,32 +5904,26 @@ void register_UnionMap_type_identifier( } CompleteStructType struct_type_UnionMap = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionMap, header_UnionMap, member_seq_UnionMap); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionMap, type_name_UnionMap.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionMap, type_name_UnionMap.to_string(), type_ids_UnionMap)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionMap already registered in TypeObjectRegistry for a different type."); } - return_code_UnionMap = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionMap", type_ids_UnionMap); - if (return_code_UnionMap != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionMap: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerUnionHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerUnionHelper) { + + ReturnCode_t return_code_UnionInnerUnionHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerUnionHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerUnionHelper", type_ids_UnionInnerUnionHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerUnionHelper) { - StructTypeFlag struct_flags_UnionInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerUnionHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerUnionHelper; - TypeIdentifierPair type_ids_UnionInnerUnionHelper; QualifiedTypeName type_name_UnionInnerUnionHelper = "UnionInnerUnionHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerUnionHelper; eprosima::fastcdr::optional ann_custom_UnionInnerUnionHelper; @@ -16485,470 +5932,24 @@ void register_UnionInnerUnionHelper_type_identifier( header_UnionInnerUnionHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerUnionHelper); CompleteStructMemberSeq member_seq_UnionInnerUnionHelper; { - return_code_UnionInnerUnionHelper = + TypeIdentifierPair type_ids_var_union_my_union; + ReturnCode_t return_code_var_union_my_union {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_union = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerUnionHelper", type_ids_UnionInnerUnionHelper); + "Union_InnerUnionHelper", type_ids_var_union_my_union); - if (return_code_UnionInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_union) { - { - ReturnCode_t return_code_Union_InnerUnionHelper; - TypeIdentifierPair type_ids_Union_InnerUnionHelper; - UnionTypeFlag union_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerUnionHelper = "Union_InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerUnionHelper; - CompleteTypeDetail detail_Union_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerUnionHelper, ann_custom_Union_InnerUnionHelper, type_name_Union_InnerUnionHelper.to_string()); - CompleteUnionHeader header_Union_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_Union_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerUnionHelper); - - if (return_code_Union_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerUnionHelper; - if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerUnionHelper.type_identifier2()._d()) - { - common_Union_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerUnionHelper, type_ids_Union_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2()._d()) - { - common_Union_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerUnionHelper, type_ids_Union_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerUnionHelper.reset(); - ann_custom_Union_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerUnionHelper, - type_ann_builtin_Union_InnerUnionHelper, ann_custom_Union_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_Union_InnerUnionHelper; - { - return_code_Union_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_Union_InnerUnionHelper); - - if (return_code_Union_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_InnerUnionHelper; - TypeIdentifierPair type_ids_InnerUnionHelper; - UnionTypeFlag union_flags_InnerUnionHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - QualifiedTypeName type_name_InnerUnionHelper = "InnerUnionHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerUnionHelper; - eprosima::fastcdr::optional ann_custom_InnerUnionHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerUnionHelper; - eprosima::fastcdr::optional verbatim_InnerUnionHelper; - if (!tmp_ann_custom_InnerUnionHelper.empty()) - { - ann_custom_InnerUnionHelper = tmp_ann_custom_InnerUnionHelper; - } - - CompleteTypeDetail detail_InnerUnionHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper, type_name_InnerUnionHelper.to_string()); - CompleteUnionHeader header_InnerUnionHelper = TypeObjectUtils::build_complete_union_header(detail_InnerUnionHelper); - UnionDiscriminatorFlag member_flags_InnerUnionHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_InnerUnionHelper; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d()) - { - common_InnerUnionHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_InnerUnionHelper, type_ids_InnerUnionHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_InnerUnionHelper.reset(); - ann_custom_InnerUnionHelper.reset(); - CompleteDiscriminatorMember discriminator_InnerUnionHelper = TypeObjectUtils::build_complete_discriminator_member(common_InnerUnionHelper, - type_ann_builtin_InnerUnionHelper, ann_custom_InnerUnionHelper); - CompleteUnionMemberSeq member_seq_InnerUnionHelper; - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "longValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_longValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_longValue; - TypeObjectUtils::add_union_case_label(label_seq_longValue, static_cast(0)); - CommonUnionMember common_longValue; - MemberId member_id_longValue = 0x00000001; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_longValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_longValue = TypeObjectUtils::build_common_union_member(member_id_longValue, member_flags_longValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_longValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union longValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_longValue = "longValue"; - eprosima::fastcdr::optional member_ann_builtin_longValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_longValue = TypeObjectUtils::build_complete_member_detail(name_longValue, member_ann_builtin_longValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_longValue = TypeObjectUtils::build_complete_union_member(common_longValue, detail_longValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_longValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "floatValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_floatValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_floatValue; - TypeObjectUtils::add_union_case_label(label_seq_floatValue, static_cast(1)); - CommonUnionMember common_floatValue; - MemberId member_id_floatValue = 0x00000002; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_floatValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_floatValue = TypeObjectUtils::build_common_union_member(member_id_floatValue, member_flags_floatValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_floatValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union floatValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_floatValue = "floatValue"; - eprosima::fastcdr::optional member_ann_builtin_floatValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_floatValue = TypeObjectUtils::build_complete_member_detail(name_floatValue, member_ann_builtin_floatValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_floatValue = TypeObjectUtils::build_complete_union_member(common_floatValue, detail_floatValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_floatValue); - } - { - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_InnerUnionHelper); - - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "shortValue Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_shortValue = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_shortValue; - CommonUnionMember common_shortValue; - MemberId member_id_shortValue = 0x00000003; - if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier1(), - label_seq_shortValue); - } - else if (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_shortValue = TypeObjectUtils::build_common_union_member(member_id_shortValue, member_flags_shortValue, type_ids_InnerUnionHelper.type_identifier2(), - label_seq_shortValue); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union shortValue member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_shortValue = "shortValue"; - eprosima::fastcdr::optional member_ann_builtin_shortValue; - ann_custom_InnerUnionHelper.reset(); - CompleteMemberDetail detail_shortValue = TypeObjectUtils::build_complete_member_detail(name_shortValue, member_ann_builtin_shortValue, ann_custom_InnerUnionHelper); - CompleteUnionMember member_shortValue = TypeObjectUtils::build_complete_union_member(common_shortValue, detail_shortValue); - TypeObjectUtils::add_complete_union_member(member_seq_InnerUnionHelper, member_shortValue); - } - CompleteUnionType union_type_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_InnerUnionHelper, header_InnerUnionHelper, discriminator_InnerUnionHelper, - member_seq_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_InnerUnionHelper, type_name_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerUnionHelper", type_ids_InnerUnionHelper); - if (return_code_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_InnerUnionHelper = return_code_InnerUnionHelper; - type_ids_Union_InnerUnionHelper = type_ids_InnerUnionHelper; - } - } - UnionMemberFlag member_flags_v = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_v; - TypeObjectUtils::add_union_case_label(label_seq_v, static_cast(21)); - CommonUnionMember common_v; - MemberId member_id_v = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_v = TypeObjectUtils::build_common_union_member(member_id_v, member_flags_v, type_ids_Union_InnerUnionHelper.type_identifier1(), - label_seq_v); - } - else if (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_v = TypeObjectUtils::build_common_union_member(member_id_v, member_flags_v, type_ids_Union_InnerUnionHelper.type_identifier2(), - label_seq_v); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union v member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_v = "v"; - eprosima::fastcdr::optional member_ann_builtin_v; - ann_custom_Union_InnerUnionHelper.reset(); - CompleteMemberDetail detail_v = TypeObjectUtils::build_complete_member_detail(name_v, member_ann_builtin_v, ann_custom_Union_InnerUnionHelper); - CompleteUnionMember member_v = TypeObjectUtils::build_complete_union_member(common_v, detail_v); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerUnionHelper, member_v); - } - CompleteUnionType union_type_Union_InnerUnionHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerUnionHelper, header_Union_InnerUnionHelper, discriminator_Union_InnerUnionHelper, - member_seq_Union_InnerUnionHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerUnionHelper, type_name_Union_InnerUnionHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerUnionHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerUnionHelper", type_ids_Union_InnerUnionHelper); - if (return_code_Union_InnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerUnionHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerUnionHelper = return_code_Union_InnerUnionHelper; - type_ids_UnionInnerUnionHelper = type_ids_Union_InnerUnionHelper; - } + ::register_Union_InnerUnionHelper_type_identifier(type_ids_var_union_my_union); } - StructMemberFlag member_flags_var_union_my_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_union = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_union; MemberId member_id_var_union_my_union = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerUnionHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_union = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_union, member_flags_var_union_my_union, type_ids_UnionInnerUnionHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerUnionHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerUnionHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_union = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_union, member_flags_var_union_my_union, type_ids_UnionInnerUnionHelper.type_identifier2()); - } - else + bool common_var_union_my_union_ec {false}; + CommonStructMember common_var_union_my_union {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_union, member_flags_var_union_my_union, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_union, common_var_union_my_union_ec))}; + if (!common_var_union_my_union_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_union member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_union member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_union = "var_union_my_union"; @@ -16960,32 +5961,26 @@ void register_UnionInnerUnionHelper_type_identifier( } CompleteStructType struct_type_UnionInnerUnionHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerUnionHelper, header_UnionInnerUnionHelper, member_seq_UnionInnerUnionHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerUnionHelper, type_name_UnionInnerUnionHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerUnionHelper, type_name_UnionInnerUnionHelper.to_string(), type_ids_UnionInnerUnionHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerUnionHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerUnionHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerUnionHelper", type_ids_UnionInnerUnionHelper); - if (return_code_UnionInnerUnionHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerUnionHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerStructureHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerStructureHelper) { + + ReturnCode_t return_code_UnionInnerStructureHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerStructureHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerStructureHelper", type_ids_UnionInnerStructureHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerStructureHelper) { - StructTypeFlag struct_flags_UnionInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerStructureHelper; - TypeIdentifierPair type_ids_UnionInnerStructureHelper; QualifiedTypeName type_name_UnionInnerStructureHelper = "UnionInnerStructureHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerStructureHelper; eprosima::fastcdr::optional ann_custom_UnionInnerStructureHelper; @@ -16994,360 +5989,24 @@ void register_UnionInnerStructureHelper_type_identifier( header_UnionInnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerStructureHelper); CompleteStructMemberSeq member_seq_UnionInnerStructureHelper; { - return_code_UnionInnerStructureHelper = + TypeIdentifierPair type_ids_var_union_my_structure; + ReturnCode_t return_code_var_union_my_structure {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_structure = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerStructureHelper", type_ids_UnionInnerStructureHelper); + "Union_InnerStructureHelper", type_ids_var_union_my_structure); - if (return_code_UnionInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_structure) { - { - ReturnCode_t return_code_Union_InnerStructureHelper; - TypeIdentifierPair type_ids_Union_InnerStructureHelper; - UnionTypeFlag union_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerStructureHelper = "Union_InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerStructureHelper; - CompleteTypeDetail detail_Union_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerStructureHelper, ann_custom_Union_InnerStructureHelper, type_name_Union_InnerStructureHelper.to_string()); - CompleteUnionHeader header_Union_InnerStructureHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerStructureHelper); - UnionDiscriminatorFlag member_flags_Union_InnerStructureHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerStructureHelper); - - if (return_code_Union_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerStructureHelper; - if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerStructureHelper.type_identifier2()._d()) - { - common_Union_InnerStructureHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerStructureHelper, type_ids_Union_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2()._d()) - { - common_Union_InnerStructureHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerStructureHelper, type_ids_Union_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerStructureHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerStructureHelper.reset(); - ann_custom_Union_InnerStructureHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerStructureHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerStructureHelper, - type_ann_builtin_Union_InnerStructureHelper, ann_custom_Union_InnerStructureHelper); - CompleteUnionMemberSeq member_seq_Union_InnerStructureHelper; - { - return_code_Union_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_Union_InnerStructureHelper); - - if (return_code_Union_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_InnerStructureHelper = return_code_InnerStructureHelper; - type_ids_Union_InnerStructureHelper = type_ids_InnerStructureHelper; - } - } - UnionMemberFlag member_flags_w = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_w; - TypeObjectUtils::add_union_case_label(label_seq_w, static_cast(22)); - CommonUnionMember common_w; - MemberId member_id_w = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_w = TypeObjectUtils::build_common_union_member(member_id_w, member_flags_w, type_ids_Union_InnerStructureHelper.type_identifier1(), - label_seq_w); - } - else if (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_w = TypeObjectUtils::build_common_union_member(member_id_w, member_flags_w, type_ids_Union_InnerStructureHelper.type_identifier2(), - label_seq_w); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union w member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_w = "w"; - eprosima::fastcdr::optional member_ann_builtin_w; - ann_custom_Union_InnerStructureHelper.reset(); - CompleteMemberDetail detail_w = TypeObjectUtils::build_complete_member_detail(name_w, member_ann_builtin_w, ann_custom_Union_InnerStructureHelper); - CompleteUnionMember member_w = TypeObjectUtils::build_complete_union_member(common_w, detail_w); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerStructureHelper, member_w); - } - CompleteUnionType union_type_Union_InnerStructureHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerStructureHelper, header_Union_InnerStructureHelper, discriminator_Union_InnerStructureHelper, - member_seq_Union_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerStructureHelper, type_name_Union_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerStructureHelper", type_ids_Union_InnerStructureHelper); - if (return_code_Union_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerStructureHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerStructureHelper = return_code_Union_InnerStructureHelper; - type_ids_UnionInnerStructureHelper = type_ids_Union_InnerStructureHelper; - } + ::register_Union_InnerStructureHelper_type_identifier(type_ids_var_union_my_structure); } - StructMemberFlag member_flags_var_union_my_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_structure = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_structure; MemberId member_id_var_union_my_structure = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_structure = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_structure, member_flags_var_union_my_structure, type_ids_UnionInnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_my_structure_ec {false}; + CommonStructMember common_var_union_my_structure {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_structure, member_flags_var_union_my_structure, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_structure, common_var_union_my_structure_ec))}; + if (!common_var_union_my_structure_ec) { - common_var_union_my_structure = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_structure, member_flags_var_union_my_structure, type_ids_UnionInnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_structure member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_structure member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_structure = "var_union_my_structure"; @@ -17359,32 +6018,26 @@ void register_UnionInnerStructureHelper_type_identifier( } CompleteStructType struct_type_UnionInnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerStructureHelper, header_UnionInnerStructureHelper, member_seq_UnionInnerStructureHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerStructureHelper, type_name_UnionInnerStructureHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerStructureHelper, type_name_UnionInnerStructureHelper.to_string(), type_ids_UnionInnerStructureHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerStructureHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerStructureHelper", type_ids_UnionInnerStructureHelper); - if (return_code_UnionInnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionInnerBitsetHelper_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionInnerBitsetHelper) { + + ReturnCode_t return_code_UnionInnerBitsetHelper {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionInnerBitsetHelper = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionInnerBitsetHelper", type_ids_UnionInnerBitsetHelper); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionInnerBitsetHelper) { - StructTypeFlag struct_flags_UnionInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionInnerBitsetHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionInnerBitsetHelper; - TypeIdentifierPair type_ids_UnionInnerBitsetHelper; QualifiedTypeName type_name_UnionInnerBitsetHelper = "UnionInnerBitsetHelper"; eprosima::fastcdr::optional type_ann_builtin_UnionInnerBitsetHelper; eprosima::fastcdr::optional ann_custom_UnionInnerBitsetHelper; @@ -17393,265 +6046,24 @@ void register_UnionInnerBitsetHelper_type_identifier( header_UnionInnerBitsetHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionInnerBitsetHelper); CompleteStructMemberSeq member_seq_UnionInnerBitsetHelper; { - return_code_UnionInnerBitsetHelper = + TypeIdentifierPair type_ids_var_union_my_bitset; + ReturnCode_t return_code_var_union_my_bitset {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_my_bitset = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitsetHelper", type_ids_UnionInnerBitsetHelper); + "Union_InnerBitsetHelper", type_ids_var_union_my_bitset); - if (return_code_UnionInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_my_bitset) { - { - ReturnCode_t return_code_Union_InnerBitsetHelper; - TypeIdentifierPair type_ids_Union_InnerBitsetHelper; - UnionTypeFlag union_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_InnerBitsetHelper = "Union_InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_Union_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_Union_InnerBitsetHelper; - CompleteTypeDetail detail_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_InnerBitsetHelper, ann_custom_Union_InnerBitsetHelper, type_name_Union_InnerBitsetHelper.to_string()); - CompleteUnionHeader header_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_union_header(detail_Union_InnerBitsetHelper); - UnionDiscriminatorFlag member_flags_Union_InnerBitsetHelper = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_InnerBitsetHelper); - - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_InnerBitsetHelper; - if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d()) - { - common_Union_InnerBitsetHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerBitsetHelper, type_ids_Union_InnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d()) - { - common_Union_InnerBitsetHelper = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_InnerBitsetHelper, type_ids_Union_InnerBitsetHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitsetHelper discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_InnerBitsetHelper.reset(); - ann_custom_Union_InnerBitsetHelper.reset(); - CompleteDiscriminatorMember discriminator_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_discriminator_member(common_Union_InnerBitsetHelper, - type_ann_builtin_Union_InnerBitsetHelper, ann_custom_Union_InnerBitsetHelper); - CompleteUnionMemberSeq member_seq_Union_InnerBitsetHelper; - { - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - BitsetTypeFlag bitset_flags_InnerBitsetHelper = 0; - QualifiedTypeName type_name_InnerBitsetHelper = "InnerBitsetHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerBitsetHelper; - eprosima::fastcdr::optional ann_custom_InnerBitsetHelper; - CompleteTypeDetail detail_InnerBitsetHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerBitsetHelper, ann_custom_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string()); - CompleteBitsetHeader header_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_header(detail_InnerBitsetHelper); - CompleteBitfieldSeq field_seq_InnerBitsetHelper; - { - uint16_t position_a = 0; - BitsetMemberFlag flags_a = 0; - uint8_t bitcount_a = 3; - TypeKind holder_type_a = TK_BYTE; - CommonBitfield common_a = TypeObjectUtils::build_common_bitfield(position_a, flags_a, bitcount_a, holder_type_a); - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_a = "a"; - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_a = TypeObjectUtils::build_complete_bitfield(common_a, detail_a); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_a); - } - { - uint16_t position_b = 3; - BitsetMemberFlag flags_b = 0; - uint8_t bitcount_b = 1; - TypeKind holder_type_b = TK_BOOLEAN; - CommonBitfield common_b = TypeObjectUtils::build_common_bitfield(position_b, flags_b, bitcount_b, holder_type_b); - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_b = "b"; - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_b = TypeObjectUtils::build_complete_bitfield(common_b, detail_b); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_b); - } - { - uint16_t position_c = 8; - BitsetMemberFlag flags_c = 0; - uint8_t bitcount_c = 10; - TypeKind holder_type_c = TK_UINT16; - CommonBitfield common_c = TypeObjectUtils::build_common_bitfield(position_c, flags_c, bitcount_c, holder_type_c); - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_c = "c"; - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_c = TypeObjectUtils::build_complete_bitfield(common_c, detail_c); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_c); - } - { - uint16_t position_d = 21; - BitsetMemberFlag flags_d = 0; - uint8_t bitcount_d = 12; - TypeKind holder_type_d = TK_INT16; - CommonBitfield common_d = TypeObjectUtils::build_common_bitfield(position_d, flags_d, bitcount_d, holder_type_d); - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_InnerBitsetHelper.reset(); - MemberName name_d = "d"; - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_InnerBitsetHelper); - CompleteBitfield bitfield_d = TypeObjectUtils::build_complete_bitfield(common_d, detail_d); - TypeObjectUtils::add_complete_bitfield(field_seq_InnerBitsetHelper, bitfield_d); - } - CompleteBitsetType bitset_type_InnerBitsetHelper = TypeObjectUtils::build_complete_bitset_type(bitset_flags_InnerBitsetHelper, header_InnerBitsetHelper, field_seq_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_bitset_type_object(bitset_type_InnerBitsetHelper, type_name_InnerBitsetHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerBitsetHelper: Given Bitset TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_x = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_x; - TypeObjectUtils::add_union_case_label(label_seq_x, static_cast(23)); - CommonUnionMember common_x; - MemberId member_id_x = 0x00000001; - if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_union_member(member_id_x, member_flags_x, type_ids_Union_InnerBitsetHelper.type_identifier1(), - label_seq_x); - } - else if (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_InnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_InnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_x = TypeObjectUtils::build_common_union_member(member_id_x, member_flags_x, type_ids_Union_InnerBitsetHelper.type_identifier2(), - label_seq_x); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union x member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_x = "x"; - eprosima::fastcdr::optional member_ann_builtin_x; - ann_custom_Union_InnerBitsetHelper.reset(); - CompleteMemberDetail detail_x = TypeObjectUtils::build_complete_member_detail(name_x, member_ann_builtin_x, ann_custom_Union_InnerBitsetHelper); - CompleteUnionMember member_x = TypeObjectUtils::build_complete_union_member(common_x, detail_x); - TypeObjectUtils::add_complete_union_member(member_seq_Union_InnerBitsetHelper, member_x); - } - CompleteUnionType union_type_Union_InnerBitsetHelper = TypeObjectUtils::build_complete_union_type(union_flags_Union_InnerBitsetHelper, header_Union_InnerBitsetHelper, discriminator_Union_InnerBitsetHelper, - member_seq_Union_InnerBitsetHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_InnerBitsetHelper, type_name_Union_InnerBitsetHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitsetHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_InnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_InnerBitsetHelper", type_ids_Union_InnerBitsetHelper); - if (return_code_Union_InnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_InnerBitsetHelper: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionInnerBitsetHelper = return_code_Union_InnerBitsetHelper; - type_ids_UnionInnerBitsetHelper = type_ids_Union_InnerBitsetHelper; - } + ::register_Union_InnerBitsetHelper_type_identifier(type_ids_var_union_my_bitset); } - StructMemberFlag member_flags_var_union_my_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_my_bitset = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_my_bitset; MemberId member_id_var_union_my_bitset = 0x00000000; - if (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() || TK_NONE == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bitset, member_flags_var_union_my_bitset, type_ids_UnionInnerBitsetHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionInnerBitsetHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionInnerBitsetHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_my_bitset = TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bitset, member_flags_var_union_my_bitset, type_ids_UnionInnerBitsetHelper.type_identifier2()); - } - else + bool common_var_union_my_bitset_ec {false}; + CommonStructMember common_var_union_my_bitset {TypeObjectUtils::build_common_struct_member(member_id_var_union_my_bitset, member_flags_var_union_my_bitset, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_my_bitset, common_var_union_my_bitset_ec))}; + if (!common_var_union_my_bitset_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_my_bitset member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_my_bitset member TypeIdentifier inconsistent."); return; } MemberName name_var_union_my_bitset = "var_union_my_bitset"; @@ -17663,32 +6075,26 @@ void register_UnionInnerBitsetHelper_type_identifier( } CompleteStructType struct_type_UnionInnerBitsetHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionInnerBitsetHelper, header_UnionInnerBitsetHelper, member_seq_UnionInnerBitsetHelper); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerBitsetHelper, type_name_UnionInnerBitsetHelper.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionInnerBitsetHelper, type_name_UnionInnerBitsetHelper.to_string(), type_ids_UnionInnerBitsetHelper)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionInnerBitsetHelper already registered in TypeObjectRegistry for a different type."); } - return_code_UnionInnerBitsetHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionInnerBitsetHelper", type_ids_UnionInnerBitsetHelper); - if (return_code_UnionInnerBitsetHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionInnerBitsetHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorShort) { + + ReturnCode_t return_code_UnionDiscriminatorShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorShort", type_ids_UnionDiscriminatorShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorShort) { - StructTypeFlag struct_flags_UnionDiscriminatorShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorShort; - TypeIdentifierPair type_ids_UnionDiscriminatorShort; QualifiedTypeName type_name_UnionDiscriminatorShort = "UnionDiscriminatorShort"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorShort; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorShort; @@ -17697,263 +6103,24 @@ void register_UnionDiscriminatorShort_type_identifier( header_UnionDiscriminatorShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorShort); CompleteStructMemberSeq member_seq_UnionDiscriminatorShort; { - return_code_UnionDiscriminatorShort = + TypeIdentifierPair type_ids_var_union_discriminator_short; + ReturnCode_t return_code_var_union_discriminator_short {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_short = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_short", type_ids_UnionDiscriminatorShort); + "Union_Discriminator_short", type_ids_var_union_discriminator_short); - if (return_code_UnionDiscriminatorShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_short) { - { - ReturnCode_t return_code_Union_Discriminator_short; - TypeIdentifierPair type_ids_Union_Discriminator_short; - UnionTypeFlag union_flags_Union_Discriminator_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_short = "Union_Discriminator_short"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_short; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_short; - CompleteTypeDetail detail_Union_Discriminator_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_short, ann_custom_Union_Discriminator_short, type_name_Union_Discriminator_short.to_string()); - CompleteUnionHeader header_Union_Discriminator_short = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_short); - UnionDiscriminatorFlag member_flags_Union_Discriminator_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Discriminator_short); - - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_short; - if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_short.type_identifier2()._d()) - { - common_Union_Discriminator_short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_short, type_ids_Union_Discriminator_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2()._d()) - { - common_Union_Discriminator_short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_short, type_ids_Union_Discriminator_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_short.reset(); - ann_custom_Union_Discriminator_short.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_short = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_short, - type_ann_builtin_Union_Discriminator_short, ann_custom_Union_Discriminator_short); - CompleteUnionMemberSeq member_seq_Union_Discriminator_short; - { - return_code_Union_Discriminator_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_short); - - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_short.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_short.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_short.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_short); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_short, member_first); - } - { - return_code_Union_Discriminator_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_short); - - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_short.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_short.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_short.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_short); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_short, member_second); - } - CompleteUnionType union_type_Union_Discriminator_short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_short, header_Union_Discriminator_short, discriminator_Union_Discriminator_short, - member_seq_Union_Discriminator_short); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_short, type_name_Union_Discriminator_short.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_short already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_short", type_ids_Union_Discriminator_short); - if (return_code_Union_Discriminator_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorShort = return_code_Union_Discriminator_short; - type_ids_UnionDiscriminatorShort = type_ids_Union_Discriminator_short; - } + ::register_Union_Discriminator_short_type_identifier(type_ids_var_union_discriminator_short); } - StructMemberFlag member_flags_var_union_discriminator_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_short = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_short; MemberId member_id_var_union_discriminator_short = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_short = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_short, member_flags_var_union_discriminator_short, type_ids_UnionDiscriminatorShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorShort.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_short = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_short, member_flags_var_union_discriminator_short, type_ids_UnionDiscriminatorShort.type_identifier2()); - } - else + bool common_var_union_discriminator_short_ec {false}; + CommonStructMember common_var_union_discriminator_short {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_short, member_flags_var_union_discriminator_short, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_short, common_var_union_discriminator_short_ec))}; + if (!common_var_union_discriminator_short_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_short member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_short member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_short = "var_union_discriminator_short"; @@ -17965,32 +6132,26 @@ void register_UnionDiscriminatorShort_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorShort = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorShort, header_UnionDiscriminatorShort, member_seq_UnionDiscriminatorShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorShort, type_name_UnionDiscriminatorShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorShort, type_name_UnionDiscriminatorShort.to_string(), type_ids_UnionDiscriminatorShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorShort already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorShort", type_ids_UnionDiscriminatorShort); - if (return_code_UnionDiscriminatorShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorUShort_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorUShort) { + + ReturnCode_t return_code_UnionDiscriminatorUShort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorUShort = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorUShort", type_ids_UnionDiscriminatorUShort); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorUShort) { - StructTypeFlag struct_flags_UnionDiscriminatorUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorUShort = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorUShort; - TypeIdentifierPair type_ids_UnionDiscriminatorUShort; QualifiedTypeName type_name_UnionDiscriminatorUShort = "UnionDiscriminatorUShort"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorUShort; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorUShort; @@ -17999,263 +6160,24 @@ void register_UnionDiscriminatorUShort_type_identifier( header_UnionDiscriminatorUShort = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorUShort); CompleteStructMemberSeq member_seq_UnionDiscriminatorUShort; { - return_code_UnionDiscriminatorUShort = + TypeIdentifierPair type_ids_var_union_discriminator_ushort; + ReturnCode_t return_code_var_union_discriminator_ushort {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_ushort = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_short", type_ids_UnionDiscriminatorUShort); + "Union_Discriminator_unsigned_short", type_ids_var_union_discriminator_ushort); - if (return_code_UnionDiscriminatorUShort != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_ushort) { - { - ReturnCode_t return_code_Union_Discriminator_unsigned_short; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_short; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_unsigned_short = "Union_Discriminator_unsigned_short"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_short; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_short; - CompleteTypeDetail detail_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_short, ann_custom_Union_Discriminator_unsigned_short, type_name_Union_Discriminator_unsigned_short.to_string()); - CompleteUnionHeader header_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_short); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_short = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_unsigned_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_Union_Discriminator_unsigned_short); - - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_unsigned_short; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_short, type_ids_Union_Discriminator_unsigned_short.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_short = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_short, type_ids_Union_Discriminator_unsigned_short.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_short discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_unsigned_short.reset(); - ann_custom_Union_Discriminator_unsigned_short.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_unsigned_short, - type_ann_builtin_Union_Discriminator_unsigned_short, ann_custom_Union_Discriminator_unsigned_short); - CompleteUnionMemberSeq member_seq_Union_Discriminator_unsigned_short; - { - return_code_Union_Discriminator_unsigned_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_unsigned_short); - - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_short.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_short.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_unsigned_short.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_unsigned_short); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_short, member_first); - } - { - return_code_Union_Discriminator_unsigned_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_unsigned_short); - - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_short.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_short.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_short.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_short.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_unsigned_short.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_unsigned_short); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_short, member_second); - } - CompleteUnionType union_type_Union_Discriminator_unsigned_short = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_short, header_Union_Discriminator_unsigned_short, discriminator_Union_Discriminator_unsigned_short, - member_seq_Union_Discriminator_unsigned_short); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_short, type_name_Union_Discriminator_unsigned_short.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_short already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_unsigned_short = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_short", type_ids_Union_Discriminator_unsigned_short); - if (return_code_Union_Discriminator_unsigned_short != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_short: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorUShort = return_code_Union_Discriminator_unsigned_short; - type_ids_UnionDiscriminatorUShort = type_ids_Union_Discriminator_unsigned_short; - } + ::register_Union_Discriminator_unsigned_short_type_identifier(type_ids_var_union_discriminator_ushort); } - StructMemberFlag member_flags_var_union_discriminator_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_ushort = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_ushort; MemberId member_id_var_union_discriminator_ushort = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ushort, member_flags_var_union_discriminator_ushort, type_ids_UnionDiscriminatorUShort.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorUShort.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorUShort.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_discriminator_ushort_ec {false}; + CommonStructMember common_var_union_discriminator_ushort {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ushort, member_flags_var_union_discriminator_ushort, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_ushort, common_var_union_discriminator_ushort_ec))}; + if (!common_var_union_discriminator_ushort_ec) { - common_var_union_discriminator_ushort = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ushort, member_flags_var_union_discriminator_ushort, type_ids_UnionDiscriminatorUShort.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_ushort member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_ushort member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_ushort = "var_union_discriminator_ushort"; @@ -18267,32 +6189,26 @@ void register_UnionDiscriminatorUShort_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorUShort = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorUShort, header_UnionDiscriminatorUShort, member_seq_UnionDiscriminatorUShort); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorUShort, type_name_UnionDiscriminatorUShort.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorUShort, type_name_UnionDiscriminatorUShort.to_string(), type_ids_UnionDiscriminatorUShort)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorUShort already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorUShort = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorUShort", type_ids_UnionDiscriminatorUShort); - if (return_code_UnionDiscriminatorUShort != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorUShort: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorLong) { + + ReturnCode_t return_code_UnionDiscriminatorLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorLong", type_ids_UnionDiscriminatorLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorLong) { - StructTypeFlag struct_flags_UnionDiscriminatorLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorLong; - TypeIdentifierPair type_ids_UnionDiscriminatorLong; QualifiedTypeName type_name_UnionDiscriminatorLong = "UnionDiscriminatorLong"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorLong; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorLong; @@ -18301,263 +6217,24 @@ void register_UnionDiscriminatorLong_type_identifier( header_UnionDiscriminatorLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorLong); CompleteStructMemberSeq member_seq_UnionDiscriminatorLong; { - return_code_UnionDiscriminatorLong = + TypeIdentifierPair type_ids_var_union_discriminator_long; + ReturnCode_t return_code_var_union_discriminator_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long", type_ids_UnionDiscriminatorLong); + "Union_Discriminator_long", type_ids_var_union_discriminator_long); - if (return_code_UnionDiscriminatorLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_long) { - { - ReturnCode_t return_code_Union_Discriminator_long; - TypeIdentifierPair type_ids_Union_Discriminator_long; - UnionTypeFlag union_flags_Union_Discriminator_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_long = "Union_Discriminator_long"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_long; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_long; - CompleteTypeDetail detail_Union_Discriminator_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_long, ann_custom_Union_Discriminator_long, type_name_Union_Discriminator_long.to_string()); - CompleteUnionHeader header_Union_Discriminator_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_long); - - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_long; - if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long.type_identifier2()._d()) - { - common_Union_Discriminator_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_long, type_ids_Union_Discriminator_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2()._d()) - { - common_Union_Discriminator_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_long, type_ids_Union_Discriminator_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_long.reset(); - ann_custom_Union_Discriminator_long.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_long = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_long, - type_ann_builtin_Union_Discriminator_long, ann_custom_Union_Discriminator_long); - CompleteUnionMemberSeq member_seq_Union_Discriminator_long; - { - return_code_Union_Discriminator_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_long); - - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_long.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_long); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_long, member_first); - } - { - return_code_Union_Discriminator_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_long); - - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_long.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_long); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_long, member_second); - } - CompleteUnionType union_type_Union_Discriminator_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_long, header_Union_Discriminator_long, discriminator_Union_Discriminator_long, - member_seq_Union_Discriminator_long); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long, type_name_Union_Discriminator_long.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long", type_ids_Union_Discriminator_long); - if (return_code_Union_Discriminator_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorLong = return_code_Union_Discriminator_long; - type_ids_UnionDiscriminatorLong = type_ids_Union_Discriminator_long; - } + ::register_Union_Discriminator_long_type_identifier(type_ids_var_union_discriminator_long); } - StructMemberFlag member_flags_var_union_discriminator_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_long; - MemberId member_id_var_union_discriminator_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long, member_flags_var_union_discriminator_long, type_ids_UnionDiscriminatorLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long, member_flags_var_union_discriminator_long, type_ids_UnionDiscriminatorLong.type_identifier2()); - } - else + MemberId member_id_var_union_discriminator_long = 0x00000000; + bool common_var_union_discriminator_long_ec {false}; + CommonStructMember common_var_union_discriminator_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long, member_flags_var_union_discriminator_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_long, common_var_union_discriminator_long_ec))}; + if (!common_var_union_discriminator_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_long = "var_union_discriminator_long"; @@ -18569,32 +6246,26 @@ void register_UnionDiscriminatorLong_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorLong, header_UnionDiscriminatorLong, member_seq_UnionDiscriminatorLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorLong, type_name_UnionDiscriminatorLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorLong, type_name_UnionDiscriminatorLong.to_string(), type_ids_UnionDiscriminatorLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorLong", type_ids_UnionDiscriminatorLong); - if (return_code_UnionDiscriminatorLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorULong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorULong) { + + ReturnCode_t return_code_UnionDiscriminatorULong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorULong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorULong", type_ids_UnionDiscriminatorULong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorULong) { - StructTypeFlag struct_flags_UnionDiscriminatorULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorULong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorULong; - TypeIdentifierPair type_ids_UnionDiscriminatorULong; QualifiedTypeName type_name_UnionDiscriminatorULong = "UnionDiscriminatorULong"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorULong; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorULong; @@ -18603,263 +6274,24 @@ void register_UnionDiscriminatorULong_type_identifier( header_UnionDiscriminatorULong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorULong); CompleteStructMemberSeq member_seq_UnionDiscriminatorULong; { - return_code_UnionDiscriminatorULong = + TypeIdentifierPair type_ids_var_union_discriminator_ulong; + ReturnCode_t return_code_var_union_discriminator_ulong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_ulong = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long", type_ids_UnionDiscriminatorULong); + "Union_Discriminator_unsigned_long", type_ids_var_union_discriminator_ulong); - if (return_code_UnionDiscriminatorULong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_ulong) { - { - ReturnCode_t return_code_Union_Discriminator_unsigned_long; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_long; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_unsigned_long = "Union_Discriminator_unsigned_long"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_long; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_long; - CompleteTypeDetail detail_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_long, ann_custom_Union_Discriminator_unsigned_long, type_name_Union_Discriminator_unsigned_long.to_string()); - CompleteUnionHeader header_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_unsigned_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_Union_Discriminator_unsigned_long); - - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_unsigned_long; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_long, type_ids_Union_Discriminator_unsigned_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_long, type_ids_Union_Discriminator_unsigned_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_unsigned_long.reset(); - ann_custom_Union_Discriminator_unsigned_long.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_unsigned_long, - type_ann_builtin_Union_Discriminator_unsigned_long, ann_custom_Union_Discriminator_unsigned_long); - CompleteUnionMemberSeq member_seq_Union_Discriminator_unsigned_long; - { - return_code_Union_Discriminator_unsigned_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_unsigned_long); - - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_unsigned_long.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_unsigned_long); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_long, member_first); - } - { - return_code_Union_Discriminator_unsigned_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_unsigned_long); - - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_unsigned_long.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_unsigned_long); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_long, member_second); - } - CompleteUnionType union_type_Union_Discriminator_unsigned_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_long, header_Union_Discriminator_unsigned_long, discriminator_Union_Discriminator_unsigned_long, - member_seq_Union_Discriminator_unsigned_long); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long, type_name_Union_Discriminator_unsigned_long.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_unsigned_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long", type_ids_Union_Discriminator_unsigned_long); - if (return_code_Union_Discriminator_unsigned_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorULong = return_code_Union_Discriminator_unsigned_long; - type_ids_UnionDiscriminatorULong = type_ids_Union_Discriminator_unsigned_long; - } + ::register_Union_Discriminator_unsigned_long_type_identifier(type_ids_var_union_discriminator_ulong); } - StructMemberFlag member_flags_var_union_discriminator_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_ulong = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_ulong; MemberId member_id_var_union_discriminator_ulong = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorULong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong, member_flags_var_union_discriminator_ulong, type_ids_UnionDiscriminatorULong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorULong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULong.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_discriminator_ulong_ec {false}; + CommonStructMember common_var_union_discriminator_ulong {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong, member_flags_var_union_discriminator_ulong, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_ulong, common_var_union_discriminator_ulong_ec))}; + if (!common_var_union_discriminator_ulong_ec) { - common_var_union_discriminator_ulong = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong, member_flags_var_union_discriminator_ulong, type_ids_UnionDiscriminatorULong.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_ulong member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_ulong member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_ulong = "var_union_discriminator_ulong"; @@ -18871,32 +6303,26 @@ void register_UnionDiscriminatorULong_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorULong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorULong, header_UnionDiscriminatorULong, member_seq_UnionDiscriminatorULong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorULong, type_name_UnionDiscriminatorULong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorULong, type_name_UnionDiscriminatorULong.to_string(), type_ids_UnionDiscriminatorULong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorULong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorULong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorULong", type_ids_UnionDiscriminatorULong); - if (return_code_UnionDiscriminatorULong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorULong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorLongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorLongLong) { + + ReturnCode_t return_code_UnionDiscriminatorLongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorLongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorLongLong", type_ids_UnionDiscriminatorLongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorLongLong) { - StructTypeFlag struct_flags_UnionDiscriminatorLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorLongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorLongLong; - TypeIdentifierPair type_ids_UnionDiscriminatorLongLong; QualifiedTypeName type_name_UnionDiscriminatorLongLong = "UnionDiscriminatorLongLong"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorLongLong; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorLongLong; @@ -18905,263 +6331,24 @@ void register_UnionDiscriminatorLongLong_type_identifier( header_UnionDiscriminatorLongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorLongLong); CompleteStructMemberSeq member_seq_UnionDiscriminatorLongLong; { - return_code_UnionDiscriminatorLongLong = + TypeIdentifierPair type_ids_var_union_discriminator_long_long; + ReturnCode_t return_code_var_union_discriminator_long_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_long_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long_long", type_ids_UnionDiscriminatorLongLong); + "Union_Discriminator_long_long", type_ids_var_union_discriminator_long_long); - if (return_code_UnionDiscriminatorLongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_long_long) { - { - ReturnCode_t return_code_Union_Discriminator_long_long; - TypeIdentifierPair type_ids_Union_Discriminator_long_long; - UnionTypeFlag union_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_long_long = "Union_Discriminator_long_long"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_long_long; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_long_long; - CompleteTypeDetail detail_Union_Discriminator_long_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_long_long, ann_custom_Union_Discriminator_long_long, type_name_Union_Discriminator_long_long.to_string()); - CompleteUnionHeader header_Union_Discriminator_long_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_long_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_long_long); - - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_long_long; - if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long_long.type_identifier2()._d()) - { - common_Union_Discriminator_long_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_long_long, type_ids_Union_Discriminator_long_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2()._d()) - { - common_Union_Discriminator_long_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_long_long, type_ids_Union_Discriminator_long_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_long_long.reset(); - ann_custom_Union_Discriminator_long_long.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_long_long = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_long_long, - type_ann_builtin_Union_Discriminator_long_long, ann_custom_Union_Discriminator_long_long); - CompleteUnionMemberSeq member_seq_Union_Discriminator_long_long; - { - return_code_Union_Discriminator_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_long_long); - - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_long_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_long_long.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_long_long); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_long_long, member_first); - } - { - return_code_Union_Discriminator_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_long_long); - - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(-2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_long_long.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_long_long.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_long_long); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_long_long, member_second); - } - CompleteUnionType union_type_Union_Discriminator_long_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_long_long, header_Union_Discriminator_long_long, discriminator_Union_Discriminator_long_long, - member_seq_Union_Discriminator_long_long); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_long_long, type_name_Union_Discriminator_long_long.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long_long already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_long_long", type_ids_Union_Discriminator_long_long); - if (return_code_Union_Discriminator_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_long_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorLongLong = return_code_Union_Discriminator_long_long; - type_ids_UnionDiscriminatorLongLong = type_ids_Union_Discriminator_long_long; - } + ::register_Union_Discriminator_long_long_type_identifier(type_ids_var_union_discriminator_long_long); } - StructMemberFlag member_flags_var_union_discriminator_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_long_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_long_long; MemberId member_id_var_union_discriminator_long_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long_long, member_flags_var_union_discriminator_long_long, type_ids_UnionDiscriminatorLongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorLongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorLongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_long_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long_long, member_flags_var_union_discriminator_long_long, type_ids_UnionDiscriminatorLongLong.type_identifier2()); - } - else + bool common_var_union_discriminator_long_long_ec {false}; + CommonStructMember common_var_union_discriminator_long_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_long_long, member_flags_var_union_discriminator_long_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_long_long, common_var_union_discriminator_long_long_ec))}; + if (!common_var_union_discriminator_long_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_long_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_long_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_long_long = "var_union_discriminator_long_long"; @@ -19173,32 +6360,26 @@ void register_UnionDiscriminatorLongLong_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorLongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorLongLong, header_UnionDiscriminatorLongLong, member_seq_UnionDiscriminatorLongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorLongLong, type_name_UnionDiscriminatorLongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorLongLong, type_name_UnionDiscriminatorLongLong.to_string(), type_ids_UnionDiscriminatorLongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorLongLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorLongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorLongLong", type_ids_UnionDiscriminatorLongLong); - if (return_code_UnionDiscriminatorLongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorLongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorULongLong_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorULongLong) { + + ReturnCode_t return_code_UnionDiscriminatorULongLong {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorULongLong = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorULongLong", type_ids_UnionDiscriminatorULongLong); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorULongLong) { - StructTypeFlag struct_flags_UnionDiscriminatorULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorULongLong = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorULongLong; - TypeIdentifierPair type_ids_UnionDiscriminatorULongLong; QualifiedTypeName type_name_UnionDiscriminatorULongLong = "UnionDiscriminatorULongLong"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorULongLong; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorULongLong; @@ -19207,263 +6388,24 @@ void register_UnionDiscriminatorULongLong_type_identifier( header_UnionDiscriminatorULongLong = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorULongLong); CompleteStructMemberSeq member_seq_UnionDiscriminatorULongLong; { - return_code_UnionDiscriminatorULongLong = + TypeIdentifierPair type_ids_var_union_discriminator_ulong_long; + ReturnCode_t return_code_var_union_discriminator_ulong_long {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_ulong_long = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long_long", type_ids_UnionDiscriminatorULongLong); + "Union_Discriminator_unsigned_long_long", type_ids_var_union_discriminator_ulong_long); - if (return_code_UnionDiscriminatorULongLong != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_ulong_long) { - { - ReturnCode_t return_code_Union_Discriminator_unsigned_long_long; - TypeIdentifierPair type_ids_Union_Discriminator_unsigned_long_long; - UnionTypeFlag union_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_unsigned_long_long = "Union_Discriminator_unsigned_long_long"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_unsigned_long_long; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_unsigned_long_long; - CompleteTypeDetail detail_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_unsigned_long_long, ann_custom_Union_Discriminator_unsigned_long_long, type_name_Union_Discriminator_unsigned_long_long.to_string()); - CompleteUnionHeader header_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_unsigned_long_long); - UnionDiscriminatorFlag member_flags_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_unsigned_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_Union_Discriminator_unsigned_long_long); - - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_unsigned_long_long; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_long_long, type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d()) - { - common_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_unsigned_long_long, type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long_long discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_unsigned_long_long.reset(); - ann_custom_Union_Discriminator_unsigned_long_long.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_unsigned_long_long, - type_ann_builtin_Union_Discriminator_unsigned_long_long, ann_custom_Union_Discriminator_unsigned_long_long); - CompleteUnionMemberSeq member_seq_Union_Discriminator_unsigned_long_long; - { - return_code_Union_Discriminator_unsigned_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_unsigned_long_long); - - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(2)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long_long.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_unsigned_long_long.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_unsigned_long_long.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_unsigned_long_long); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_long_long, member_first); - } - { - return_code_Union_Discriminator_unsigned_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_unsigned_long_long); - - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(1)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long_long.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_unsigned_long_long.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_unsigned_long_long.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_unsigned_long_long.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_unsigned_long_long); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_unsigned_long_long, member_second); - } - CompleteUnionType union_type_Union_Discriminator_unsigned_long_long = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_unsigned_long_long, header_Union_Discriminator_unsigned_long_long, discriminator_Union_Discriminator_unsigned_long_long, - member_seq_Union_Discriminator_unsigned_long_long); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_unsigned_long_long, type_name_Union_Discriminator_unsigned_long_long.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long_long already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_unsigned_long_long = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_unsigned_long_long", type_ids_Union_Discriminator_unsigned_long_long); - if (return_code_Union_Discriminator_unsigned_long_long != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_unsigned_long_long: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorULongLong = return_code_Union_Discriminator_unsigned_long_long; - type_ids_UnionDiscriminatorULongLong = type_ids_Union_Discriminator_unsigned_long_long; - } + ::register_Union_Discriminator_unsigned_long_long_type_identifier(type_ids_var_union_discriminator_ulong_long); } - StructMemberFlag member_flags_var_union_discriminator_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_ulong_long = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_ulong_long; MemberId member_id_var_union_discriminator_ulong_long = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong_long, member_flags_var_union_discriminator_ulong_long, type_ids_UnionDiscriminatorULongLong.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorULongLong.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorULongLong.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_ulong_long = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong_long, member_flags_var_union_discriminator_ulong_long, type_ids_UnionDiscriminatorULongLong.type_identifier2()); - } - else + bool common_var_union_discriminator_ulong_long_ec {false}; + CommonStructMember common_var_union_discriminator_ulong_long {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_ulong_long, member_flags_var_union_discriminator_ulong_long, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_ulong_long, common_var_union_discriminator_ulong_long_ec))}; + if (!common_var_union_discriminator_ulong_long_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_ulong_long member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_ulong_long member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_ulong_long = "var_union_discriminator_ulong_long"; @@ -19475,32 +6417,26 @@ void register_UnionDiscriminatorULongLong_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorULongLong = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorULongLong, header_UnionDiscriminatorULongLong, member_seq_UnionDiscriminatorULongLong); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorULongLong, type_name_UnionDiscriminatorULongLong.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorULongLong, type_name_UnionDiscriminatorULongLong.to_string(), type_ids_UnionDiscriminatorULongLong)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorULongLong already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorULongLong = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorULongLong", type_ids_UnionDiscriminatorULongLong); - if (return_code_UnionDiscriminatorULongLong != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorULongLong: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorBoolean_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorBoolean) { + + ReturnCode_t return_code_UnionDiscriminatorBoolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorBoolean = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorBoolean", type_ids_UnionDiscriminatorBoolean); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorBoolean) { - StructTypeFlag struct_flags_UnionDiscriminatorBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorBoolean = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorBoolean; - TypeIdentifierPair type_ids_UnionDiscriminatorBoolean; QualifiedTypeName type_name_UnionDiscriminatorBoolean = "UnionDiscriminatorBoolean"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorBoolean; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorBoolean; @@ -19509,263 +6445,24 @@ void register_UnionDiscriminatorBoolean_type_identifier( header_UnionDiscriminatorBoolean = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorBoolean); CompleteStructMemberSeq member_seq_UnionDiscriminatorBoolean; { - return_code_UnionDiscriminatorBoolean = + TypeIdentifierPair type_ids_var_union_discriminator_boolean; + ReturnCode_t return_code_var_union_discriminator_boolean {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_boolean = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_boolean", type_ids_UnionDiscriminatorBoolean); + "Union_Discriminator_boolean", type_ids_var_union_discriminator_boolean); - if (return_code_UnionDiscriminatorBoolean != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_boolean) { - { - ReturnCode_t return_code_Union_Discriminator_boolean; - TypeIdentifierPair type_ids_Union_Discriminator_boolean; - UnionTypeFlag union_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_boolean = "Union_Discriminator_boolean"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_boolean; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_boolean; - CompleteTypeDetail detail_Union_Discriminator_boolean = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_boolean, ann_custom_Union_Discriminator_boolean, type_name_Union_Discriminator_boolean.to_string()); - CompleteUnionHeader header_Union_Discriminator_boolean = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_boolean); - UnionDiscriminatorFlag member_flags_Union_Discriminator_boolean = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_Union_Discriminator_boolean); - - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_boolean; - if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_boolean.type_identifier2()._d()) - { - common_Union_Discriminator_boolean = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_boolean, type_ids_Union_Discriminator_boolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2()._d()) - { - common_Union_Discriminator_boolean = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_boolean, type_ids_Union_Discriminator_boolean.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_boolean discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_boolean.reset(); - ann_custom_Union_Discriminator_boolean.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_boolean = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_boolean, - type_ann_builtin_Union_Discriminator_boolean, ann_custom_Union_Discriminator_boolean); - CompleteUnionMemberSeq member_seq_Union_Discriminator_boolean; - { - return_code_Union_Discriminator_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_boolean); - - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(true)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_boolean.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_boolean.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_boolean.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_boolean); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_boolean, member_first); - } - { - return_code_Union_Discriminator_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_boolean); - - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(false)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_boolean.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_boolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_boolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_boolean.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_boolean.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_boolean); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_boolean, member_second); - } - CompleteUnionType union_type_Union_Discriminator_boolean = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_boolean, header_Union_Discriminator_boolean, discriminator_Union_Discriminator_boolean, - member_seq_Union_Discriminator_boolean); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_boolean, type_name_Union_Discriminator_boolean.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_boolean already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_boolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_boolean", type_ids_Union_Discriminator_boolean); - if (return_code_Union_Discriminator_boolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_boolean: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorBoolean = return_code_Union_Discriminator_boolean; - type_ids_UnionDiscriminatorBoolean = type_ids_Union_Discriminator_boolean; - } + ::register_Union_Discriminator_boolean_type_identifier(type_ids_var_union_discriminator_boolean); } - StructMemberFlag member_flags_var_union_discriminator_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_boolean = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_boolean; MemberId member_id_var_union_discriminator_boolean = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_boolean, member_flags_var_union_discriminator_boolean, type_ids_UnionDiscriminatorBoolean.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorBoolean.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorBoolean.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_boolean = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_boolean, member_flags_var_union_discriminator_boolean, type_ids_UnionDiscriminatorBoolean.type_identifier2()); - } - else + bool common_var_union_discriminator_boolean_ec {false}; + CommonStructMember common_var_union_discriminator_boolean {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_boolean, member_flags_var_union_discriminator_boolean, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_boolean, common_var_union_discriminator_boolean_ec))}; + if (!common_var_union_discriminator_boolean_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_boolean member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_boolean member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_boolean = "var_union_discriminator_boolean"; @@ -19777,32 +6474,26 @@ void register_UnionDiscriminatorBoolean_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorBoolean = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorBoolean, header_UnionDiscriminatorBoolean, member_seq_UnionDiscriminatorBoolean); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorBoolean, type_name_UnionDiscriminatorBoolean.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorBoolean, type_name_UnionDiscriminatorBoolean.to_string(), type_ids_UnionDiscriminatorBoolean)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorBoolean already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorBoolean = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorBoolean", type_ids_UnionDiscriminatorBoolean); - if (return_code_UnionDiscriminatorBoolean != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorBoolean: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorOctet_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorOctet) { + + ReturnCode_t return_code_UnionDiscriminatorOctet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorOctet = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorOctet", type_ids_UnionDiscriminatorOctet); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorOctet) { - StructTypeFlag struct_flags_UnionDiscriminatorOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorOctet = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorOctet; - TypeIdentifierPair type_ids_UnionDiscriminatorOctet; QualifiedTypeName type_name_UnionDiscriminatorOctet = "UnionDiscriminatorOctet"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorOctet; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorOctet; @@ -19811,263 +6502,24 @@ void register_UnionDiscriminatorOctet_type_identifier( header_UnionDiscriminatorOctet = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorOctet); CompleteStructMemberSeq member_seq_UnionDiscriminatorOctet; { - return_code_UnionDiscriminatorOctet = + TypeIdentifierPair type_ids_var_union_discriminator_octet; + ReturnCode_t return_code_var_union_discriminator_octet {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_octet = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_octet", type_ids_UnionDiscriminatorOctet); + "Union_Discriminator_octet", type_ids_var_union_discriminator_octet); - if (return_code_UnionDiscriminatorOctet != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_octet) { - { - ReturnCode_t return_code_Union_Discriminator_octet; - TypeIdentifierPair type_ids_Union_Discriminator_octet; - UnionTypeFlag union_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_octet = "Union_Discriminator_octet"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_octet; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_octet; - CompleteTypeDetail detail_Union_Discriminator_octet = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_octet, ann_custom_Union_Discriminator_octet, type_name_Union_Discriminator_octet.to_string()); - CompleteUnionHeader header_Union_Discriminator_octet = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_octet); - UnionDiscriminatorFlag member_flags_Union_Discriminator_octet = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Union_Discriminator_octet); - - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_octet; - if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_octet.type_identifier2()._d()) - { - common_Union_Discriminator_octet = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_octet, type_ids_Union_Discriminator_octet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2()._d()) - { - common_Union_Discriminator_octet = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_octet, type_ids_Union_Discriminator_octet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_octet discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_octet.reset(); - ann_custom_Union_Discriminator_octet.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_octet = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_octet, - type_ann_builtin_Union_Discriminator_octet, ann_custom_Union_Discriminator_octet); - CompleteUnionMemberSeq member_seq_Union_Discriminator_octet; - { - return_code_Union_Discriminator_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_octet); - - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(0)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_octet.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_octet.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_octet.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_octet); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_octet, member_first); - } - { - return_code_Union_Discriminator_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_octet); - - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(1)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_octet.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_octet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_octet.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_octet.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_octet.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_octet); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_octet, member_second); - } - CompleteUnionType union_type_Union_Discriminator_octet = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_octet, header_Union_Discriminator_octet, discriminator_Union_Discriminator_octet, - member_seq_Union_Discriminator_octet); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_octet, type_name_Union_Discriminator_octet.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_octet already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_octet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_octet", type_ids_Union_Discriminator_octet); - if (return_code_Union_Discriminator_octet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_octet: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorOctet = return_code_Union_Discriminator_octet; - type_ids_UnionDiscriminatorOctet = type_ids_Union_Discriminator_octet; - } + ::register_Union_Discriminator_octet_type_identifier(type_ids_var_union_discriminator_octet); } - StructMemberFlag member_flags_var_union_discriminator_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_octet = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_octet; MemberId member_id_var_union_discriminator_octet = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_octet = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_octet, member_flags_var_union_discriminator_octet, type_ids_UnionDiscriminatorOctet.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorOctet.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorOctet.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_discriminator_octet_ec {false}; + CommonStructMember common_var_union_discriminator_octet {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_octet, member_flags_var_union_discriminator_octet, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_octet, common_var_union_discriminator_octet_ec))}; + if (!common_var_union_discriminator_octet_ec) { - common_var_union_discriminator_octet = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_octet, member_flags_var_union_discriminator_octet, type_ids_UnionDiscriminatorOctet.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_octet member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_octet member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_octet = "var_union_discriminator_octet"; @@ -20079,32 +6531,26 @@ void register_UnionDiscriminatorOctet_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorOctet = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorOctet, header_UnionDiscriminatorOctet, member_seq_UnionDiscriminatorOctet); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorOctet, type_name_UnionDiscriminatorOctet.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorOctet, type_name_UnionDiscriminatorOctet.to_string(), type_ids_UnionDiscriminatorOctet)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorOctet already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorOctet = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorOctet", type_ids_UnionDiscriminatorOctet); - if (return_code_UnionDiscriminatorOctet != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorOctet: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorChar) { + + ReturnCode_t return_code_UnionDiscriminatorChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorChar", type_ids_UnionDiscriminatorChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorChar) { - StructTypeFlag struct_flags_UnionDiscriminatorChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorChar; - TypeIdentifierPair type_ids_UnionDiscriminatorChar; QualifiedTypeName type_name_UnionDiscriminatorChar = "UnionDiscriminatorChar"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorChar; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorChar; @@ -20113,263 +6559,24 @@ void register_UnionDiscriminatorChar_type_identifier( header_UnionDiscriminatorChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorChar); CompleteStructMemberSeq member_seq_UnionDiscriminatorChar; { - return_code_UnionDiscriminatorChar = + TypeIdentifierPair type_ids_var_union_discriminator_char; + ReturnCode_t return_code_var_union_discriminator_char {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_char = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_char", type_ids_UnionDiscriminatorChar); + "Union_Discriminator_char", type_ids_var_union_discriminator_char); - if (return_code_UnionDiscriminatorChar != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_char) { - { - ReturnCode_t return_code_Union_Discriminator_char; - TypeIdentifierPair type_ids_Union_Discriminator_char; - UnionTypeFlag union_flags_Union_Discriminator_char = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_char = "Union_Discriminator_char"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_char; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_char; - CompleteTypeDetail detail_Union_Discriminator_char = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_char, ann_custom_Union_Discriminator_char, type_name_Union_Discriminator_char.to_string()); - CompleteUnionHeader header_Union_Discriminator_char = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_char); - UnionDiscriminatorFlag member_flags_Union_Discriminator_char = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_Union_Discriminator_char); - - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_char; - if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_char.type_identifier2()._d()) - { - common_Union_Discriminator_char = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_char, type_ids_Union_Discriminator_char.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2()._d()) - { - common_Union_Discriminator_char = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_char, type_ids_Union_Discriminator_char.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_char discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_char.reset(); - ann_custom_Union_Discriminator_char.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_char = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_char, - type_ann_builtin_Union_Discriminator_char, ann_custom_Union_Discriminator_char); - CompleteUnionMemberSeq member_seq_Union_Discriminator_char; - { - return_code_Union_Discriminator_char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_char); - - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast('a')); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_char.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_char.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_char.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_char); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_char, member_first); - } - { - return_code_Union_Discriminator_char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_char); - - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast('b')); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_char.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_char.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_char.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_char.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_char.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_char); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_char, member_second); - } - CompleteUnionType union_type_Union_Discriminator_char = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_char, header_Union_Discriminator_char, discriminator_Union_Discriminator_char, - member_seq_Union_Discriminator_char); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_char, type_name_Union_Discriminator_char.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_char already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_char = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_char", type_ids_Union_Discriminator_char); - if (return_code_Union_Discriminator_char != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_char: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorChar = return_code_Union_Discriminator_char; - type_ids_UnionDiscriminatorChar = type_ids_Union_Discriminator_char; - } + ::register_Union_Discriminator_char_type_identifier(type_ids_var_union_discriminator_char); } - StructMemberFlag member_flags_var_union_discriminator_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_char = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_char; MemberId member_id_var_union_discriminator_char = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_char = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_char, member_flags_var_union_discriminator_char, type_ids_UnionDiscriminatorChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorChar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_char = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_char, member_flags_var_union_discriminator_char, type_ids_UnionDiscriminatorChar.type_identifier2()); - } - else + bool common_var_union_discriminator_char_ec {false}; + CommonStructMember common_var_union_discriminator_char {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_char, member_flags_var_union_discriminator_char, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_char, common_var_union_discriminator_char_ec))}; + if (!common_var_union_discriminator_char_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_char member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_char member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_char = "var_union_discriminator_char"; @@ -20381,297 +6588,52 @@ void register_UnionDiscriminatorChar_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorChar = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorChar, header_UnionDiscriminatorChar, member_seq_UnionDiscriminatorChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorChar, type_name_UnionDiscriminatorChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorChar, type_name_UnionDiscriminatorChar.to_string(), type_ids_UnionDiscriminatorChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorChar already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorChar", type_ids_UnionDiscriminatorChar); - if (return_code_UnionDiscriminatorChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorWChar_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorWChar) { + + ReturnCode_t return_code_UnionDiscriminatorWChar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorWChar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorWChar", type_ids_UnionDiscriminatorWChar); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorWChar) { - StructTypeFlag struct_flags_UnionDiscriminatorWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorWChar = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorWChar; - TypeIdentifierPair type_ids_UnionDiscriminatorWChar; QualifiedTypeName type_name_UnionDiscriminatorWChar = "UnionDiscriminatorWChar"; - eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorWChar; - eprosima::fastcdr::optional ann_custom_UnionDiscriminatorWChar; - CompleteTypeDetail detail_UnionDiscriminatorWChar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_UnionDiscriminatorWChar, ann_custom_UnionDiscriminatorWChar, type_name_UnionDiscriminatorWChar.to_string()); - CompleteStructHeader header_UnionDiscriminatorWChar; - header_UnionDiscriminatorWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorWChar); - CompleteStructMemberSeq member_seq_UnionDiscriminatorWChar; - { - return_code_UnionDiscriminatorWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_wchar", type_ids_UnionDiscriminatorWChar); - - if (return_code_UnionDiscriminatorWChar != eprosima::fastdds::dds::RETCODE_OK) - { - { - ReturnCode_t return_code_Union_Discriminator_wchar; - TypeIdentifierPair type_ids_Union_Discriminator_wchar; - UnionTypeFlag union_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_wchar = "Union_Discriminator_wchar"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_wchar; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_wchar; - CompleteTypeDetail detail_Union_Discriminator_wchar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_wchar, ann_custom_Union_Discriminator_wchar, type_name_Union_Discriminator_wchar.to_string()); - CompleteUnionHeader header_Union_Discriminator_wchar = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_wchar); - UnionDiscriminatorFlag member_flags_Union_Discriminator_wchar = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_wchar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_wchar_t", type_ids_Union_Discriminator_wchar); - - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Discriminator_wchar; - if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_wchar.type_identifier2()._d()) - { - common_Union_Discriminator_wchar = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_wchar, type_ids_Union_Discriminator_wchar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2()._d()) - { - common_Union_Discriminator_wchar = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_wchar, type_ids_Union_Discriminator_wchar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_wchar discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_wchar.reset(); - ann_custom_Union_Discriminator_wchar.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_wchar = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_wchar, - type_ann_builtin_Union_Discriminator_wchar, ann_custom_Union_Discriminator_wchar); - CompleteUnionMemberSeq member_seq_Union_Discriminator_wchar; - { - return_code_Union_Discriminator_wchar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_wchar); - - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(L'a')); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_wchar.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_wchar.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_wchar.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_wchar); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_wchar, member_first); - } - { - return_code_Union_Discriminator_wchar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_wchar); + eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorWChar; + eprosima::fastcdr::optional ann_custom_UnionDiscriminatorWChar; + CompleteTypeDetail detail_UnionDiscriminatorWChar = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_UnionDiscriminatorWChar, ann_custom_UnionDiscriminatorWChar, type_name_UnionDiscriminatorWChar.to_string()); + CompleteStructHeader header_UnionDiscriminatorWChar; + header_UnionDiscriminatorWChar = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorWChar); + CompleteStructMemberSeq member_seq_UnionDiscriminatorWChar; + { + TypeIdentifierPair type_ids_var_union_discriminator_wchar; + ReturnCode_t return_code_var_union_discriminator_wchar {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_wchar = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Union_Discriminator_wchar", type_ids_var_union_discriminator_wchar); - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(L'b')); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_wchar.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_wchar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_wchar.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_wchar.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_wchar.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_wchar); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_wchar, member_second); - } - CompleteUnionType union_type_Union_Discriminator_wchar = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_wchar, header_Union_Discriminator_wchar, discriminator_Union_Discriminator_wchar, - member_seq_Union_Discriminator_wchar); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_wchar, type_name_Union_Discriminator_wchar.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_wchar already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_wchar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_wchar", type_ids_Union_Discriminator_wchar); - if (return_code_Union_Discriminator_wchar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_wchar: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorWChar = return_code_Union_Discriminator_wchar; - type_ids_UnionDiscriminatorWChar = type_ids_Union_Discriminator_wchar; - } + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_wchar) + { + ::register_Union_Discriminator_wchar_type_identifier(type_ids_var_union_discriminator_wchar); } - StructMemberFlag member_flags_var_union_discriminator_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_wchar = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_wchar; MemberId member_id_var_union_discriminator_wchar = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_wchar, member_flags_var_union_discriminator_wchar, type_ids_UnionDiscriminatorWChar.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorWChar.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorWChar.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_discriminator_wchar_ec {false}; + CommonStructMember common_var_union_discriminator_wchar {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_wchar, member_flags_var_union_discriminator_wchar, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_wchar, common_var_union_discriminator_wchar_ec))}; + if (!common_var_union_discriminator_wchar_ec) { - common_var_union_discriminator_wchar = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_wchar, member_flags_var_union_discriminator_wchar, type_ids_UnionDiscriminatorWChar.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_wchar member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_wchar member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_wchar = "var_union_discriminator_wchar"; @@ -20683,32 +6645,26 @@ void register_UnionDiscriminatorWChar_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorWChar = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorWChar, header_UnionDiscriminatorWChar, member_seq_UnionDiscriminatorWChar); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorWChar, type_name_UnionDiscriminatorWChar.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorWChar, type_name_UnionDiscriminatorWChar.to_string(), type_ids_UnionDiscriminatorWChar)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorWChar already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorWChar = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorWChar", type_ids_UnionDiscriminatorWChar); - if (return_code_UnionDiscriminatorWChar != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorWChar: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorEnum_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorEnum) { + + ReturnCode_t return_code_UnionDiscriminatorEnum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorEnum = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorEnum", type_ids_UnionDiscriminatorEnum); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorEnum) { - StructTypeFlag struct_flags_UnionDiscriminatorEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorEnum = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorEnum; - TypeIdentifierPair type_ids_UnionDiscriminatorEnum; QualifiedTypeName type_name_UnionDiscriminatorEnum = "UnionDiscriminatorEnum"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorEnum; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorEnum; @@ -20717,385 +6673,24 @@ void register_UnionDiscriminatorEnum_type_identifier( header_UnionDiscriminatorEnum = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorEnum); CompleteStructMemberSeq member_seq_UnionDiscriminatorEnum; { - return_code_UnionDiscriminatorEnum = + TypeIdentifierPair type_ids_var_union_discriminator_enum; + ReturnCode_t return_code_var_union_discriminator_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum", type_ids_UnionDiscriminatorEnum); + "Union_Discriminator_enum", type_ids_var_union_discriminator_enum); - if (return_code_UnionDiscriminatorEnum != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_enum) { - { - ReturnCode_t return_code_Union_Discriminator_enum; - TypeIdentifierPair type_ids_Union_Discriminator_enum; - UnionTypeFlag union_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_enum = "Union_Discriminator_enum"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_enum; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_enum; - CompleteTypeDetail detail_Union_Discriminator_enum = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_enum, ann_custom_Union_Discriminator_enum, type_name_Union_Discriminator_enum.to_string()); - CompleteUnionHeader header_Union_Discriminator_enum = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_enum); - UnionDiscriminatorFlag member_flags_Union_Discriminator_enum = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum); - - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonDiscriminatorMember common_Union_Discriminator_enum; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d()) - { - common_Union_Discriminator_enum = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_enum, type_ids_Union_Discriminator_enum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d()) - { - common_Union_Discriminator_enum = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_enum, type_ids_Union_Discriminator_enum.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_enum.reset(); - ann_custom_Union_Discriminator_enum.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_enum = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_enum, - type_ann_builtin_Union_Discriminator_enum, ann_custom_Union_Discriminator_enum); - CompleteUnionMemberSeq member_seq_Union_Discriminator_enum; - { - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_enum); - - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_enum.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_enum); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_enum, member_first); - } - { - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_enum); - - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(InnerEnumHelper::ENUM_VALUE_2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_enum.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_enum); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_enum, member_second); - } - { - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_Union_Discriminator_enum); - - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "third Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_third = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_third; - CommonUnionMember common_third; - MemberId member_id_third = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_third = TypeObjectUtils::build_common_union_member(member_id_third, member_flags_third, type_ids_Union_Discriminator_enum.type_identifier1(), - label_seq_third); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_third = TypeObjectUtils::build_common_union_member(member_id_third, member_flags_third, type_ids_Union_Discriminator_enum.type_identifier2(), - label_seq_third); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union third member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_third = "third"; - eprosima::fastcdr::optional member_ann_builtin_third; - ann_custom_Union_Discriminator_enum.reset(); - CompleteMemberDetail detail_third = TypeObjectUtils::build_complete_member_detail(name_third, member_ann_builtin_third, ann_custom_Union_Discriminator_enum); - CompleteUnionMember member_third = TypeObjectUtils::build_complete_union_member(common_third, detail_third); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_enum, member_third); - } - CompleteUnionType union_type_Union_Discriminator_enum = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_enum, header_Union_Discriminator_enum, discriminator_Union_Discriminator_enum, - member_seq_Union_Discriminator_enum); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum, type_name_Union_Discriminator_enum.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum", type_ids_Union_Discriminator_enum); - if (return_code_Union_Discriminator_enum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorEnum = return_code_Union_Discriminator_enum; - type_ids_UnionDiscriminatorEnum = type_ids_Union_Discriminator_enum; - } + ::register_Union_Discriminator_enum_type_identifier(type_ids_var_union_discriminator_enum); } - StructMemberFlag member_flags_var_union_discriminator_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_enum; MemberId member_id_var_union_discriminator_enum = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, type_ids_UnionDiscriminatorEnum.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorEnum.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnum.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, type_ids_UnionDiscriminatorEnum.type_identifier2()); - } - else + bool common_var_union_discriminator_enum_ec {false}; + CommonStructMember common_var_union_discriminator_enum {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_enum, common_var_union_discriminator_enum_ec))}; + if (!common_var_union_discriminator_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_enum = "var_union_discriminator_enum"; @@ -21107,32 +6702,26 @@ void register_UnionDiscriminatorEnum_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorEnum = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorEnum, header_UnionDiscriminatorEnum, member_seq_UnionDiscriminatorEnum); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorEnum, type_name_UnionDiscriminatorEnum.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorEnum, type_name_UnionDiscriminatorEnum.to_string(), type_ids_UnionDiscriminatorEnum)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorEnum already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorEnum = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorEnum", type_ids_UnionDiscriminatorEnum); - if (return_code_UnionDiscriminatorEnum != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorEnum: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorEnumLabel_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorEnumLabel) { + + ReturnCode_t return_code_UnionDiscriminatorEnumLabel {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorEnumLabel = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorEnumLabel", type_ids_UnionDiscriminatorEnumLabel); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorEnumLabel) { - StructTypeFlag struct_flags_UnionDiscriminatorEnumLabel = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorEnumLabel = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorEnumLabel; - TypeIdentifierPair type_ids_UnionDiscriminatorEnumLabel; QualifiedTypeName type_name_UnionDiscriminatorEnumLabel = "UnionDiscriminatorEnumLabel"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorEnumLabel; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorEnumLabel; @@ -21141,317 +6730,24 @@ void register_UnionDiscriminatorEnumLabel_type_identifier( header_UnionDiscriminatorEnumLabel = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorEnumLabel); CompleteStructMemberSeq member_seq_UnionDiscriminatorEnumLabel; { - return_code_UnionDiscriminatorEnumLabel = + TypeIdentifierPair type_ids_var_union_discriminator_enum; + ReturnCode_t return_code_var_union_discriminator_enum {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_enum = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum_labels", type_ids_UnionDiscriminatorEnumLabel); + "Union_Discriminator_enum_labels", type_ids_var_union_discriminator_enum); - if (return_code_UnionDiscriminatorEnumLabel != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_enum) { - { - ReturnCode_t return_code_Union_Discriminator_enum_labels; - TypeIdentifierPair type_ids_Union_Discriminator_enum_labels; - UnionTypeFlag union_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_enum_labels = "Union_Discriminator_enum_labels"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_enum_labels; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_enum_labels; - CompleteTypeDetail detail_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_enum_labels, ann_custom_Union_Discriminator_enum_labels, type_name_Union_Discriminator_enum_labels.to_string()); - CompleteUnionHeader header_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_enum_labels); - UnionDiscriminatorFlag member_flags_Union_Discriminator_enum_labels = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum_labels); - - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_InnerEnumHelper = 0; - BitBound bit_bound_InnerEnumHelper = 32; - CommonEnumeratedHeader common_InnerEnumHelper = TypeObjectUtils::build_common_enumerated_header(bit_bound_InnerEnumHelper); - QualifiedTypeName type_name_InnerEnumHelper = "InnerEnumHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEnumHelper; - eprosima::fastcdr::optional ann_custom_InnerEnumHelper; - CompleteTypeDetail detail_InnerEnumHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEnumHelper, ann_custom_InnerEnumHelper, type_name_InnerEnumHelper.to_string()); - CompleteEnumeratedHeader header_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_header(common_InnerEnumHelper, detail_InnerEnumHelper); - CompleteEnumeratedLiteralSeq literal_seq_InnerEnumHelper; - { - EnumeratedLiteralFlag flags_ENUM_VALUE_1 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_1 = TypeObjectUtils::build_common_enumerated_literal(0, flags_ENUM_VALUE_1); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_1; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_1 = "ENUM_VALUE_1"; - CompleteMemberDetail detail_ENUM_VALUE_1 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_1, member_ann_builtin_ENUM_VALUE_1, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_1 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_1, detail_ENUM_VALUE_1); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_1); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_2 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_ENUM_VALUE_2); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_2; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_2 = "ENUM_VALUE_2"; - CompleteMemberDetail detail_ENUM_VALUE_2 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_2, member_ann_builtin_ENUM_VALUE_2, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_2 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_2, detail_ENUM_VALUE_2); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_2); - } - { - EnumeratedLiteralFlag flags_ENUM_VALUE_3 = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_ENUM_VALUE_3 = TypeObjectUtils::build_common_enumerated_literal(2, flags_ENUM_VALUE_3); - eprosima::fastcdr::optional member_ann_builtin_ENUM_VALUE_3; - ann_custom_InnerEnumHelper.reset(); - MemberName name_ENUM_VALUE_3 = "ENUM_VALUE_3"; - CompleteMemberDetail detail_ENUM_VALUE_3 = TypeObjectUtils::build_complete_member_detail(name_ENUM_VALUE_3, member_ann_builtin_ENUM_VALUE_3, ann_custom_InnerEnumHelper); - CompleteEnumeratedLiteral literal_ENUM_VALUE_3 = TypeObjectUtils::build_complete_enumerated_literal(common_ENUM_VALUE_3, detail_ENUM_VALUE_3); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_InnerEnumHelper, literal_ENUM_VALUE_3); - } - CompleteEnumeratedType enumerated_type_InnerEnumHelper = TypeObjectUtils::build_complete_enumerated_type(enum_flags_InnerEnumHelper, header_InnerEnumHelper, - literal_seq_InnerEnumHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_InnerEnumHelper, type_name_InnerEnumHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEnumHelper", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEnumHelper: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonDiscriminatorMember common_Union_Discriminator_enum_labels; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d()) - { - common_Union_Discriminator_enum_labels = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_enum_labels, type_ids_Union_Discriminator_enum_labels.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d()) - { - common_Union_Discriminator_enum_labels = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_enum_labels, type_ids_Union_Discriminator_enum_labels.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum_labels discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_enum_labels.reset(); - ann_custom_Union_Discriminator_enum_labels.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_enum_labels, - type_ann_builtin_Union_Discriminator_enum_labels, ann_custom_Union_Discriminator_enum_labels); - CompleteUnionMemberSeq member_seq_Union_Discriminator_enum_labels; - { - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Discriminator_enum_labels); - - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_3)); - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(InnerEnumHelper::ENUM_VALUE_1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum_labels.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_enum_labels.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_enum_labels.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_enum_labels); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_enum_labels, member_first); - } - { - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Discriminator_enum_labels); - - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(InnerEnumHelper::ENUM_VALUE_2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum_labels.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_enum_labels.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_enum_labels.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_enum_labels.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_enum_labels.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_enum_labels); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_enum_labels, member_second); - } - CompleteUnionType union_type_Union_Discriminator_enum_labels = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_enum_labels, header_Union_Discriminator_enum_labels, discriminator_Union_Discriminator_enum_labels, - member_seq_Union_Discriminator_enum_labels); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_enum_labels, type_name_Union_Discriminator_enum_labels.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum_labels already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_enum_labels = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_enum_labels", type_ids_Union_Discriminator_enum_labels); - if (return_code_Union_Discriminator_enum_labels != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_enum_labels: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorEnumLabel = return_code_Union_Discriminator_enum_labels; - type_ids_UnionDiscriminatorEnumLabel = type_ids_Union_Discriminator_enum_labels; - } + ::register_Union_Discriminator_enum_labels_type_identifier(type_ids_var_union_discriminator_enum); } - StructMemberFlag member_flags_var_union_discriminator_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_enum = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_enum; MemberId member_id_var_union_discriminator_enum = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, type_ids_UnionDiscriminatorEnumLabel.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorEnumLabel.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_enum = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, type_ids_UnionDiscriminatorEnumLabel.type_identifier2()); - } - else + bool common_var_union_discriminator_enum_ec {false}; + CommonStructMember common_var_union_discriminator_enum {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_enum, member_flags_var_union_discriminator_enum, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_enum, common_var_union_discriminator_enum_ec))}; + if (!common_var_union_discriminator_enum_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_enum member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_enum member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_enum = "var_union_discriminator_enum"; @@ -21463,32 +6759,26 @@ void register_UnionDiscriminatorEnumLabel_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorEnumLabel = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorEnumLabel, header_UnionDiscriminatorEnumLabel, member_seq_UnionDiscriminatorEnumLabel); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorEnumLabel, type_name_UnionDiscriminatorEnumLabel.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorEnumLabel, type_name_UnionDiscriminatorEnumLabel.to_string(), type_ids_UnionDiscriminatorEnumLabel)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorEnumLabel already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorEnumLabel = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorEnumLabel", type_ids_UnionDiscriminatorEnumLabel); - if (return_code_UnionDiscriminatorEnumLabel != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorEnumLabel: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionDiscriminatorAlias_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionDiscriminatorAlias) { + + ReturnCode_t return_code_UnionDiscriminatorAlias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionDiscriminatorAlias = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionDiscriminatorAlias", type_ids_UnionDiscriminatorAlias); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionDiscriminatorAlias) { - StructTypeFlag struct_flags_UnionDiscriminatorAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionDiscriminatorAlias = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionDiscriminatorAlias; - TypeIdentifierPair type_ids_UnionDiscriminatorAlias; QualifiedTypeName type_name_UnionDiscriminatorAlias = "UnionDiscriminatorAlias"; eprosima::fastcdr::optional type_ann_builtin_UnionDiscriminatorAlias; eprosima::fastcdr::optional ann_custom_UnionDiscriminatorAlias; @@ -21497,341 +6787,24 @@ void register_UnionDiscriminatorAlias_type_identifier( header_UnionDiscriminatorAlias = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionDiscriminatorAlias); CompleteStructMemberSeq member_seq_UnionDiscriminatorAlias; { - return_code_UnionDiscriminatorAlias = + TypeIdentifierPair type_ids_var_union_discriminator_alias; + ReturnCode_t return_code_var_union_discriminator_alias {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_discriminator_alias = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_alias", type_ids_UnionDiscriminatorAlias); + "Union_Discriminator_alias", type_ids_var_union_discriminator_alias); - if (return_code_UnionDiscriminatorAlias != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_discriminator_alias) { - { - ReturnCode_t return_code_Union_Discriminator_alias; - TypeIdentifierPair type_ids_Union_Discriminator_alias; - UnionTypeFlag union_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Discriminator_alias = "Union_Discriminator_alias"; - eprosima::fastcdr::optional type_ann_builtin_Union_Discriminator_alias; - eprosima::fastcdr::optional ann_custom_Union_Discriminator_alias; - CompleteTypeDetail detail_Union_Discriminator_alias = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Discriminator_alias, ann_custom_Union_Discriminator_alias, type_name_Union_Discriminator_alias.to_string()); - CompleteUnionHeader header_Union_Discriminator_alias = TypeObjectUtils::build_complete_union_header(detail_Union_Discriminator_alias); - UnionDiscriminatorFlag member_flags_Union_Discriminator_alias = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_Discriminator_alias); - - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_InnerAliasHelper = 0; - QualifiedTypeName type_name_InnerAliasHelper = "InnerAliasHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerAliasHelper; - eprosima::fastcdr::optional ann_custom_InnerAliasHelper; - CompleteTypeDetail detail_InnerAliasHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper, type_name_InnerAliasHelper.to_string()); - CompleteAliasHeader header_InnerAliasHelper = TypeObjectUtils::build_complete_alias_header(detail_InnerAliasHelper); - AliasMemberFlag related_flags_InnerAliasHelper = 0; - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_alias); - - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonAliasBody common_InnerAliasHelper; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_Discriminator_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_InnerAliasHelper = TypeObjectUtils::build_common_alias_body(related_flags_InnerAliasHelper, type_ids_Union_Discriminator_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_InnerAliasHelper; - ann_custom_InnerAliasHelper.reset(); - CompleteAliasBody body_InnerAliasHelper = TypeObjectUtils::build_complete_alias_body(common_InnerAliasHelper, member_ann_builtin_InnerAliasHelper, ann_custom_InnerAliasHelper); - CompleteAliasType alias_type_InnerAliasHelper = TypeObjectUtils::build_complete_alias_type(alias_flags_InnerAliasHelper, header_InnerAliasHelper, body_InnerAliasHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_InnerAliasHelper, type_name_InnerAliasHelper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerAliasHelper", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerAliasHelper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonDiscriminatorMember common_Union_Discriminator_alias; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d()) - { - common_Union_Discriminator_alias = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_alias, type_ids_Union_Discriminator_alias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d()) - { - common_Union_Discriminator_alias = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Discriminator_alias, type_ids_Union_Discriminator_alias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_alias discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Discriminator_alias.reset(); - ann_custom_Union_Discriminator_alias.reset(); - CompleteDiscriminatorMember discriminator_Union_Discriminator_alias = TypeObjectUtils::build_complete_discriminator_member(common_Union_Discriminator_alias, - type_ann_builtin_Union_Discriminator_alias, ann_custom_Union_Discriminator_alias); - CompleteUnionMemberSeq member_seq_Union_Discriminator_alias; - { - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Discriminator_alias); - - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "first Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_first = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_first; - TypeObjectUtils::add_union_case_label(label_seq_first, static_cast(1)); - CommonUnionMember common_first; - MemberId member_id_first = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_alias.type_identifier1(), - label_seq_first); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_first = TypeObjectUtils::build_common_union_member(member_id_first, member_flags_first, type_ids_Union_Discriminator_alias.type_identifier2(), - label_seq_first); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union first member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_first = "first"; - eprosima::fastcdr::optional member_ann_builtin_first; - ann_custom_Union_Discriminator_alias.reset(); - CompleteMemberDetail detail_first = TypeObjectUtils::build_complete_member_detail(name_first, member_ann_builtin_first, ann_custom_Union_Discriminator_alias); - CompleteUnionMember member_first = TypeObjectUtils::build_complete_union_member(common_first, detail_first); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_alias, member_first); - } - { - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_Union_Discriminator_alias); - - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "second Union member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - UnionMemberFlag member_flags_second = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_second; - TypeObjectUtils::add_union_case_label(label_seq_second, static_cast(2)); - CommonUnionMember common_second; - MemberId member_id_second = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1()._d() || TK_NONE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_alias.type_identifier1(), - label_seq_second); - } - else if (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Discriminator_alias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Discriminator_alias.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_second = TypeObjectUtils::build_common_union_member(member_id_second, member_flags_second, type_ids_Union_Discriminator_alias.type_identifier2(), - label_seq_second); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union second member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_second = "second"; - eprosima::fastcdr::optional member_ann_builtin_second; - ann_custom_Union_Discriminator_alias.reset(); - CompleteMemberDetail detail_second = TypeObjectUtils::build_complete_member_detail(name_second, member_ann_builtin_second, ann_custom_Union_Discriminator_alias); - CompleteUnionMember member_second = TypeObjectUtils::build_complete_union_member(common_second, detail_second); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Discriminator_alias, member_second); - } - CompleteUnionType union_type_Union_Discriminator_alias = TypeObjectUtils::build_complete_union_type(union_flags_Union_Discriminator_alias, header_Union_Discriminator_alias, discriminator_Union_Discriminator_alias, - member_seq_Union_Discriminator_alias); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Discriminator_alias, type_name_Union_Discriminator_alias.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_alias already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Discriminator_alias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Discriminator_alias", type_ids_Union_Discriminator_alias); - if (return_code_Union_Discriminator_alias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Discriminator_alias: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionDiscriminatorAlias = return_code_Union_Discriminator_alias; - type_ids_UnionDiscriminatorAlias = type_ids_Union_Discriminator_alias; - } + ::register_Union_Discriminator_alias_type_identifier(type_ids_var_union_discriminator_alias); } - StructMemberFlag member_flags_var_union_discriminator_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_discriminator_alias = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_discriminator_alias; MemberId member_id_var_union_discriminator_alias = 0x00000000; - if (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() || TK_NONE == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_discriminator_alias = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_alias, member_flags_var_union_discriminator_alias, type_ids_UnionDiscriminatorAlias.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionDiscriminatorAlias.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionDiscriminatorAlias.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_discriminator_alias_ec {false}; + CommonStructMember common_var_union_discriminator_alias {TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_alias, member_flags_var_union_discriminator_alias, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_discriminator_alias, common_var_union_discriminator_alias_ec))}; + if (!common_var_union_discriminator_alias_ec) { - common_var_union_discriminator_alias = TypeObjectUtils::build_common_struct_member(member_id_var_union_discriminator_alias, member_flags_var_union_discriminator_alias, type_ids_UnionDiscriminatorAlias.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_discriminator_alias member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_discriminator_alias member TypeIdentifier inconsistent."); return; } MemberName name_var_union_discriminator_alias = "var_union_discriminator_alias"; @@ -21843,32 +6816,26 @@ void register_UnionDiscriminatorAlias_type_identifier( } CompleteStructType struct_type_UnionDiscriminatorAlias = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionDiscriminatorAlias, header_UnionDiscriminatorAlias, member_seq_UnionDiscriminatorAlias); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorAlias, type_name_UnionDiscriminatorAlias.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionDiscriminatorAlias, type_name_UnionDiscriminatorAlias.to_string(), type_ids_UnionDiscriminatorAlias)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionDiscriminatorAlias already registered in TypeObjectRegistry for a different type."); } - return_code_UnionDiscriminatorAlias = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionDiscriminatorAlias", type_ids_UnionDiscriminatorAlias); - if (return_code_UnionDiscriminatorAlias != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionDiscriminatorAlias: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionSeveralFields_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionSeveralFields) { + + ReturnCode_t return_code_UnionSeveralFields {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionSeveralFields = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionSeveralFields", type_ids_UnionSeveralFields); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionSeveralFields) { - StructTypeFlag struct_flags_UnionSeveralFields = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionSeveralFields = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionSeveralFields; - TypeIdentifierPair type_ids_UnionSeveralFields; QualifiedTypeName type_name_UnionSeveralFields = "UnionSeveralFields"; eprosima::fastcdr::optional type_ann_builtin_UnionSeveralFields; eprosima::fastcdr::optional ann_custom_UnionSeveralFields; @@ -21877,1086 +6844,24 @@ void register_UnionSeveralFields_type_identifier( header_UnionSeveralFields = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionSeveralFields); CompleteStructMemberSeq member_seq_UnionSeveralFields; { - return_code_UnionSeveralFields = + TypeIdentifierPair type_ids_var_union_several_fields; + ReturnCode_t return_code_var_union_several_fields {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_several_fields = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields", type_ids_UnionSeveralFields); + "Union_Several_Fields", type_ids_var_union_several_fields); - if (return_code_UnionSeveralFields != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_several_fields) { - { - ReturnCode_t return_code_Union_Several_Fields; - TypeIdentifierPair type_ids_Union_Several_Fields; - UnionTypeFlag union_flags_Union_Several_Fields = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Several_Fields = "Union_Several_Fields"; - eprosima::fastcdr::optional type_ann_builtin_Union_Several_Fields; - eprosima::fastcdr::optional ann_custom_Union_Several_Fields; - CompleteTypeDetail detail_Union_Several_Fields = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Several_Fields, ann_custom_Union_Several_Fields, type_name_Union_Several_Fields.to_string()); - CompleteUnionHeader header_Union_Several_Fields = TypeObjectUtils::build_complete_union_header(detail_Union_Several_Fields); - UnionDiscriminatorFlag member_flags_Union_Several_Fields = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Several_Fields; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - common_Union_Several_Fields = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Several_Fields, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - common_Union_Several_Fields = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Several_Fields, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Several_Fields.reset(); - ann_custom_Union_Several_Fields.reset(); - CompleteDiscriminatorMember discriminator_Union_Several_Fields = TypeObjectUtils::build_complete_discriminator_member(common_Union_Several_Fields, - type_ann_builtin_Union_Several_Fields, ann_custom_Union_Several_Fields); - CompleteUnionMemberSeq member_seq_Union_Several_Fields; - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields = return_code_InnerStructureHelper; - type_ids_Union_Several_Fields = type_ids_InnerStructureHelper; - } - } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_a; - TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; - MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_a); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_a = "a"; - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_Union_Several_Fields); - CompleteUnionMember member_a = TypeObjectUtils::build_complete_union_member(common_a, detail_a); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_a); - } - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields = return_code_InnerEmptyStructureHelper; - type_ids_Union_Several_Fields = type_ids_InnerEmptyStructureHelper; - } - } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_b; - TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; - MemberId member_id_b = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_b); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_b = "b"; - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_Union_Several_Fields); - CompleteUnionMember member_b = TypeObjectUtils::build_complete_union_member(common_b, detail_b); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_b); - } - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_c; - TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; - MemberId member_id_c = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_c); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_Union_Several_Fields); - CompleteUnionMember member_c = TypeObjectUtils::build_complete_union_member(common_c, detail_c); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_c); - } - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_d; - TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; - MemberId member_id_d = 0x00000004; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_d); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_Union_Several_Fields); - CompleteUnionMember member_d = TypeObjectUtils::build_complete_union_member(common_d, detail_d); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_d); - } - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields); - - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_e; - TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; - MemberId member_id_e = 0x00000005; - if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields.type_identifier2(), - label_seq_e); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_e = "e"; - eprosima::fastcdr::optional member_ann_builtin_e; - ann_custom_Union_Several_Fields.reset(); - CompleteMemberDetail detail_e = TypeObjectUtils::build_complete_member_detail(name_e, member_ann_builtin_e, ann_custom_Union_Several_Fields); - CompleteUnionMember member_e = TypeObjectUtils::build_complete_union_member(common_e, detail_e); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields, member_e); - } - CompleteUnionType union_type_Union_Several_Fields = TypeObjectUtils::build_complete_union_type(union_flags_Union_Several_Fields, header_Union_Several_Fields, discriminator_Union_Several_Fields, - member_seq_Union_Several_Fields); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields, type_name_Union_Several_Fields.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields", type_ids_Union_Several_Fields); - if (return_code_Union_Several_Fields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionSeveralFields = return_code_Union_Several_Fields; - type_ids_UnionSeveralFields = type_ids_Union_Several_Fields; - } + ::register_Union_Several_Fields_type_identifier(type_ids_var_union_several_fields); } - StructMemberFlag member_flags_var_union_several_fields = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_several_fields = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_several_fields; MemberId member_id_var_union_several_fields = 0x00000000; - if (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1()._d() || TK_NONE == type_ids_UnionSeveralFields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSeveralFields.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSeveralFields.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSeveralFields.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSeveralFields.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSeveralFields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSeveralFields.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_several_fields = TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields, member_flags_var_union_several_fields, type_ids_UnionSeveralFields.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSeveralFields.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSeveralFields.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSeveralFields.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSeveralFields.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSeveralFields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSeveralFields.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFields.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_several_fields_ec {false}; + CommonStructMember common_var_union_several_fields {TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields, member_flags_var_union_several_fields, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_several_fields, common_var_union_several_fields_ec))}; + if (!common_var_union_several_fields_ec) { - common_var_union_several_fields = TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields, member_flags_var_union_several_fields, type_ids_UnionSeveralFields.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_several_fields member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_several_fields member TypeIdentifier inconsistent."); return; } MemberName name_var_union_several_fields = "var_union_several_fields"; @@ -22968,32 +6873,26 @@ void register_UnionSeveralFields_type_identifier( } CompleteStructType struct_type_UnionSeveralFields = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionSeveralFields, header_UnionSeveralFields, member_seq_UnionSeveralFields); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSeveralFields, type_name_UnionSeveralFields.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSeveralFields, type_name_UnionSeveralFields.to_string(), type_ids_UnionSeveralFields)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionSeveralFields already registered in TypeObjectRegistry for a different type."); } - return_code_UnionSeveralFields = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionSeveralFields", type_ids_UnionSeveralFields); - if (return_code_UnionSeveralFields != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionSeveralFields: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_UnionSeveralFieldsWithDefault_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_UnionSeveralFieldsWithDefault) { + + ReturnCode_t return_code_UnionSeveralFieldsWithDefault {eprosima::fastdds::dds::RETCODE_OK}; + return_code_UnionSeveralFieldsWithDefault = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "UnionSeveralFieldsWithDefault", type_ids_UnionSeveralFieldsWithDefault); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_UnionSeveralFieldsWithDefault) { - StructTypeFlag struct_flags_UnionSeveralFieldsWithDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_UnionSeveralFieldsWithDefault = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_UnionSeveralFieldsWithDefault; - TypeIdentifierPair type_ids_UnionSeveralFieldsWithDefault; QualifiedTypeName type_name_UnionSeveralFieldsWithDefault = "UnionSeveralFieldsWithDefault"; eprosima::fastcdr::optional type_ann_builtin_UnionSeveralFieldsWithDefault; eprosima::fastcdr::optional ann_custom_UnionSeveralFieldsWithDefault; @@ -23002,1234 +6901,24 @@ void register_UnionSeveralFieldsWithDefault_type_identifier( header_UnionSeveralFieldsWithDefault = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnionSeveralFieldsWithDefault); CompleteStructMemberSeq member_seq_UnionSeveralFieldsWithDefault; { - return_code_UnionSeveralFieldsWithDefault = + TypeIdentifierPair type_ids_var_union_several_fields_with_default; + ReturnCode_t return_code_var_union_several_fields_with_default {eprosima::fastdds::dds::RETCODE_OK}; + return_code_var_union_several_fields_with_default = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields_With_Default", type_ids_UnionSeveralFieldsWithDefault); + "Union_Several_Fields_With_Default", type_ids_var_union_several_fields_with_default); - if (return_code_UnionSeveralFieldsWithDefault != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_var_union_several_fields_with_default) { - { - ReturnCode_t return_code_Union_Several_Fields_With_Default; - TypeIdentifierPair type_ids_Union_Several_Fields_With_Default; - UnionTypeFlag union_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - false, false); - QualifiedTypeName type_name_Union_Several_Fields_With_Default = "Union_Several_Fields_With_Default"; - eprosima::fastcdr::optional type_ann_builtin_Union_Several_Fields_With_Default; - eprosima::fastcdr::optional ann_custom_Union_Several_Fields_With_Default; - CompleteTypeDetail detail_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Union_Several_Fields_With_Default, ann_custom_Union_Several_Fields_With_Default, type_name_Union_Several_Fields_With_Default.to_string()); - CompleteUnionHeader header_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_union_header(detail_Union_Several_Fields_With_Default); - UnionDiscriminatorFlag member_flags_Union_Several_Fields_With_Default = TypeObjectUtils::build_union_discriminator_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false); - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union discriminator TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - CommonDiscriminatorMember common_Union_Several_Fields_With_Default; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - common_Union_Several_Fields_With_Default = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Several_Fields_With_Default, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - common_Union_Several_Fields_With_Default = TypeObjectUtils::build_common_discriminator_member(member_flags_Union_Several_Fields_With_Default, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields_With_Default discriminator TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - type_ann_builtin_Union_Several_Fields_With_Default.reset(); - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteDiscriminatorMember discriminator_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_discriminator_member(common_Union_Several_Fields_With_Default, - type_ann_builtin_Union_Several_Fields_With_Default, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMemberSeq member_seq_Union_Several_Fields_With_Default; - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerStructureHelper; - TypeIdentifierPair type_ids_InnerStructureHelper; - QualifiedTypeName type_name_InnerStructureHelper = "InnerStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerStructureHelper; - eprosima::fastcdr::optional verbatim_InnerStructureHelper; - if (!tmp_ann_custom_InnerStructureHelper.empty()) - { - ann_custom_InnerStructureHelper = tmp_ann_custom_InnerStructureHelper; - } - - CompleteTypeDetail detail_InnerStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerStructureHelper, ann_custom_InnerStructureHelper, type_name_InnerStructureHelper.to_string()); - CompleteStructHeader header_InnerStructureHelper; - header_InnerStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerStructureHelper); - CompleteStructMemberSeq member_seq_InnerStructureHelper; - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field1 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field1 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field1; - MemberId member_id_field1 = 0x00000000; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field1 = TypeObjectUtils::build_common_struct_member(member_id_field1, member_flags_field1, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field1 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field1 = "field1"; - eprosima::fastcdr::optional member_ann_builtin_field1; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field1 = TypeObjectUtils::build_complete_member_detail(name_field1, member_ann_builtin_field1, ann_custom_InnerStructureHelper); - CompleteStructMember member_field1 = TypeObjectUtils::build_complete_struct_member(common_field1, detail_field1); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field1); - } - { - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_InnerStructureHelper); - - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "field2 Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_field2 = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_field2; - MemberId member_id_field2 = 0x00000001; - if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1()._d() || TK_NONE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier1()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_InnerStructureHelper.type_identifier2()._d() && - (EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_InnerStructureHelper.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_field2 = TypeObjectUtils::build_common_struct_member(member_id_field2, member_flags_field2, type_ids_InnerStructureHelper.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure field2 member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_field2 = "field2"; - eprosima::fastcdr::optional member_ann_builtin_field2; - ann_custom_InnerStructureHelper.reset(); - CompleteMemberDetail detail_field2 = TypeObjectUtils::build_complete_member_detail(name_field2, member_ann_builtin_field2, ann_custom_InnerStructureHelper); - CompleteStructMember member_field2 = TypeObjectUtils::build_complete_struct_member(common_field2, detail_field2); - TypeObjectUtils::add_complete_struct_member(member_seq_InnerStructureHelper, member_field2); - } - CompleteStructType struct_type_InnerStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerStructureHelper, header_InnerStructureHelper, member_seq_InnerStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerStructureHelper, type_name_InnerStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerStructureHelper", type_ids_InnerStructureHelper); - if (return_code_InnerStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields_With_Default = return_code_InnerStructureHelper; - type_ids_Union_Several_Fields_With_Default = type_ids_InnerStructureHelper; - } - } - UnionMemberFlag member_flags_a = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_a; - TypeObjectUtils::add_union_case_label(label_seq_a, static_cast(0)); - CommonUnionMember common_a; - MemberId member_id_a = 0x00000001; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_a); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_a = TypeObjectUtils::build_common_union_member(member_id_a, member_flags_a, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_a); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union a member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_a = "a"; - eprosima::fastcdr::optional member_ann_builtin_a; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_a = TypeObjectUtils::build_complete_member_detail(name_a, member_ann_builtin_a, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_a = TypeObjectUtils::build_complete_union_member(common_a, detail_a); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_a); - } - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - { - StructTypeFlag struct_flags_InnerEmptyStructureHelper = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_InnerEmptyStructureHelper; - TypeIdentifierPair type_ids_InnerEmptyStructureHelper; - QualifiedTypeName type_name_InnerEmptyStructureHelper = "InnerEmptyStructureHelper"; - eprosima::fastcdr::optional type_ann_builtin_InnerEmptyStructureHelper; - eprosima::fastcdr::optional ann_custom_InnerEmptyStructureHelper; - AppliedAnnotationSeq tmp_ann_custom_InnerEmptyStructureHelper; - eprosima::fastcdr::optional verbatim_InnerEmptyStructureHelper; - if (!tmp_ann_custom_InnerEmptyStructureHelper.empty()) - { - ann_custom_InnerEmptyStructureHelper = tmp_ann_custom_InnerEmptyStructureHelper; - } - - CompleteTypeDetail detail_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_InnerEmptyStructureHelper, ann_custom_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string()); - CompleteStructHeader header_InnerEmptyStructureHelper; - header_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_InnerEmptyStructureHelper); - CompleteStructMemberSeq member_seq_InnerEmptyStructureHelper; - CompleteStructType struct_type_InnerEmptyStructureHelper = TypeObjectUtils::build_complete_struct_type(struct_flags_InnerEmptyStructureHelper, header_InnerEmptyStructureHelper, member_seq_InnerEmptyStructureHelper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_InnerEmptyStructureHelper, type_name_InnerEmptyStructureHelper.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper already registered in TypeObjectRegistry for a different type."); - } - return_code_InnerEmptyStructureHelper = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "InnerEmptyStructureHelper", type_ids_InnerEmptyStructureHelper); - if (return_code_InnerEmptyStructureHelper != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "InnerEmptyStructureHelper: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_Union_Several_Fields_With_Default = return_code_InnerEmptyStructureHelper; - type_ids_Union_Several_Fields_With_Default = type_ids_InnerEmptyStructureHelper; - } - } - UnionMemberFlag member_flags_b = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_b; - TypeObjectUtils::add_union_case_label(label_seq_b, static_cast(1)); - CommonUnionMember common_b; - MemberId member_id_b = 0x00000002; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_b); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_b = TypeObjectUtils::build_common_union_member(member_id_b, member_flags_b, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_b); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union b member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_b = "b"; - eprosima::fastcdr::optional member_ann_builtin_b; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_b = TypeObjectUtils::build_complete_member_detail(name_b, member_ann_builtin_b, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_b = TypeObjectUtils::build_complete_union_member(common_b, detail_b); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_b); - } - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_bounded_string_helper = 0; - QualifiedTypeName type_name_Inner_alias_bounded_string_helper = "Inner_alias_bounded_string_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_bounded_string_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_bounded_string_helper; - CompleteTypeDetail detail_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string()); - CompleteAliasHeader header_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_bounded_string_helper); - AliasMemberFlag related_flags_Inner_alias_bounded_string_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = static_cast(10); - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_10")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_10", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_10: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_bounded_string_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_bounded_string_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_bounded_string_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_bounded_string_helper; - ann_custom_Inner_alias_bounded_string_helper.reset(); - CompleteAliasBody body_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_bounded_string_helper, member_ann_builtin_Inner_alias_bounded_string_helper, ann_custom_Inner_alias_bounded_string_helper); - CompleteAliasType alias_type_Inner_alias_bounded_string_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_bounded_string_helper, header_Inner_alias_bounded_string_helper, body_Inner_alias_bounded_string_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_bounded_string_helper, type_name_Inner_alias_bounded_string_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_bounded_string_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_bounded_string_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_c = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_c; - TypeObjectUtils::add_union_case_label(label_seq_c, static_cast(2)); - CommonUnionMember common_c; - MemberId member_id_c = 0x00000003; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_c); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_c = TypeObjectUtils::build_common_union_member(member_id_c, member_flags_c, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_c); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union c member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_c = "c"; - eprosima::fastcdr::optional member_ann_builtin_c; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_c = TypeObjectUtils::build_complete_member_detail(name_c, member_ann_builtin_c, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_c = TypeObjectUtils::build_complete_union_member(common_c, detail_c); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_c); - } - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_array_helper = 0; - QualifiedTypeName type_name_Inner_alias_array_helper = "Inner_alias_array_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_array_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_array_helper; - CompleteTypeDetail detail_Inner_alias_array_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string()); - CompleteAliasHeader header_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_array_helper); - AliasMemberFlag related_flags_Inner_alias_array_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_array_int16_t_2 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_2 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_array_int16_t_2 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - equiv_kind_anonymous_array_int16_t_2 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_array_int16_t_2 = 0; - PlainCollectionHeader header_anonymous_array_int16_t_2 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_2, element_flags_anonymous_array_int16_t_2); - { - SBoundSeq array_bound_seq; - TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(2)); - - PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_2, array_bound_seq, - eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_2)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_2")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_2", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_2: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_array_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_array_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_array_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_array_helper; - ann_custom_Inner_alias_array_helper.reset(); - CompleteAliasBody body_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_array_helper, member_ann_builtin_Inner_alias_array_helper, ann_custom_Inner_alias_array_helper); - CompleteAliasType alias_type_Inner_alias_array_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_array_helper, header_Inner_alias_array_helper, body_Inner_alias_array_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_array_helper, type_name_Inner_alias_array_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_array_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_array_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_d = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_d; - TypeObjectUtils::add_union_case_label(label_seq_d, static_cast(3)); - CommonUnionMember common_d; - MemberId member_id_d = 0x00000004; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_d); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_d = TypeObjectUtils::build_common_union_member(member_id_d, member_flags_d, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_d); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union d member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_d = "d"; - eprosima::fastcdr::optional member_ann_builtin_d; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_d = TypeObjectUtils::build_complete_member_detail(name_d, member_ann_builtin_d, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_d = TypeObjectUtils::build_complete_union_member(common_d, detail_d); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_d); - } - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - AliasTypeFlag alias_flags_Inner_alias_sequence_helper = 0; - QualifiedTypeName type_name_Inner_alias_sequence_helper = "Inner_alias_sequence_helper"; - eprosima::fastcdr::optional type_ann_builtin_Inner_alias_sequence_helper; - eprosima::fastcdr::optional ann_custom_Inner_alias_sequence_helper; - CompleteTypeDetail detail_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string()); - CompleteAliasHeader header_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_header(detail_Inner_alias_sequence_helper); - AliasMemberFlag related_flags_Inner_alias_sequence_helper = 0; - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); - { - SBound bound = 0; - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - CommonAliasBody common_Inner_alias_sequence_helper; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_Inner_alias_sequence_helper = TypeObjectUtils::build_common_alias_body(related_flags_Inner_alias_sequence_helper, type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper related TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - eprosima::fastcdr::optional member_ann_builtin_Inner_alias_sequence_helper; - ann_custom_Inner_alias_sequence_helper.reset(); - CompleteAliasBody body_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_body(common_Inner_alias_sequence_helper, member_ann_builtin_Inner_alias_sequence_helper, ann_custom_Inner_alias_sequence_helper); - CompleteAliasType alias_type_Inner_alias_sequence_helper = TypeObjectUtils::build_complete_alias_type(alias_flags_Inner_alias_sequence_helper, header_Inner_alias_sequence_helper, body_Inner_alias_sequence_helper); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_alias_type_object(alias_type_Inner_alias_sequence_helper, type_name_Inner_alias_sequence_helper.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Inner_alias_sequence_helper", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Inner_alias_sequence_helper: Given Alias TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_e = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false); - UnionCaseLabelSeq label_seq_e; - TypeObjectUtils::add_union_case_label(label_seq_e, static_cast(4)); - CommonUnionMember common_e; - MemberId member_id_e = 0x00000005; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_e); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_e = TypeObjectUtils::build_common_union_member(member_id_e, member_flags_e, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_e); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union e member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_e = "e"; - eprosima::fastcdr::optional member_ann_builtin_e; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_e = TypeObjectUtils::build_complete_member_detail(name_e, member_ann_builtin_e, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_e = TypeObjectUtils::build_complete_union_member(common_e, detail_e); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_e); - } - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_30", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_Union_Several_Fields_With_Default); - - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_30 {nullptr}; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_30 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_30 = new TypeIdentifier(type_ids_Union_Several_Fields_With_Default.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - EquivalenceKind equiv_kind_anonymous_sequence_int16_t_30 = EK_COMPLETE; - if (TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d()) - { - equiv_kind_anonymous_sequence_int16_t_30 = EK_BOTH; - } - CollectionElementFlag element_flags_anonymous_sequence_int16_t_30 = 0; - PlainCollectionHeader header_anonymous_sequence_int16_t_30 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_30, element_flags_anonymous_sequence_int16_t_30); - { - SBound bound = static_cast(30); - PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_30, bound, - eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_30)); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_30")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_30 already registered in TypeObjectRegistry for a different type."); - } - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_30", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_30: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - UnionMemberFlag member_flags_f = TypeObjectUtils::build_union_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - true, false); - UnionCaseLabelSeq label_seq_f; - CommonUnionMember common_f; - MemberId member_id_f = 0x00000006; - if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() || TK_NONE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier1()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_Several_Fields_With_Default.type_identifier1(), - label_seq_f); - } - else if (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_Union_Several_Fields_With_Default.type_identifier2()._d() && - (EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_Union_Several_Fields_With_Default.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_f = TypeObjectUtils::build_common_union_member(member_id_f, member_flags_f, type_ids_Union_Several_Fields_With_Default.type_identifier2(), - label_seq_f); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union f member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_f = "f"; - eprosima::fastcdr::optional member_ann_builtin_f; - ann_custom_Union_Several_Fields_With_Default.reset(); - CompleteMemberDetail detail_f = TypeObjectUtils::build_complete_member_detail(name_f, member_ann_builtin_f, ann_custom_Union_Several_Fields_With_Default); - CompleteUnionMember member_f = TypeObjectUtils::build_complete_union_member(common_f, detail_f); - TypeObjectUtils::add_complete_union_member(member_seq_Union_Several_Fields_With_Default, member_f); - } - CompleteUnionType union_type_Union_Several_Fields_With_Default = TypeObjectUtils::build_complete_union_type(union_flags_Union_Several_Fields_With_Default, header_Union_Several_Fields_With_Default, discriminator_Union_Several_Fields_With_Default, - member_seq_Union_Several_Fields_With_Default); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_union_type_object(union_type_Union_Several_Fields_With_Default, type_name_Union_Several_Fields_With_Default.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields_With_Default already registered in TypeObjectRegistry for a different type."); - } - return_code_Union_Several_Fields_With_Default = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Union_Several_Fields_With_Default", type_ids_Union_Several_Fields_With_Default); - if (return_code_Union_Several_Fields_With_Default != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Union_Several_Fields_With_Default: Given Union TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_UnionSeveralFieldsWithDefault = return_code_Union_Several_Fields_With_Default; - type_ids_UnionSeveralFieldsWithDefault = type_ids_Union_Several_Fields_With_Default; - } + ::register_Union_Several_Fields_With_Default_type_identifier(type_ids_var_union_several_fields_with_default); } - StructMemberFlag member_flags_var_union_several_fields_with_default = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_var_union_several_fields_with_default = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_var_union_several_fields_with_default; MemberId member_id_var_union_several_fields_with_default = 0x00000000; - if (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() || TK_NONE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_var_union_several_fields_with_default = TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields_with_default, member_flags_var_union_several_fields_with_default, type_ids_UnionSeveralFieldsWithDefault.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2()._d() && - (EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_UnionSeveralFieldsWithDefault.type_identifier2().map_ldefn().key_identifier()->_d()))) + bool common_var_union_several_fields_with_default_ec {false}; + CommonStructMember common_var_union_several_fields_with_default {TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields_with_default, member_flags_var_union_several_fields_with_default, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_var_union_several_fields_with_default, common_var_union_several_fields_with_default_ec))}; + if (!common_var_union_several_fields_with_default_ec) { - common_var_union_several_fields_with_default = TypeObjectUtils::build_common_struct_member(member_id_var_union_several_fields_with_default, member_flags_var_union_several_fields_with_default, type_ids_UnionSeveralFieldsWithDefault.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure var_union_several_fields_with_default member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure var_union_several_fields_with_default member TypeIdentifier inconsistent."); return; } MemberName name_var_union_several_fields_with_default = "var_union_several_fields_with_default"; @@ -24241,21 +6930,11 @@ void register_UnionSeveralFieldsWithDefault_type_identifier( } CompleteStructType struct_type_UnionSeveralFieldsWithDefault = TypeObjectUtils::build_complete_struct_type(struct_flags_UnionSeveralFieldsWithDefault, header_UnionSeveralFieldsWithDefault, member_seq_UnionSeveralFieldsWithDefault); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSeveralFieldsWithDefault, type_name_UnionSeveralFieldsWithDefault.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_UnionSeveralFieldsWithDefault, type_name_UnionSeveralFieldsWithDefault.to_string(), type_ids_UnionSeveralFieldsWithDefault)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "UnionSeveralFieldsWithDefault already registered in TypeObjectRegistry for a different type."); } - return_code_UnionSeveralFieldsWithDefault = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "UnionSeveralFieldsWithDefault", type_ids_UnionSeveralFieldsWithDefault); - if (return_code_UnionSeveralFieldsWithDefault != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "UnionSeveralFieldsWithDefault: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/dds-types-test/unionsTypeObjectSupport.hpp b/test/dds-types-test/unionsTypeObjectSupport.hpp index 618af612dbc..41438137bdb 100644 --- a/test/dds-types-test/unionsTypeObjectSupport.hpp +++ b/test/dds-types-test/unionsTypeObjectSupport.hpp @@ -36,11 +36,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_unions_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -54,7 +49,7 @@ eProsima_user_DllExport void register_unions_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Short_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_UShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -66,7 +61,7 @@ eProsima_user_DllExport void register_Union_Short_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_UShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Long related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -78,7 +73,7 @@ eProsima_user_DllExport void register_Union_UShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Long_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_ULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -90,7 +85,7 @@ eProsima_user_DllExport void register_Union_Long_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_ULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_LongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -102,7 +97,7 @@ eProsima_user_DllExport void register_Union_ULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_LongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_ULongLOng related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -114,7 +109,7 @@ eProsima_user_DllExport void register_Union_LongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_ULongLOng_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Float related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -126,7 +121,7 @@ eProsima_user_DllExport void register_Union_ULongLOng_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Float_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Double related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -138,7 +133,7 @@ eProsima_user_DllExport void register_Union_Float_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Double_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_LongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -150,7 +145,7 @@ eProsima_user_DllExport void register_Union_Double_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_LongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Boolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -162,7 +157,7 @@ eProsima_user_DllExport void register_Union_LongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Boolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Octet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -174,7 +169,7 @@ eProsima_user_DllExport void register_Union_Boolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Octet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Char related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -186,7 +181,7 @@ eProsima_user_DllExport void register_Union_Octet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Char_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_WChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -198,7 +193,7 @@ eProsima_user_DllExport void register_Union_Char_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_WChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_String related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -210,7 +205,7 @@ eProsima_user_DllExport void register_Union_WChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_String_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_WString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -222,7 +217,7 @@ eProsima_user_DllExport void register_Union_String_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_WString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_BoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -234,7 +229,7 @@ eProsima_user_DllExport void register_Union_WString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_BoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_BoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -246,7 +241,7 @@ eProsima_user_DllExport void register_Union_BoundedString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_BoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -258,7 +253,7 @@ eProsima_user_DllExport void register_Union_BoundedWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -270,7 +265,7 @@ eProsima_user_DllExport void register_Union_InnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -282,7 +277,7 @@ eProsima_user_DllExport void register_Union_InnerBitMaskHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Array related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -294,7 +289,7 @@ eProsima_user_DllExport void register_Union_InnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Array_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Sequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -306,7 +301,7 @@ eProsima_user_DllExport void register_Union_Array_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Sequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Map related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -318,7 +313,7 @@ eProsima_user_DllExport void register_Union_Sequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Map_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -330,7 +325,7 @@ eProsima_user_DllExport void register_Union_Map_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -342,7 +337,7 @@ eProsima_user_DllExport void register_Union_InnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_InnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -354,7 +349,7 @@ eProsima_user_DllExport void register_Union_InnerStructureHelper_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_InnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_short related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -366,7 +361,7 @@ eProsima_user_DllExport void register_Union_InnerBitsetHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_short_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_unsigned_short related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -378,7 +373,7 @@ eProsima_user_DllExport void register_Union_Discriminator_short_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_unsigned_short_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_long related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -390,7 +385,7 @@ eProsima_user_DllExport void register_Union_Discriminator_unsigned_short_type_id * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_long_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_unsigned_long related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -402,7 +397,7 @@ eProsima_user_DllExport void register_Union_Discriminator_long_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_unsigned_long_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_long_long related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -414,7 +409,7 @@ eProsima_user_DllExport void register_Union_Discriminator_unsigned_long_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_long_long_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_unsigned_long_long related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -426,7 +421,7 @@ eProsima_user_DllExport void register_Union_Discriminator_long_long_type_identif * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_unsigned_long_long_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_boolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -438,7 +433,7 @@ eProsima_user_DllExport void register_Union_Discriminator_unsigned_long_long_typ * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_boolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_octet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -450,7 +445,7 @@ eProsima_user_DllExport void register_Union_Discriminator_boolean_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_octet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_char related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -462,7 +457,7 @@ eProsima_user_DllExport void register_Union_Discriminator_octet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_char_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_wchar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -474,7 +469,7 @@ eProsima_user_DllExport void register_Union_Discriminator_char_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_wchar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_enum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -486,7 +481,7 @@ eProsima_user_DllExport void register_Union_Discriminator_wchar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_enum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_enum_labels related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -498,7 +493,7 @@ eProsima_user_DllExport void register_Union_Discriminator_enum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_enum_labels_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Discriminator_alias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -510,7 +505,7 @@ eProsima_user_DllExport void register_Union_Discriminator_enum_labels_type_ident * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Discriminator_alias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Several_Fields related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -522,7 +517,7 @@ eProsima_user_DllExport void register_Union_Discriminator_alias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Several_Fields_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register Union_Several_Fields_With_Default related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -534,7 +529,7 @@ eProsima_user_DllExport void register_Union_Several_Fields_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_Union_Several_Fields_With_Default_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -546,7 +541,7 @@ eProsima_user_DllExport void register_Union_Several_Fields_With_Default_type_ide * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -558,7 +553,7 @@ eProsima_user_DllExport void register_UnionShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -570,7 +565,7 @@ eProsima_user_DllExport void register_UnionUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -582,7 +577,7 @@ eProsima_user_DllExport void register_UnionLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -594,7 +589,7 @@ eProsima_user_DllExport void register_UnionULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -606,7 +601,7 @@ eProsima_user_DllExport void register_UnionLongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionFloat related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -618,7 +613,7 @@ eProsima_user_DllExport void register_UnionULongLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionFloat_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -630,7 +625,7 @@ eProsima_user_DllExport void register_UnionFloat_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionLongDouble related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -642,7 +637,7 @@ eProsima_user_DllExport void register_UnionDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionLongDouble_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -654,7 +649,7 @@ eProsima_user_DllExport void register_UnionLongDouble_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -666,7 +661,7 @@ eProsima_user_DllExport void register_UnionBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -678,7 +673,7 @@ eProsima_user_DllExport void register_UnionOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -690,7 +685,7 @@ eProsima_user_DllExport void register_UnionChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -702,7 +697,7 @@ eProsima_user_DllExport void register_UnionWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -714,7 +709,7 @@ eProsima_user_DllExport void register_UnionString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionBoundedString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -726,7 +721,7 @@ eProsima_user_DllExport void register_UnionWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionBoundedString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionBoundedWString related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -738,7 +733,7 @@ eProsima_user_DllExport void register_UnionBoundedString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionBoundedWString_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerEnumHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -750,7 +745,7 @@ eProsima_user_DllExport void register_UnionBoundedWString_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerEnumHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerBitMaskHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -762,7 +757,7 @@ eProsima_user_DllExport void register_UnionInnerEnumHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerBitMaskHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerAliasHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -774,7 +769,7 @@ eProsima_user_DllExport void register_UnionInnerBitMaskHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerAliasHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionArray related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -786,7 +781,7 @@ eProsima_user_DllExport void register_UnionInnerAliasHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionArray_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionSequence related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -798,7 +793,7 @@ eProsima_user_DllExport void register_UnionArray_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionSequence_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionMap related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -810,7 +805,7 @@ eProsima_user_DllExport void register_UnionSequence_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionMap_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerUnionHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -822,7 +817,7 @@ eProsima_user_DllExport void register_UnionMap_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerUnionHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerStructureHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -834,7 +829,7 @@ eProsima_user_DllExport void register_UnionInnerUnionHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerStructureHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionInnerBitsetHelper related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -846,7 +841,7 @@ eProsima_user_DllExport void register_UnionInnerStructureHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionInnerBitsetHelper_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -858,7 +853,7 @@ eProsima_user_DllExport void register_UnionInnerBitsetHelper_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorUShort related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -870,7 +865,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorUShort_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -882,7 +877,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorUShort_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorULong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -894,7 +889,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorLong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorULong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorLongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -906,7 +901,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorULong_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorLongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorULongLong related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -918,7 +913,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorLongLong_type_identifier * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorULongLong_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorBoolean related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -930,7 +925,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorULongLong_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorBoolean_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorOctet related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -942,7 +937,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorBoolean_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorOctet_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -954,7 +949,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorOctet_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorWChar related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -966,7 +961,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorWChar_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorEnum related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -978,7 +973,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorWChar_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorEnum_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorEnumLabel related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -990,7 +985,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorEnum_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorEnumLabel_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionDiscriminatorAlias related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1002,7 +997,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorEnumLabel_type_identifie * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionDiscriminatorAlias_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionSeveralFields related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1014,7 +1009,7 @@ eProsima_user_DllExport void register_UnionDiscriminatorAlias_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionSeveralFields_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register UnionSeveralFieldsWithDefault related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -1026,7 +1021,7 @@ eProsima_user_DllExport void register_UnionSeveralFields_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_UnionSeveralFieldsWithDefault_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/feature/dynamic_types/DynamicTypesDDSTypesTest.cpp b/test/feature/dynamic_types/DynamicTypesDDSTypesTest.cpp index 398f4c4858e..2d2a4cb8506 100644 --- a/test/feature/dynamic_types/DynamicTypesDDSTypesTest.cpp +++ b/test/feature/dynamic_types/DynamicTypesDDSTypesTest.cpp @@ -25,6 +25,7 @@ #include #include #include +#include namespace eprosima { namespace fastdds { @@ -45,16 +46,19 @@ void DynamicTypesDDSTypesTest::TearDown() void DynamicTypesDDSTypesTest::check_typeobject_registry( const DynamicType::_ref_type& dyn_type, - const xtypes::TypeIdentifier& static_type_id) + const xtypes::TypeIdentifierPair& static_type_ids) { - EXPECT_NE(static_type_id, xtypes::TypeIdentifier()); - xtypes::TypeIdentifier dynamic_type_id; + EXPECT_NE(static_type_ids.type_identifier1(), xtypes::TypeIdentifier()); + EXPECT_NE(static_type_ids.type_identifier2(), xtypes::TypeIdentifier()); + xtypes::TypeIdentifierPair dynamic_type_ids; EXPECT_EQ(RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry(). - register_typeobject_w_dynamic_type(dyn_type, dynamic_type_id)); - EXPECT_EQ(static_type_id, dynamic_type_id); + register_typeobject_w_dynamic_type(dyn_type, dynamic_type_ids)); + EXPECT_EQ(static_type_ids.type_identifier1(), dynamic_type_ids.type_identifier1()); + EXPECT_EQ(static_type_ids.type_identifier2(), dynamic_type_ids.type_identifier2()); xtypes::TypeObject type_object; + bool ec {false}; EXPECT_EQ(RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( - dynamic_type_id, type_object)); + xtypes::TypeObjectUtils::retrieve_complete_type_identifier(dynamic_type_ids, ec), type_object)); DynamicTypeBuilder::_ref_type builder = DynamicTypeBuilderFactory::get_instance()->create_type_w_type_object( type_object); ASSERT_NE(builder, nullptr); diff --git a/test/feature/dynamic_types/DynamicTypesDDSTypesTest.hpp b/test/feature/dynamic_types/DynamicTypesDDSTypesTest.hpp index 6fbe9a06aec..86aff68fcc8 100644 --- a/test/feature/dynamic_types/DynamicTypesDDSTypesTest.hpp +++ b/test/feature/dynamic_types/DynamicTypesDDSTypesTest.hpp @@ -141,7 +141,7 @@ class DynamicTypesDDSTypesTest : public ::testing::Test static void check_typeobject_registry( const DynamicType::_ref_type& dyn_type, - const xtypes::TypeIdentifier& static_type_id); + const xtypes::TypeIdentifierPair& static_type_ids); /** * Auxiliary methods to create helper types diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAliasesDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAliasesDDSTypesTests.cpp index ecf0cbf091b..53a7b0e2d26 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAliasesDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAliasesDDSTypesTests.cpp @@ -125,9 +125,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasInt16) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasInt16_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasInt16_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -169,9 +169,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasUint16) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasUint16_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasUint16_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -213,9 +213,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasInt32) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasInt32_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasInt32_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -257,9 +257,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasUInt32) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasUInt32_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasUInt32_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -301,9 +301,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasInt64) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasInt64_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasInt64_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -345,9 +345,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasUInt64) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasUInt64_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasUInt64_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -389,9 +389,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasFloat32) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasFloat32_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasFloat32_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -433,9 +433,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasFloat64) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasFloat64_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasFloat64_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -477,9 +477,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasFloat128) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasFloat128_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasFloat128_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -521,9 +521,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasBool) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasBool_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasBool_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -565,9 +565,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasOctet) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -609,9 +609,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasChar8) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasChar8_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasChar8_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -653,9 +653,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasChar16) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasChar16_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasChar16_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -698,9 +698,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasString8) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasString8_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasString8_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -743,9 +743,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasString16) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasString16_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasString16_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -788,9 +788,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasEnum) EXPECT_EQ(static_cast(alias_data.value()), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -833,9 +833,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasBitmask) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasBitmask_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasBitmask_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -877,9 +877,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasAlias) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -927,9 +927,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasArray) } } - xtypes::TypeIdentifier static_type_id; - register_AliasArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -980,9 +980,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasMultiArray) } } - xtypes::TypeIdentifier static_type_id; - register_AliasMultiArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasMultiArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1026,9 +1026,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasSequence) EXPECT_EQ(alias_data.value(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasSequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasSequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1091,9 +1091,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasMap) EXPECT_EQ(data->return_loaned_value(map_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_AliasMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1147,9 +1147,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasUnion) EXPECT_EQ(alias_data.value().shortValue(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasUnion_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasUnion_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1204,9 +1204,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasStruct) EXPECT_EQ(alias_data.value().field2(), test_float_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1273,9 +1273,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AliasBitset) EXPECT_EQ(alias_data.value().d, test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_AliasBitset_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AliasBitset_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAnnotationsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAnnotationsDDSTypesTests.cpp index 3324b99cdd7..a542c1d6a9a 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAnnotationsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAnnotationsDDSTypesTests.cpp @@ -30,6 +30,9 @@ #include #include +constexpr const char* var_basic_short_name = "var_basic_short"; +constexpr const char* basic_annotations_member_name = "basic_annotations_member"; + namespace eprosima { namespace fastdds { namespace dds { @@ -219,9 +222,60 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_EmptyAnnotatedStruct) check_serialization_deserialization(struct_type, data, encoding, struct_data, static_pubsubType); } - xtypes::TypeIdentifier static_type_id; - register_EmptyAnnotatedStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_EmptyAnnotatedStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); + + EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); +} + +TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BasicAnnotationsTest) +{ + DynamicTypeBuilderFactory::_ref_type factory {DynamicTypeBuilderFactory::get_instance()}; + + TypeDescriptor::_ref_type type_descriptor {traits::make_shared()}; + type_descriptor->kind(TK_STRUCTURE); + type_descriptor->name("BasicAnnotationsStruct"); + DynamicTypeBuilder::_ref_type type_builder {factory->create_type(type_descriptor)}; + ASSERT_TRUE(type_builder); + + AnnotationDescriptor::_ref_type annotation_descriptor {traits::make_shared()}; + TypeDescriptor::_ref_type annotation_type {traits::make_shared()}; + annotation_type->kind(TK_ANNOTATION); + annotation_type->name("BasicAnnotationsTest"); + DynamicTypeBuilder::_ref_type annotation_builder {factory->create_type(annotation_type)}; + + MemberDescriptor::_ref_type annotation_parameter {traits::make_shared()}; + annotation_parameter->name(var_basic_short_name); + annotation_parameter->type(factory->get_primitive_type(TK_INT16)); + annotation_builder->add_member(annotation_parameter); + + annotation_descriptor->type(annotation_builder->build()); + annotation_descriptor->set_value(var_basic_short_name, std::to_string(1)); + + type_builder->apply_annotation(annotation_descriptor); + + MemberDescriptor::_ref_type member_descriptor {traits::make_shared()}; + member_descriptor->name(basic_annotations_member_name); + member_descriptor->type(DynamicTypeBuilderFactory::get_instance()->get_primitive_type(TK_INT16)); + type_builder->add_member(member_descriptor); + type_builder->apply_annotation_to_member(0, annotation_descriptor); + + DynamicType::_ref_type struct_type {type_builder->build()}; + + DynamicData::_ref_type data {DynamicDataFactory::get_instance()->create_data(struct_type)}; + ASSERT_TRUE(data); + + for (auto encoding : encodings) + { + BasicAnnotationsStruct struct_data; + TypeSupport static_pubsubType {new BasicAnnotationsStructPubSubType()}; + check_serialization_deserialization(struct_type, data, encoding, struct_data, static_pubsubType); + } + + xtypes::TypeIdentifierPair static_type_ids; + register_BasicAnnotationsStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAppendableDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAppendableDDSTypesTests.cpp index 98774284f75..d31d8d80748 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesAppendableDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesAppendableDDSTypesTests.cpp @@ -100,9 +100,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableShortStruct) EXPECT_EQ(struct_data.var_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -139,9 +139,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableUShortStruct) EXPECT_EQ(struct_data.var_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableUShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableUShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -178,9 +178,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableLongStruct) EXPECT_EQ(struct_data.var_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -217,9 +217,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableULongStruct) EXPECT_EQ(struct_data.var_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableULongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableULongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -256,9 +256,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableLongLongStruct) EXPECT_EQ(struct_data.var_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableLongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableLongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -295,9 +295,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableULongLongStruct) EXPECT_EQ(struct_data.var_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableULongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableULongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -334,9 +334,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableFloatStruct) EXPECT_EQ(struct_data.var_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableFloatStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableFloatStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -373,9 +373,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableDoubleStruct) EXPECT_EQ(struct_data.var_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -412,9 +412,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableLongDoubleStruct) EXPECT_EQ(struct_data.var_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableLongDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableLongDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -451,9 +451,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableBooleanStruct) EXPECT_EQ(struct_data.var_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableBooleanStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableBooleanStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -490,9 +490,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableOctetStruct) EXPECT_EQ(struct_data.var_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableOctetStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableOctetStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -529,9 +529,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableCharStruct) EXPECT_EQ(struct_data.var_char8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -568,9 +568,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableWCharStruct) EXPECT_EQ(struct_data.var_char16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableWCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableWCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -620,9 +620,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableUnionStruct) EXPECT_EQ(struct_data.var_union().shortValue(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableUnionStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableUnionStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -641,9 +641,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableEmptyStruct) static_pubsubType); } - xtypes::TypeIdentifier static_type_id; - register_AppendableEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -682,9 +682,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableEmptyInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableEmptyInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableEmptyInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -730,9 +730,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -765,9 +765,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableInheritanceEmptyStruct) EXPECT_EQ(struct_data.var_short(), short_test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableInheritanceEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableInheritanceEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -812,9 +812,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_AppendableExtensibilityInheritance EXPECT_EQ(struct_data.var_long(), long_test_value); } - xtypes::TypeIdentifier static_type_id; - register_AppendableExtensibilityInheritance_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_AppendableExtensibilityInheritance_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesArraysDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesArraysDDSTypesTests.cpp index f2c0899be3a..3f0e5e758fc 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesArraysDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesArraysDDSTypesTests.cpp @@ -151,9 +151,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayShort) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -194,9 +194,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayUShort) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -237,9 +237,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -280,9 +280,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayULong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -323,9 +323,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -366,9 +366,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -409,9 +409,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayFloat) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -452,9 +452,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayDouble) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -495,9 +495,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -538,9 +538,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -581,9 +581,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayOctet) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -624,9 +624,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayChar) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -667,9 +667,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayWChar) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -711,9 +711,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -757,9 +757,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayWString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -800,9 +800,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayBoundedString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayBoundedString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayBoundedString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -845,9 +845,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayBoundedWString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayBoundedWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayBoundedWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -899,9 +899,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayEnum) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -954,9 +954,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayBitMask) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayBitMask_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayBitMask_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -997,9 +997,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayAlias) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1050,9 +1050,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayShortArray) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayShortArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayShortArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1115,9 +1115,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArraySequence) EXPECT_EQ(data->return_loaned_value(array_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_ArraySequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArraySequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1207,9 +1207,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMap) EXPECT_EQ(data->return_loaned_value(array_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_ArrayMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1289,9 +1289,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayUnion) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayUnion_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayUnion_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1378,9 +1378,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayStructure) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1505,9 +1505,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayBitset) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayBitset_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayBitset_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1567,9 +1567,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionShort) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1629,9 +1629,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionUShort) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1693,9 +1693,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1757,9 +1757,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionULong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1821,9 +1821,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1885,9 +1885,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1949,9 +1949,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionFloat) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2013,9 +2013,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionDouble) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2077,9 +2077,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2139,9 +2139,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2201,9 +2201,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionOctet) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2263,9 +2263,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionChar) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2327,9 +2327,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionWChar) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2392,9 +2392,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2458,9 +2458,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionWString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2522,9 +2522,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionBoundedString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionBoundedString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionBoundedString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2587,9 +2587,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionBoundedWString) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionBoundedWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionBoundedWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2662,9 +2662,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionEnum) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2738,9 +2738,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionBitMask) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionBitMask_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionBitMask_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2802,9 +2802,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionAlias) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2878,9 +2878,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionSequence) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionSequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionSequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2972,9 +2972,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionMap) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -3063,9 +3063,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionUnion) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionUnion_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionUnion_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -3175,9 +3175,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionStructure) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -3333,9 +3333,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ArrayMultiDimensionBitset) } } - xtypes::TypeIdentifier static_type_id; - register_ArrayMultiDimensionBitset_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ArrayMultiDimensionBitset_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -3384,9 +3384,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedBigArrays) } } - xtypes::TypeIdentifier static_type_id; - register_BoundedBigArrays_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedBigArrays_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesBitsetsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesBitsetsDDSTypesTests.cpp index 73f2f5c9100..603a1d15768 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesBitsetsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesBitsetsDDSTypesTests.cpp @@ -332,9 +332,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BitsetStruct) EXPECT_EQ(data_struct.var_InnerTypedBitsetHelper4().ulong_long_bitfield, test_ulong_long_value); } - xtypes::TypeIdentifier static_type_id; - register_BitsetStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BitsetStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesEnumerationsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesEnumerationsDDSTypesTests.cpp index 6e537f0f41c..0a85a00a361 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesEnumerationsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesEnumerationsDDSTypesTests.cpp @@ -110,9 +110,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_EnumStructure) EXPECT_EQ(static_cast(struct_data.var_scoped_InnerEnumHelper()), scoped_test_value); } - xtypes::TypeIdentifier static_type_id; - register_EnumStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_EnumStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -150,9 +150,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BitMaskStructure) EXPECT_EQ(struct_data.var_InnerBitMaskHelper(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_BitMaskStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BitMaskStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -192,9 +192,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedBitMaskStructure) EXPECT_EQ(struct_data.var_InnerBoundedBitMaskHelper(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_BoundedBitMaskStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedBitMaskStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesFinalDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesFinalDDSTypesTests.cpp index 5721c7a2827..8362e79e2c1 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesFinalDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesFinalDDSTypesTests.cpp @@ -100,9 +100,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalShortStruct) EXPECT_EQ(struct_data.var_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -139,9 +139,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalUShortStruct) EXPECT_EQ(struct_data.var_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalUShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalUShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -178,9 +178,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalLongStruct) EXPECT_EQ(struct_data.var_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -217,9 +217,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalULongStruct) EXPECT_EQ(struct_data.var_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalULongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalULongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -256,9 +256,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalLongLongStruct) EXPECT_EQ(struct_data.var_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalLongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalLongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -295,9 +295,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalULongLongStruct) EXPECT_EQ(struct_data.var_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalULongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalULongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -334,9 +334,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalFloatStruct) EXPECT_EQ(struct_data.var_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalFloatStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalFloatStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -373,9 +373,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalDoubleStruct) EXPECT_EQ(struct_data.var_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -412,9 +412,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalLongDoubleStruct) EXPECT_EQ(struct_data.var_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalLongDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalLongDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -451,9 +451,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalBooleanStruct) EXPECT_EQ(struct_data.var_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalBooleanStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalBooleanStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -490,9 +490,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalOctetStruct) EXPECT_EQ(struct_data.var_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalOctetStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalOctetStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -529,9 +529,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalCharStruct) EXPECT_EQ(struct_data.var_char8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -568,9 +568,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalWCharStruct) EXPECT_EQ(struct_data.var_char16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalWCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalWCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -620,9 +620,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalUnionStruct) EXPECT_EQ(struct_data.var_union().shortValue(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalUnionStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalUnionStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -641,9 +641,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalEmptyStruct) static_pubsubType); } - xtypes::TypeIdentifier static_type_id; - register_FinalEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -682,9 +682,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalEmptyInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalEmptyInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalEmptyInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -730,9 +730,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -765,9 +765,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InheritanceEmptyStruct) EXPECT_EQ(struct_data.var_short(), short_test_value); } - xtypes::TypeIdentifier static_type_id; - register_InheritanceEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InheritanceEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -812,9 +812,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FinalExtensibilityInheritance) EXPECT_EQ(struct_data.var_long(), long_test_value); } - xtypes::TypeIdentifier static_type_id; - register_FinalExtensibilityInheritance_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FinalExtensibilityInheritance_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesInheritanceDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesInheritanceDDSTypesTests.cpp index bbd96bb64c6..a5334488ae9 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesInheritanceDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesInheritanceDDSTypesTests.cpp @@ -28,6 +28,7 @@ #include #include #include +#include const char* const inner_structure_helper_child_struct_name = "InnerStructureHelperChild"; const char* const inner_structure_helper_child_child_struct_name = "InnerStructureHelperChildChild"; @@ -284,9 +285,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InnerStructureHelperChild) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_InnerStructureHelperChild_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InnerStructureHelperChild_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -359,9 +360,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InnerStructureHelperChildChild) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_InnerStructureHelperChildChild_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InnerStructureHelperChildChild_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -403,9 +404,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InnerStructureHelperEmptyChild) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_InnerStructureHelperEmptyChild_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InnerStructureHelperEmptyChild_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -451,9 +452,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InnerStructureHelperEmptyChildChil EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_InnerStructureHelperEmptyChildChild_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InnerStructureHelperEmptyChildChild_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -496,9 +497,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_InnerEmptyStructureHelperChild) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_InnerEmptyStructureHelperChild_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_InnerEmptyStructureHelperChild_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -547,9 +548,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructAliasInheritanceStruct) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_StructAliasInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructAliasInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -827,9 +828,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructuresInheritanceStruct) EXPECT_EQ(value, struct_data); } - xtypes::TypeIdentifier static_type_id; - register_StructuresInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructuresInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -981,16 +982,18 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BitsetsChildInheritanceStruct) EXPECT_EQ(ushort_value, struct_data.var_BitsetAliasInheritanceBitset().new_bitfield); } - xtypes::TypeIdentifier static_type_id; - register_BitsetsChildInheritanceStruct_type_identifier(static_type_id); - EXPECT_NE(static_type_id, xtypes::TypeIdentifier()); - xtypes::TypeIdentifier dynamic_type_id; + xtypes::TypeIdentifierPair static_type_ids; + register_BitsetsChildInheritanceStruct_type_identifier(static_type_ids); + EXPECT_NE(static_type_ids, xtypes::TypeIdentifierPair()); + xtypes::TypeIdentifierPair dynamic_type_ids; EXPECT_EQ(RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry(). - register_typeobject_w_dynamic_type(struct_type, dynamic_type_id)); - EXPECT_EQ(static_type_id, dynamic_type_id); + register_typeobject_w_dynamic_type(struct_type, dynamic_type_ids)); + EXPECT_EQ(static_type_ids.type_identifier1(), dynamic_type_ids.type_identifier1()); + EXPECT_EQ(static_type_ids.type_identifier2(), dynamic_type_ids.type_identifier2()); xtypes::TypeObject type_object; + bool ec {false}; EXPECT_EQ(RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_object( - dynamic_type_id, type_object)); + xtypes::TypeObjectUtils::retrieve_complete_type_identifier(dynamic_type_ids, ec), type_object)); DynamicTypeBuilder::_ref_type builder = DynamicTypeBuilderFactory::get_instance()->create_type_w_type_object( type_object); ASSERT_NE(builder, nullptr); diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesMapsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesMapsDDSTypesTests.cpp index 8ef9d16a99e..08abfa185bc 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesMapsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesMapsDDSTypesTests.cpp @@ -601,9 +601,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -670,9 +670,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -739,9 +739,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -808,9 +808,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -877,9 +877,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -946,9 +946,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1015,9 +1015,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1084,9 +1084,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1153,9 +1153,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1222,9 +1222,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1291,9 +1291,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1360,9 +1360,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1429,9 +1429,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1499,9 +1499,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortString) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1569,9 +1569,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1638,9 +1638,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasBoundedStringHel } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1707,9 +1707,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasBoundedWStringHe } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1776,9 +1776,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1845,9 +1845,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1914,9 +1914,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -1983,9 +1983,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2052,9 +2052,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasSequenceHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2146,9 +2146,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2235,9 +2235,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2321,9 +2321,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2424,9 +2424,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapShortInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapShortInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapShortInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2495,9 +2495,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2564,9 +2564,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2633,9 +2633,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2702,9 +2702,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2771,9 +2771,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2840,9 +2840,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2909,9 +2909,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -2978,9 +2978,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3047,9 +3047,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3116,9 +3116,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3185,9 +3185,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3254,9 +3254,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3323,9 +3323,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3393,9 +3393,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortString) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3463,9 +3463,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3532,9 +3532,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasBoundedStringHe } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3601,9 +3601,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasBoundedWStringH } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3671,9 +3671,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerEnumHelper) } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3740,9 +3740,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3809,9 +3809,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3878,9 +3878,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -3947,9 +3947,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasSequenceHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4041,9 +4041,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4130,9 +4130,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4216,9 +4216,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4319,9 +4319,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapUShortInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapUShortInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapUShortInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4390,9 +4390,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4459,9 +4459,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4528,9 +4528,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4597,9 +4597,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4666,9 +4666,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongKeyLongLongValue) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongKeyLongLongValue_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongKeyLongLongValue_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4735,9 +4735,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4804,9 +4804,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4873,9 +4873,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -4942,9 +4942,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongKeyLongDoubleValue) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongKeyLongDoubleValue_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongKeyLongDoubleValue_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5011,9 +5011,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5080,9 +5080,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5149,9 +5149,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5218,9 +5218,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5288,9 +5288,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongString) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5358,9 +5358,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5427,9 +5427,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasBoundedStringHelp } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5496,9 +5496,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasBoundedWStringHel } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5565,9 +5565,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5634,9 +5634,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5703,9 +5703,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5772,9 +5772,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5841,9 +5841,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasSequenceHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -5935,9 +5935,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6024,9 +6024,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6110,9 +6110,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6213,9 +6213,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6284,9 +6284,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6353,9 +6353,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6422,9 +6422,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6491,9 +6491,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6560,9 +6560,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapKeyULongValueLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapKeyULongValueLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapKeyULongValueLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6629,9 +6629,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6698,9 +6698,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6767,9 +6767,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6836,9 +6836,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapKeyULongValueLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapKeyULongValueLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapKeyULongValueLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6905,9 +6905,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -6974,9 +6974,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7043,9 +7043,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7112,9 +7112,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7182,9 +7182,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongString) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7252,9 +7252,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7321,9 +7321,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasBoundedStringHel } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7390,9 +7390,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasBoundedWStringHe } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7459,9 +7459,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7528,9 +7528,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7597,9 +7597,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7666,9 +7666,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7735,9 +7735,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasSequenceHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7829,9 +7829,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -7918,9 +7918,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8004,9 +8004,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8107,9 +8107,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8178,9 +8178,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8247,9 +8247,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8316,9 +8316,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongKeyLongValue) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongKeyLongValue_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongKeyLongValue_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8385,9 +8385,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8454,9 +8454,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8523,9 +8523,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8592,9 +8592,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8661,9 +8661,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongKeyDoubleValue) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongKeyDoubleValue_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongKeyDoubleValue_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8730,9 +8730,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8799,9 +8799,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8868,9 +8868,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -8937,9 +8937,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9006,9 +9006,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9076,9 +9076,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongString) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9146,9 +9146,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9215,9 +9215,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasBoundedString } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9284,9 +9284,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasBoundedWStrin } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9353,9 +9353,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9422,9 +9422,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9491,9 +9491,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9560,9 +9560,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9629,9 +9629,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasSequenceHelpe } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9723,9 +9723,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9812,9 +9812,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -9898,9 +9898,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10001,9 +10001,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapLongLongInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapLongLongInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapLongLongInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10072,9 +10072,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10141,9 +10141,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10210,9 +10210,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10279,9 +10279,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10348,9 +10348,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10417,9 +10417,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10486,9 +10486,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10555,9 +10555,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapKeyULongLongValueDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapKeyULongLongValueDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapKeyULongLongValueDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10624,9 +10624,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10693,9 +10693,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10762,9 +10762,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10831,9 +10831,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10900,9 +10900,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -10970,9 +10970,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongString) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11040,9 +11040,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11109,9 +11109,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasBoundedStrin } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11178,9 +11178,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasBoundedWStri } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11247,9 +11247,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11316,9 +11316,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11385,9 +11385,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11454,9 +11454,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11523,9 +11523,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasSequenceHelp } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11617,9 +11617,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11706,9 +11706,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11792,9 +11792,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11895,9 +11895,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapULongLongInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapULongLongInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapULongLongInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -11966,9 +11966,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12035,9 +12035,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringUShort) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12104,9 +12104,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12173,9 +12173,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringULong) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12242,9 +12242,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringLongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12311,9 +12311,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringULongLong) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12380,9 +12380,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringFloat) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12449,9 +12449,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12518,9 +12518,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringLongDouble) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12587,9 +12587,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringBoolean) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12656,9 +12656,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringOctet) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12725,9 +12725,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12794,9 +12794,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringWChar) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12864,9 +12864,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringString) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -12934,9 +12934,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringWString) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13003,9 +13003,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasBoundedStringHe } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13072,9 +13072,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasBoundedWStringH } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13141,9 +13141,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerEnumHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13210,9 +13210,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerBitMaskHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13279,9 +13279,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13348,9 +13348,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasArrayHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13417,9 +13417,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasSequenceHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13512,9 +13512,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerAliasMapHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13602,9 +13602,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerUnionHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13689,9 +13689,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerStructureHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13793,9 +13793,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapStringInnerBitsetHelper) } } - xtypes::TypeIdentifier static_type_id; - register_MapStringInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapStringInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13865,9 +13865,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperSh } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -13933,9 +13933,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperUS } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14001,9 +14001,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperLo } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14069,9 +14069,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperUL } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14137,9 +14137,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperLo } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14205,9 +14205,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperUL } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14273,9 +14273,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperFl } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14341,9 +14341,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperDo } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14409,9 +14409,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperLo } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14477,9 +14477,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperBo } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14545,9 +14545,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperOc } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14613,9 +14613,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperCh } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14681,9 +14681,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperWC } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14750,9 +14750,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperSt } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14819,9 +14819,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperWS } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14891,9 +14891,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -14963,9 +14963,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15032,9 +15032,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15102,9 +15102,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15171,9 +15171,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15241,9 +15241,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15312,9 +15312,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15408,9 +15408,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerAliasMapHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15498,9 +15498,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15586,9 +15586,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15690,9 +15690,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MapInnerAliasBoundedStringHelperIn } } - xtypes::TypeIdentifier static_type_id; - register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MapInnerAliasBoundedStringHelperInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -15847,9 +15847,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedSmallMap) } } - xtypes::TypeIdentifier static_type_id; - register_BoundedSmallMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedSmallMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); @@ -16003,9 +16003,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedLargeMap) } } - xtypes::TypeIdentifier static_type_id; - register_BoundedLargeMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedLargeMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesMutableDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesMutableDDSTypesTests.cpp index a9b8e9f8acf..ea4bf1efab6 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesMutableDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesMutableDDSTypesTests.cpp @@ -100,9 +100,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableShortStruct) EXPECT_EQ(struct_data.var_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -139,9 +139,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableUShortStruct) EXPECT_EQ(struct_data.var_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableUShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableUShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -178,9 +178,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableLongStruct) EXPECT_EQ(struct_data.var_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -217,9 +217,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableULongStruct) EXPECT_EQ(struct_data.var_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableULongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableULongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -256,9 +256,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableLongLongStruct) EXPECT_EQ(struct_data.var_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableLongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableLongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -295,9 +295,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableULongLongStruct) EXPECT_EQ(struct_data.var_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableULongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableULongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -334,9 +334,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableFloatStruct) EXPECT_EQ(struct_data.var_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableFloatStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableFloatStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -373,9 +373,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableDoubleStruct) EXPECT_EQ(struct_data.var_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -412,9 +412,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableLongDoubleStruct) EXPECT_EQ(struct_data.var_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableLongDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableLongDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -451,9 +451,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableBooleanStruct) EXPECT_EQ(struct_data.var_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableBooleanStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableBooleanStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -490,9 +490,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableOctetStruct) EXPECT_EQ(struct_data.var_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableOctetStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableOctetStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -529,9 +529,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableCharStruct) EXPECT_EQ(struct_data.var_char8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -568,9 +568,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableWCharStruct) EXPECT_EQ(struct_data.var_char16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableWCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableWCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -620,9 +620,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableUnionStruct) EXPECT_EQ(struct_data.var_union().shortValue(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableUnionStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableUnionStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -641,9 +641,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableEmptyStruct) static_pubsubType); } - xtypes::TypeIdentifier static_type_id; - register_MutableEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -682,9 +682,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableEmptyInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableEmptyInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableEmptyInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -730,9 +730,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableInheritanceStruct) EXPECT_EQ(struct_data.var_str(), str_test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableInheritanceStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableInheritanceStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -765,9 +765,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableInheritanceEmptyStruct) EXPECT_EQ(struct_data.var_short(), short_test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableInheritanceEmptyStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableInheritanceEmptyStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -812,9 +812,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_MutableExtensibilityInheritance) EXPECT_EQ(struct_data.var_long(), long_test_value); } - xtypes::TypeIdentifier static_type_id; - register_MutableExtensibilityInheritance_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_MutableExtensibilityInheritance_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesPrimitivesDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesPrimitivesDDSTypesTests.cpp index a835dcc0d68..38505affed8 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesPrimitivesDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesPrimitivesDDSTypesTests.cpp @@ -94,9 +94,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ShortStruct) EXPECT_EQ(struct_data.var_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_ShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -135,9 +135,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UShortStruct) EXPECT_EQ(struct_data.var_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UShortStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UShortStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -176,9 +176,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_LongStruct) EXPECT_EQ(struct_data.var_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_LongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_LongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -217,9 +217,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ULongStruct) EXPECT_EQ(struct_data.var_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_ULongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ULongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -258,9 +258,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_LongLongStruct) EXPECT_EQ(struct_data.var_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_LongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_LongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -299,9 +299,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_ULongLongStruct) EXPECT_EQ(struct_data.var_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_ULongLongStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_ULongLongStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -340,9 +340,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_FloatStruct) EXPECT_EQ(struct_data.var_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_FloatStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_FloatStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -381,9 +381,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_DoubleStruct) EXPECT_EQ(struct_data.var_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_DoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_DoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -422,9 +422,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_LongDoubleStruct) EXPECT_EQ(struct_data.var_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_LongDoubleStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_LongDoubleStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -463,9 +463,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BooleanStruct) EXPECT_EQ(alias_data.var_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_BooleanStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BooleanStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -504,9 +504,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_OctetStruct) EXPECT_EQ(alias_data.var_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_OctetStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_OctetStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -545,9 +545,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_CharStruct) EXPECT_EQ(alias_data.var_char8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_CharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_CharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -586,9 +586,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_WCharStruct) EXPECT_EQ(alias_data.var_char16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_WCharStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_WCharStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -627,9 +627,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Int8Struct) EXPECT_EQ(struct_data.var_int8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Int8Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Int8Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -668,9 +668,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Uint8Struct) EXPECT_EQ(struct_data.var_uint8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Uint8Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Uint8Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -709,9 +709,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Int16Struct) EXPECT_EQ(struct_data.var_int16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Int16Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Int16Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -750,9 +750,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Uint16Struct) EXPECT_EQ(struct_data.var_uint16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Uint16Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Uint16Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -791,9 +791,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Int32Struct) EXPECT_EQ(struct_data.var_int32(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Int32Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Int32Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -832,9 +832,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Uint32Struct) EXPECT_EQ(struct_data.var_uint32(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Uint32Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Uint32Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -873,9 +873,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Int64Struct) EXPECT_EQ(struct_data.var_int64(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Int64Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Int64Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -914,9 +914,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_Uint64Struct) EXPECT_EQ(struct_data.var_uint64(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_Uint64Struct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Uint64Struct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesSequencesDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesSequencesDDSTypesTests.cpp index 9ad148a3e09..a267f056a81 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesSequencesDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesSequencesDDSTypesTests.cpp @@ -123,9 +123,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceShort) EXPECT_EQ(struct_data.var_sequence_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -162,9 +162,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceUShort) EXPECT_EQ(struct_data.var_sequence_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -201,9 +201,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceLong) EXPECT_EQ(struct_data.var_sequence_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -240,9 +240,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceULong) EXPECT_EQ(struct_data.var_sequence_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -279,9 +279,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceLongLong) EXPECT_EQ(struct_data.var_sequence_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -318,9 +318,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceULongLong) EXPECT_EQ(struct_data.var_sequence_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -357,9 +357,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceFloat) EXPECT_EQ(struct_data.var_sequence_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -396,9 +396,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceDouble) EXPECT_EQ(struct_data.var_sequence_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -435,9 +435,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceLongDouble) EXPECT_EQ(struct_data.var_sequence_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -474,9 +474,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceBoolean) EXPECT_EQ(struct_data.var_sequence_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -513,9 +513,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceOctet) EXPECT_EQ(struct_data.var_sequence_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -552,9 +552,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceChar) EXPECT_EQ(struct_data.var_sequence_char(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -591,9 +591,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceWChar) EXPECT_EQ(struct_data.var_sequence_wchar(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -631,9 +631,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceString) EXPECT_EQ(struct_data.var_sequence_string(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -671,9 +671,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceWString) EXPECT_EQ(struct_data.var_sequence_wstring(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -714,9 +714,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceStringBounded) } } - xtypes::TypeIdentifier static_type_id; - register_SequenceStringBounded_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceStringBounded_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -757,9 +757,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceWStringBounded) } } - xtypes::TypeIdentifier static_type_id; - register_SequenceWStringBounded_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceWStringBounded_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -802,9 +802,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceEnum) } } - xtypes::TypeIdentifier static_type_id; - register_SequenceEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -843,9 +843,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceBitMask) EXPECT_EQ(struct_data.var_sequence_bitmask(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceBitMask_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceBitMask_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -881,9 +881,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceAlias) EXPECT_EQ(struct_data.var_sequence_alias(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SequenceAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -937,9 +937,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceShortArray) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceShortArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceShortArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -987,9 +987,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceSequence) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceSequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceSequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1066,9 +1066,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceMap) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1138,9 +1138,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceUnion) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceUnion_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceUnion_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1213,9 +1213,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceStructure) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1318,9 +1318,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SequenceBitset) EXPECT_EQ(data->return_loaned_value(seq_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_SequenceBitset_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SequenceBitset_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1372,9 +1372,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedSmallSequences) EXPECT_EQ(struct_data.var_unbounded_string_small_bounded_sequence(), test_string_value); } - xtypes::TypeIdentifier static_type_id; - register_BoundedSmallSequences_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedSmallSequences_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1427,9 +1427,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_BoundedBigSequences) EXPECT_EQ(struct_data.var_unbounded_string_large_bounded_sequence(), test_string_value); } - xtypes::TypeIdentifier static_type_id; - register_BoundedBigSequences_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_BoundedBigSequences_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesStringsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesStringsDDSTypesTests.cpp index ee47c849fc8..45df87f7a4a 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesStringsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesStringsDDSTypesTests.cpp @@ -76,9 +76,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StringStruct) EXPECT_EQ(struct_data.var_string8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -114,9 +114,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_WStringStruct) EXPECT_EQ(struct_data.var_string16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_WStringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_WStringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -151,9 +151,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SmallStringStruct) EXPECT_EQ(struct_data.var_small_string(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SmallStringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SmallStringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -188,9 +188,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_SmallWStringStruct) EXPECT_EQ(struct_data.var_small_wstring(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_SmallWStringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_SmallWStringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -225,9 +225,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_LargeStringStruct) EXPECT_EQ(struct_data.var_large_string(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_LargeStringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_LargeStringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -262,9 +262,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_LargeWStringStruct) EXPECT_EQ(struct_data.var_large_wstring(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_LargeWStringStruct_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_LargeWStringStruct_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesStructuresDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesStructuresDDSTypesTests.cpp index 11ca30a73ce..e2393bf4c66 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesStructuresDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesStructuresDDSTypesTests.cpp @@ -551,9 +551,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructShort) EXPECT_EQ(struct_data.var_short(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -579,9 +579,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructUnsignedShort) EXPECT_EQ(struct_data.var_ushort(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructUnsignedShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructUnsignedShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -607,9 +607,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructLong) EXPECT_EQ(struct_data.var_long(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -635,9 +635,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructUnsignedLong) EXPECT_EQ(struct_data.var_ulong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructUnsignedLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructUnsignedLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -663,9 +663,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructLongLong) EXPECT_EQ(struct_data.var_longlong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -691,9 +691,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructUnsignedLongLong) EXPECT_EQ(struct_data.var_ulonglong(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructUnsignedLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructUnsignedLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -719,9 +719,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructFloat) EXPECT_EQ(struct_data.var_float(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -747,9 +747,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructDouble) EXPECT_EQ(struct_data.var_double(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -775,9 +775,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructLongDouble) EXPECT_EQ(struct_data.var_longdouble(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -803,9 +803,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructBoolean) EXPECT_EQ(struct_data.var_boolean(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -831,9 +831,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructOctet) EXPECT_EQ(struct_data.var_octet(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -859,9 +859,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructChar8) EXPECT_EQ(struct_data.var_char8(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructChar8_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructChar8_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -887,9 +887,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructChar16) EXPECT_EQ(struct_data.var_char16(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructChar16_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructChar16_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -915,9 +915,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructString) EXPECT_EQ(struct_data.var_string(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -943,9 +943,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructWString) EXPECT_EQ(struct_data.var_wstring(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -971,9 +971,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructBoundedString) EXPECT_EQ(struct_data.var_bounded_string(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructBoundedString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructBoundedString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -999,9 +999,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructBoundedWString) EXPECT_EQ(struct_data.var_bounded_wstring(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructBoundedWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructBoundedWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1028,9 +1028,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructEnum) EXPECT_EQ(static_cast(struct_data.var_enum()), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1057,9 +1057,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructBitMask) EXPECT_EQ(struct_data.var_bitmask(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructBitMask_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructBitMask_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1085,9 +1085,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructAlias) EXPECT_EQ(struct_data.var_alias(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1117,9 +1117,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructShortArray) } } - xtypes::TypeIdentifier static_type_id; - register_StructShortArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructShortArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1145,9 +1145,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructSequence) EXPECT_EQ(struct_data.var_sequence(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_StructSequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructSequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1191,9 +1191,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructMap) EXPECT_EQ(data->return_loaned_value(map_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_StructMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1231,9 +1231,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructUnion) EXPECT_EQ(struct_data.var_union().shortValue(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_StructUnion_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructUnion_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1272,9 +1272,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructStructure) EXPECT_EQ(data_struct.var_structure().field2(), test_float_value); } - xtypes::TypeIdentifier static_type_id; - register_StructStructure_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructStructure_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1325,9 +1325,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructBitset) EXPECT_EQ(data_struct.var_bitset().d, test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_StructBitset_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructBitset_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1339,9 +1339,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructEmpty) DynamicData::_ref_type data {DynamicDataFactory::get_instance()->create_data(struct_type)}; ASSERT_TRUE(data); - xtypes::TypeIdentifier static_type_id; - register_StructEmpty_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_StructEmpty_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1843,9 +1843,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_StructStructures) check_structure_static_data(data, struct_data, testing_values); } - xtypes::TypeIdentifier static_type_id; - register_Structures_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_Structures_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/feature/dynamic_types/dds_types_tests/DynamicTypesUnionsDDSTypesTests.cpp b/test/feature/dynamic_types/dds_types_tests/DynamicTypesUnionsDDSTypesTests.cpp index ecd25814de2..9ca0144984e 100644 --- a/test/feature/dynamic_types/dds_types_tests/DynamicTypesUnionsDDSTypesTests.cpp +++ b/test/feature/dynamic_types/dds_types_tests/DynamicTypesUnionsDDSTypesTests.cpp @@ -70,6 +70,8 @@ constexpr const char* struct_union_wchar_discriminator_name = "UnionDiscriminato constexpr const char* struct_union_enum_discriminator_name = "UnionDiscriminatorEnum"; constexpr const char* struct_union_enum_label_discriminator_name = "UnionDiscriminatorEnumLabel"; constexpr const char* struct_union_alias_discriminator_name = "UnionDiscriminatorAlias"; +constexpr const char* struct_union_several_fields_name = "UnionSeveralFields"; +constexpr const char* struct_union_several_fields_with_default_name = "UnionSeveralFieldsWithDefault"; constexpr const char* union_short_name = "Union_Short"; constexpr const char* union_ushort_name = "Union_UShort"; @@ -110,6 +112,8 @@ constexpr const char* union_wchar_discriminator_name = "Union_Discriminator_wcha constexpr const char* union_enum_discriminator_name = "Union_Discriminator_enum"; constexpr const char* union_enum_label_discriminator_name = "Union_Discriminator_enum_labels"; constexpr const char* union_alias_discriminator_name = "Union_Discriminator_alias"; +constexpr const char* union_several_fields_name = "Union_Several_Fields"; +constexpr const char* union_several_fields_with_default_name = "Union_Several_Fields_With_Default"; constexpr const char* var_union_short_name = "var_union_short"; constexpr const char* var_union_ushort_name = "var_union_ushort"; @@ -149,6 +153,8 @@ constexpr const char* var_union_char_discriminator_name = "var_union_discriminat constexpr const char* var_union_wchar_discriminator_name = "var_union_discriminator_wchar"; constexpr const char* var_union_enum_discriminator_name = "var_union_discriminator_enum"; constexpr const char* var_union_alias_discriminator_name = "var_union_discriminator_alias"; +constexpr const char* var_union_several_fields_name = "var_union_several_fields"; +constexpr const char* var_union_several_fields_with_default_name = "var_union_several_fields_with_default"; constexpr const char* var_union_member_a = "a"; constexpr const char* var_union_member_b = "b"; @@ -227,9 +233,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionShort) EXPECT_EQ(struct_data.var_union_short().a(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -281,9 +287,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionUShort) EXPECT_EQ(struct_data.var_union_ushort().b(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -335,9 +341,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionLong) EXPECT_EQ(struct_data.var_union_long().c(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -389,9 +395,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionULong) EXPECT_EQ(struct_data.var_union_ulong().d(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -443,9 +449,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionLongLong) EXPECT_EQ(struct_data.var_union_long_long().e(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -497,9 +503,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionULongLong) EXPECT_EQ(struct_data.var_union_ulong_long().f(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -551,9 +557,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionFloat) EXPECT_EQ(struct_data.var_union_float().g(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionFloat_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionFloat_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -605,9 +611,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDouble) EXPECT_EQ(struct_data.var_union_double().h(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -659,9 +665,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionLongDouble) EXPECT_EQ(struct_data.var_union_long_double().i(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionLongDouble_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionLongDouble_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -713,9 +719,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionBoolean) EXPECT_EQ(struct_data.var_union_boolean().j(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -767,9 +773,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionOctet) EXPECT_EQ(struct_data.var_union_octet().k(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -821,9 +827,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionChar) EXPECT_EQ(struct_data.var_union_char().l(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -875,9 +881,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionWChar) EXPECT_EQ(struct_data.var_union_wchar().m(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -930,9 +936,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionString) EXPECT_EQ(struct_data.var_union_string().n(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -985,9 +991,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionWString) EXPECT_EQ(struct_data.var_union_wstring().o(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1039,9 +1045,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionBoundedString) EXPECT_EQ(struct_data.var_union_bounded_string().bn(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionBoundedString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionBoundedString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1093,9 +1099,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionBoundedWString) EXPECT_EQ(struct_data.var_union_bounded_wstring().bo(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionBoundedWString_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionBoundedWString_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1148,9 +1154,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerEnumHelper) EXPECT_EQ(static_cast(struct_data.var_union_my_enum().p()), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerEnumHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerEnumHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1203,9 +1209,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerBitMaskHelper) EXPECT_EQ(struct_data.var_union_my_bit_mask().q(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerBitMaskHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerBitMaskHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1257,9 +1263,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerAliasHelper) EXPECT_EQ(struct_data.var_union_my_alias().r(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerAliasHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerAliasHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1315,9 +1321,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionArray) } } - xtypes::TypeIdentifier static_type_id; - register_UnionArray_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionArray_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1370,9 +1376,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionSequence) EXPECT_EQ(struct_data.var_union_sequence().t(), test_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionSequence_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionSequence_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1447,9 +1453,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionMap) EXPECT_EQ(data->return_loaned_value(union_data), RETCODE_OK); } - xtypes::TypeIdentifier static_type_id; - register_UnionMap_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionMap_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1520,9 +1526,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerUnionHelper) EXPECT_EQ(struct_data.var_union_my_union().v().longValue(), test_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerUnionHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerUnionHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1587,9 +1593,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerStructureHelper) EXPECT_EQ(struct_data.var_union_my_structure().w().field2(), test_float_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerStructureHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerStructureHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1665,9 +1671,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionInnerBitsetHelper) EXPECT_EQ(struct_data.var_union_my_bitset().x().d, test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionInnerBitsetHelper_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionInnerBitsetHelper_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1733,9 +1739,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorShort) EXPECT_EQ(struct_data.var_union_discriminator_short().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1801,9 +1807,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorUShort) EXPECT_EQ(struct_data.var_union_discriminator_ushort().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorUShort_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorUShort_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1869,9 +1875,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorLong) EXPECT_EQ(struct_data.var_union_discriminator_long().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -1937,9 +1943,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorULong) EXPECT_EQ(struct_data.var_union_discriminator_ulong().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorULong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorULong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2005,9 +2011,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorLongLong) EXPECT_EQ(struct_data.var_union_discriminator_long_long().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorLongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorLongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2073,9 +2079,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorULongLong) EXPECT_EQ(struct_data.var_union_discriminator_ulong_long().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorULongLong_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorULongLong_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2141,9 +2147,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorBoolean) EXPECT_EQ(struct_data.var_union_discriminator_boolean().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorBoolean_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorBoolean_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2209,9 +2215,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorOctet) EXPECT_EQ(struct_data.var_union_discriminator_octet().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorOctet_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorOctet_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2277,9 +2283,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorChar) EXPECT_EQ(struct_data.var_union_discriminator_char().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2345,9 +2351,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorWChar) EXPECT_EQ(struct_data.var_union_discriminator_wchar().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorWChar_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorWChar_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2425,9 +2431,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorEnum) EXPECT_EQ(struct_data.var_union_discriminator_enum().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorEnum_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorEnum_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2493,9 +2499,9 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorEnumLabel) EXPECT_EQ(struct_data.var_union_discriminator_enum().second(), test_short_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorEnumLabel_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorEnumLabel_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } @@ -2563,9 +2569,173 @@ TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionDiscriminatorAlias) EXPECT_EQ(struct_data.var_union_discriminator_alias().second(), test_long_long_value); } - xtypes::TypeIdentifier static_type_id; - register_UnionDiscriminatorAlias_type_identifier(static_type_id); - check_typeobject_registry(struct_type, static_type_id); + xtypes::TypeIdentifierPair static_type_ids; + register_UnionDiscriminatorAlias_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); + + EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); +} + +TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionSeveralFields) +{ + TypeDescriptor::_ref_type type_descriptor {traits::make_shared()}; + type_descriptor->kind(TK_STRUCTURE); + type_descriptor->name(struct_union_several_fields_name); + DynamicTypeBuilder::_ref_type struct_builder {DynamicTypeBuilderFactory::get_instance()->create_type(type_descriptor)}; + + type_descriptor = traits::make_shared(); + type_descriptor->kind(TK_UNION); + type_descriptor->name(union_several_fields_name); + type_descriptor->discriminator_type(DynamicTypeBuilderFactory::get_instance()->get_primitive_type(TK_INT32)); + DynamicTypeBuilder::_ref_type union_builder {DynamicTypeBuilderFactory::get_instance()->create_type(type_descriptor)}; + + MemberDescriptor::_ref_type member_descriptor {traits::make_shared()}; + member_descriptor->name(var_union_member_a); + member_descriptor->type(create_inner_struct_helper()); + member_descriptor->label({0}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_b); + member_descriptor->type(create_inner_empty_struct_helper()); + member_descriptor->label({1}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_c); + member_descriptor->type(create_inner_alias_bounded_string_helper()); + member_descriptor->label({2}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_d); + member_descriptor->type(create_inner_alias_array_helper()); + member_descriptor->label({3}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_e); + member_descriptor->type(create_inner_alias_sequence_helper()); + member_descriptor->label({4}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_several_fields_name); + member_descriptor->type(union_builder->build()); + struct_builder->add_member(member_descriptor); + DynamicType::_ref_type struct_type {struct_builder->build()}; + + DynamicData::_ref_type data {DynamicDataFactory::get_instance()->create_data(struct_type)}; + ASSERT_TRUE(data); + DynamicData::_ref_type union_data = data->loan_value(data->get_member_id_by_name(var_union_several_fields_name)); + ASSERT_TRUE(union_data); + + Int16Seq value {16, 32, -13}; + Int16Seq test_value; + EXPECT_EQ(union_data->set_int16_values(union_data->get_member_id_by_name(var_union_member_e), value), RETCODE_OK); + EXPECT_EQ(union_data->get_int16_values(test_value, union_data->get_member_id_by_name(var_union_member_e)), + RETCODE_OK); + EXPECT_EQ(value, test_value); + EXPECT_EQ(data->return_loaned_value(union_data), RETCODE_OK); + + for (auto encoding : encodings) + { + UnionSeveralFields struct_data; + TypeSupport static_pubsubType {new UnionSeveralFieldsPubSubType()}; + check_serialization_deserialization(struct_type, data, encoding, struct_data, + static_pubsubType); + EXPECT_EQ(struct_data.var_union_several_fields().e(), test_value); + } + + xtypes::TypeIdentifierPair static_type_ids; + register_UnionSeveralFields_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); + + EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); +} + +TEST_F(DynamicTypesDDSTypesTest, DDSTypesTest_UnionSeveralFieldsWithDefault) +{ + TypeDescriptor::_ref_type type_descriptor {traits::make_shared()}; + type_descriptor->kind(TK_STRUCTURE); + type_descriptor->name(struct_union_several_fields_with_default_name); + DynamicTypeBuilder::_ref_type struct_builder {DynamicTypeBuilderFactory::get_instance()->create_type(type_descriptor)}; + + type_descriptor = traits::make_shared(); + type_descriptor->kind(TK_UNION); + type_descriptor->name(union_several_fields_with_default_name); + type_descriptor->discriminator_type(DynamicTypeBuilderFactory::get_instance()->get_primitive_type(TK_INT32)); + DynamicTypeBuilder::_ref_type union_builder {DynamicTypeBuilderFactory::get_instance()->create_type(type_descriptor)}; + + MemberDescriptor::_ref_type member_descriptor {traits::make_shared()}; + member_descriptor->name(var_union_member_a); + member_descriptor->type(create_inner_struct_helper()); + member_descriptor->label({0}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_b); + member_descriptor->type(create_inner_empty_struct_helper()); + member_descriptor->label({1}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_c); + member_descriptor->type(create_inner_alias_bounded_string_helper()); + member_descriptor->label({2}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_d); + member_descriptor->type(create_inner_alias_array_helper()); + member_descriptor->label({3}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_e); + member_descriptor->type(create_inner_alias_sequence_helper()); + member_descriptor->label({4}); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_member_f); + member_descriptor->type(DynamicTypeBuilderFactory::get_instance()->create_sequence_type( + DynamicTypeBuilderFactory::get_instance()->get_primitive_type(TK_INT16), 30)->build()); + member_descriptor->is_default_label(true); + union_builder->add_member(member_descriptor); + + member_descriptor = traits::make_shared(); + member_descriptor->name(var_union_several_fields_with_default_name); + member_descriptor->type(union_builder->build()); + struct_builder->add_member(member_descriptor); + DynamicType::_ref_type struct_type {struct_builder->build()}; + + DynamicData::_ref_type data {DynamicDataFactory::get_instance()->create_data(struct_type)}; + ASSERT_TRUE(data); + DynamicData::_ref_type union_data = + data->loan_value(data->get_member_id_by_name(var_union_several_fields_with_default_name)); + ASSERT_TRUE(union_data); + + Int16Seq value {16, 32, -13}; + Int16Seq test_value; + EXPECT_EQ(union_data->set_int16_values(union_data->get_member_id_by_name(var_union_member_f), value), RETCODE_OK); + EXPECT_EQ(union_data->get_int16_values(test_value, union_data->get_member_id_by_name(var_union_member_f)), + RETCODE_OK); + EXPECT_EQ(value, test_value); + EXPECT_EQ(data->return_loaned_value(union_data), RETCODE_OK); + + for (auto encoding : encodings) + { + UnionSeveralFieldsWithDefault struct_data; + TypeSupport static_pubsubType {new UnionSeveralFieldsWithDefaultPubSubType()}; + check_serialization_deserialization(struct_type, data, encoding, struct_data, + static_pubsubType); + EXPECT_EQ(struct_data.var_union_several_fields_with_default().f(), test_value); + } + + xtypes::TypeIdentifierPair static_type_ids; + register_UnionSeveralFieldsWithDefault_type_identifier(static_type_ids); + check_typeobject_registry(struct_type, static_type_ids); EXPECT_EQ(DynamicDataFactory::get_instance()->delete_data(data), RETCODE_OK); } diff --git a/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp b/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp index 808089e228e..7e22649897a 100644 --- a/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp +++ b/test/mock/dds/TypeObjectRegistry/fastdds/xtypes/type_representation/TypeObjectRegistry.hpp @@ -46,7 +46,15 @@ class TypeObjectRegistry : public ITypeObjectRegistry ReturnCode_t register_typeobject_w_dynamic_type( const DynamicType::_ref_type&, - TypeIdentifier&) + TypeIdentifierPair&) + { + return fastdds::dds::RETCODE_OK; + } + + ReturnCode_t get_type_information( + const TypeIdentifierPair&, + TypeInformation&, + bool = false) { return fastdds::dds::RETCODE_OK; } diff --git a/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp b/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp index 2b40626c61d..158cecdd8d8 100644 --- a/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp +++ b/test/mock/dds/TypeObjectUtils/fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp @@ -42,6 +42,12 @@ class TypeObjectUtils return false; } + static const NameHash name_hash( + const std::string&) + { + return {}; + } + }; } // xtypes diff --git a/test/profiling/allocations/AllocTestTypePubSubTypes.cxx b/test/profiling/allocations/AllocTestTypePubSubTypes.cxx index 1006b39cad8..5299dd3ba49 100644 --- a/test/profiling/allocations/AllocTestTypePubSubTypes.cxx +++ b/test/profiling/allocations/AllocTestTypePubSubTypes.cxx @@ -219,9 +219,9 @@ bool AllocTestTypePubSubType::getKey( return true; } -void AllocTestTypePubSubType::register_type_object_representation() const +void AllocTestTypePubSubType::register_type_object_representation() { - register_AllocTestType_type_objects(); + register_AllocTestType_type_identifier(type_identifiers_); } diff --git a/test/profiling/allocations/AllocTestTypePubSubTypes.h b/test/profiling/allocations/AllocTestTypePubSubTypes.h index 8ac424c490c..8651a634361 100644 --- a/test/profiling/allocations/AllocTestTypePubSubTypes.h +++ b/test/profiling/allocations/AllocTestTypePubSubTypes.h @@ -89,7 +89,7 @@ class AllocTestTypePubSubType : public eprosima::fastdds::dds::TopicDataType void* data) override; //Register TypeObject representation in Fast DDS TypeObjectRegistry - eProsima_user_DllExport void register_type_object_representation() const override; + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override diff --git a/test/profiling/allocations/AllocTestTypeTypeObjectSupport.cxx b/test/profiling/allocations/AllocTestTypeTypeObjectSupport.cxx index 0cc46b675da..0fb79a5c78c 100644 --- a/test/profiling/allocations/AllocTestTypeTypeObjectSupport.cxx +++ b/test/profiling/allocations/AllocTestTypeTypeObjectSupport.cxx @@ -38,26 +38,19 @@ using namespace eprosima::fastdds::dds::xtypes; -void register_AllocTestType_type_objects() -{ - static std::once_flag once_flag; - std::call_once(once_flag, []() - { - TypeIdentifier type_id; - register_AllocTestType_type_identifier(type_id); - - }); -} - // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_AllocTestType_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_AllocTestType) { + + ReturnCode_t return_code_AllocTestType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_AllocTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "AllocTestType", type_ids_AllocTestType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_AllocTestType) { - StructTypeFlag struct_flags_AllocTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_AllocTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_AllocTestType; - TypeIdentifierPair type_ids_AllocTestType; QualifiedTypeName type_name_AllocTestType = "AllocTestType"; eprosima::fastcdr::optional type_ann_builtin_AllocTestType; eprosima::fastcdr::optional ann_custom_AllocTestType; @@ -66,62 +59,26 @@ void register_AllocTestType_type_identifier( header_AllocTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_AllocTestType); CompleteStructMemberSeq member_seq_AllocTestType; { - return_code_AllocTestType = + TypeIdentifierPair type_ids_index; + ReturnCode_t return_code_index {eprosima::fastdds::dds::RETCODE_OK}; + return_code_index = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_AllocTestType); + "_uint32_t", type_ids_index); - if (return_code_AllocTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_index) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "index Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_index = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_index; MemberId member_id_index = 0x00000000; - if (EK_COMPLETE == type_ids_AllocTestType.type_identifier1()._d() || TK_NONE == type_ids_AllocTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AllocTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AllocTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AllocTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AllocTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AllocTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AllocTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AllocTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_AllocTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AllocTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_AllocTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_AllocTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_AllocTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_AllocTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_AllocTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_AllocTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_AllocTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AllocTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_AllocTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_AllocTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_AllocTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_AllocTestType.type_identifier2()); - } - else + bool common_index_ec {false}; + CommonStructMember common_index {TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_index, common_index_ec))}; + if (!common_index_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure index member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure index member TypeIdentifier inconsistent."); return; } MemberName name_index = "index"; @@ -133,21 +90,11 @@ void register_AllocTestType_type_identifier( } CompleteStructType struct_type_AllocTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_AllocTestType, header_AllocTestType, member_seq_AllocTestType); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_AllocTestType, type_name_AllocTestType.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_AllocTestType, type_name_AllocTestType.to_string(), type_ids_AllocTestType)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "AllocTestType already registered in TypeObjectRegistry for a different type."); } - return_code_AllocTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "AllocTestType", type_ids_AllocTestType); - if (return_code_AllocTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "AllocTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/profiling/allocations/AllocTestTypeTypeObjectSupport.hpp b/test/profiling/allocations/AllocTestTypeTypeObjectSupport.hpp index 4ea0eb2fb3c..67bef3f528e 100644 --- a/test/profiling/allocations/AllocTestTypeTypeObjectSupport.hpp +++ b/test/profiling/allocations/AllocTestTypeTypeObjectSupport.hpp @@ -35,11 +35,6 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_AllocTestType_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC /** @@ -53,7 +48,7 @@ eProsima_user_DllExport void register_AllocTestType_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_AllocTestType_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/unittest/dds/topic/DDSSQLFilter/DDSSQLFilterTests.cpp b/test/unittest/dds/topic/DDSSQLFilter/DDSSQLFilterTests.cpp index 693cb30e78c..f7dfc5fdd1f 100644 --- a/test/unittest/dds/topic/DDSSQLFilter/DDSSQLFilterTests.cpp +++ b/test/unittest/dds/topic/DDSSQLFilter/DDSSQLFilterTests.cpp @@ -149,7 +149,8 @@ class DDSSQLFilterTests : public testing::Test void SetUp() override { - register_ContentFilterTestType_type_objects(); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair type_ids; + register_ContentFilterTestType_type_identifier(type_ids); eprosima::fastdds::dds::Log::ClearConsumers(); } @@ -1017,7 +1018,8 @@ class DDSSQLFilterValueTests : public testing::TestWithParamtype_object_registry().get_type_identifiers( + "Color", type_ids_Color); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Color) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string(), type_ids_Color)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + } +}void register_Material_type_identifier( + TypeIdentifierPair& type_ids_Material) +{ + ReturnCode_t return_code_Material {eprosima::fastdds::dds::RETCODE_OK}; + return_code_Material = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_Material); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_Material) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string(), type_ids_Material)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + } +}// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_StructType_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_StructType) { + + ReturnCode_t return_code_StructType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_StructType) { - StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, true, false); - ReturnCode_t return_code_StructType; - TypeIdentifierPair type_ids_StructType; QualifiedTypeName type_name_StructType = "StructType"; eprosima::fastcdr::optional type_ann_builtin_StructType; eprosima::fastcdr::optional ann_custom_StructType; @@ -75,62 +220,26 @@ void register_StructType_type_identifier( header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); CompleteStructMemberSeq member_seq_StructType; { - return_code_StructType = + TypeIdentifierPair type_ids_char_field; + ReturnCode_t return_code_char_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructType); + "_char", type_ids_char_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_char_field; MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); - } - else + bool common_char_field_ec {false}; + CommonStructMember common_char_field {TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_char_field, common_char_field_ec))}; + if (!common_char_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure char_field member TypeIdentifier inconsistent."); return; } MemberName name_char_field = "char_field"; @@ -141,62 +250,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_uint8_field; + ReturnCode_t return_code_uint8_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructType); + "_byte", type_ids_uint8_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint8_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint8_field; MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); - } - else + bool common_uint8_field_ec {false}; + CommonStructMember common_uint8_field {TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint8_field, common_uint8_field_ec))}; + if (!common_uint8_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint8_field member TypeIdentifier inconsistent."); return; } MemberName name_uint8_field = "uint8_field"; @@ -207,62 +280,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_int16_field; + ReturnCode_t return_code_int16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructType); + "_int16_t", type_ids_int16_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int16_field; MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); - } - else + bool common_int16_field_ec {false}; + CommonStructMember common_int16_field {TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int16_field, common_int16_field_ec))}; + if (!common_int16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int16_field member TypeIdentifier inconsistent."); return; } MemberName name_int16_field = "int16_field"; @@ -273,62 +310,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_uint16_field; + ReturnCode_t return_code_uint16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructType); + "_uint16_t", type_ids_uint16_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint16_field; MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); - } - else + bool common_uint16_field_ec {false}; + CommonStructMember common_uint16_field {TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint16_field, common_uint16_field_ec))}; + if (!common_uint16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint16_field member TypeIdentifier inconsistent."); return; } MemberName name_uint16_field = "uint16_field"; @@ -339,62 +340,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_int32_field; + ReturnCode_t return_code_int32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructType); + "_int32_t", type_ids_int32_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int32_field; MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); - } - else + bool common_int32_field_ec {false}; + CommonStructMember common_int32_field {TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int32_field, common_int32_field_ec))}; + if (!common_int32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int32_field member TypeIdentifier inconsistent."); return; } MemberName name_int32_field = "int32_field"; @@ -405,62 +370,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_uint32_field; + ReturnCode_t return_code_uint32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructType); + "_uint32_t", type_ids_uint32_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint32_field; MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); - } - else + bool common_uint32_field_ec {false}; + CommonStructMember common_uint32_field {TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint32_field, common_uint32_field_ec))}; + if (!common_uint32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint32_field member TypeIdentifier inconsistent."); return; } MemberName name_uint32_field = "uint32_field"; @@ -471,62 +400,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_int64_field; + ReturnCode_t return_code_int64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructType); + "_int64_t", type_ids_int64_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int64_field; MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); - } - else + bool common_int64_field_ec {false}; + CommonStructMember common_int64_field {TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int64_field, common_int64_field_ec))}; + if (!common_int64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int64_field member TypeIdentifier inconsistent."); return; } MemberName name_int64_field = "int64_field"; @@ -537,62 +430,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_uint64_field; + ReturnCode_t return_code_uint64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructType); + "_uint64_t", type_ids_uint64_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint64_field; MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); - } - else + bool common_uint64_field_ec {false}; + CommonStructMember common_uint64_field {TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint64_field, common_uint64_field_ec))}; + if (!common_uint64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint64_field member TypeIdentifier inconsistent."); return; } MemberName name_uint64_field = "uint64_field"; @@ -603,62 +460,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_float_field; + ReturnCode_t return_code_float_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructType); + "_float", type_ids_float_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_float_field; MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); - } - else + bool common_float_field_ec {false}; + CommonStructMember common_float_field {TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_float_field, common_float_field_ec))}; + if (!common_float_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure float_field member TypeIdentifier inconsistent."); return; } MemberName name_float_field = "float_field"; @@ -669,62 +490,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_double_field; + ReturnCode_t return_code_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructType); + "_double", type_ids_double_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_double_field; MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); - } - else + bool common_double_field_ec {false}; + CommonStructMember common_double_field {TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_double_field, common_double_field_ec))}; + if (!common_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure double_field member TypeIdentifier inconsistent."); return; } MemberName name_double_field = "double_field"; @@ -735,62 +520,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_long_double_field; + ReturnCode_t return_code_long_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructType); + "_longdouble", type_ids_long_double_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_long_double_field; MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier2()); - } - else + bool common_long_double_field_ec {false}; + CommonStructMember common_long_double_field {TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_long_double_field, common_long_double_field_ec))}; + if (!common_long_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure long_double_field member TypeIdentifier inconsistent."); return; } MemberName name_long_double_field = "long_double_field"; @@ -801,62 +550,26 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_long_double_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_bool_field; + ReturnCode_t return_code_bool_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructType); + "_bool", type_ids_bool_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bool_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bool_field; MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); - } - else + bool common_bool_field_ec {false}; + CommonStructMember common_bool_field {TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bool_field, common_bool_field_ec))}; + if (!common_bool_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bool_field member TypeIdentifier inconsistent."); return; } MemberName name_bool_field = "bool_field"; @@ -867,79 +580,34 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_string_field; + ReturnCode_t return_code_string_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); + "anonymous_string_unbounded", type_ids_string_field); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_field) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_string_field; MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); - } - else + bool common_string_field_ec {false}; + CommonStructMember common_string_field {TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_string_field, common_string_field_ec))}; + if (!common_string_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure string_field member TypeIdentifier inconsistent."); return; } MemberName name_string_field = "string_field"; @@ -950,135 +618,24 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_enum_field; + ReturnCode_t return_code_enum_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Color", type_ids_enum_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_enum_field) + { + ::register_Color_type_identifier(type_ids_enum_field); } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_enum_field; MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); - } - else + bool common_enum_field_ec {false}; + CommonStructMember common_enum_field {TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_enum_field, common_enum_field_ec))}; + if (!common_enum_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure enum_field member TypeIdentifier inconsistent."); return; } MemberName name_enum_field = "enum_field"; @@ -1089,135 +646,24 @@ void register_StructType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); } { - return_code_StructType = + TypeIdentifierPair type_ids_enum2_field; + ReturnCode_t return_code_enum2_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Material", type_ids_enum2_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_enum2_field) + { + ::register_Material_type_identifier(type_ids_enum2_field); } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_enum2_field; MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); - } - else + bool common_enum2_field_ec {false}; + CommonStructMember common_enum2_field {TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_enum2_field, common_enum2_field_ec))}; + if (!common_enum2_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure enum2_field member TypeIdentifier inconsistent."); return; } MemberName name_enum2_field = "enum2_field"; @@ -1229,32 +675,26 @@ void register_StructType_type_identifier( } CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_ids_StructType)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "StructType already registered in TypeObjectRegistry for a different type."); } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } // TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method void register_ContentFilterTestType_type_identifier( - TypeIdentifier& type_id) + TypeIdentifierPair& type_ids_ContentFilterTestType) { + + ReturnCode_t return_code_ContentFilterTestType {eprosima::fastdds::dds::RETCODE_OK}; + return_code_ContentFilterTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "ContentFilterTestType", type_ids_ContentFilterTestType); + if (eprosima::fastdds::dds::RETCODE_OK != return_code_ContentFilterTestType) { - StructTypeFlag struct_flags_ContentFilterTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + StructTypeFlag struct_flags_ContentFilterTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); - ReturnCode_t return_code_ContentFilterTestType; - TypeIdentifierPair type_ids_ContentFilterTestType; QualifiedTypeName type_name_ContentFilterTestType = "ContentFilterTestType"; eprosima::fastcdr::optional type_ann_builtin_ContentFilterTestType; eprosima::fastcdr::optional ann_custom_ContentFilterTestType; @@ -1263,62 +703,26 @@ void register_ContentFilterTestType_type_identifier( header_ContentFilterTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_ContentFilterTestType); CompleteStructMemberSeq member_seq_ContentFilterTestType; { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_char_field; + ReturnCode_t return_code_char_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ContentFilterTestType); + "_char", type_ids_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_char_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_char_field; MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_char_field_ec {false}; + CommonStructMember common_char_field {TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_char_field, common_char_field_ec))}; + if (!common_char_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure char_field member TypeIdentifier inconsistent."); return; } MemberName name_char_field = "char_field"; @@ -1329,62 +733,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_char_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_uint8_field; + ReturnCode_t return_code_uint8_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ContentFilterTestType); + "_byte", type_ids_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint8_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint8_field; MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_uint8_field_ec {false}; + CommonStructMember common_uint8_field {TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint8_field, common_uint8_field_ec))}; + if (!common_uint8_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint8_field member TypeIdentifier inconsistent."); return; } MemberName name_uint8_field = "uint8_field"; @@ -1395,62 +763,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_uint8_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_int16_field; + ReturnCode_t return_code_int16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ContentFilterTestType); + "_int16_t", type_ids_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int16_field; MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_int16_field_ec {false}; + CommonStructMember common_int16_field {TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int16_field, common_int16_field_ec))}; + if (!common_int16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int16_field member TypeIdentifier inconsistent."); return; } MemberName name_int16_field = "int16_field"; @@ -1461,62 +793,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_int16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_uint16_field; + ReturnCode_t return_code_uint16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ContentFilterTestType); + "_uint16_t", type_ids_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint16_field; MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_uint16_field_ec {false}; + CommonStructMember common_uint16_field {TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint16_field, common_uint16_field_ec))}; + if (!common_uint16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint16_field member TypeIdentifier inconsistent."); return; } MemberName name_uint16_field = "uint16_field"; @@ -1527,62 +823,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_uint16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_int32_field; + ReturnCode_t return_code_int32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ContentFilterTestType); + "_int32_t", type_ids_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int32_field; MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_int32_field_ec {false}; + CommonStructMember common_int32_field {TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int32_field, common_int32_field_ec))}; + if (!common_int32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int32_field member TypeIdentifier inconsistent."); return; } MemberName name_int32_field = "int32_field"; @@ -1593,62 +853,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_int32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_uint32_field; + ReturnCode_t return_code_uint32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ContentFilterTestType); + "_uint32_t", type_ids_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint32_field; MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_uint32_field_ec {false}; + CommonStructMember common_uint32_field {TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint32_field, common_uint32_field_ec))}; + if (!common_uint32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint32_field member TypeIdentifier inconsistent."); return; } MemberName name_uint32_field = "uint32_field"; @@ -1659,62 +883,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_uint32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_int64_field; + ReturnCode_t return_code_int64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ContentFilterTestType); + "_int64_t", type_ids_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_int64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_int64_field; MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_int64_field_ec {false}; + CommonStructMember common_int64_field {TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_int64_field, common_int64_field_ec))}; + if (!common_int64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure int64_field member TypeIdentifier inconsistent."); return; } MemberName name_int64_field = "int64_field"; @@ -1725,62 +913,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_int64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_uint64_field; + ReturnCode_t return_code_uint64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ContentFilterTestType); + "_uint64_t", type_ids_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_uint64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_uint64_field; MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_uint64_field_ec {false}; + CommonStructMember common_uint64_field {TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_uint64_field, common_uint64_field_ec))}; + if (!common_uint64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure uint64_field member TypeIdentifier inconsistent."); return; } MemberName name_uint64_field = "uint64_field"; @@ -1791,62 +943,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_uint64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_float_field; + ReturnCode_t return_code_float_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ContentFilterTestType); + "_float", type_ids_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_float_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_float_field; MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_float_field_ec {false}; + CommonStructMember common_float_field {TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_float_field, common_float_field_ec))}; + if (!common_float_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure float_field member TypeIdentifier inconsistent."); return; } MemberName name_float_field = "float_field"; @@ -1857,62 +973,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_float_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_double_field; + ReturnCode_t return_code_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ContentFilterTestType); + "_double", type_ids_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_double_field; MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_double_field_ec {false}; + CommonStructMember common_double_field {TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_double_field, common_double_field_ec))}; + if (!common_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure double_field member TypeIdentifier inconsistent."); return; } MemberName name_double_field = "double_field"; @@ -1923,62 +1003,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_long_double_field; + ReturnCode_t return_code_long_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ContentFilterTestType); + "_longdouble", type_ids_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_long_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_long_double_field; MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_long_double_field_ec {false}; + CommonStructMember common_long_double_field {TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_long_double_field, common_long_double_field_ec))}; + if (!common_long_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure long_double_field member TypeIdentifier inconsistent."); return; } MemberName name_long_double_field = "long_double_field"; @@ -1989,62 +1033,26 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_long_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bool_field; + ReturnCode_t return_code_bool_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ContentFilterTestType); + "_bool", type_ids_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bool_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bool_field; MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bool_field_ec {false}; + CommonStructMember common_bool_field {TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bool_field, common_bool_field_ec))}; + if (!common_bool_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bool_field member TypeIdentifier inconsistent."); return; } MemberName name_bool_field = "bool_field"; @@ -2055,79 +1063,34 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bool_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_string_field; + ReturnCode_t return_code_string_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); + "anonymous_string_unbounded", type_ids_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_string_field) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_string_field; MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_string_field_ec {false}; + CommonStructMember common_string_field {TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_string_field, common_string_field_ec))}; + if (!common_string_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure string_field member TypeIdentifier inconsistent."); return; } MemberName name_string_field = "string_field"; @@ -2138,135 +1101,24 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_string_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_enum_field; + ReturnCode_t return_code_enum_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Color", type_ids_enum_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_enum_field) + { + ::register_Color_type_identifier(type_ids_enum_field); } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_enum_field; MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_enum_field_ec {false}; + CommonStructMember common_enum_field {TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_enum_field, common_enum_field_ec))}; + if (!common_enum_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure enum_field member TypeIdentifier inconsistent."); return; } MemberName name_enum_field = "enum_field"; @@ -2277,135 +1129,24 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_enum_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_enum2_field; + ReturnCode_t return_code_enum2_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Material", type_ids_enum2_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_enum2_field) + { + ::register_Material_type_identifier(type_ids_enum2_field); } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_enum2_field; MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_enum2_field_ec {false}; + CommonStructMember common_enum2_field {TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_enum2_field, common_enum2_field_ec))}; + if (!common_enum2_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure enum2_field member TypeIdentifier inconsistent."); return; } MemberName name_enum2_field = "enum2_field"; @@ -2416,1250 +1157,24 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_enum2_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_struct_field; + ReturnCode_t return_code_struct_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_ContentFilterTestType); + "StructType", type_ids_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_struct_field) { - { - StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_StructType; - TypeIdentifierPair type_ids_StructType; - QualifiedTypeName type_name_StructType = "StructType"; - eprosima::fastcdr::optional type_ann_builtin_StructType; - eprosima::fastcdr::optional ann_custom_StructType; - AppliedAnnotationSeq tmp_ann_custom_StructType; - eprosima::fastcdr::optional verbatim_StructType; - if (!tmp_ann_custom_StructType.empty()) - { - ann_custom_StructType = tmp_ann_custom_StructType; - } - - CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); - CompleteStructHeader header_StructType; - header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); - CompleteStructMemberSeq member_seq_StructType; - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_char_field; - MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_char_field = "char_field"; - eprosima::fastcdr::optional member_ann_builtin_char_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); - CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint8_field; - MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint8_field = "uint8_field"; - eprosima::fastcdr::optional member_ann_builtin_uint8_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); - CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int16_field; - MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int16_field = "int16_field"; - eprosima::fastcdr::optional member_ann_builtin_int16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); - CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint16_field; - MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint16_field = "uint16_field"; - eprosima::fastcdr::optional member_ann_builtin_uint16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); - CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int32_field; - MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int32_field = "int32_field"; - eprosima::fastcdr::optional member_ann_builtin_int32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); - CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint32_field; - MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint32_field = "uint32_field"; - eprosima::fastcdr::optional member_ann_builtin_uint32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); - CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int64_field; - MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int64_field = "int64_field"; - eprosima::fastcdr::optional member_ann_builtin_int64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); - CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint64_field; - MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint64_field = "uint64_field"; - eprosima::fastcdr::optional member_ann_builtin_uint64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); - CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_float_field; - MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_float_field = "float_field"; - eprosima::fastcdr::optional member_ann_builtin_float_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); - CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_double_field; - MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_double_field = "double_field"; - eprosima::fastcdr::optional member_ann_builtin_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); - CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_long_double_field; - MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_long_double_field = "long_double_field"; - eprosima::fastcdr::optional member_ann_builtin_long_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_long_double_field = TypeObjectUtils::build_complete_member_detail(name_long_double_field, member_ann_builtin_long_double_field, ann_custom_StructType); - CompleteStructMember member_long_double_field = TypeObjectUtils::build_complete_struct_member(common_long_double_field, detail_long_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_long_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_bool_field; - MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bool_field = "bool_field"; - eprosima::fastcdr::optional member_ann_builtin_bool_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); - CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_string_field; - MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_string_field = "string_field"; - eprosima::fastcdr::optional member_ann_builtin_string_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); - CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum_field; - MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_field = "enum_field"; - eprosima::fastcdr::optional member_ann_builtin_enum_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); - CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum2_field; - MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum2_field = "enum2_field"; - eprosima::fastcdr::optional member_ann_builtin_enum2_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); - CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); - } - CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ContentFilterTestType = return_code_StructType; - type_ids_ContentFilterTestType = type_ids_StructType; - } + ::register_StructType_type_identifier(type_ids_struct_field); } - StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_struct_field; MemberId member_id_struct_field = 0x0000000f; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_struct_field_ec {false}; + CommonStructMember common_struct_field {TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_struct_field, common_struct_field_ec))}; + if (!common_struct_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure struct_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure struct_field member TypeIdentifier inconsistent."); return; } MemberName name_struct_field = "struct_field"; @@ -3670,69 +1185,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_struct_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_char_field; + ReturnCode_t return_code_array_char_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_3", type_ids_ContentFilterTestType); + "anonymous_array_char_3", type_ids_array_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_char_field) { - return_code_ContentFilterTestType = + return_code_array_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ContentFilterTestType); + "_char", type_ids_array_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_char_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_char_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_char_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_char_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_char_field, element_identifier_anonymous_array_char_3_ec))}; + if (!element_identifier_anonymous_array_char_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_char_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_char_field.type_identifier2()._d()) { equiv_kind_anonymous_array_char_3 = EK_BOTH; } @@ -3745,68 +1224,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3", type_ids_array_char_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_char_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_char_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_char_field; MemberId member_id_array_char_field = 0x00000010; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_char_field_ec {false}; + CommonStructMember common_array_char_field {TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_char_field, common_array_char_field_ec))}; + if (!common_array_char_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_char_field member TypeIdentifier inconsistent."); return; } MemberName name_array_char_field = "array_char_field"; @@ -3817,69 +1249,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_char_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_uint8_field; + ReturnCode_t return_code_array_uint8_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_3", type_ids_ContentFilterTestType); + "anonymous_array_uint8_t_3", type_ids_array_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint8_field) { - return_code_ContentFilterTestType = + return_code_array_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ContentFilterTestType); + "_byte", type_ids_array_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint8_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint8_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint8_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint8_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint8_field, element_identifier_anonymous_array_uint8_t_3_ec))}; + if (!element_identifier_anonymous_array_uint8_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint8_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_uint8_field.type_identifier2()._d()) { equiv_kind_anonymous_array_uint8_t_3 = EK_BOTH; } @@ -3892,68 +1288,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3", type_ids_array_uint8_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint8_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint8_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_uint8_field; MemberId member_id_array_uint8_field = 0x00000011; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_uint8_field_ec {false}; + CommonStructMember common_array_uint8_field {TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint8_field, common_array_uint8_field_ec))}; + if (!common_array_uint8_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_uint8_field member TypeIdentifier inconsistent."); return; } MemberName name_array_uint8_field = "array_uint8_field"; @@ -3964,69 +1313,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_uint8_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_int16_field; + ReturnCode_t return_code_array_int16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_3", type_ids_ContentFilterTestType); + "anonymous_array_int16_t_3", type_ids_array_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int16_field) { - return_code_ContentFilterTestType = + return_code_array_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ContentFilterTestType); + "_int16_t", type_ids_array_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int16_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int16_field, element_identifier_anonymous_array_int16_t_3_ec))}; + if (!element_identifier_anonymous_array_int16_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_int16_field.type_identifier2()._d()) { equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; } @@ -4039,68 +1352,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3", type_ids_array_int16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int16_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_int16_field; MemberId member_id_array_int16_field = 0x00000012; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_int16_field_ec {false}; + CommonStructMember common_array_int16_field {TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int16_field, common_array_int16_field_ec))}; + if (!common_array_int16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_int16_field member TypeIdentifier inconsistent."); return; } MemberName name_array_int16_field = "array_int16_field"; @@ -4111,69 +1377,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_int16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_uint16_field; + ReturnCode_t return_code_array_uint16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_3", type_ids_ContentFilterTestType); + "anonymous_array_uint16_t_3", type_ids_array_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint16_field) { - return_code_ContentFilterTestType = + return_code_array_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ContentFilterTestType); + "_uint16_t", type_ids_array_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint16_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint16_field, element_identifier_anonymous_array_uint16_t_3_ec))}; + if (!element_identifier_anonymous_array_uint16_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint16_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_uint16_field.type_identifier2()._d()) { equiv_kind_anonymous_array_uint16_t_3 = EK_BOTH; } @@ -4186,68 +1416,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3", type_ids_array_uint16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint16_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_uint16_field; MemberId member_id_array_uint16_field = 0x00000013; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_uint16_field_ec {false}; + CommonStructMember common_array_uint16_field {TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint16_field, common_array_uint16_field_ec))}; + if (!common_array_uint16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_uint16_field member TypeIdentifier inconsistent."); return; } MemberName name_array_uint16_field = "array_uint16_field"; @@ -4258,69 +1441,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_uint16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_int32_field; + ReturnCode_t return_code_array_int32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_3", type_ids_ContentFilterTestType); + "anonymous_array_int32_t_3", type_ids_array_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int32_field) { - return_code_ContentFilterTestType = + return_code_array_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ContentFilterTestType); + "_int32_t", type_ids_array_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int32_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int32_field, element_identifier_anonymous_array_int32_t_3_ec))}; + if (!element_identifier_anonymous_array_int32_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int32_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_int32_field.type_identifier2()._d()) { equiv_kind_anonymous_array_int32_t_3 = EK_BOTH; } @@ -4333,68 +1480,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3", type_ids_array_int32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int32_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_int32_field; MemberId member_id_array_int32_field = 0x00000014; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_int32_field_ec {false}; + CommonStructMember common_array_int32_field {TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int32_field, common_array_int32_field_ec))}; + if (!common_array_int32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_int32_field member TypeIdentifier inconsistent."); return; } MemberName name_array_int32_field = "array_int32_field"; @@ -4405,69 +1505,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_int32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_uint32_field; + ReturnCode_t return_code_array_uint32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_3", type_ids_ContentFilterTestType); + "anonymous_array_uint32_t_3", type_ids_array_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint32_field) { - return_code_ContentFilterTestType = + return_code_array_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ContentFilterTestType); + "_uint32_t", type_ids_array_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint32_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint32_field, element_identifier_anonymous_array_uint32_t_3_ec))}; + if (!element_identifier_anonymous_array_uint32_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint32_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_uint32_field.type_identifier2()._d()) { equiv_kind_anonymous_array_uint32_t_3 = EK_BOTH; } @@ -4480,68 +1544,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3", type_ids_array_uint32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint32_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_uint32_field; MemberId member_id_array_uint32_field = 0x00000015; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_uint32_field_ec {false}; + CommonStructMember common_array_uint32_field {TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint32_field, common_array_uint32_field_ec))}; + if (!common_array_uint32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_uint32_field member TypeIdentifier inconsistent."); return; } MemberName name_array_uint32_field = "array_uint32_field"; @@ -4552,69 +1569,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_uint32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_int64_field; + ReturnCode_t return_code_array_int64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_3", type_ids_ContentFilterTestType); + "anonymous_array_int64_t_3", type_ids_array_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int64_field) { - return_code_ContentFilterTestType = + return_code_array_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ContentFilterTestType); + "_int64_t", type_ids_array_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_int64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_int64_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int64_field, element_identifier_anonymous_array_int64_t_3_ec))}; + if (!element_identifier_anonymous_array_int64_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_int64_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_int64_field.type_identifier2()._d()) { equiv_kind_anonymous_array_int64_t_3 = EK_BOTH; } @@ -4627,68 +1608,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3", type_ids_array_int64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_int64_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_int64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_int64_field; MemberId member_id_array_int64_field = 0x00000016; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_int64_field_ec {false}; + CommonStructMember common_array_int64_field {TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_int64_field, common_array_int64_field_ec))}; + if (!common_array_int64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_int64_field member TypeIdentifier inconsistent."); return; } MemberName name_array_int64_field = "array_int64_field"; @@ -4699,69 +1633,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_int64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_uint64_field; + ReturnCode_t return_code_array_uint64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_3", type_ids_ContentFilterTestType); + "anonymous_array_uint64_t_3", type_ids_array_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint64_field) { - return_code_ContentFilterTestType = + return_code_array_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ContentFilterTestType); + "_uint64_t", type_ids_array_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_uint64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_uint64_t_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint64_field, element_identifier_anonymous_array_uint64_t_3_ec))}; + if (!element_identifier_anonymous_array_uint64_t_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_uint64_t_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_uint64_field.type_identifier2()._d()) { equiv_kind_anonymous_array_uint64_t_3 = EK_BOTH; } @@ -4774,68 +1672,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3", type_ids_array_uint64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_uint64_t_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_uint64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_uint64_field; MemberId member_id_array_uint64_field = 0x00000017; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_uint64_field_ec {false}; + CommonStructMember common_array_uint64_field {TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_uint64_field, common_array_uint64_field_ec))}; + if (!common_array_uint64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_uint64_field member TypeIdentifier inconsistent."); return; } MemberName name_array_uint64_field = "array_uint64_field"; @@ -4846,69 +1697,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_uint64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_float_field; + ReturnCode_t return_code_array_float_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_3", type_ids_ContentFilterTestType); + "anonymous_array_float_3", type_ids_array_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_float_field) { - return_code_ContentFilterTestType = + return_code_array_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ContentFilterTestType); + "_float", type_ids_array_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_float_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_float_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_float_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_float_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_float_field, element_identifier_anonymous_array_float_3_ec))}; + if (!element_identifier_anonymous_array_float_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_float_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_float_field.type_identifier2()._d()) { equiv_kind_anonymous_array_float_3 = EK_BOTH; } @@ -4921,68 +1736,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3", type_ids_array_float_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_float_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_float_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_float_field; MemberId member_id_array_float_field = 0x00000018; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_float_field_ec {false}; + CommonStructMember common_array_float_field {TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_float_field, common_array_float_field_ec))}; + if (!common_array_float_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_float_field member TypeIdentifier inconsistent."); return; } MemberName name_array_float_field = "array_float_field"; @@ -4993,69 +1761,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_float_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_double_field; + ReturnCode_t return_code_array_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_3", type_ids_ContentFilterTestType); + "anonymous_array_double_3", type_ids_array_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_double_field) { - return_code_ContentFilterTestType = + return_code_array_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ContentFilterTestType); + "_double", type_ids_array_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_double_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_double_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_double_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_double_field, element_identifier_anonymous_array_double_3_ec))}; + if (!element_identifier_anonymous_array_double_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_double_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_double_field.type_identifier2()._d()) { equiv_kind_anonymous_array_double_3 = EK_BOTH; } @@ -5068,68 +1800,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3", type_ids_array_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_double_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_double_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_double_field; MemberId member_id_array_double_field = 0x00000019; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_double_field_ec {false}; + CommonStructMember common_array_double_field {TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_double_field, common_array_double_field_ec))}; + if (!common_array_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_double_field member TypeIdentifier inconsistent."); return; } MemberName name_array_double_field = "array_double_field"; @@ -5140,69 +1825,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_long_double_field; + ReturnCode_t return_code_array_long_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_3", type_ids_ContentFilterTestType); + "anonymous_array_longdouble_3", type_ids_array_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_long_double_field) { - return_code_ContentFilterTestType = + return_code_array_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ContentFilterTestType); + "_longdouble", type_ids_array_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_long_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_longdouble_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_longdouble_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_longdouble_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_longdouble_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_long_double_field, element_identifier_anonymous_array_longdouble_3_ec))}; + if (!element_identifier_anonymous_array_longdouble_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_longdouble_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_long_double_field.type_identifier2()._d()) { equiv_kind_anonymous_array_longdouble_3 = EK_BOTH; } @@ -5215,68 +1864,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_longdouble_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_longdouble_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_longdouble_3", type_ids_array_long_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_longdouble_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_longdouble_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_longdouble_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_long_double_field; MemberId member_id_array_long_double_field = 0x0000001a; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_long_double_field, member_flags_array_long_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_long_double_field, member_flags_array_long_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_long_double_field_ec {false}; + CommonStructMember common_array_long_double_field {TypeObjectUtils::build_common_struct_member(member_id_array_long_double_field, member_flags_array_long_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_long_double_field, common_array_long_double_field_ec))}; + if (!common_array_long_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_long_double_field member TypeIdentifier inconsistent."); return; } MemberName name_array_long_double_field = "array_long_double_field"; @@ -5287,69 +1889,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_long_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_bool_field; + ReturnCode_t return_code_array_bool_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_3", type_ids_ContentFilterTestType); + "anonymous_array_bool_3", type_ids_array_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_bool_field) { - return_code_ContentFilterTestType = + return_code_array_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ContentFilterTestType); + "_bool", type_ids_array_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_bool_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_array_bool_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_bool_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_bool_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_bool_field, element_identifier_anonymous_array_bool_3_ec))}; + if (!element_identifier_anonymous_array_bool_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_bool_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_bool_field.type_identifier2()._d()) { equiv_kind_anonymous_array_bool_3 = EK_BOTH; } @@ -5362,68 +1928,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3", type_ids_array_bool_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_bool_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_bool_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_bool_field; MemberId member_id_array_bool_field = 0x0000001b; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_bool_field_ec {false}; + CommonStructMember common_array_bool_field {TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_bool_field, common_array_bool_field_ec))}; + if (!common_array_bool_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_bool_field member TypeIdentifier inconsistent."); return; } MemberName name_array_bool_field = "array_bool_field"; @@ -5434,86 +1953,41 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_bool_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_string_field; + ReturnCode_t return_code_array_string_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_3", type_ids_ContentFilterTestType); + "anonymous_array_anonymous_string_unbounded_3", type_ids_array_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_string_field) { - return_code_ContentFilterTestType = + return_code_array_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); + "anonymous_string_unbounded", type_ids_array_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_string_field) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_array_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_anonymous_string_unbounded_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_anonymous_string_unbounded_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_anonymous_string_unbounded_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_string_field, element_identifier_anonymous_array_anonymous_string_unbounded_3_ec))}; + if (!element_identifier_anonymous_array_anonymous_string_unbounded_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_anonymous_string_unbounded_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_string_field.type_identifier2()._d()) { equiv_kind_anonymous_array_anonymous_string_unbounded_3 = EK_BOTH; } @@ -5526,68 +2000,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_anonymous_string_unbounded_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_anonymous_string_unbounded_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_anonymous_string_unbounded_3", type_ids_array_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_anonymous_string_unbounded_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_anonymous_string_unbounded_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_anonymous_string_unbounded_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_string_field; MemberId member_id_array_string_field = 0x0000001c; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_string_field = TypeObjectUtils::build_common_struct_member(member_id_array_string_field, member_flags_array_string_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_string_field = TypeObjectUtils::build_common_struct_member(member_id_array_string_field, member_flags_array_string_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_string_field_ec {false}; + CommonStructMember common_array_string_field {TypeObjectUtils::build_common_struct_member(member_id_array_string_field, member_flags_array_string_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_string_field, common_array_string_field_ec))}; + if (!common_array_string_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_string_field member TypeIdentifier inconsistent."); return; } MemberName name_array_string_field = "array_string_field"; @@ -5598,142 +2025,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_string_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_enum_field; + ReturnCode_t return_code_array_enum_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_Color_3", type_ids_ContentFilterTestType); + "anonymous_array_Color_3", type_ids_array_enum_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_enum_field) { - return_code_ContentFilterTestType = + return_code_array_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Color", type_ids_array_enum_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_enum_field) + { + ::register_Color_type_identifier(type_ids_array_enum_field); } - TypeIdentifier* element_identifier_anonymous_array_Color_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_Color_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_Color_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_enum_field, element_identifier_anonymous_array_Color_3_ec))}; + if (!element_identifier_anonymous_array_Color_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_Color_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_enum_field.type_identifier2()._d()) { equiv_kind_anonymous_array_Color_3 = EK_BOTH; } @@ -5746,68 +2062,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Color_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_Color_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Color_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Color_3", type_ids_array_enum_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_Color_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_Color_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_Color_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_enum_field; MemberId member_id_array_enum_field = 0x0000001d; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_enum_field_ec {false}; + CommonStructMember common_array_enum_field {TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_enum_field, common_array_enum_field_ec))}; + if (!common_array_enum_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_enum_field member TypeIdentifier inconsistent."); return; } MemberName name_array_enum_field = "array_enum_field"; @@ -5818,142 +2087,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_enum_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_enum2_field; + ReturnCode_t return_code_array_enum2_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_Material_3", type_ids_ContentFilterTestType); + "anonymous_array_Material_3", type_ids_array_enum2_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_enum2_field) { - return_code_ContentFilterTestType = + return_code_array_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Material", type_ids_array_enum2_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_enum2_field) + { + ::register_Material_type_identifier(type_ids_array_enum2_field); } - TypeIdentifier* element_identifier_anonymous_array_Material_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_Material_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_Material_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_enum2_field, element_identifier_anonymous_array_Material_3_ec))}; + if (!element_identifier_anonymous_array_Material_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_Material_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_enum2_field.type_identifier2()._d()) { equiv_kind_anonymous_array_Material_3 = EK_BOTH; } @@ -5966,68 +2124,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Material_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_Material_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Material_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Material_3", type_ids_array_enum2_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_Material_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_Material_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_Material_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_enum2_field; MemberId member_id_array_enum2_field = 0x0000001e; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_enum2_field_ec {false}; + CommonStructMember common_array_enum2_field {TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_enum2_field, common_array_enum2_field_ec))}; + if (!common_array_enum2_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_enum2_field member TypeIdentifier inconsistent."); return; } MemberName name_array_enum2_field = "array_enum2_field"; @@ -6038,1257 +2149,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_enum2_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_array_struct_field; + ReturnCode_t return_code_array_struct_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_array_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_StructType_3", type_ids_ContentFilterTestType); + "anonymous_array_StructType_3", type_ids_array_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_struct_field) { - return_code_ContentFilterTestType = + return_code_array_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_ContentFilterTestType); + "StructType", type_ids_array_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_array_struct_field) { - { - StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_StructType; - TypeIdentifierPair type_ids_StructType; - QualifiedTypeName type_name_StructType = "StructType"; - eprosima::fastcdr::optional type_ann_builtin_StructType; - eprosima::fastcdr::optional ann_custom_StructType; - AppliedAnnotationSeq tmp_ann_custom_StructType; - eprosima::fastcdr::optional verbatim_StructType; - if (!tmp_ann_custom_StructType.empty()) - { - ann_custom_StructType = tmp_ann_custom_StructType; - } - - CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); - CompleteStructHeader header_StructType; - header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); - CompleteStructMemberSeq member_seq_StructType; - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_char_field; - MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_char_field = "char_field"; - eprosima::fastcdr::optional member_ann_builtin_char_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); - CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint8_field; - MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint8_field = "uint8_field"; - eprosima::fastcdr::optional member_ann_builtin_uint8_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); - CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int16_field; - MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int16_field = "int16_field"; - eprosima::fastcdr::optional member_ann_builtin_int16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); - CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint16_field; - MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint16_field = "uint16_field"; - eprosima::fastcdr::optional member_ann_builtin_uint16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); - CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int32_field; - MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int32_field = "int32_field"; - eprosima::fastcdr::optional member_ann_builtin_int32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); - CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint32_field; - MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint32_field = "uint32_field"; - eprosima::fastcdr::optional member_ann_builtin_uint32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); - CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int64_field; - MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int64_field = "int64_field"; - eprosima::fastcdr::optional member_ann_builtin_int64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); - CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint64_field; - MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint64_field = "uint64_field"; - eprosima::fastcdr::optional member_ann_builtin_uint64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); - CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_float_field; - MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_float_field = "float_field"; - eprosima::fastcdr::optional member_ann_builtin_float_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); - CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_double_field; - MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_double_field = "double_field"; - eprosima::fastcdr::optional member_ann_builtin_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); - CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_long_double_field; - MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_long_double_field = "long_double_field"; - eprosima::fastcdr::optional member_ann_builtin_long_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_long_double_field = TypeObjectUtils::build_complete_member_detail(name_long_double_field, member_ann_builtin_long_double_field, ann_custom_StructType); - CompleteStructMember member_long_double_field = TypeObjectUtils::build_complete_struct_member(common_long_double_field, detail_long_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_long_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_bool_field; - MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bool_field = "bool_field"; - eprosima::fastcdr::optional member_ann_builtin_bool_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); - CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_string_field; - MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_string_field = "string_field"; - eprosima::fastcdr::optional member_ann_builtin_string_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); - CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum_field; - MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_field = "enum_field"; - eprosima::fastcdr::optional member_ann_builtin_enum_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); - CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum2_field; - MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum2_field = "enum2_field"; - eprosima::fastcdr::optional member_ann_builtin_enum2_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); - CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); - } - CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ContentFilterTestType = return_code_StructType; - type_ids_ContentFilterTestType = type_ids_StructType; - } + ::register_StructType_type_identifier(type_ids_array_struct_field); } - TypeIdentifier* element_identifier_anonymous_array_StructType_3 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_array_StructType_3_ec {false}; + TypeIdentifier* element_identifier_anonymous_array_StructType_3 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_struct_field, element_identifier_anonymous_array_StructType_3_ec))}; + if (!element_identifier_anonymous_array_StructType_3_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Array element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Array element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_array_StructType_3 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_array_struct_field.type_identifier2()._d()) { equiv_kind_anonymous_array_StructType_3 = EK_BOTH; } @@ -7301,68 +2186,21 @@ void register_ContentFilterTestType_type_identifier( PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_StructType_3, array_bound_seq, eprosima::fastcdr::external(element_identifier_anonymous_array_StructType_3)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_StructType_3")) + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_StructType_3", type_ids_array_struct_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_array_StructType_3 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_array_StructType_3", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_array_StructType_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_array_struct_field; MemberId member_id_array_struct_field = 0x0000001f; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_array_struct_field_ec {false}; + CommonStructMember common_array_struct_field {TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_array_struct_field, common_array_struct_field_ec))}; + if (!common_array_struct_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure array_struct_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure array_struct_field member TypeIdentifier inconsistent."); return; } MemberName name_array_struct_field = "array_struct_field"; @@ -7373,69 +2211,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_array_struct_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_char_field; + ReturnCode_t return_code_bounded_sequence_char_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_5", type_ids_ContentFilterTestType); + "anonymous_sequence_char_5", type_ids_bounded_sequence_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_char_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ContentFilterTestType); + "_char", type_ids_bounded_sequence_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_char_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_char_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_char_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_char_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_char_field, element_identifier_anonymous_sequence_char_5_ec))}; + if (!element_identifier_anonymous_sequence_char_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_char_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_char_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_char_5 = EK_BOTH; } @@ -7446,68 +2248,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5", type_ids_bounded_sequence_char_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_char_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_char_field; MemberId member_id_bounded_sequence_char_field = 0x00000020; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_char_field_ec {false}; + CommonStructMember common_bounded_sequence_char_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_char_field, common_bounded_sequence_char_field_ec))}; + if (!common_bounded_sequence_char_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_char_field = "bounded_sequence_char_field"; @@ -7518,69 +2273,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_char_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_uint8_field; + ReturnCode_t return_code_bounded_sequence_uint8_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_uint8_t_5", type_ids_bounded_sequence_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint8_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ContentFilterTestType); + "_byte", type_ids_bounded_sequence_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint8_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint8_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint8_field, element_identifier_anonymous_sequence_uint8_t_5_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_uint8_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_5 = EK_BOTH; } @@ -7591,68 +2310,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5", type_ids_bounded_sequence_uint8_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_uint8_field; MemberId member_id_bounded_sequence_uint8_field = 0x00000021; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_uint8_field_ec {false}; + CommonStructMember common_bounded_sequence_uint8_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint8_field, common_bounded_sequence_uint8_field_ec))}; + if (!common_bounded_sequence_uint8_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_uint8_field = "bounded_sequence_uint8_field"; @@ -7663,69 +2335,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_uint8_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_int16_field; + ReturnCode_t return_code_bounded_sequence_int16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_int16_t_5", type_ids_bounded_sequence_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int16_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ContentFilterTestType); + "_int16_t", type_ids_bounded_sequence_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int16_field, element_identifier_anonymous_sequence_int16_t_5_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_int16_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_5 = EK_BOTH; } @@ -7736,68 +2372,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5", type_ids_bounded_sequence_int16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_int16_field; MemberId member_id_bounded_sequence_int16_field = 0x00000022; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_int16_field_ec {false}; + CommonStructMember common_bounded_sequence_int16_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int16_field, common_bounded_sequence_int16_field_ec))}; + if (!common_bounded_sequence_int16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_int16_field = "bounded_sequence_int16_field"; @@ -7808,69 +2397,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_int16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_uint16_field; + ReturnCode_t return_code_bounded_sequence_uint16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_uint16_t_5", type_ids_bounded_sequence_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint16_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ContentFilterTestType); + "_uint16_t", type_ids_bounded_sequence_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint16_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint16_field, element_identifier_anonymous_sequence_uint16_t_5_ec))}; + if (!element_identifier_anonymous_sequence_uint16_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_uint16_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint16_t_5 = EK_BOTH; } @@ -7881,68 +2434,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5", type_ids_bounded_sequence_uint16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_uint16_field; MemberId member_id_bounded_sequence_uint16_field = 0x00000023; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_uint16_field_ec {false}; + CommonStructMember common_bounded_sequence_uint16_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint16_field, common_bounded_sequence_uint16_field_ec))}; + if (!common_bounded_sequence_uint16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_uint16_field = "bounded_sequence_uint16_field"; @@ -7953,69 +2459,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_uint16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_int32_field; + ReturnCode_t return_code_bounded_sequence_int32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_int32_t_5", type_ids_bounded_sequence_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int32_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ContentFilterTestType); + "_int32_t", type_ids_bounded_sequence_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int32_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int32_field, element_identifier_anonymous_sequence_int32_t_5_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_int32_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_5 = EK_BOTH; } @@ -8026,68 +2496,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5", type_ids_bounded_sequence_int32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_int32_field; MemberId member_id_bounded_sequence_int32_field = 0x00000024; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_int32_field_ec {false}; + CommonStructMember common_bounded_sequence_int32_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int32_field, common_bounded_sequence_int32_field_ec))}; + if (!common_bounded_sequence_int32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_int32_field = "bounded_sequence_int32_field"; @@ -8098,69 +2521,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_int32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_uint32_field; + ReturnCode_t return_code_bounded_sequence_uint32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_uint32_t_5", type_ids_bounded_sequence_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint32_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ContentFilterTestType); + "_uint32_t", type_ids_bounded_sequence_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint32_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint32_field, element_identifier_anonymous_sequence_uint32_t_5_ec))}; + if (!element_identifier_anonymous_sequence_uint32_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_uint32_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint32_t_5 = EK_BOTH; } @@ -8171,68 +2558,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5", type_ids_bounded_sequence_uint32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_uint32_field; MemberId member_id_bounded_sequence_uint32_field = 0x00000025; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_uint32_field_ec {false}; + CommonStructMember common_bounded_sequence_uint32_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint32_field, common_bounded_sequence_uint32_field_ec))}; + if (!common_bounded_sequence_uint32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_uint32_field = "bounded_sequence_uint32_field"; @@ -8243,69 +2583,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_uint32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_int64_field; + ReturnCode_t return_code_bounded_sequence_int64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_int64_t_5", type_ids_bounded_sequence_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int64_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ContentFilterTestType); + "_int64_t", type_ids_bounded_sequence_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_int64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int64_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int64_field, element_identifier_anonymous_sequence_int64_t_5_ec))}; + if (!element_identifier_anonymous_sequence_int64_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int64_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_int64_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int64_t_5 = EK_BOTH; } @@ -8316,68 +2620,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5", type_ids_bounded_sequence_int64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_int64_field; MemberId member_id_bounded_sequence_int64_field = 0x00000026; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_int64_field_ec {false}; + CommonStructMember common_bounded_sequence_int64_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_int64_field, common_bounded_sequence_int64_field_ec))}; + if (!common_bounded_sequence_int64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_int64_field = "bounded_sequence_int64_field"; @@ -8388,69 +2645,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_int64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_uint64_field; + ReturnCode_t return_code_bounded_sequence_uint64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_5", type_ids_ContentFilterTestType); + "anonymous_sequence_uint64_t_5", type_ids_bounded_sequence_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint64_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ContentFilterTestType); + "_uint64_t", type_ids_bounded_sequence_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_uint64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint64_t_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint64_field, element_identifier_anonymous_sequence_uint64_t_5_ec))}; + if (!element_identifier_anonymous_sequence_uint64_t_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_uint64_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint64_t_5 = EK_BOTH; } @@ -8461,68 +2682,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5", type_ids_bounded_sequence_uint64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_uint64_field; MemberId member_id_bounded_sequence_uint64_field = 0x00000027; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_uint64_field_ec {false}; + CommonStructMember common_bounded_sequence_uint64_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_uint64_field, common_bounded_sequence_uint64_field_ec))}; + if (!common_bounded_sequence_uint64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_uint64_field = "bounded_sequence_uint64_field"; @@ -8533,69 +2707,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_uint64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_float_field; + ReturnCode_t return_code_bounded_sequence_float_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_5", type_ids_ContentFilterTestType); + "anonymous_sequence_float_5", type_ids_bounded_sequence_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_float_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ContentFilterTestType); + "_float", type_ids_bounded_sequence_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_float_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_float_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_float_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_float_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_float_field, element_identifier_anonymous_sequence_float_5_ec))}; + if (!element_identifier_anonymous_sequence_float_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_float_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_float_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_float_5 = EK_BOTH; } @@ -8606,68 +2744,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5", type_ids_bounded_sequence_float_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_float_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_float_field; MemberId member_id_bounded_sequence_float_field = 0x00000028; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_float_field_ec {false}; + CommonStructMember common_bounded_sequence_float_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_float_field, common_bounded_sequence_float_field_ec))}; + if (!common_bounded_sequence_float_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_float_field = "bounded_sequence_float_field"; @@ -8678,69 +2769,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_float_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_double_field; + ReturnCode_t return_code_bounded_sequence_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_5", type_ids_ContentFilterTestType); + "anonymous_sequence_double_5", type_ids_bounded_sequence_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_double_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ContentFilterTestType); + "_double", type_ids_bounded_sequence_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_double_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_double_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_double_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_double_field, element_identifier_anonymous_sequence_double_5_ec))}; + if (!element_identifier_anonymous_sequence_double_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_double_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_double_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_double_5 = EK_BOTH; } @@ -8751,68 +2806,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5", type_ids_bounded_sequence_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_double_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_double_field; MemberId member_id_bounded_sequence_double_field = 0x00000029; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_double_field_ec {false}; + CommonStructMember common_bounded_sequence_double_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_double_field, common_bounded_sequence_double_field_ec))}; + if (!common_bounded_sequence_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_double_field = "bounded_sequence_double_field"; @@ -8823,69 +2831,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_long_double_field; + ReturnCode_t return_code_bounded_sequence_long_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_5", type_ids_ContentFilterTestType); + "anonymous_sequence_longdouble_5", type_ids_bounded_sequence_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_long_double_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ContentFilterTestType); + "_longdouble", type_ids_bounded_sequence_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_long_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_longdouble_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_longdouble_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_longdouble_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_long_double_field, element_identifier_anonymous_sequence_longdouble_5_ec))}; + if (!element_identifier_anonymous_sequence_longdouble_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_longdouble_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_long_double_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_longdouble_5 = EK_BOTH; } @@ -8896,68 +2868,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_longdouble_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_longdouble_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_5", type_ids_bounded_sequence_long_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_longdouble_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_longdouble_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_long_double_field; MemberId member_id_bounded_sequence_long_double_field = 0x0000002a; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_long_double_field, member_flags_bounded_sequence_long_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_long_double_field, member_flags_bounded_sequence_long_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_long_double_field_ec {false}; + CommonStructMember common_bounded_sequence_long_double_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_long_double_field, member_flags_bounded_sequence_long_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_long_double_field, common_bounded_sequence_long_double_field_ec))}; + if (!common_bounded_sequence_long_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_long_double_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_long_double_field = "bounded_sequence_long_double_field"; @@ -8968,69 +2893,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_long_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_bool_field; + ReturnCode_t return_code_bounded_sequence_bool_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_5", type_ids_ContentFilterTestType); + "anonymous_sequence_bool_5", type_ids_bounded_sequence_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_bool_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ContentFilterTestType); + "_bool", type_ids_bounded_sequence_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_bool_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_bool_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_bool_field, element_identifier_anonymous_sequence_bool_5_ec))}; + if (!element_identifier_anonymous_sequence_bool_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_bool_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_bool_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_bool_5 = EK_BOTH; } @@ -9041,68 +2930,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5", type_ids_bounded_sequence_bool_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_bool_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_bool_field; MemberId member_id_bounded_sequence_bool_field = 0x0000002b; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_bool_field_ec {false}; + CommonStructMember common_bounded_sequence_bool_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_bool_field, common_bounded_sequence_bool_field_ec))}; + if (!common_bounded_sequence_bool_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_bool_field = "bounded_sequence_bool_field"; @@ -9113,86 +2955,41 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_bool_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_string_field; + ReturnCode_t return_code_bounded_sequence_string_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_5", type_ids_ContentFilterTestType); + "anonymous_sequence_anonymous_string_unbounded_5", type_ids_bounded_sequence_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_string_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); + "anonymous_string_unbounded", type_ids_bounded_sequence_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_string_field) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_bounded_sequence_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_string_field, element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_unbounded_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_unbounded_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_string_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_unbounded_5 = EK_BOTH; } @@ -9203,68 +3000,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_string_unbounded_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_unbounded_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_5", type_ids_bounded_sequence_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_unbounded_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_unbounded_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_string_field; MemberId member_id_bounded_sequence_string_field = 0x0000002c; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_string_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_string_field, member_flags_bounded_sequence_string_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_string_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_string_field, member_flags_bounded_sequence_string_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_string_field_ec {false}; + CommonStructMember common_bounded_sequence_string_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_string_field, member_flags_bounded_sequence_string_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_string_field, common_bounded_sequence_string_field_ec))}; + if (!common_bounded_sequence_string_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_string_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_string_field = "bounded_sequence_string_field"; @@ -9275,142 +3025,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_string_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_enum_field; + ReturnCode_t return_code_bounded_sequence_enum_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Color_5", type_ids_ContentFilterTestType); + "anonymous_sequence_Color_5", type_ids_bounded_sequence_enum_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_enum_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Color", type_ids_bounded_sequence_enum_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_enum_field) + { + ::register_Color_type_identifier(type_ids_bounded_sequence_enum_field); } - TypeIdentifier* element_identifier_anonymous_sequence_Color_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_Color_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_Color_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_enum_field, element_identifier_anonymous_sequence_Color_5_ec))}; + if (!element_identifier_anonymous_sequence_Color_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_Color_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_enum_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_Color_5 = EK_BOTH; } @@ -9421,68 +3060,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_5", type_ids_bounded_sequence_enum_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_Color_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Color_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_Color_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_enum_field; MemberId member_id_bounded_sequence_enum_field = 0x0000002d; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_enum_field_ec {false}; + CommonStructMember common_bounded_sequence_enum_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_enum_field, common_bounded_sequence_enum_field_ec))}; + if (!common_bounded_sequence_enum_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_enum_field = "bounded_sequence_enum_field"; @@ -9493,142 +3085,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_enum_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_enum2_field; + ReturnCode_t return_code_bounded_sequence_enum2_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Material_5", type_ids_ContentFilterTestType); + "anonymous_sequence_Material_5", type_ids_bounded_sequence_enum2_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_enum2_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Material", type_ids_bounded_sequence_enum2_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_enum2_field) + { + ::register_Material_type_identifier(type_ids_bounded_sequence_enum2_field); } - TypeIdentifier* element_identifier_anonymous_sequence_Material_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_Material_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_Material_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_enum2_field, element_identifier_anonymous_sequence_Material_5_ec))}; + if (!element_identifier_anonymous_sequence_Material_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_Material_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_enum2_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_Material_5 = EK_BOTH; } @@ -9639,68 +3120,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_5", type_ids_bounded_sequence_enum2_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_Material_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Material_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_Material_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_enum2_field; MemberId member_id_bounded_sequence_enum2_field = 0x0000002e; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_enum2_field_ec {false}; + CommonStructMember common_bounded_sequence_enum2_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_enum2_field, common_bounded_sequence_enum2_field_ec))}; + if (!common_bounded_sequence_enum2_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_enum2_field = "bounded_sequence_enum2_field"; @@ -9711,1257 +3145,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_enum2_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_bounded_sequence_struct_field; + ReturnCode_t return_code_bounded_sequence_struct_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_bounded_sequence_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_StructType_5", type_ids_ContentFilterTestType); + "anonymous_sequence_StructType_5", type_ids_bounded_sequence_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_struct_field) { - return_code_ContentFilterTestType = + return_code_bounded_sequence_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_ContentFilterTestType); + "StructType", type_ids_bounded_sequence_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_bounded_sequence_struct_field) { - { - StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_StructType; - TypeIdentifierPair type_ids_StructType; - QualifiedTypeName type_name_StructType = "StructType"; - eprosima::fastcdr::optional type_ann_builtin_StructType; - eprosima::fastcdr::optional ann_custom_StructType; - AppliedAnnotationSeq tmp_ann_custom_StructType; - eprosima::fastcdr::optional verbatim_StructType; - if (!tmp_ann_custom_StructType.empty()) - { - ann_custom_StructType = tmp_ann_custom_StructType; - } - - CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); - CompleteStructHeader header_StructType; - header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); - CompleteStructMemberSeq member_seq_StructType; - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_char_field; - MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_char_field = "char_field"; - eprosima::fastcdr::optional member_ann_builtin_char_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); - CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint8_field; - MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint8_field = "uint8_field"; - eprosima::fastcdr::optional member_ann_builtin_uint8_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); - CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int16_field; - MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int16_field = "int16_field"; - eprosima::fastcdr::optional member_ann_builtin_int16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); - CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint16_field; - MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint16_field = "uint16_field"; - eprosima::fastcdr::optional member_ann_builtin_uint16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); - CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int32_field; - MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int32_field = "int32_field"; - eprosima::fastcdr::optional member_ann_builtin_int32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); - CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint32_field; - MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint32_field = "uint32_field"; - eprosima::fastcdr::optional member_ann_builtin_uint32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); - CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int64_field; - MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int64_field = "int64_field"; - eprosima::fastcdr::optional member_ann_builtin_int64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); - CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint64_field; - MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint64_field = "uint64_field"; - eprosima::fastcdr::optional member_ann_builtin_uint64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); - CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_float_field; - MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_float_field = "float_field"; - eprosima::fastcdr::optional member_ann_builtin_float_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); - CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_double_field; - MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_double_field = "double_field"; - eprosima::fastcdr::optional member_ann_builtin_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); - CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_long_double_field; - MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_long_double_field = "long_double_field"; - eprosima::fastcdr::optional member_ann_builtin_long_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_long_double_field = TypeObjectUtils::build_complete_member_detail(name_long_double_field, member_ann_builtin_long_double_field, ann_custom_StructType); - CompleteStructMember member_long_double_field = TypeObjectUtils::build_complete_struct_member(common_long_double_field, detail_long_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_long_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_bool_field; - MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bool_field = "bool_field"; - eprosima::fastcdr::optional member_ann_builtin_bool_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); - CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_string_field; - MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_string_field = "string_field"; - eprosima::fastcdr::optional member_ann_builtin_string_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); - CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum_field; - MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_field = "enum_field"; - eprosima::fastcdr::optional member_ann_builtin_enum_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); - CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum2_field; - MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum2_field = "enum2_field"; - eprosima::fastcdr::optional member_ann_builtin_enum2_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); - CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); - } - CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ContentFilterTestType = return_code_StructType; - type_ids_ContentFilterTestType = type_ids_StructType; - } + ::register_StructType_type_identifier(type_ids_bounded_sequence_struct_field); } - TypeIdentifier* element_identifier_anonymous_sequence_StructType_5 {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_StructType_5_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_StructType_5 {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_struct_field, element_identifier_anonymous_sequence_StructType_5_ec))}; + if (!element_identifier_anonymous_sequence_StructType_5_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_StructType_5 = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_bounded_sequence_struct_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_StructType_5 = EK_BOTH; } @@ -10972,68 +3180,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_5, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_5)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_5")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_5", type_ids_bounded_sequence_struct_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_StructType_5 already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_StructType_5", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_StructType_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_bounded_sequence_struct_field; MemberId member_id_bounded_sequence_struct_field = 0x0000002f; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_bounded_sequence_struct_field_ec {false}; + CommonStructMember common_bounded_sequence_struct_field {TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_bounded_sequence_struct_field, common_bounded_sequence_struct_field_ec))}; + if (!common_bounded_sequence_struct_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); return; } MemberName name_bounded_sequence_struct_field = "bounded_sequence_struct_field"; @@ -11044,69 +3205,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_bounded_sequence_struct_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_char_field; + ReturnCode_t return_code_unbounded_sequence_char_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_char_unbounded", type_ids_unbounded_sequence_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_char_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_char_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_ContentFilterTestType); + "_char", type_ids_unbounded_sequence_char_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_char_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_char_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_char_field, element_identifier_anonymous_sequence_char_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_char_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_char_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; } @@ -11117,68 +3242,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded", type_ids_unbounded_sequence_char_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_char_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_char_field; MemberId member_id_unbounded_sequence_char_field = 0x00000030; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_char_field_ec {false}; + CommonStructMember common_unbounded_sequence_char_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_char_field, common_unbounded_sequence_char_field_ec))}; + if (!common_unbounded_sequence_char_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_char_field = "unbounded_sequence_char_field"; @@ -11189,69 +3267,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_char_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_uint8_field; + ReturnCode_t return_code_unbounded_sequence_uint8_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_uint8_t_unbounded", type_ids_unbounded_sequence_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint8_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_uint8_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_ContentFilterTestType); + "_byte", type_ids_unbounded_sequence_uint8_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint8_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint8_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint8_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint8_field, element_identifier_anonymous_sequence_uint8_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint8_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_uint8_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint8_t_unbounded = EK_BOTH; } @@ -11262,68 +3304,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_unbounded", type_ids_unbounded_sequence_uint8_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint8_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint8_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_uint8_field; MemberId member_id_unbounded_sequence_uint8_field = 0x00000031; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_uint8_field_ec {false}; + CommonStructMember common_unbounded_sequence_uint8_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint8_field, common_unbounded_sequence_uint8_field_ec))}; + if (!common_unbounded_sequence_uint8_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_uint8_field = "unbounded_sequence_uint8_field"; @@ -11334,69 +3329,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_uint8_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_int16_field; + ReturnCode_t return_code_unbounded_sequence_int16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_int16_t_unbounded", type_ids_unbounded_sequence_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int16_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_int16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_ContentFilterTestType); + "_int16_t", type_ids_unbounded_sequence_int16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int16_field, element_identifier_anonymous_sequence_int16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_int16_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; } @@ -11407,68 +3366,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded", type_ids_unbounded_sequence_int16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int16_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_int16_field; MemberId member_id_unbounded_sequence_int16_field = 0x00000032; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_int16_field_ec {false}; + CommonStructMember common_unbounded_sequence_int16_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int16_field, common_unbounded_sequence_int16_field_ec))}; + if (!common_unbounded_sequence_int16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_int16_field = "unbounded_sequence_int16_field"; @@ -11479,69 +3391,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_int16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_uint16_field; + ReturnCode_t return_code_unbounded_sequence_uint16_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_uint16_t_unbounded", type_ids_unbounded_sequence_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint16_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_uint16_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_ContentFilterTestType); + "_uint16_t", type_ids_unbounded_sequence_uint16_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint16_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint16_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint16_field, element_identifier_anonymous_sequence_uint16_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint16_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_uint16_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; } @@ -11552,68 +3428,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded", type_ids_unbounded_sequence_uint16_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint16_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_uint16_field; MemberId member_id_unbounded_sequence_uint16_field = 0x00000033; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_uint16_field_ec {false}; + CommonStructMember common_unbounded_sequence_uint16_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint16_field, common_unbounded_sequence_uint16_field_ec))}; + if (!common_unbounded_sequence_uint16_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_uint16_field = "unbounded_sequence_uint16_field"; @@ -11624,69 +3453,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_uint16_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_int32_field; + ReturnCode_t return_code_unbounded_sequence_int32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_int32_t_unbounded", type_ids_unbounded_sequence_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int32_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_int32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_ContentFilterTestType); + "_int32_t", type_ids_unbounded_sequence_int32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int32_field, element_identifier_anonymous_sequence_int32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int32_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_int32_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; } @@ -11697,68 +3490,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded", type_ids_unbounded_sequence_int32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int32_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_int32_field; MemberId member_id_unbounded_sequence_int32_field = 0x00000034; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_int32_field_ec {false}; + CommonStructMember common_unbounded_sequence_int32_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int32_field, common_unbounded_sequence_int32_field_ec))}; + if (!common_unbounded_sequence_int32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_int32_field = "unbounded_sequence_int32_field"; @@ -11769,69 +3515,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_int32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_uint32_field; + ReturnCode_t return_code_unbounded_sequence_uint32_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_uint32_t_unbounded", type_ids_unbounded_sequence_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint32_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_uint32_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_ContentFilterTestType); + "_uint32_t", type_ids_unbounded_sequence_uint32_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint32_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint32_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint32_field, element_identifier_anonymous_sequence_uint32_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint32_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_uint32_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; } @@ -11842,68 +3552,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded", type_ids_unbounded_sequence_uint32_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint32_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_uint32_field; MemberId member_id_unbounded_sequence_uint32_field = 0x00000035; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_uint32_field_ec {false}; + CommonStructMember common_unbounded_sequence_uint32_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint32_field, common_unbounded_sequence_uint32_field_ec))}; + if (!common_unbounded_sequence_uint32_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_uint32_field = "unbounded_sequence_uint32_field"; @@ -11914,69 +3577,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_uint32_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_int64_field; + ReturnCode_t return_code_unbounded_sequence_int64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_int64_t_unbounded", type_ids_unbounded_sequence_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int64_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_int64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_ContentFilterTestType); + "_int64_t", type_ids_unbounded_sequence_int64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_int64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_int64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int64_field, element_identifier_anonymous_sequence_int64_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_int64_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_int64_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; } @@ -11987,68 +3614,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded", type_ids_unbounded_sequence_int64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_int64_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_int64_field; MemberId member_id_unbounded_sequence_int64_field = 0x00000036; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_int64_field_ec {false}; + CommonStructMember common_unbounded_sequence_int64_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_int64_field, common_unbounded_sequence_int64_field_ec))}; + if (!common_unbounded_sequence_int64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_int64_field = "unbounded_sequence_int64_field"; @@ -12059,69 +3639,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_int64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_uint64_field; + ReturnCode_t return_code_unbounded_sequence_uint64_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_uint64_t_unbounded", type_ids_unbounded_sequence_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint64_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_uint64_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_ContentFilterTestType); + "_uint64_t", type_ids_unbounded_sequence_uint64_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_uint64_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_uint64_t_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint64_field, element_identifier_anonymous_sequence_uint64_t_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_uint64_t_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_uint64_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; } @@ -12132,68 +3676,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded", type_ids_unbounded_sequence_uint64_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_uint64_t_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_uint64_field; MemberId member_id_unbounded_sequence_uint64_field = 0x00000037; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_uint64_field_ec {false}; + CommonStructMember common_unbounded_sequence_uint64_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_uint64_field, common_unbounded_sequence_uint64_field_ec))}; + if (!common_unbounded_sequence_uint64_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_uint64_field = "unbounded_sequence_uint64_field"; @@ -12204,69 +3701,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_uint64_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_float_field; + ReturnCode_t return_code_unbounded_sequence_float_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_float_unbounded", type_ids_unbounded_sequence_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_float_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_float_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_ContentFilterTestType); + "_float", type_ids_unbounded_sequence_float_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_float_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_float_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_float_field, element_identifier_anonymous_sequence_float_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_float_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_float_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; } @@ -12277,68 +3738,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded", type_ids_unbounded_sequence_float_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_float_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_float_field; MemberId member_id_unbounded_sequence_float_field = 0x00000038; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_float_field_ec {false}; + CommonStructMember common_unbounded_sequence_float_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_float_field, common_unbounded_sequence_float_field_ec))}; + if (!common_unbounded_sequence_float_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_float_field = "unbounded_sequence_float_field"; @@ -12349,69 +3763,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_float_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_double_field; + ReturnCode_t return_code_unbounded_sequence_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_double_unbounded", type_ids_unbounded_sequence_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_double_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_ContentFilterTestType); + "_double", type_ids_unbounded_sequence_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_double_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_double_field, element_identifier_anonymous_sequence_double_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_double_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_double_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; } @@ -12422,68 +3800,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded", type_ids_unbounded_sequence_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_double_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_double_field; MemberId member_id_unbounded_sequence_double_field = 0x00000039; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_double_field_ec {false}; + CommonStructMember common_unbounded_sequence_double_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_double_field, common_unbounded_sequence_double_field_ec))}; + if (!common_unbounded_sequence_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_double_field = "unbounded_sequence_double_field"; @@ -12494,69 +3825,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_long_double_field; + ReturnCode_t return_code_unbounded_sequence_long_double_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_longdouble_unbounded", type_ids_unbounded_sequence_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_long_double_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_long_double_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_ContentFilterTestType); + "_longdouble", type_ids_unbounded_sequence_long_double_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_long_double_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_longdouble_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_longdouble_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_longdouble_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_longdouble_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_long_double_field, element_identifier_anonymous_sequence_longdouble_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_longdouble_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_longdouble_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_long_double_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_longdouble_unbounded = EK_BOTH; } @@ -12567,68 +3862,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_longdouble_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_longdouble_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_longdouble_unbounded", type_ids_unbounded_sequence_long_double_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_longdouble_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_longdouble_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_longdouble_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_long_double_field; MemberId member_id_unbounded_sequence_long_double_field = 0x0000003a; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_long_double_field, member_flags_unbounded_sequence_long_double_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_long_double_field, member_flags_unbounded_sequence_long_double_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_long_double_field_ec {false}; + CommonStructMember common_unbounded_sequence_long_double_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_long_double_field, member_flags_unbounded_sequence_long_double_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_long_double_field, common_unbounded_sequence_long_double_field_ec))}; + if (!common_unbounded_sequence_long_double_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_long_double_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_long_double_field = "unbounded_sequence_long_double_field"; @@ -12639,69 +3887,33 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_long_double_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_bool_field; + ReturnCode_t return_code_unbounded_sequence_bool_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_bool_unbounded", type_ids_unbounded_sequence_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_bool_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_bool_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_ContentFilterTestType); + "_bool", type_ids_unbounded_sequence_bool_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_bool_field) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); return; } - TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_bool_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_bool_field, element_identifier_anonymous_sequence_bool_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_bool_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_bool_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; } @@ -12712,68 +3924,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded", type_ids_unbounded_sequence_bool_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_bool_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_bool_field; MemberId member_id_unbounded_sequence_bool_field = 0x0000003b; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_bool_field_ec {false}; + CommonStructMember common_unbounded_sequence_bool_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_bool_field, common_unbounded_sequence_bool_field_ec))}; + if (!common_unbounded_sequence_bool_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_bool_field = "unbounded_sequence_bool_field"; @@ -12784,86 +3949,41 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_bool_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_string_field; + ReturnCode_t return_code_unbounded_sequence_string_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_unbounded_sequence_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_string_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_string_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); + "anonymous_string_unbounded", type_ids_unbounded_sequence_string_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_string_field) { { SBound bound = 0; StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) + "anonymous_string_unbounded", type_ids_unbounded_sequence_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_string_field, element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_anonymous_string_unbounded_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_string_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_anonymous_string_unbounded_unbounded = EK_BOTH; } @@ -12874,68 +3994,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_anonymous_string_unbounded_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_anonymous_string_unbounded_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_unbounded_sequence_string_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_anonymous_string_unbounded_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_anonymous_string_unbounded_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_string_field; MemberId member_id_unbounded_sequence_string_field = 0x0000003c; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_string_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_string_field, member_flags_unbounded_sequence_string_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_string_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_string_field, member_flags_unbounded_sequence_string_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_string_field_ec {false}; + CommonStructMember common_unbounded_sequence_string_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_string_field, member_flags_unbounded_sequence_string_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_string_field, common_unbounded_sequence_string_field_ec))}; + if (!common_unbounded_sequence_string_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_string_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_string_field = "unbounded_sequence_string_field"; @@ -12946,142 +4019,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_string_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_enum_field; + ReturnCode_t return_code_unbounded_sequence_enum_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Color_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_Color_unbounded", type_ids_unbounded_sequence_enum_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_enum_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_enum_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Color", type_ids_unbounded_sequence_enum_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_enum_field) + { + ::register_Color_type_identifier(type_ids_unbounded_sequence_enum_field); } - TypeIdentifier* element_identifier_anonymous_sequence_Color_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_Color_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_Color_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_enum_field, element_identifier_anonymous_sequence_Color_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_Color_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_Color_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_enum_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_Color_unbounded = EK_BOTH; } @@ -13092,68 +4054,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_unbounded", type_ids_unbounded_sequence_enum_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_Color_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Color_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_Color_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_enum_field; MemberId member_id_unbounded_sequence_enum_field = 0x0000003d; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_enum_field_ec {false}; + CommonStructMember common_unbounded_sequence_enum_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_enum_field, common_unbounded_sequence_enum_field_ec))}; + if (!common_unbounded_sequence_enum_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_enum_field = "unbounded_sequence_enum_field"; @@ -13164,142 +4079,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_enum_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_enum2_field; + ReturnCode_t return_code_unbounded_sequence_enum2_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Material_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_Material_unbounded", type_ids_unbounded_sequence_enum2_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_enum2_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_enum2_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } + "Material", type_ids_unbounded_sequence_enum2_field); + + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_enum2_field) + { + ::register_Material_type_identifier(type_ids_unbounded_sequence_enum2_field); } - TypeIdentifier* element_identifier_anonymous_sequence_Material_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_Material_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_Material_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_enum2_field, element_identifier_anonymous_sequence_Material_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_Material_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_Material_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_enum2_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_Material_unbounded = EK_BOTH; } @@ -13310,68 +4114,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_unbounded", type_ids_unbounded_sequence_enum2_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_Material_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_Material_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_Material_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_enum2_field; MemberId member_id_unbounded_sequence_enum2_field = 0x0000003e; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_enum2_field_ec {false}; + CommonStructMember common_unbounded_sequence_enum2_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_enum2_field, common_unbounded_sequence_enum2_field_ec))}; + if (!common_unbounded_sequence_enum2_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_enum2_field = "unbounded_sequence_enum2_field"; @@ -13382,1257 +4139,31 @@ void register_ContentFilterTestType_type_identifier( TypeObjectUtils::add_complete_struct_member(member_seq_ContentFilterTestType, member_unbounded_sequence_enum2_field); } { - return_code_ContentFilterTestType = + TypeIdentifierPair type_ids_unbounded_sequence_struct_field; + ReturnCode_t return_code_unbounded_sequence_struct_field {eprosima::fastdds::dds::RETCODE_OK}; + return_code_unbounded_sequence_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_StructType_unbounded", type_ids_ContentFilterTestType); + "anonymous_sequence_StructType_unbounded", type_ids_unbounded_sequence_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_struct_field) { - return_code_ContentFilterTestType = + return_code_unbounded_sequence_struct_field = eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_ContentFilterTestType); + "StructType", type_ids_unbounded_sequence_struct_field); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) + if (eprosima::fastdds::dds::RETCODE_OK != return_code_unbounded_sequence_struct_field) { - { - StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, - true, false); - ReturnCode_t return_code_StructType; - TypeIdentifierPair type_ids_StructType; - QualifiedTypeName type_name_StructType = "StructType"; - eprosima::fastcdr::optional type_ann_builtin_StructType; - eprosima::fastcdr::optional ann_custom_StructType; - AppliedAnnotationSeq tmp_ann_custom_StructType; - eprosima::fastcdr::optional verbatim_StructType; - if (!tmp_ann_custom_StructType.empty()) - { - ann_custom_StructType = tmp_ann_custom_StructType; - } - - CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); - CompleteStructHeader header_StructType; - header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); - CompleteStructMemberSeq member_seq_StructType; - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_char", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_char_field; - MemberId member_id_char_field = 0x00000000; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure char_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_char_field = "char_field"; - eprosima::fastcdr::optional member_ann_builtin_char_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); - CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_byte", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint8_field; - MemberId member_id_uint8_field = 0x00000001; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint8_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint8_field = "uint8_field"; - eprosima::fastcdr::optional member_ann_builtin_uint8_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); - CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int16_field; - MemberId member_id_int16_field = 0x00000002; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int16_field = "int16_field"; - eprosima::fastcdr::optional member_ann_builtin_int16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); - CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint16_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint16_field; - MemberId member_id_uint16_field = 0x00000003; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint16_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint16_field = "uint16_field"; - eprosima::fastcdr::optional member_ann_builtin_uint16_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); - CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int32_field; - MemberId member_id_int32_field = 0x00000004; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int32_field = "int32_field"; - eprosima::fastcdr::optional member_ann_builtin_int32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); - CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint32_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint32_field; - MemberId member_id_uint32_field = 0x00000005; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint32_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint32_field = "uint32_field"; - eprosima::fastcdr::optional member_ann_builtin_uint32_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); - CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_int64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_int64_field; - MemberId member_id_int64_field = 0x00000006; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure int64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_int64_field = "int64_field"; - eprosima::fastcdr::optional member_ann_builtin_int64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); - CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_uint64_t", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_uint64_field; - MemberId member_id_uint64_field = 0x00000007; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure uint64_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_uint64_field = "uint64_field"; - eprosima::fastcdr::optional member_ann_builtin_uint64_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); - CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_float", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_float_field; - MemberId member_id_float_field = 0x00000008; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure float_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_float_field = "float_field"; - eprosima::fastcdr::optional member_ann_builtin_float_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); - CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_double", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_double_field; - MemberId member_id_double_field = 0x00000009; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_double_field = "double_field"; - eprosima::fastcdr::optional member_ann_builtin_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); - CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_longdouble", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "long_double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_long_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_long_double_field; - MemberId member_id_long_double_field = 0x0000000a; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_long_double_field = TypeObjectUtils::build_common_struct_member(member_id_long_double_field, member_flags_long_double_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure long_double_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_long_double_field = "long_double_field"; - eprosima::fastcdr::optional member_ann_builtin_long_double_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_long_double_field = TypeObjectUtils::build_complete_member_detail(name_long_double_field, member_ann_builtin_long_double_field, ann_custom_StructType); - CompleteStructMember member_long_double_field = TypeObjectUtils::build_complete_struct_member(common_long_double_field, detail_long_double_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_long_double_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "_bool", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_bool_field; - MemberId member_id_bool_field = 0x0000000b; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure bool_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_bool_field = "bool_field"; - eprosima::fastcdr::optional member_ann_builtin_bool_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); - CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - { - SBound bound = 0; - StringSTypeDefn string_sdefn = TypeObjectUtils::build_string_s_type_defn(bound); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_string_type_identifier(string_sdefn, - "anonymous_string_unbounded")) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); - } - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_string_unbounded", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_string_field; - MemberId member_id_string_field = 0x0000000c; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure string_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_string_field = "string_field"; - eprosima::fastcdr::optional member_ann_builtin_string_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); - CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Color = 0; - BitBound bit_bound_Color = 32; - CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); - QualifiedTypeName type_name_Color = "Color"; - eprosima::fastcdr::optional type_ann_builtin_Color; - eprosima::fastcdr::optional ann_custom_Color; - CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); - CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); - CompleteEnumeratedLiteralSeq literal_seq_Color; - { - EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); - eprosima::fastcdr::optional member_ann_builtin_RED; - ann_custom_Color.reset(); - MemberName name_RED = "RED"; - CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); - CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); - } - { - EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); - eprosima::fastcdr::optional member_ann_builtin_GREEN; - ann_custom_Color.reset(); - MemberName name_GREEN = "GREEN"; - CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); - CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); - } - { - EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); - eprosima::fastcdr::optional member_ann_builtin_BLUE; - ann_custom_Color.reset(); - MemberName name_BLUE = "BLUE"; - CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); - CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); - } - { - EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); - eprosima::fastcdr::optional member_ann_builtin_YELLOW; - ann_custom_Color.reset(); - MemberName name_YELLOW = "YELLOW"; - CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); - CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); - } - { - EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); - eprosima::fastcdr::optional member_ann_builtin_MAGENTA; - ann_custom_Color.reset(); - MemberName name_MAGENTA = "MAGENTA"; - CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); - CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); - } - CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, - literal_seq_Color); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Color", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum_field; - MemberId member_id_enum_field = 0x0000000d; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum_field = "enum_field"; - eprosima::fastcdr::optional member_ann_builtin_enum_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); - CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); - } - { - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EnumTypeFlag enum_flags_Material = 0; - BitBound bit_bound_Material = 32; - CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); - QualifiedTypeName type_name_Material = "Material"; - eprosima::fastcdr::optional type_ann_builtin_Material; - eprosima::fastcdr::optional ann_custom_Material; - CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); - CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); - CompleteEnumeratedLiteralSeq literal_seq_Material; - { - EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); - eprosima::fastcdr::optional member_ann_builtin_WOOD; - ann_custom_Material.reset(); - MemberName name_WOOD = "WOOD"; - CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); - CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); - } - { - EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); - eprosima::fastcdr::optional member_ann_builtin_PLASTIC; - ann_custom_Material.reset(); - MemberName name_PLASTIC = "PLASTIC"; - CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); - CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); - } - { - EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); - eprosima::fastcdr::optional member_ann_builtin_METAL; - ann_custom_Material.reset(); - MemberName name_METAL = "METAL"; - CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); - CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); - } - { - EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); - eprosima::fastcdr::optional member_ann_builtin_CONCRETE; - ann_custom_Material.reset(); - MemberName name_CONCRETE = "CONCRETE"; - CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); - CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); - } - { - EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); - CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); - eprosima::fastcdr::optional member_ann_builtin_STONE; - ann_custom_Material.reset(); - MemberName name_STONE = "STONE"; - CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); - CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); - TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); - } - CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, - literal_seq_Material); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "Material", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - } - StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, - false, false, false, false); - CommonStructMember common_enum2_field; - MemberId member_id_enum2_field = 0x0000000e; - if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && - EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); - } - else - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure enum2_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); - return; - } - MemberName name_enum2_field = "enum2_field"; - eprosima::fastcdr::optional member_ann_builtin_enum2_field; - ann_custom_StructType.reset(); - CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); - CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); - TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); - } - CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); - if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string(), type_id)) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType already registered in TypeObjectRegistry for a different type."); - } - return_code_StructType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "StructType", type_ids_StructType); - if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } - return_code_ContentFilterTestType = return_code_StructType; - type_ids_ContentFilterTestType = type_ids_StructType; - } + ::register_StructType_type_identifier(type_ids_unbounded_sequence_struct_field); } - TypeIdentifier* element_identifier_anonymous_sequence_StructType_unbounded {nullptr}; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool element_identifier_anonymous_sequence_StructType_unbounded_ec {false}; + TypeIdentifier* element_identifier_anonymous_sequence_StructType_unbounded {new TypeIdentifier(TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_struct_field, element_identifier_anonymous_sequence_StructType_unbounded_ec))}; + if (!element_identifier_anonymous_sequence_StructType_unbounded_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Sequence element TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Sequence element TypeIdentifier inconsistent."); return; } EquivalenceKind equiv_kind_anonymous_sequence_StructType_unbounded = EK_COMPLETE; - if (TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d()) + if (TK_NONE == type_ids_unbounded_sequence_struct_field.type_identifier2()._d()) { equiv_kind_anonymous_sequence_StructType_unbounded = EK_BOTH; } @@ -14643,68 +4174,21 @@ void register_ContentFilterTestType_type_identifier( PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_unbounded, bound, eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_unbounded)); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_unbounded")) + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_unbounded", type_ids_unbounded_sequence_struct_field)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "anonymous_sequence_StructType_unbounded already registered in TypeObjectRegistry for a different type."); } } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "anonymous_sequence_StructType_unbounded", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "anonymous_sequence_StructType_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } - StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); - CommonStructMember common_unbounded_sequence_struct_field; MemberId member_id_unbounded_sequence_struct_field = 0x0000003f; - if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1()._d() || TK_NONE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier1()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_ContentFilterTestType.type_identifier1()); - } - else if (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2()._d() || - (TI_PLAIN_SEQUENCE_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || - (TI_PLAIN_SEQUENCE_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_sdefn().header().equiv_kind()) || - (TI_PLAIN_ARRAY_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().array_ldefn().header().equiv_kind()) || - (TI_PLAIN_MAP_SMALL == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || - (TI_PLAIN_MAP_LARGE == type_ids_ContentFilterTestType.type_identifier2()._d() && - (EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().header().equiv_kind() || - EK_COMPLETE == type_ids_ContentFilterTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) - { - common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_ContentFilterTestType.type_identifier2()); - } - else + bool common_unbounded_sequence_struct_field_ec {false}; + CommonStructMember common_unbounded_sequence_struct_field {TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, TypeObjectUtils::retrieve_complete_type_identifier(type_ids_unbounded_sequence_struct_field, common_unbounded_sequence_struct_field_ec))}; + if (!common_unbounded_sequence_struct_field_ec) { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); - type_id = TypeIdentifier(); + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); return; } MemberName name_unbounded_sequence_struct_field = "unbounded_sequence_struct_field"; @@ -14716,21 +4200,11 @@ void register_ContentFilterTestType_type_identifier( } CompleteStructType struct_type_ContentFilterTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_ContentFilterTestType, header_ContentFilterTestType, member_seq_ContentFilterTestType); if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == - TypeObjectUtils::build_and_register_struct_type_object(struct_type_ContentFilterTestType, type_name_ContentFilterTestType.to_string(), type_id)) + TypeObjectUtils::build_and_register_struct_type_object(struct_type_ContentFilterTestType, type_name_ContentFilterTestType.to_string(), type_ids_ContentFilterTestType)) { EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, "ContentFilterTestType already registered in TypeObjectRegistry for a different type."); } - return_code_ContentFilterTestType = - eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( - "ContentFilterTestType", type_ids_ContentFilterTestType); - if (return_code_ContentFilterTestType != eprosima::fastdds::dds::RETCODE_OK) - { - EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, - "ContentFilterTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); - type_id = TypeIdentifier(); - return; - } } } diff --git a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObjectSupport.hpp b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObjectSupport.hpp index 3a639d61e8d..5586eef253a 100644 --- a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObjectSupport.hpp +++ b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypeTypeObjectSupport.hpp @@ -35,13 +35,32 @@ #define eProsima_user_DllExport #endif // _WIN32 -/** - * @brief Register every TypeObject representation defined in the IDL file in Fast DDS TypeObjectRegistry. - */ -eProsima_user_DllExport void register_ContentFilterTestType_type_objects(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +/** + * @brief Register Color related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Color_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); +/** + * @brief Register Material related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + * + * @param[out] TypeIdentifier of the registered type. + * The returned TypeIdentifier corresponds to the complete TypeIdentifier in case of hashed TypeIdentifiers. + * Invalid TypeIdentifier is returned in case of error. + */ +eProsima_user_DllExport void register_Material_type_identifier( + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register StructType related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -53,7 +72,7 @@ eProsima_user_DllExport void register_ContentFilterTestType_type_objects(); * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_StructType_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); /** * @brief Register ContentFilterTestType related TypeIdentifier. * Fully-descriptive TypeIdentifiers are directly registered. @@ -65,7 +84,7 @@ eProsima_user_DllExport void register_StructType_type_identifier( * Invalid TypeIdentifier is returned in case of error. */ eProsima_user_DllExport void register_ContentFilterTestType_type_identifier( - eprosima::fastdds::dds::xtypes::TypeIdentifier& type_id); + eprosima::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); #endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC diff --git a/test/unittest/dds/xtypes/type_representation/TypeObjectRegistryTests.cpp b/test/unittest/dds/xtypes/type_representation/TypeObjectRegistryTests.cpp index c132ec44e3f..03132524aa7 100644 --- a/test/unittest/dds/xtypes/type_representation/TypeObjectRegistryTests.cpp +++ b/test/unittest/dds/xtypes/type_representation/TypeObjectRegistryTests.cpp @@ -38,47 +38,49 @@ TEST(TypeObjectRegistryTests, register_type_object) complete_alias_type.header().detail().type_name("alias_name"); CompleteTypeObject type_object; type_object.alias_type(complete_alias_type); + TypeIdentifierPair type_ids; + type_ids.type_identifier1(type_id); #if !defined(NDEBUG) EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("alias", - type_object, type_id)); + type_object, type_ids)); #endif // if !defined(NDEBUG) complete_alias_type.body().common().related_type(type_id); type_object.alias_type(complete_alias_type); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("", type_object, - type_id)); + type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("alias", - type_object, type_id)); + type_object, type_ids)); complete_alias_type.header().detail().type_name("other_name"); type_object.alias_type(complete_alias_type); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("alias", - type_object, type_id)); + type_object, type_ids)); } // Test TypeObjectRegistry::register_type_identifier TEST(TypeObjectRegistryTests, register_type_identifier) { - TypeIdentifier type_id; - type_id.equivalence_hash(EquivalenceHash()); + TypeIdentifierPair type_ids; + type_ids.type_identifier1().equivalence_hash(EquivalenceHash()); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, DomainParticipantFactory::get_instance()->type_object_registry().register_type_identifier("hash_type_id", - type_id)); + type_ids)); StringSTypeDefn small_string; small_string.bound(10); - type_id.string_sdefn(small_string); + type_ids.type_identifier1().string_sdefn(small_string); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, DomainParticipantFactory::get_instance()->type_object_registry().register_type_identifier("", - type_id)); + type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().register_type_identifier("string_type_id", - type_id)); - type_id.string_sdefn().bound(5); + type_ids)); + type_ids.type_identifier1().string_sdefn().bound(5); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, DomainParticipantFactory::get_instance()->type_object_registry().register_type_identifier("string_type_id", - type_id)); + type_ids)); } // Test TypeObjectRegistry::get_type_objects @@ -102,9 +104,11 @@ TEST(TypeObjectRegistryTests, get_type_objects) CompleteTypeObject complete_type_object; complete_type_object.alias_type(complete_alias_type); type_object.complete(complete_type_object); + TypeIdentifierPair type_ids; + type_ids.type_identifier1(alias_type_id); ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("test_name", - type_object.complete(), alias_type_id)); + type_object.complete(), type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_objects("test_name", type_objects)); @@ -114,7 +118,7 @@ TEST(TypeObjectRegistryTests, get_type_objects) // Test TypeObjectRegistry::get_type_identifiers TEST(TypeObjectRegistryTests, get_type_identifiers) { - TypeIdentifierPair type_ids; + TypeIdentifierPair out_type_ids, type_ids; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers("", type_ids)); TypeIdentifier none_type_id; @@ -126,14 +130,17 @@ TEST(TypeObjectRegistryTests, get_type_identifiers) // Register fully descriptive TypeIdentifier StringSTypeDefn small_string = TypeObjectUtils::build_string_s_type_defn(32); type_id.string_sdefn(small_string); + out_type_ids.type_identifier1(type_id); ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().register_type_identifier("test_type", - type_id)); + out_type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers("test_type", type_ids)); EXPECT_EQ(type_ids.type_identifier1(), type_id); EXPECT_EQ(type_ids.type_identifier2(), none_type_id); + EXPECT_EQ(type_ids.type_identifier1(), out_type_ids.type_identifier1()); + EXPECT_EQ(type_ids.type_identifier2(), out_type_ids.type_identifier2()); // Register hash TypeIdentifier EXPECT_EQ(eprosima::fastdds::dds::RETCODE_NO_DATA, @@ -147,7 +154,7 @@ TEST(TypeObjectRegistryTests, get_type_identifiers) type_object.alias_type(complete_alias_type); ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().register_type_object("alias", - type_object, type_id)); + type_object, out_type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers("alias", type_ids)); EXPECT_TRUE((type_ids.type_identifier1()._d() == EK_MINIMAL && type_ids.type_identifier2()._d() == EK_COMPLETE) || diff --git a/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp b/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp index 513c69e880a..8d7d69fc649 100644 --- a/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp +++ b/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp @@ -48,11 +48,14 @@ TEST(TypeObjectUtilsTests, build_type_object_hash_id_wrong_discriminator) // Build inconsistent StructMemberFlag TEST(TypeObjectUtilsTests, build_inconsistent_struct_member_flag) { - EXPECT_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, + EXPECT_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction:: + DISCARD, true, false, true, false), InvalidArgumentError); - EXPECT_NO_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, + EXPECT_NO_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction:: + DISCARD, true, false, false, false)); - EXPECT_NO_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, + EXPECT_NO_THROW(TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructFailAction:: + DISCARD, false, false, true, false)); } @@ -73,8 +76,8 @@ void register_empty_structure_type_object() eprosima::fastcdr::optional(), empty_struct_name); CompleteStructHeader header = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail); CompleteStructType struct_type = TypeObjectUtils::build_complete_struct_type(0, header, CompleteStructMemberSeq()); - TypeIdentifier type_id; - TypeObjectUtils::build_and_register_struct_type_object(struct_type, empty_struct_name, type_id); + TypeIdentifierPair type_ids; + TypeObjectUtils::build_and_register_struct_type_object(struct_type, empty_struct_name, type_ids); } void register_plain_seq_type_object( @@ -82,11 +85,12 @@ void register_plain_seq_type_object( { std::string plain_seq_name = "plain_sequence"; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_COMPLETE, flags); PlainSequenceSElemDefn plain_seq = TypeObjectUtils::build_plain_sequence_s_elem_defn( header, 255, complete_typeid); - TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, plain_seq_name); + TypeIdentifierPair type_ids; + TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, plain_seq_name, type_ids); } void register_alias_type_object() @@ -102,7 +106,8 @@ void register_alias_type_object() eprosima::fastcdr::optional(), "type_name"); CompleteAliasHeader alias_header = TypeObjectUtils::build_complete_alias_header(empty_type_detail); CompleteAliasType alias_type = TypeObjectUtils::build_complete_alias_type(0, alias_header, int16_body); - TypeObjectUtils::build_and_register_alias_type_object(alias_type, "int16_alias"); + TypeIdentifierPair type_ids; + TypeObjectUtils::build_and_register_alias_type_object(alias_type, "int16_alias", type_ids); } // Build PlainSequenceSElemDefn with inconsistent parameters. @@ -110,7 +115,7 @@ TEST(TypeObjectUtilsTests, build_plain_sequence_s_elem_defn_inconsistencies) { eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); PlainCollectionHeader complete_header = TypeObjectUtils::build_plain_collection_header( EK_COMPLETE, flags); #if !defined(NDEBUG) @@ -192,7 +197,7 @@ TEST(TypeObjectUtilsTests, build_plain_sequence_l_elem_defn_inconsistencies) { eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); PlainCollectionHeader complete_header = TypeObjectUtils::build_plain_collection_header( EK_COMPLETE, flags); #if !defined(NDEBUG) @@ -288,7 +293,7 @@ TEST(TypeObjectUtilsTests, build_plain_array_s_elem_defn_inconsistencies) { eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); SBoundSeq bound_seq; SBound bound = 10; TypeObjectUtils::add_array_dimension(bound_seq, bound); @@ -381,7 +386,7 @@ TEST(TypeObjectUtilsTests, build_plain_array_l_elem_defn_inconsistencies) { eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); LBoundSeq bound_seq; LBound bound = 256; TypeObjectUtils::add_array_dimension(bound_seq, bound); @@ -484,7 +489,7 @@ TEST(TypeObjectUtilsTests, build_plain_map_s_type_defn_inconsistencies) eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; eprosima::fastcdr::external key_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); PlainCollectionHeader complete_header = TypeObjectUtils::build_plain_collection_header( EK_COMPLETE, flags); #if !defined(NDEBUG) @@ -918,7 +923,7 @@ TEST(TypeObjectUtilsTests, build_plain_map_l_type_defn_inconsistencies) eprosima::fastcdr::external test_identifier{new TypeIdentifier()}; eprosima::fastcdr::external key_identifier{new TypeIdentifier()}; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::TRIM, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM, false); PlainCollectionHeader complete_header = TypeObjectUtils::build_plain_collection_header( EK_COMPLETE, flags); #if !defined(NDEBUG) @@ -1357,52 +1362,51 @@ TEST(TypeObjectUtilsTests, build_plain_map_l_type_defn_inconsistencies) // Register small string/wstring. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_s_string) { + TypeIdentifierPair type_ids; StringSTypeDefn string_defn = TypeObjectUtils::build_string_s_type_defn(32); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_string_type_identifier(string_defn, - "small_string")); + TypeObjectUtils::build_and_register_s_string_type_identifier(string_defn, "small_string", type_ids)); // Registering twice the same TypeIdentifier should not fail EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_string_type_identifier(string_defn, - "small_string")); + TypeObjectUtils::build_and_register_s_string_type_identifier(string_defn, "small_string", type_ids)); // Registering another TypeIdentifier with the same name should return RETCODE_BAD_PARAMETER StringSTypeDefn another_string_defn = TypeObjectUtils::build_string_s_type_defn(100); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_s_string_type_identifier( - another_string_defn, - "small_string")); + another_string_defn, "small_string", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_s_string_type_identifier( - another_string_defn, - type_name)); + another_string_defn, type_name, + type_ids)); } // Register large string/wstring. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_l_string) { + TypeIdentifierPair type_ids; StringLTypeDefn string_defn = TypeObjectUtils::build_string_l_type_defn(1000); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_string_type_identifier(string_defn, - "large_string")); + TypeObjectUtils::build_and_register_l_string_type_identifier(string_defn, "large_string", type_ids)); // Registering twice the same TypeIdentifier should not fail EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_string_type_identifier(string_defn, - "large_string")); + TypeObjectUtils::build_and_register_l_string_type_identifier(string_defn, "large_string", type_ids)); // Registering another TypeIdentifier with the same name should return RETCODE_BAD_PARAMETER StringLTypeDefn another_string_defn = TypeObjectUtils::build_string_l_type_defn(2000); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_l_string_type_identifier( - another_string_defn, - "large_string")); + another_string_defn, "large_string", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_l_string_type_identifier( - another_string_defn, - type_name)); + another_string_defn, type_name, + type_ids)); } // Register small sequence. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_s_sequence) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_FLOAT128); @@ -1414,24 +1418,24 @@ TEST(TypeObjectUtilsTests, register_s_sequence) PlainSequenceSElemDefn another_plain_seq = TypeObjectUtils::build_plain_sequence_s_elem_defn( header, 255, other_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, - "small_sequence")); + TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, "small_sequence", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, - "small_sequence")); + TypeObjectUtils::build_and_register_s_sequence_type_identifier(plain_seq, "small_sequence", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_s_sequence_type_identifier( another_plain_seq, - "small_sequence")); + "small_sequence", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, - TypeObjectUtils::build_and_register_s_sequence_type_identifier(another_plain_seq, type_name)); + TypeObjectUtils::build_and_register_s_sequence_type_identifier(another_plain_seq, type_name, type_ids)); } // Register large sequence. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_l_sequence) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_FLOAT128); @@ -1442,24 +1446,23 @@ TEST(TypeObjectUtilsTests, register_l_sequence) PlainSequenceLElemDefn another_plain_seq = TypeObjectUtils::build_plain_sequence_l_elem_defn( header, 256, other_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_sequence_type_identifier(plain_seq, - "large_sequence")); + TypeObjectUtils::build_and_register_l_sequence_type_identifier(plain_seq, "large_sequence", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_sequence_type_identifier(plain_seq, - "large_sequence")); + TypeObjectUtils::build_and_register_l_sequence_type_identifier(plain_seq, "large_sequence", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_l_sequence_type_identifier( - another_plain_seq, - "large_sequence")); + another_plain_seq, "large_sequence", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, - TypeObjectUtils::build_and_register_l_sequence_type_identifier(another_plain_seq, type_name)); + TypeObjectUtils::build_and_register_l_sequence_type_identifier(another_plain_seq, type_name, type_ids)); } // Register small array. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_s_array) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_FLOAT128); @@ -1469,29 +1472,29 @@ TEST(TypeObjectUtilsTests, register_s_array) PlainArraySElemDefn plain_array = TypeObjectUtils::build_plain_array_s_elem_defn(header, array_bounds, primitive_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_array_type_identifier(plain_array, - "small_array")); + TypeObjectUtils::build_and_register_s_array_type_identifier(plain_array, "small_array", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_s_array_type_identifier(plain_array, - "small_array")); + TypeObjectUtils::build_and_register_s_array_type_identifier(plain_array, "small_array", type_ids)); bound = 100; TypeObjectUtils::add_array_dimension(array_bounds, bound); PlainArraySElemDefn another_plain_array = TypeObjectUtils::build_plain_array_s_elem_defn(header, array_bounds, primitive_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_s_array_type_identifier( - another_plain_array, - "small_array")); + another_plain_array, "small_array", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_s_array_type_identifier( another_plain_array, - type_name)); + type_name, + type_ids)); } // Register large array. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_l_array) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_FLOAT128); @@ -1501,29 +1504,28 @@ TEST(TypeObjectUtilsTests, register_l_array) PlainArrayLElemDefn plain_array = TypeObjectUtils::build_plain_array_l_elem_defn(header, array_bounds, primitive_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_array_type_identifier(plain_array, - "large_array")); + TypeObjectUtils::build_and_register_l_array_type_identifier(plain_array, "large_array", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_l_array_type_identifier(plain_array, - "large_array")); + TypeObjectUtils::build_and_register_l_array_type_identifier(plain_array, "large_array", type_ids)); bound = 1000; TypeObjectUtils::add_array_dimension(array_bounds, bound); PlainArrayLElemDefn another_plain_array = TypeObjectUtils::build_plain_array_l_elem_defn(header, array_bounds, primitive_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_l_array_type_identifier( - another_plain_array, - "large_array")); + another_plain_array, "large_array", + type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_l_array_type_identifier( - another_plain_array, - type_name)); + another_plain_array, type_name, + type_ids)); } // Register small map. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_s_map) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_UINT32); @@ -1534,22 +1536,24 @@ TEST(TypeObjectUtilsTests, register_s_map) PlainMapSTypeDefn another_plain_map = TypeObjectUtils::build_plain_map_s_type_defn(header, 10, primitive_identifier, flags, key_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_s_map_type_identifier(plain_map, - "small_map")); + "small_map", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_s_map_type_identifier(plain_map, - "small_map")); + "small_map", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_s_map_type_identifier( - another_plain_map, "small_map")); + another_plain_map, "small_map", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_s_map_type_identifier( another_plain_map, - type_name)); + type_name, + type_ids)); } // Register large map. This test does not check member consistency (only checked in Debug build mode). TEST(TypeObjectUtilsTests, register_l_map) { + TypeIdentifierPair type_ids; CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, false); PlainCollectionHeader header = TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); eprosima::fastcdr::external primitive_identifier{new TypeIdentifier()}; primitive_identifier->_d(TK_UINT32); @@ -1560,20 +1564,21 @@ TEST(TypeObjectUtilsTests, register_l_map) PlainMapLTypeDefn other_plain_map = TypeObjectUtils::build_plain_map_l_type_defn(header, 500, primitive_identifier, flags, key_identifier); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_l_map_type_identifier(plain_map, - "large_map")); + "large_map", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_l_map_type_identifier(plain_map, - "large_map")); + "large_map", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_l_map_type_identifier( - other_plain_map, "large_map")); + other_plain_map, "large_map", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_l_map_type_identifier( - other_plain_map, - type_name)); + other_plain_map, type_name, + type_ids)); } // Build AppliedAnnotation invalid TypeIdentifier TEST(TypeObjectUtilsTests, build_applied_annotation_invalid_type_identifier) { + TypeIdentifierPair type_ids; TypeIdentifier type_id; type_id._d(TK_INT32); EXPECT_THROW(AppliedAnnotation annotation = TypeObjectUtils::build_applied_annotation(type_id, @@ -1582,8 +1587,7 @@ TEST(TypeObjectUtilsTests, build_applied_annotation_invalid_type_identifier) CompleteAnnotationType custom_annotation = TypeObjectUtils::build_complete_annotation_type(0, annotation_header, CompleteAnnotationParameterSeq()); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_annotation_type_object(custom_annotation, - "custom", type_id)); + TypeObjectUtils::build_and_register_annotation_type_object(custom_annotation, "custom", type_ids)); TypeIdentifierPair custom_annotation_ids; ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers("custom", @@ -1608,7 +1612,7 @@ TEST(TypeObjectUtilsTests, build_complete_member_detail_empty_member_name) TEST(TypeObjectUtilsTests, build_complete_struct_member_inconsistent_hashid_member_id) { StructMemberFlag basic_flags = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false, + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); TypeIdentifier type_id; type_id._d(TK_INT32); @@ -1648,9 +1652,9 @@ TEST(TypeObjectUtilsTests, build_complete_struct_member_inconsistent_hashid_memb TEST(TypeObjectUtilsTests, build_common_union_member_empty_case_labels) { UnionMemberFlag basic_flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); UnionMemberFlag default_flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, true, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, true, false); TypeIdentifier type_id; type_id._d(TK_INT32); EXPECT_THROW(CommonUnionMember common = TypeObjectUtils::build_common_union_member(0, basic_flags, type_id, @@ -1663,7 +1667,7 @@ TEST(TypeObjectUtilsTests, build_common_union_member_empty_case_labels) TEST(TypeObjectUtilsTests, build_complete_union_member_inconsistent_hashid_member_id) { UnionMemberFlag basic_flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); TypeIdentifier type_id; type_id._d(TK_INT32); CommonUnionMember common = TypeObjectUtils::build_common_union_member(0x047790DA, basic_flags, type_id, @@ -1719,7 +1723,7 @@ void large_string_type_identifier( const PlainCollectionHeader plain_collection_header() { CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); return TypeObjectUtils::build_plain_collection_header(EK_BOTH, flags); } @@ -1776,7 +1780,7 @@ void small_map_type_identifier( PlainCollectionHeader collection_header = plain_collection_header(); eprosima::fastcdr::external primitive_type_id = primitive_type_identifier(); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); PlainMapSTypeDefn small_map = TypeObjectUtils::build_plain_map_s_type_defn(collection_header, 100, primitive_type_id, flags, primitive_type_id); type_id.map_sdefn(small_map); @@ -1788,7 +1792,7 @@ void large_map_type_identifier( PlainCollectionHeader collection_header = plain_collection_header(); eprosima::fastcdr::external primitive_type_id = primitive_type_identifier(); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); PlainMapLTypeDefn large_map = TypeObjectUtils::build_plain_map_l_type_defn(collection_header, 500, primitive_type_id, flags, primitive_type_id); type_id.map_ldefn(large_map); @@ -1826,6 +1830,7 @@ const CompleteAliasType float32_alias() void register_basic_enum() { + TypeIdentifierPair type_ids; std::string basic_enum_name = "basic_enum"; CommonEnumeratedHeader common = TypeObjectUtils::build_common_enumerated_header(32); CompleteTypeDetail detail = TypeObjectUtils::build_complete_type_detail( @@ -1841,11 +1846,12 @@ void register_basic_enum() CompleteEnumeratedLiteralSeq literal_seq; TypeObjectUtils::add_complete_enumerated_literal(literal_seq, literal); CompleteEnumeratedType enum_type = TypeObjectUtils::build_complete_enumerated_type(0, header, literal_seq); - TypeObjectUtils::build_and_register_enumerated_type_object(enum_type, basic_enum_name); + TypeObjectUtils::build_and_register_enumerated_type_object(enum_type, basic_enum_name, type_ids); } void register_basic_bitmask() { + TypeIdentifierPair type_ids; std::string basic_bitmask_name = "basic_bitmask"; CommonEnumeratedHeader common = TypeObjectUtils::build_common_enumerated_header(32, true); CompleteTypeDetail detail = TypeObjectUtils::build_complete_type_detail( @@ -1860,14 +1866,14 @@ void register_basic_bitmask() CompleteBitflagSeq flag_seq; TypeObjectUtils::add_complete_bitflag(flag_seq, flag); CompleteBitmaskType bitmask_type = TypeObjectUtils::build_complete_bitmask_type(0, header, flag_seq); - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type, basic_bitmask_name); + TypeObjectUtils::build_and_register_bitmask_type_object(bitmask_type, basic_bitmask_name, type_ids); } // Build CommonDiscriminatorMember with inconsistent TypeIdentifier TEST(TypeObjectUtilsTests, build_common_discriminator_member_inconsistent_type_identifier) { UnionDiscriminatorFlag flags = TypeObjectUtils::build_union_discriminator_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); TypeIdentifier type_id; EXPECT_THROW(CommonDiscriminatorMember member = TypeObjectUtils::build_common_discriminator_member(flags, type_id), InvalidArgumentError); @@ -1960,8 +1966,8 @@ TEST(TypeObjectUtilsTests, build_common_discriminator_member_inconsistent_type_i // Alias: int16_t & float CompleteAliasType int16_alias = int_16_alias(); CompleteAliasType float_alias = float32_alias(); - TypeObjectUtils::build_and_register_alias_type_object(int16_alias, "alias_int16"); - TypeObjectUtils::build_and_register_alias_type_object(float_alias, "alias_float"); + TypeObjectUtils::build_and_register_alias_type_object(int16_alias, "alias_int16", type_ids); + TypeObjectUtils::build_and_register_alias_type_object(float_alias, "alias_float", type_ids); TypeIdentifierPair alias_type_identifiers; ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry(). get_type_identifiers("alias_float", alias_type_identifiers)); @@ -1978,7 +1984,7 @@ TEST(TypeObjectUtilsTests, build_complete_union_member_invalid_name) { std::string invalid_name = "discriminator"; UnionMemberFlag member_flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); TypeIdentifier type_id; type_id._d(TK_FLOAT128); UnionCaseLabelSeq case_labels; @@ -2328,7 +2334,7 @@ TEST(TypeObjectUtilsTests, build_complete_sequence_type_non_empty_flags) CompleteCollectionHeader header = TypeObjectUtils::build_complete_collection_header(common_header, eprosima::fastcdr::optional()); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_FLOAT128); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2370,7 +2376,7 @@ TEST(TypeObjectUtilsTests, build_complete_array_type_non_empty_flags) eprosima::fastcdr::optional(), "array_type_name"); CompleteArrayHeader header = TypeObjectUtils::build_complete_array_header(common_header, type_detail); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_FLOAT128); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2391,7 +2397,7 @@ TEST(TypeObjectUtilsTests, build_complete_map_type_non_empty_flags) CompleteCollectionHeader header = TypeObjectUtils::build_complete_collection_header(common_header, eprosima::fastcdr::optional()); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_INT16); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2411,7 +2417,7 @@ TEST(TypeObjectUtilsTests, build_complete_map_type_inconsistent_key) CompleteCollectionHeader header = TypeObjectUtils::build_complete_collection_header(common_header, eprosima::fastcdr::optional()); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_FLOAT32); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2522,8 +2528,8 @@ TEST(TypeObjectUtilsTests, build_complete_map_type_inconsistent_key) key, element), InvalidArgumentError); CompleteAliasType int16_alias = int_16_alias(); CompleteAliasType float_alias = float32_alias(); - TypeObjectUtils::build_and_register_alias_type_object(int16_alias, "alias_int16"); - TypeObjectUtils::build_and_register_alias_type_object(float_alias, "alias_float"); + TypeObjectUtils::build_and_register_alias_type_object(int16_alias, "alias_int16", type_ids); + TypeObjectUtils::build_and_register_alias_type_object(float_alias, "alias_float", type_ids); TypeIdentifierPair alias_type_identifiers; ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry(). get_type_identifiers("alias_float", alias_type_identifiers)); @@ -2748,6 +2754,7 @@ TEST(TypeObjectUtilsTests, build_complete_bitset_type_non_empty_flags) // Register alias TypeObject TEST(TypeObjectUtilsTests, register_alias_type_object) { + TypeIdentifierPair type_ids; TypeIdentifier related_type; related_type._d(TK_CHAR16); CommonAliasBody common_body = TypeObjectUtils::build_common_alias_body(0, related_type); @@ -2760,9 +2767,9 @@ TEST(TypeObjectUtilsTests, register_alias_type_object) CompleteAliasHeader empty_header = TypeObjectUtils::build_complete_alias_header(empty_type_detail); CompleteAliasType alias = TypeObjectUtils::build_complete_alias_type(0, empty_header, body); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_alias_type_object(alias, "alias")); + TypeObjectUtils::build_and_register_alias_type_object(alias, "alias", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_alias_type_object(alias, "alias")); + TypeObjectUtils::build_and_register_alias_type_object(alias, "alias", type_ids)); CompleteTypeDetail detail = TypeObjectUtils::build_complete_type_detail( eprosima::fastcdr::optional(), eprosima::fastcdr::optional(), @@ -2770,12 +2777,12 @@ TEST(TypeObjectUtilsTests, register_alias_type_object) CompleteAliasHeader header = TypeObjectUtils::build_complete_alias_header(detail); CompleteAliasType other_alias = TypeObjectUtils::build_complete_alias_type(0, header, body); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, - TypeObjectUtils::build_and_register_alias_type_object(other_alias, - "alias")); + TypeObjectUtils::build_and_register_alias_type_object(other_alias, "alias", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_alias_type_object( other_alias, - type_name)); + type_name, + type_ids)); } // Register annotation TypeObject @@ -2784,20 +2791,20 @@ TEST(TypeObjectUtilsTests, register_annotation_type_object) CompleteAnnotationHeader header = TypeObjectUtils::build_complete_annotation_header("annotation_name"); CompleteAnnotationType annotation = TypeObjectUtils::build_complete_annotation_type(0, header, CompleteAnnotationParameterSeq()); - TypeIdentifier type_id; + TypeIdentifierPair type_ids; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_annotation_type_object(annotation, - "annotation", type_id)); + "annotation", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_annotation_type_object(annotation, - "annotation", type_id)); + "annotation", type_ids)); CompleteAnnotationHeader other_header = TypeObjectUtils::build_complete_annotation_header("other_annotation_name"); CompleteAnnotationType other_annotation = TypeObjectUtils::build_complete_annotation_type(0, other_header, CompleteAnnotationParameterSeq()); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_annotation_type_object( - other_annotation, "annotation", type_id)); + other_annotation, "annotation", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_annotation_type_object( other_annotation, type_name, - type_id)); + type_ids)); } // Register structure TypeObject @@ -2811,21 +2818,21 @@ TEST(TypeObjectUtilsTests, register_structure_type_object) CompleteStructHeader header = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), empty_type_detail); CompleteStructType structure = TypeObjectUtils::build_complete_struct_type(flags, header, CompleteStructMemberSeq()); - TypeIdentifier type_id; + TypeIdentifierPair type_ids; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_struct_type_object(structure, - "structure", type_id)); + "structure", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_struct_type_object(structure, - "structure", type_id)); + "structure", type_ids)); StructTypeFlag other_flags = TypeObjectUtils::build_struct_type_flag( eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL, false, false); CompleteStructType other_structure = TypeObjectUtils::build_complete_struct_type(other_flags, header, CompleteStructMemberSeq()); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_struct_type_object( - other_structure, "structure", type_id)); + other_structure, "structure", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_struct_type_object( other_structure, type_name, - type_id)); + type_ids)); } // Register union TypeObject @@ -2834,7 +2841,7 @@ TEST(TypeObjectUtilsTests, register_union_type_object) UnionTypeFlag flags = TypeObjectUtils::build_union_type_flag( eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE, false, false); UnionDiscriminatorFlag discr_flags = TypeObjectUtils::build_union_discriminator_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false); TypeIdentifier discriminator_type_id; discriminator_type_id._d(TK_BYTE); @@ -2844,9 +2851,10 @@ TEST(TypeObjectUtilsTests, register_union_type_object) eprosima::fastcdr::optional(), eprosima::fastcdr::optional()); UnionMemberFlag member_flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); TypeIdentifier type_id; type_id._d(TK_FLOAT128); + TypeIdentifierPair type_ids; UnionCaseLabelSeq case_labels; TypeObjectUtils::add_union_case_label(case_labels, 5); CommonUnionMember common_member = TypeObjectUtils::build_common_union_member(3, member_flags, type_id, case_labels); @@ -2863,24 +2871,25 @@ TEST(TypeObjectUtilsTests, register_union_type_object) CompleteUnionType union_type = TypeObjectUtils::build_complete_union_type(flags, header, discriminator, member_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_union_type_object(union_type, "union", type_id)); + TypeObjectUtils::build_and_register_union_type_object(union_type, "union", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_union_type_object(union_type, "union", type_id)); + TypeObjectUtils::build_and_register_union_type_object(union_type, "union", type_ids)); UnionTypeFlag other_flags = TypeObjectUtils::build_union_type_flag( eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE, false, false); CompleteUnionType other_union_type = TypeObjectUtils::build_complete_union_type(other_flags, header, discriminator, member_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_union_type_object( - other_union_type, "union", type_id)); + other_union_type, "union", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_union_type_object( other_union_type, type_name, - type_id)); + type_ids)); } // Register bitset TypeObject TEST(TypeObjectUtilsTests, register_bitset_type_object) { + TypeIdentifierPair type_ids; CommonBitfield common_bitfield = TypeObjectUtils::build_common_bitfield(0, 0, 3, TK_BYTE); CompleteMemberDetail empty_member_detail = TypeObjectUtils::build_complete_member_detail("member_name", eprosima::fastcdr::optional(), @@ -2894,9 +2903,9 @@ TEST(TypeObjectUtilsTests, register_bitset_type_object) CompleteBitsetHeader header = TypeObjectUtils::build_complete_bitset_header(empty_type_detail); CompleteBitsetType bitset = TypeObjectUtils::build_complete_bitset_type(0, header, bitfield_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_bitset_type_object(bitset, "bitset")); + TypeObjectUtils::build_and_register_bitset_type_object(bitset, "bitset", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_bitset_type_object(bitset, "bitset")); + TypeObjectUtils::build_and_register_bitset_type_object(bitset, "bitset", type_ids)); CompleteTypeDetail detail = TypeObjectUtils::build_complete_type_detail( eprosima::fastcdr::optional(), eprosima::fastcdr::optional(), @@ -2904,11 +2913,11 @@ TEST(TypeObjectUtilsTests, register_bitset_type_object) CompleteBitsetHeader other_header = TypeObjectUtils::build_complete_bitset_header(detail); CompleteBitsetType other_bitset = TypeObjectUtils::build_complete_bitset_type(0, other_header, bitfield_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, TypeObjectUtils::build_and_register_bitset_type_object( - other_bitset, "bitset")); + other_bitset, "bitset", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_bitset_type_object( - other_bitset, - type_name)); + other_bitset, type_name, + type_ids)); } // Register sequence TypeObject @@ -2918,7 +2927,7 @@ TEST(TypeObjectUtilsTests, register_sequence_type_object) CompleteCollectionHeader header = TypeObjectUtils::build_complete_collection_header(common_header, eprosima::fastcdr::optional()); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_FLOAT128); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2955,7 +2964,7 @@ TEST(TypeObjectUtilsTests, register_array_type_object) eprosima::fastcdr::optional(), "type_name"); CompleteArrayHeader header = TypeObjectUtils::build_complete_array_header(common_header, empty_type_detail); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_FLOAT128); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -2987,7 +2996,7 @@ TEST(TypeObjectUtilsTests, register_map_type_object) CompleteCollectionHeader header = TypeObjectUtils::build_complete_collection_header(common_header, eprosima::fastcdr::optional()); CollectionElementFlag flags = TypeObjectUtils::build_collection_element_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::USE_DEFAULT, true); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT, true); TypeIdentifier type_id; type_id._d(TK_INT16); CommonCollectionElement common_element = TypeObjectUtils::build_common_collection_element(flags, type_id); @@ -3013,6 +3022,7 @@ TEST(TypeObjectUtilsTests, register_map_type_object) // Register enumeration TypeObject TEST(TypeObjectUtilsTests, register_enumerated_type_object) { + TypeIdentifierPair type_ids; CommonEnumeratedHeader common_header = TypeObjectUtils::build_common_enumerated_header(32); CompleteTypeDetail empty_type_detail = TypeObjectUtils::build_complete_type_detail( eprosima::fastcdr::optional(), @@ -3029,11 +3039,9 @@ TEST(TypeObjectUtilsTests, register_enumerated_type_object) TypeObjectUtils::add_complete_enumerated_literal(literal_seq, literal); CompleteEnumeratedType enumeration = TypeObjectUtils::build_complete_enumerated_type(0, header, literal_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_enumerated_type_object(enumeration, - "enum")); + TypeObjectUtils::build_and_register_enumerated_type_object(enumeration, "enum", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_enumerated_type_object(enumeration, - "enum")); + TypeObjectUtils::build_and_register_enumerated_type_object(enumeration, "enum", type_ids)); CompleteTypeDetail detail = TypeObjectUtils::build_complete_type_detail( eprosima::fastcdr::optional(), eprosima::fastcdr::optional(), @@ -3042,17 +3050,17 @@ TEST(TypeObjectUtilsTests, register_enumerated_type_object) CompleteEnumeratedType other_enumeration = TypeObjectUtils::build_complete_enumerated_type(0, other_header, literal_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, - TypeObjectUtils::build_and_register_enumerated_type_object(other_enumeration, - "enum")); + TypeObjectUtils::build_and_register_enumerated_type_object(other_enumeration, "enum", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_enumerated_type_object( - other_enumeration, - type_name)); + other_enumeration, type_name, + type_ids)); } // Register bitmask TypeObject TEST(TypeObjectUtilsTests, register_bitmask_type_object) { + TypeIdentifierPair type_ids; CommonEnumeratedHeader common_header = TypeObjectUtils::build_common_enumerated_header(64, true); CompleteTypeDetail type_detail = TypeObjectUtils::build_complete_type_detail( eprosima::fastcdr::optional(), @@ -3066,9 +3074,9 @@ TEST(TypeObjectUtilsTests, register_bitmask_type_object) TypeObjectUtils::add_complete_bitflag(bitflag_seq, bitflag); CompleteBitmaskType bitmask = TypeObjectUtils::build_complete_bitmask_type(0, header, bitflag_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask, "bitmask")); + TypeObjectUtils::build_and_register_bitmask_type_object(bitmask, "bitmask", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, - TypeObjectUtils::build_and_register_bitmask_type_object(bitmask, "bitmask")); + TypeObjectUtils::build_and_register_bitmask_type_object(bitmask, "bitmask", type_ids)); CommonBitflag common = TypeObjectUtils::build_common_bitflag(1, 0); CompleteMemberDetail other_member_detail = TypeObjectUtils::build_complete_member_detail("other_member_name", eprosima::fastcdr::optional(), @@ -3077,12 +3085,11 @@ TEST(TypeObjectUtilsTests, register_bitmask_type_object) TypeObjectUtils::add_complete_bitflag(bitflag_seq, other_bitflag); CompleteBitmaskType other_bitmask = TypeObjectUtils::build_complete_bitmask_type(0, header, bitflag_seq); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_BAD_PARAMETER, - TypeObjectUtils::build_and_register_bitmask_type_object(other_bitmask, - "bitmask")); + TypeObjectUtils::build_and_register_bitmask_type_object(other_bitmask, "bitmask", type_ids)); std::string type_name; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_PRECONDITION_NOT_MET, TypeObjectUtils::build_and_register_bitmask_type_object( - other_bitmask, - type_name)); + other_bitmask, type_name, + type_ids)); } // This tests only check that Complete TypeObjects sequences are correctly ordered. TypeObjectUtils API only generates @@ -3129,13 +3136,13 @@ TEST(TypeObjectUtilsTests, add_to_applied_annotation_seq) CompleteAnnotationParameterSeq()); CompleteAnnotationType third_custom_annotation = TypeObjectUtils::build_complete_annotation_type(0, third_ann, CompleteAnnotationParameterSeq()); - TypeIdentifier type_id; + TypeIdentifierPair type_ids; EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_annotation_type_object( - first_custom_annotation, "first_custom", type_id)); + first_custom_annotation, "first_custom", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_annotation_type_object( - second_custom_annotation, "second_custom", type_id)); + second_custom_annotation, "second_custom", type_ids)); EXPECT_EQ(eprosima::fastdds::dds::RETCODE_OK, TypeObjectUtils::build_and_register_annotation_type_object( - third_custom_annotation, "third_custom", type_id)); + third_custom_annotation, "third_custom", type_ids)); TypeIdentifierPair first_custom_annotation_ids; ASSERT_EQ(eprosima::fastdds::dds::RETCODE_OK, DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers("first_custom", @@ -3211,7 +3218,7 @@ TEST(TypeObjectUtilsTests, add_to_applied_annotation_seq) TEST(TypeObjectUtilsTests, add_to_complete_struct_member_seq) { StructMemberFlag flags = TypeObjectUtils::build_struct_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false, false, + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false, false, false); TypeIdentifier type_id; type_id._d(TK_INT32); @@ -3268,7 +3275,7 @@ TEST(TypeObjectUtilsTests, add_to_union_case_label_seq) TEST(TypeObjectUtilsTests, add_to_complete_union_member_seq) { UnionMemberFlag flags = TypeObjectUtils::build_union_member_flag( - eprosima::fastdds::dds::xtypes::TryConstructKind::DISCARD, false, false); + eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD, false, false); TypeIdentifier type_id; type_id._d(TK_UINT32); UnionCaseLabelSeq label_1; diff --git a/test/unittest/rtps/reader/CMakeLists.txt b/test/unittest/rtps/reader/CMakeLists.txt index 4fc074567ad..1cd1a450b40 100644 --- a/test/unittest/rtps/reader/CMakeLists.txt +++ b/test/unittest/rtps/reader/CMakeLists.txt @@ -316,7 +316,9 @@ if (FASTDDS_STATISTICS) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/rtps/StatisticsBase.cpp ${PROJECT_SOURCE_DIR}/src/cpp/statistics/rtps/writer/StatisticsWriterImpl.cpp ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesTypeObjectSupport.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesTypeObjectSupport.cxx # Monitor service is using a DataWriterHistory ${PROJECT_SOURCE_DIR}/src/cpp/fastdds/publisher/DataWriterHistory.cpp @@ -396,6 +398,7 @@ target_compile_definitions(StatefulReaderTests PRIVATE ) target_include_directories(StatefulReaderTests PRIVATE ${Asio_INCLUDE_DIR} + ${PROJECT_SOURCE_DIR}/test/mock/dds/DomainParticipantFactory ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ${THIRDPARTY_BOOST_INCLUDE_DIR} diff --git a/test/unittest/statistics/dds/StatisticsDomainParticipantMockTests.cpp b/test/unittest/statistics/dds/StatisticsDomainParticipantMockTests.cpp index b276d4611d1..0601da02441 100644 --- a/test/unittest/statistics/dds/StatisticsDomainParticipantMockTests.cpp +++ b/test/unittest/statistics/dds/StatisticsDomainParticipantMockTests.cpp @@ -143,6 +143,7 @@ TEST_F(StatisticsDomainParticipantMockTests, DisableStatisticsDataWriterFailureD #ifdef FASTDDS_STATISTICS eprosima::fastdds::dds::TypeSupport null_type(nullptr); eprosima::fastdds::dds::TypeSupport count_type(new EntityCountPubSubType); + count_type->register_type_object_representation(); // 1. Create DomainParticipant eprosima::fastdds::dds::DomainParticipant* participant = diff --git a/test/unittest/statistics/dds/StatisticsDomainParticipantTests.cpp b/test/unittest/statistics/dds/StatisticsDomainParticipantTests.cpp index c3d0db2e535..eccbaf80977 100644 --- a/test/unittest/statistics/dds/StatisticsDomainParticipantTests.cpp +++ b/test/unittest/statistics/dds/StatisticsDomainParticipantTests.cpp @@ -247,13 +247,21 @@ TEST_F(StatisticsDomainParticipantTests, EnableDisableStatisticsDataWriterTest) // 3. Create TypeSupports for the different DataTypes eprosima::fastdds::dds::TypeSupport history_latency_type(new WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport network_latency_type(new Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport throughput_type(new EntityDataPubSubType); + throughput_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport rtps_traffic_type(new Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport count_type(new EntityCountPubSubType); + count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport discovery_type(new DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport sample_identity_count_type(new SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport physical_data_type(new PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport null_type(nullptr); // 4. Check that the types are not registered yet @@ -514,13 +522,21 @@ TEST_F(StatisticsDomainParticipantTests, CreateParticipantWithInvalidTopicName) // 2. Check topics/types // Create TypeSupports eprosima::fastdds::dds::TypeSupport history_latency_type(new WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport network_latency_type(new Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport throughput_type(new EntityDataPubSubType); + throughput_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport rtps_traffic_type(new Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport count_type(new EntityCountPubSubType); + count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport discovery_type(new DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport sample_identity_count_type(new SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport physical_data_type(new PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); eprosima::fastdds::dds::TypeSupport null_type(nullptr); EXPECT_EQ(null_type, participant->find_type(history_latency_type.get_type_name())); diff --git a/thirdparty/dds-types-test b/thirdparty/dds-types-test index f8a4ccaa920..0d059ec6434 160000 --- a/thirdparty/dds-types-test +++ b/thirdparty/dds-types-test @@ -1 +1 @@ -Subproject commit f8a4ccaa9201b81c9819fd587beb691e374388ae +Subproject commit 0d059ec6434aedf828d6dff3734c71ba2e72908d